/* ==========================================================================
   Components
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-lime-voltage);
  --btn-fg: var(--color-forest-ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 24px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.006em;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform var(--dur-base) var(--ease-spring);
}
.btn:hover { --btn-bg: var(--color-lime-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--outline {
  --btn-bg: var(--color-paper);
  --btn-fg: var(--color-forest-ink);
  --btn-border: var(--color-forest-ink);
}
.btn--outline:hover { --btn-bg: var(--color-linen-mist); }

.btn--dark {
  --btn-bg: var(--color-forest-ink);
  --btn-fg: var(--color-paper);
}
.btn--dark:hover { --btn-bg: var(--color-spruce); }

.section--dark .btn--outline,
.dark-card .btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-paper);
  --btn-border: rgba(255, 255, 255, 0.5);
}
.section--dark .btn--outline:hover,
.dark-card .btn--outline:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-border: var(--color-paper); }

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }

@media (max-width: 640px) {
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    padding: 12px 20px;
  }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--text-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-forest-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: text-underline-offset var(--dur-fast) ease;
}
.link-btn:hover { text-underline-offset: 8px; }
.section--dark .link-btn, .dark-card .link-btn { color: var(--color-paper); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-linen-mist);
  color: var(--color-forest-ink);
  font-size: var(--text-micro);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.tag--dark { background: var(--color-forest-ink); color: var(--color-lime-voltage); }
.tag--outline { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.tag--lg { padding: 10px 16px; font-size: var(--text-caption); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-forest-ink);
  flex: none;
}
.logo svg { width: 40px; height: 40px; transition: transform var(--dur-base) var(--ease-spring); }
.logo:hover svg { transform: rotate(-8deg) scale(1.05); }
.logo__text {
  font-weight: var(--fw-black);
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo__text small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate);
}
.logo--light { color: var(--color-paper); }
.logo--light .logo__text small { color: rgba(255, 255, 255, 0.6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper);
  transition: box-shadow var(--dur-base) ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(14, 15, 12, 0.1); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
}

.header__actions { display: flex; align-items: center; gap: 12px; }

.header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone svg { width: 18px; height: 18px; }
.header__phone:hover { text-decoration: underline; }
@media (min-width: 1280px) { .header__phone { display: inline-flex; } }

.header__cta { display: none; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

/* Burger */
.burger {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--color-forest-ink);
  transition: background-color var(--dur-fast) ease;
}
.burger:hover { background: var(--color-linen-mist); }
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-forest-ink);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease;
}
.burger span { top: 50%; transform: translate(-50%, -50%); }
.burger span::before, .burger span::after { content: ""; transform: translateX(-50%); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translate(-50%, 6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translate(-50%, -6px) rotate(-45deg); }

/* ---------- Navigation ---------- */
.nav__list { list-style: none; padding: 0; }

.nav__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: var(--fw-medium);
  color: var(--color-forest-ink);
}

.nav__split { display: flex; align-items: center; }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-forest-ink);
  transition: background-color var(--dur-fast) ease;
}
.nav__toggle:hover { background: var(--color-linen-mist); }
.nav__toggle svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.nav__item--dropdown.is-open .nav__toggle svg { transform: rotate(180deg); }

.nav__dropdown { list-style: none; padding: 0; }
.nav__dropdown a {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 4px 14px;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--color-obsidian);
  transition: background-color var(--dur-fast) ease;
}
.nav__dropdown a:hover,
.nav__dropdown a[aria-current="page"] { background: var(--color-linen-mist); }
.nav__dropdown img {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-fog);
  mix-blend-mode: multiply;
  object-fit: cover;
}
.nav__dropdown strong { font-size: 15px; font-weight: var(--fw-semibold); line-height: 1.25; }
.nav__dropdown small { font-size: 13px; color: var(--color-slate); line-height: 1.3; }

.nav__dropdown-all {
  grid-column: 1 / -1;
  width: 100%;
}
.nav__dropdown-all a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--color-forest-ink);
  background: var(--color-fog);
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav__dropdown-all a:hover {
  background: var(--color-linen-mist);
  color: var(--color-forest-ink);
}
.nav__dropdown-all a svg {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__dropdown-all a:hover svg {
  transform: translateX(4px);
}

.nav__extra { display: none; }

/* Desktop navigation */
@media (min-width: 1100px) {
  .burger { display: none; }

  .nav__list { display: flex; align-items: center; gap: 2px; }

  .nav__link {
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  }
  .nav__link:hover { background: var(--color-linen-mist); }
  .nav__link[aria-current="page"] { background: var(--color-forest-ink); color: var(--color-paper); }

  .nav__item--dropdown { position: relative; }
  .nav__item--dropdown .nav__link { padding-right: 6px; }
  .nav__item--dropdown .nav__link[aria-current="page"] { padding-right: 14px; }
  .nav__toggle { margin-left: -2px; }

  .nav__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 600px;
    padding: 12px;
    border-radius: var(--radius-2xl);
    background: var(--color-paper);
    box-shadow: var(--shadow-xl), var(--shadow-subtle);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .nav__dropdown::before {
    content: "";
    position: absolute;
    inset: -14px 0 auto 0;
    height: 14px;
  }
  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown:focus-within .nav__dropdown,
  .nav__item--dropdown.is-open .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* Mobile drawer */
@media (max-width: 1099.98px) {
  .nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }

  .nav__list > li { border-bottom: 1px solid var(--color-fog); }
  .nav__link {
    flex: 1;
    min-height: 60px;
    font-size: 24px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
  }
  .nav__link[aria-current="page"] { color: var(--color-forest-ink); text-decoration: underline; text-decoration-color: var(--color-lime-voltage); text-decoration-thickness: 4px; text-underline-offset: 8px; }
  .nav__toggle { width: 48px; height: 48px; background: var(--color-fog); }
  .nav__toggle svg { width: 20px; height: 20px; }

  .nav__dropdown {
    display: grid;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease-out), padding var(--dur-base) ease;
  }
  .nav__item--dropdown.is-open .nav__dropdown { max-height: 640px; padding-bottom: 16px; }

  .nav__extra {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-largecards);
    background: var(--color-forest-ink);
    color: var(--color-paper);
  }
  .nav__extra a:not(.btn) { color: var(--color-paper); font-size: 20px; font-weight: var(--fw-bold); text-decoration: none; }
  .nav__extra .caption { color: var(--color-lime-voltage); }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: var(--card-padding);
  border-radius: var(--radius-cards);
  background: var(--color-fog);
}
.card--paper { background: var(--color-paper); box-shadow: var(--shadow-subtle); }
.card--mist { background: var(--color-linen-mist); }
.card--lg { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-largecards); }

.dark-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-largecards);
  background: var(--color-forest-ink);
  color: var(--color-paper);
  overflow: hidden;
}
.dark-card :is(.heading, .heading-sm, .subheading) { color: var(--color-lime-voltage); }
.dark-card .title { color: var(--color-paper); }
.dark-card .muted { color: rgba(255, 255, 255, 0.72); }

.inset-card {
  padding: 16px;
  border-radius: var(--radius-cards);
  background: var(--color-paper);
  color: var(--color-charcoal);
}
.inset-card .title,
.dark-card .inset-card .title {
  color: var(--color-forest-ink);
}

/* Service card */
.service-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-largecards);
  background: var(--color-fog);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: background-color var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}
.service-card:hover { background: var(--color-linen-mist); transform: translateY(-4px); }
.service-card__media {
  width: min(200px, 60%);
  aspect-ratio: 1;
  margin: -8px auto 0;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-card:hover .service-card__media img { transform: scale(1.07) rotate(-2deg); }
.service-card__body { display: grid; gap: 10px; align-content: start; }
.service-card__body p { color: var(--color-slate); font-size: var(--text-body-sm); }
.service-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(22, 51, 0, 0.12);
  font-weight: var(--fw-semibold);
  font-size: var(--text-body-sm);
  color: var(--color-forest-ink);
}
.arrow-circle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-forest-ink);
  color: var(--color-lime-voltage);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast) ease;
}
.arrow-circle svg { width: 18px; height: 18px; }
.service-card:hover .arrow-circle { transform: rotate(-45deg); background: var(--color-spruce); }
.service-card--h { grid-template-rows: none; }
@media (min-width: 640px) {
  .service-card--h { grid-template-columns: 160px 1fr; align-items: center; }
  .service-card--h .service-card__media { width: 100%; margin: 0; }
  .service-card--h .service-card__more { grid-column: 1 / -1; }
}

/* Feature / stat */
.stat { display: grid; gap: 10px; align-content: start; }
.stat__value {
  font-weight: var(--fw-black);
  font-size: clamp(56px, 7vw, 89px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--color-forest-ink);
}
.stat__label { font-weight: var(--fw-bold); color: var(--color-obsidian); font-size: var(--text-body); line-height: 1.3; }
.stat__text { color: var(--color-slate); font-size: var(--text-body-sm); }

.feature { display: grid; gap: 16px; align-content: start; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-linen-mist);
  color: var(--color-forest-ink);
}
.feature__icon svg { width: 26px; height: 26px; }
.section--dark .feature__icon { background: var(--color-spruce); color: var(--color-lime-voltage); }
.feature p { color: var(--color-slate); font-size: var(--text-body-sm); }
.section--dark .feature p { color: rgba(255, 255, 255, 0.72); }

/* Check list */
.check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 40px;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-lime-voltage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163300' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list--sm li { padding-left: 34px; font-size: var(--text-body-sm); }
.check-list--sm li::before { width: 22px; height: 22px; background-size: 12px; top: 1px; }

/* Numbered item cards */
.num-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px;
  border-radius: var(--radius-largecards);
  background: var(--color-fog);
  transition: background-color var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}
.num-card:hover { background: var(--color-linen-mist); transform: translateY(-3px); }
.num-card__num {
  font-weight: var(--fw-black);
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--color-forest-ink);
}
.num-card p { color: var(--color-slate); font-size: var(--text-body-sm); }
.num-card--paper { background: var(--color-paper); box-shadow: var(--shadow-subtle); }
.section--dark .num-card { background: var(--color-spruce); }
.section--dark .num-card__num { color: var(--color-lime-voltage); }
.section--dark .num-card p { color: rgba(255, 255, 255, 0.75); }

/* ---------- Segmented tabs ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-fog);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.tab:hover { background: rgba(255, 255, 255, 0.7); }
.tab[aria-selected="true"] { background: var(--color-lime-voltage); color: var(--color-forest-ink); font-weight: var(--fw-semibold); }
.section--mist .tabs { background: var(--color-paper); }
.section--mist .tab:hover { background: var(--color-linen-mist); }

.tab-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel:not([hidden]) { animation: panel-in var(--dur-slow) var(--ease-out); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; }
.field__label {
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-obsidian);
}
.field__label .req { color: var(--color-alarm-red); }
.field__hint { font-size: 13px; color: var(--color-slate); }
.field__error { font-size: 13px; color: var(--color-alarm-red); min-height: 0; }
.field__error:empty { display: none; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-pebble);
  border-radius: var(--radius-inputs);
  background: var(--color-paper);
  color: var(--color-obsidian);
  font-size: var(--text-body-sm);
  line-height: 1.4;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  appearance: none;
}
.input::placeholder { color: var(--color-pebble); }
.input:hover { border-color: var(--color-charcoal); }
.input:focus { outline: none; border-color: var(--color-forest-ink); box-shadow: inset 0 0 0 1px var(--color-forest-ink); }
.input[aria-invalid="true"] { border-color: var(--color-alarm-red); box-shadow: inset 0 0 0 1px var(--color-alarm-red); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  padding-right: 44px;
  background: var(--color-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163300' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}

.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--color-slate); }
.form__note a { color: inherit; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-cards);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-medium);
}
.form-status.is-visible { display: flex; }
.form-status.is-success { background: var(--color-linen-mist); color: var(--color-forest-ink); }
.form-status.is-error { background: #fbe6e7; color: #8f1a20; }
.form-status svg { width: 22px; height: 22px; flex: none; }

.dark-card .field__label, .section--dark .field__label { color: var(--color-paper); }
.dark-card .form__note, .section--dark .form__note { color: rgba(255, 255, 255, 0.65); }

/* Forms inside light cards (inset-card, card--paper, card) inside dark sections */
.inset-card .field__label,
.dark-card .inset-card .field__label,
.card--paper .field__label,
.section--dark .card--paper .field__label,
.card .field__label,
.section--dark .card .field__label {
  color: var(--color-charcoal) !important;
}

.inset-card .form__note,
.dark-card .inset-card .form__note,
.card--paper .form__note,
.section--dark .card--paper .form__note,
.card .form__note,
.section--dark .card .form__note {
  color: var(--color-slate) !important;
}

.inset-card .req,
.dark-card .inset-card .req,
.card--paper .req,
.section--dark .card--paper .req,
.card .req,
.section--dark .card .req {
  color: var(--color-alarm-red) !important;
}

/* ---------- Modal (native <dialog>) ---------- */
.modal {
  width: min(580px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-largecards);
  background: var(--color-paper);
  color: var(--color-charcoal);
  box-shadow: var(--shadow-xl);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(14, 15, 12, 0.6); }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in 420ms var(--ease-out); }
  .modal[open]::backdrop { animation: fade-in 300ms ease; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal__head {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 28px 28px 20px;
  background: var(--color-forest-ink);
  color: var(--color-paper);
}
.modal__head .subheading { color: var(--color-lime-voltage); padding-right: 48px; }
.modal__head p { color: rgba(255, 255, 255, 0.75); font-size: var(--text-body-sm); }
.modal__body { padding: 24px 28px 28px; }
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-spruce);
  color: var(--color-paper);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast) ease;
}
.modal__close:hover { transform: rotate(90deg); background: var(--color-lime-voltage); color: var(--color-forest-ink); }
.modal__close svg { width: 20px; height: 20px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  font-size: var(--text-caption);
  color: var(--color-slate);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--color-pebble); }
.breadcrumbs a { color: var(--color-slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-forest-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--color-forest-ink); font-weight: var(--fw-medium); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); overflow: hidden; }
.page-hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
.page-hero__content { display: grid; gap: 22px; align-content: start; }
.page-hero__content .breadcrumbs { margin-bottom: 8px; }
.page-hero__media {
  position: relative;
  width: min(440px, 82%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: var(--radius-imagemasks);
  background: var(--color-linen-mist);
}
.page-hero__media img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero__media img { animation: float 7s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}

/* ---------- Resource grid (Country Grid Item analogue) ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px 24px;
  list-style: none;
  padding: 0;
}
.resource {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-forest-ink);
}
.resource__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-imagemasks);
  background: var(--color-linen-mist);
  font-size: 13px;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  transition: background-color var(--dur-fast) ease, transform var(--dur-base) var(--ease-spring);
}
.resource:hover .resource__badge { background: var(--color-lime-voltage); transform: scale(1.08); }
.resource__name { display: block; font-weight: var(--fw-medium); font-size: var(--text-body-sm); line-height: 1.3; }
.resource:hover .resource__name { text-decoration: underline; }
.resource__host { display: block; font-size: 13px; color: var(--color-slate); }

/* ---------- Floating call badge ---------- */
.float-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 76px;
  padding: 12px 8px 10px;
  border-radius: var(--radius-2xl);
  background: var(--color-forest-ink);
  color: var(--color-lime-voltage);
  font-size: var(--text-micro);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring), visibility var(--dur-base);
}
.float-call.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-call:hover { transform: translateY(-3px); }
.float-call svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .float-call.is-visible svg { animation: ring 4s ease-in-out 1s infinite; }
}
@keyframes ring {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(-14deg); }
  91% { transform: rotate(12deg); }
  94% { transform: rotate(-8deg); }
  97% { transform: rotate(4deg); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(56px, 8vw, 88px) 28px;
  background: var(--color-forest-ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-body-sm);
}
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer__brand p { margin-top: 18px; max-width: 34ch; }
.footer__title {
  margin-bottom: 16px;
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-lime-voltage);
}
.footer__links { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color var(--dur-fast) ease; }
.site-footer a:hover { color: var(--color-lime-voltage); text-decoration: underline; }
.footer__contact a { display: block; font-size: 20px; font-weight: var(--fw-bold); color: var(--color-paper); letter-spacing: -0.01em; }
.footer__contact .btn { margin-top: 12px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.footer__wordmark {
  margin-top: 48px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  user-select: none;
}
.footer__wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
