/* ============================================================
   ĐERDAP USLUGE A.D. — Design system
   Color palette: corporate blue + teal gradient + environmental green
   Typography: Archivo (display) + Manrope (body) + JetBrains Mono (technical)
   ============================================================ */

:root {
  /* Brand palette */
  --blue-deep:    #0a2240;
  --blue-900:     #0d2851;
  --blue-800:     #11305f;
  --blue:         #1e3a7a;        /* logo dark blue */
  --blue-bright:  #2756c4;
  --blue-light:   #6786c4;
  --teal:         #1d8eb0;        /* logo teal */
  --teal-light:   #5cc1d8;
  --teal-fade:    #aae0ed;
  --green:        #5fa540;        /* environmental */
  --green-light:  #8fc962;
  --green-fade:   #e1f0d4;
  /* Neutrals */
  --ink:          #0d1729;
  --steel:        #1f2d44;
  --slate:        #475569;
  --slate-2:      #64748b;
  --slate-3:      #94a3b8;
  --paper:        #ffffff;
  --paper-2:      #f4f7fb;
  --paper-3:      #e8eff7;
  --line:         #dbe4ef;
  --line-soft:    #eaf0f7;
  --line-blue:    rgba(30, 58, 122, 0.14);
  --line-dark:    rgba(255, 255, 255, 0.12);

  /* Typography */
  --serif-display: "Archivo", system-ui, sans-serif;
  --sans:          "Manrope", system-ui, sans-serif;
  --mono:          "JetBrains Mono", monospace;

  /* Layout */
  --max:    1320px;
  --gutter: clamp(20px, 4vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--teal); color: white; }

/* ============== TYPE PRIMITIVES ============== */
.h-display {
  font-family: var(--serif-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--ink);
}
.h-display--xl { font-size: clamp(48px, 7.5vw, 108px); }
.h-display--lg { font-size: clamp(40px, 5.6vw, 80px); }
.h-display--md { font-size: clamp(32px, 4vw, 56px); }
.h-display--sm { font-size: clamp(24px, 2.6vw, 38px); }

.h-display em {
  font-style: normal;
  background: linear-gradient(95deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.h-display em.green {
  background: linear-gradient(95deg, var(--green) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow.no-line::before { display: none; }
.eyebrow.green { color: var(--green); }
.eyebrow.white { color: var(--teal-light); }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
}

.lead--white { color: rgba(255, 255, 255, 0.85); }

p { color: var(--slate); }
p strong { color: var(--ink); font-weight: 600; }

.muted { color: var(--slate-2); }

/* ============== LAYOUT ============== */
.section { padding: clamp(70px, 10vh, 130px) var(--gutter); }
.section--tight { padding: clamp(50px, 7vh, 90px) var(--gutter); }
.section__inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.section--dark { background: var(--blue-deep); color: var(--paper); }
.section--dark .lead { color: rgba(255, 255, 255, 0.78); }
.section--dark p { color: rgba(255, 255, 255, 0.78); }
.section--dark .h-display { color: white; }
.section--paper2 { background: var(--paper-2); }
.section--paper3 { background: var(--paper-3); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 80px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(24px, 3vw, 40px); }

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============== NAV / HEADER ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 280ms var(--ease), border-color 280ms var(--ease);
}
.nav--dark-default { background: rgba(10, 34, 64, 0); }
.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav.scrolled.dark-mode {
  background: rgba(10, 34, 64, 0.94);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav__logo img { height: 36px; width: auto; }
.nav__logo .wordmark {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.nav__logo .wordmark span:last-child {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--slate-2);
  text-transform: uppercase;
}
.nav.dark-mode .nav__logo .wordmark { color: white; }
.nav.dark-mode .nav__logo .wordmark span:last-child { color: rgba(255, 255, 255, 0.6); }

.nav__links {
  display: flex; gap: 26px; align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
@media (max-width: 1180px) {
  .nav__links { gap: 20px; font-size: 13.5px; }
}
.nav__links a {
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 200ms ease;
}
.nav.dark-mode .nav__links a { color: white; }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__right {
  display: flex; align-items: center; gap: 18px;
  flex-shrink: 0;
}
.nav__phone {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.nav.dark-mode .nav__phone { color: rgba(255,255,255,0.78); }

.nav__lang {
  position: relative;
  font-family: var(--mono);
}
.nav__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.nav__lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.nav__lang-btn .chevron { transition: transform 0.18s ease; }
.nav__lang-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav.dark-mode .nav__lang-btn {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}
.nav.dark-mode .nav__lang-btn:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

.nav__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(10, 34, 64, 0.10);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 200;
}
.nav__lang-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__lang-menu li { padding: 0; }
.nav__lang-menu a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.1s ease, color 0.1s ease;
}
.nav__lang-menu a:hover { background: var(--paper2); color: var(--teal); }
.nav__lang-menu a strong {
  display: inline-block;
  width: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.nav__lang-menu a span {
  color: var(--slate-2);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}
.nav__lang-menu a:hover span { color: var(--teal); }

.nav.dark-mode .nav__lang-menu {
  background: var(--blue-deep);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.nav.dark-mode .nav__lang-menu a { color: white; }
.nav.dark-mode .nav__lang-menu a span { color: rgba(255, 255, 255, 0.55); }
.nav.dark-mode .nav__lang-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--teal-light);
}
.nav.dark-mode .nav__lang-menu a:hover span { color: var(--teal-light); }

.nav__menu-toggle {
  display: none;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
}
.nav__menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav__menu-toggle span::before,
.nav__menu-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px;
  background: currentColor;
}
.nav__menu-toggle span::before { top: -6px; }
.nav__menu-toggle span::after  { top: 6px; }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__menu-toggle { display: inline-flex; }
  .nav.menu-open .nav__links {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav.dark-mode.menu-open .nav__links {
    background: var(--blue-deep);
    border-bottom-color: var(--line-dark);
  }
}

/* ============== HERO PRIMITIVES ============== */
.hero {
  position: relative;
  background: var(--blue-deep);
  color: white;
  overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  padding: 160px var(--gutter) 80px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.9) contrast(1.05);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,34,64,0.55) 0%, rgba(10,34,64,0.25) 35%, rgba(10,34,64,0.92) 100%),
    linear-gradient(90deg, rgba(10,34,64,0.65) 0%, rgba(10,34,64,0.0) 60%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  font-family: var(--serif-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: white;
  font-size: clamp(48px, 7.5vw, 108px);
  margin-bottom: 28px;
  max-width: 16ch;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal-light) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.hero__breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 12px;
}
.hero__breadcrumb a { color: rgba(255,255,255,0.6); }
.hero__breadcrumb a:hover { color: var(--teal-light); }
.hero__breadcrumb .sep { color: rgba(255,255,255,0.3); }

.hero--page {
  min-height: 56vh;
  padding: 160px var(--gutter) 60px;
}
.hero--page .hero__title { font-size: clamp(40px, 5.6vw, 76px); margin-bottom: 22px; }

/* ============== STAT STRIP ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 50px);
  padding: clamp(40px, 6vh, 70px) 0;
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
}
.stats--dark { border-color: var(--line-dark); }
.stat__num {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.stats--dark .stat__num { color: white; }
.stat__num em {
  font-style: normal;
  background: linear-gradient(95deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats--dark .stat__num em {
  background: linear-gradient(95deg, var(--teal-light) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  font-weight: 500;
}
.stats--dark .stat__label { color: rgba(255, 255, 255, 0.6); }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: transform 180ms var(--ease), background 220ms ease, color 220ms ease;
}
.btn--primary {
  background: linear-gradient(100deg, var(--blue) 0%, var(--teal) 100%);
  color: white;
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn--ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--ink);
}
.btn--ghost-white { color: white; }
.btn--ghost:hover { background: currentColor; color: var(--paper); }
.btn--ghost-white:hover { background: white; color: var(--blue-deep); }
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============== CARDS ============== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px 28px;
  transition: border-color 240ms ease, transform 240ms var(--ease), box-shadow 240ms ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -20px rgba(30, 58, 122, 0.25);
}
.card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 18px;
}
.card__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.card__desc { font-size: 14.5px; line-height: 1.6; color: var(--slate); flex: 1; }
.card__arrow {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Card variants */
.card--green { border-color: rgba(95, 165, 64, 0.3); }
.card--green:hover { border-color: var(--green); }
.card--green .card__num { color: var(--green); }
.card--green .card__arrow { color: var(--green); }

/* ============== FEATURE BLOCK (image + text) ============== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; direction: ltr; } }

.feature__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blue-deep);
}
.feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.feature__media:hover img { transform: scale(1.04); }
.feature__media .accent-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 6px; width: 50%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.feature__media .corner-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: rgba(10, 34, 64, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
}

.feature__content h2 { margin-bottom: 24px; }
.feature__content .eyebrow { margin-bottom: 18px; }
.feature__content p { margin-bottom: 16px; max-width: 52ch; }
.feature__content .btn { margin-top: 20px; }

/* ============== IMAGE GRID ============== */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 720px) { .img-grid { grid-template-columns: 1fr 1fr; } }
.img-grid figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.img-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.img-grid figure:hover img { transform: scale(1.04); }
.img-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(0deg, rgba(10,34,64,0.85), transparent);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px var(--gutter) 32px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 980px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand .logo-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.footer__brand .logo-row img { height: 40px; }
.footer__brand .wordmark {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 16px;
  color: white;
}
.footer__brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
}

.footer__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a, .footer__col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.55;
  transition: color 180ms ease;
}
.footer__col a:hover { color: var(--teal-light); }

.footer__bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ============== UTILITY ============== */
.divider {
  height: 1px; background: var(--line); width: 100%;
  margin: clamp(40px, 6vh, 70px) 0;
}
.divider--dark { background: var(--line-dark); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.tag--dark { border-color: var(--line-dark); color: rgba(255,255,255,0.85); }
.tag--green { border-color: var(--green); color: var(--green); background: var(--green-fade); }
.tag--blue { border-color: var(--blue-bright); color: var(--blue-bright); background: rgba(39, 86, 196, 0.06); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============== CTA BANNER ============== */
.cta-banner {
  background: linear-gradient(110deg, var(--blue-deep) 0%, var(--blue) 50%, var(--teal) 130%);
  color: white;
  padding: clamp(60px, 9vh, 110px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-banner__inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) { .cta-banner__inner { grid-template-columns: 1fr; gap: 28px; } }
.cta-banner h2 { font-family: var(--serif-display); font-weight: 800; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; color: white; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
@media (max-width: 880px) { .cta-banner__actions { justify-content: flex-start; } }

/* ============== REVEAL ANIMATIONS ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============== PAGE-SPECIFIC HELPERS ============== */
/* Section labels with numbering */
.section-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-label .num { color: var(--teal); font-weight: 600; }
.section-label .text { color: var(--slate); }
.section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
  max-width: 200px;
}
.section--dark .section-label .text { color: rgba(255,255,255,0.7); }
.section--dark .section-label::after { background: var(--line-dark); }

/* Two-col text layout */
.text-two-col { columns: 2; column-gap: 60px; }
.text-two-col p { margin-bottom: 16px; break-inside: avoid; }
@media (max-width: 720px) { .text-two-col { columns: 1; } }

/* Spec list (for licenses, etc.) */
.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-list .code {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.spec-list .desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.section--dark .spec-list { border-color: var(--line-dark); }
.section--dark .spec-list li { border-color: var(--line-dark); }
.section--dark .spec-list .code { color: var(--teal-light); }
.section--dark .spec-list .desc { color: rgba(255,255,255,0.85); }

@media (max-width: 600px) {
  .spec-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* Branch card */
.branch-card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  height: 100%;
  transition: border-color 240ms ease, background 240ms ease;
}
.branch-card:hover { border-color: var(--teal); background: var(--paper-2); }
.branch-card__type {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.branch-card__type::after {
  content: ""; flex: 1; height: 1px; background: var(--line); max-width: 80px;
}
.branch-card__city {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.branch-card__name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 22px;
}
.branch-card__addr {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}
.branch-card__contact {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  line-height: 1.8;
  margin-top: auto;
}
.branch-card__contact a { color: var(--blue); border-bottom: 1px solid var(--line); }
.branch-card__contact a:hover { color: var(--teal); border-color: var(--teal); }

/* ============== DOCUMENTS PAGE ============== */
.docs-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding-top: 40px;
}
@media (max-width: 900px) {
  .docs-intro { grid-template-columns: 1fr; gap: 32px; }
}
.docs-intro__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.docs-intro__meta strong { color: var(--ink); font-weight: 600; }

.doc-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.doc-block:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 980px) {
  .doc-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }
}
.doc-block__side {
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 980px) {
  .doc-block__side { position: static; }
}
.doc-block__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.doc-block__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 18px;
}
.doc-block__desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-1);
  margin: 0 0 24px;
}
.doc-block__facts {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate-2);
}
.doc-block__facts li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.doc-block__facts li:last-child { border-bottom: none; }
.doc-block__facts strong { color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }

.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.doc-actions .btn { font-size: 12.5px; padding: 11px 18px; }
.doc-actions .btn .arrow { width: 14px; height: 14px; }

.doc-viewer {
  position: relative;
  background: var(--paper-2, #f3f0ea);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(10, 34, 64, 0.28),
              0 8px 16px -8px rgba(10, 34, 64, 0.12);
}
.doc-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--blue-deep);
  color: white;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.doc-viewer__bar .dots {
  display: flex; gap: 6px;
}
.doc-viewer__bar .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.doc-viewer__bar .dots span:first-child { background: #ff5f57; }
.doc-viewer__bar .dots span:nth-child(2) { background: #febc2e; }
.doc-viewer__bar .dots span:nth-child(3) { background: #28c840; }
.doc-viewer__frame {
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
  display: block;
}
@media (max-width: 980px) {
  .doc-viewer__frame { height: 560px; }
}
@media (max-width: 600px) {
  .doc-viewer__frame { height: 460px; }
}
.doc-viewer__fallback {
  padding: 28px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--slate-1);
  text-align: center;
  background: #fff;
}
.doc-viewer__fallback a { color: var(--blue); border-bottom: 1px solid var(--blue); padding-bottom: 2px; }
.doc-viewer__fallback a:hover { color: var(--teal); border-color: var(--teal); }

.docs-cta {
  text-align: center;
  padding: 80px var(--gutter);
  background: var(--paper-2, #f3f0ea);
  border-top: 1px solid var(--line);
}
.docs-cta h3 {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 12px;
  color: var(--ink);
}
.docs-cta p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--slate-1);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ============== DOCUMENTS — additional helpers (multi-section) ============== */
/* Section group spacing within paper2 region */
.docs-group {
  padding-top: 28px;
  padding-bottom: 28px;
}
.docs-group + .docs-group {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 72px;
}
.docs-group__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .docs-group__head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
}
.docs-group__head h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.docs-group__head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.docs-group__head p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-1);
  margin: 0;
}
.docs-group__head .date-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(53, 158, 175, 0.10);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}

/* Compact viewer for short docs (1–3 pages) so they don't dominate */
.doc-viewer--short .doc-viewer__frame { height: 540px; }
@media (max-width: 980px) {
  .doc-viewer--short .doc-viewer__frame { height: 460px; }
}
