body.page-cnc {
  font-family: "Krub", sans-serif;
  color: #444;
}

.cnc-page {
  min-height: 100vh;
  background: transparent;
}

body.page-home .cnc-page {
  display: flex;
  flex-direction: column;
}

body.page-home .site-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-home main {
  flex: 1;
}

body.page-home main:empty {
  flex: 0 0 auto;
  min-height: 0;
}

.cnc-subheader-inner,
.cnc-main,
.cnc-footer-inner,
.cnc-copyright-inner {
  width: var(--container);
  margin: 0 auto;
}

.cnc-topbar {
  margin-bottom: 18px;
}

.cnc-subheader {
  padding-bottom: 18px;
}

.cnc-subheader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.cnc-subheader h1 {
  margin: 0;
  width: 100%;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
}

.cnc-main {
  padding: 0;
}

.cnc-section {
  margin-bottom: 18px;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.cnc-hero-image {
  width: 100%;
  height: clamp(380px, 44vw, 520px);
  display: block;
  border-radius: 22px;
  object-fit: cover;
  object-position: 50% 100%;
}

.cnc-intro {
  margin-top: 26px;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cnc-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cnc-card h5,
.cnc-procedure h4,
.cnc-projects-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  font-weight: 500;
}

.cnc-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.cnc-card ul {
  margin: 0;
  padding-left: 18px;
}

.cnc-card li,
.cnc-procedure p,
.cnc-footer p,
.cnc-footer a {
  font-size: 1rem;
  line-height: 2;
  color: var(--muted);
}

.cnc-media-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 34px;
  align-items: start;
}

.cnc-video-wrap {
  height: auto;
  overflow: hidden;
  border-radius: 22px;
}

.cnc-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0e0e0e;
  object-fit: cover;
}

.cnc-procedure {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.cnc-procedure p + p {
  margin-top: 28px;
}

.cnc-projects-title {
  text-align: center;
  margin-bottom: 26px;
}

.cnc-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.cnc-project-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(195, 103, 43, 0.12), rgba(32, 54, 89, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 231, 0.72));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.cnc-project-card span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cnc-footer {
  margin-top: 18px;
  padding: 0;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #1a2436 0%, #1d2638 100%);
  background-size: 54px 54px, 54px 54px, cover;
}

.cnc-footer-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 2.12fr);
  gap: 48px;
  align-items: center;
  min-height: 445px;
  padding: 72px 0;
}

.cnc-footer-brand {
  display: flex;
  align-items: center;
}

.cnc-footer-logo {
  max-width: 280px;
  width: min(100%, 280px);
}

.cnc-footer-content {
  display: grid;
  gap: 28px;
}

.cnc-footer h2 {
  margin: 0;
  display: block;
  width: max-content;
  max-width: 100%;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 1.9vw, 1.95rem);
  line-height: 1.02;
  font-weight: 600;
  white-space: nowrap;
}

.cnc-footer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 44px;
}

.cnc-footer p,
.cnc-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0;
}

.cnc-footer-address p,
.cnc-footer-contact {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.85;
}

.cnc-footer-contact {
  display: grid;
  align-content: start;
}

.cnc-footer-note {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.35vw, 1.15rem);
  line-height: 1.9;
}

.cnc-footer-note:empty {
  display: none;
}

.cnc-footer .partner-link {
  text-decoration: underline;
}

.cnc-copyright {
  width: 100%;
  margin: 0;
  background: #162031;
}

.cnc-copyright-inner {
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cnc-columns,
  .cnc-media-layout,
  .cnc-project-grid,
  .cnc-footer-panel,
  .cnc-footer-meta {
    grid-template-columns: 1fr;
  }

  .cnc-section,
  .cnc-subheader-inner {
    padding: 22px;
  }

  .cnc-subheader h1 {
    white-space: normal;
  }

  .cnc-video-wrap {
    height: auto !important;
  }

  .cnc-video {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .cnc-footer-panel {
    gap: 30px;
    min-height: 0;
    padding: 44px 0;
  }

  .cnc-footer h2,
  .cnc-footer-note {
    max-width: none;
  }

  .cnc-footer h2 {
    white-space: normal;
  }
}
