/* ===== Design System — KyivLink ===== */
:root {
  --navy: #2B4277;
  --black: #1D1D1B;
  --gray-bg: #EFEFEF;
  --white: #FFFFFF;
  --text-muted: #6B6B6B;
  --border: #D8D8D8;

  --font: 'Montserrat', 'Inter', sans-serif;
  --container: 1320px;
  --gutter: 24px;
  --cols: 12;
  --section-y: 80px;

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== Grid ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

.section {
  padding: var(--section-y) 0;
}

.section--gray {
  background: var(--gray-bg);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== Typography ===== */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.heading-xl {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-lg {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.heading-md {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.body-lg {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.body-sm {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Blue box text — signature element from reference */
.text-blocks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.text-block {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  padding: 8px 20px;
  letter-spacing: -0.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: #1e3159;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
}

.header--solid {
  padding: 16px 0;
  background: rgba(29, 29, 27, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 6px;
  padding: 6px 8px;
  gap: 4px;
}

.nav-pill__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  padding: 10px 16px;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-pill__link:hover {
  background: var(--gray-bg);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 500;
  padding: 16px 22px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.header__cta:hover {
  background: var(--gray-bg);
}

.header__cta-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform var(--transition);
}

.header__cta:hover .header__cta-arrow {
  transform: translateX(3px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 14px 12px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29, 29, 27, 0.35) 0%,
    rgba(29, 29, 27, 0.15) 40%,
    rgba(29, 29, 27, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}

.hero__title {
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--white);
}

.hero__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  max-width: 340px;
  margin-left: auto;
  padding-bottom: 8px;
}

/* ===== Intro ===== */
.intro {
  background: var(--white);
}

.intro__layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 48px;
  align-items: start;
}

.intro__mini {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 260px;
  padding-top: 6px;
}

.intro__accent {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 32px;
}

.intro__text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--black);
  max-width: 640px;
}

/* ===== Gallery duo ===== */
.gallery-duo {
  background: var(--white);
  padding: var(--section-y) 0;
}

.gallery-duo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-duo__item {
  height: 520px;
  overflow: hidden;
}

.gallery-duo__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-duo__item:hover img {
  transform: scale(1.03);
}

/* ===== Split block ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.split__media {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.split__content {
  background: var(--gray-bg);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split__content--white {
  background: var(--white);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}

.phone-mockup__frame {
  background: var(--black);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.phone-mockup__screen {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/19;
}

.phone-mockup__screen img {
  object-fit: cover;
}

.phone-mockup__ui {
  padding: 20px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.phone-mockup__header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.phone-mockup__speed {
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.phone-mockup__label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.phone-mockup__bar {
  height: 4px;
  background: var(--gray-bg);
  margin-bottom: 8px;
}

.phone-mockup__bar-fill {
  height: 100%;
  width: 85%;
  background: var(--navy);
}

.phone-mockup__stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.phone-mockup__stat-item {
  background: var(--gray-bg);
  padding: 12px;
}

.phone-mockup__stat-val {
  font-size: 18px;
  font-weight: 700;
}

.phone-mockup__stat-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Full bleed image ===== */
.full-image {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.full-image--tall {
  height: 640px;
}

/* ===== Image pair ===== */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.image-pair__item {
  height: 480px;
  overflow: hidden;
}

/* ===== Advantages ===== */
.advantages {
  background: var(--white);
  padding: var(--section-y) 0;
}

.advantages__wrap {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 40px;
  align-items: start;
}

.advantages__side {
  font-size: 13px;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-top: 4px;
  letter-spacing: 0.02em;
}

.advantages__heading {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
  padding-bottom: 40px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.advantages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
}

.advantages__cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.advantages__cell--featured {
  grid-row: 1 / 3;
  grid-column: 1;
  padding: 40px 32px;
}

.advantages__icon {
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 0;
}

.advantages__cell--featured .advantages__icon {
  margin-bottom: 28px;
}

.advantages__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.3;
}

.advantages__cell--featured .advantages__title {
  font-size: 15px;
  margin-bottom: 16px;
}

.advantages__text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.advantages__cell--featured .advantages__text {
  font-size: 14px;
  max-width: 280px;
}

/* ===== Tariffs hero ===== */
.tariffs-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 0;
}

.tariffs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tariffs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tariffs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 20, 30, 0.25) 0%,
    rgba(15, 20, 30, 0.45) 40%,
    rgba(15, 20, 30, 0.82) 100%
  );
}

.tariffs-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 0;
}

.tariffs-hero__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.tariffs-hero__content {
  margin-top: auto;
  padding-top: 80px;
}

.tariffs-hero__intro {
  max-width: 520px;
  margin-bottom: 40px;
}

.tariffs-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.tariffs-hero__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.tariffs-hero__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tariff-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition);
}

.tariff-box:hover {
  transform: translateY(-4px);
}

.tariff-box--featured {
  background: var(--white);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.tariff-box__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 4px 10px;
}

.tariff-box__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tariff-box__speed {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  margin-bottom: 4px;
}

.tariff-box__speed span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.tariff-box__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tariff-box__price span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}

.tariff-box__list {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.tariff-box__list li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 14px;
  position: relative;
}

.tariff-box__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  background: var(--navy);
  border-radius: 50%;
}

.tariff-box__btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}

.tariff-box__btn:hover {
  background: #1e3159;
}

.tariff-box--featured .tariff-box__btn {
  background: var(--black);
}

.tariff-box--featured .tariff-box__btn:hover {
  background: var(--navy);
}

/* ===== Plan / Tariff (floor plan style) — legacy removed ===== */

/* ===== FAQ ===== */
.faq {
  background: var(--white);
  padding: var(--section-y) 0;
}

.faq__wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.faq__label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.faq__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--black);
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--navy);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 200px;
}

.faq__answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  padding-bottom: 24px;
  max-width: 560px;
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 0 32px;
}

.footer__logo {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 48px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}

.footer__cta-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 480px;
}

.footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 6px;
  transition: var(--transition);
}

.footer__btn:hover {
  background: #1e3159;
}

.footer__btn span {
  font-size: 16px;
  line-height: 1;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer__menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--white);
  transition: opacity var(--transition);
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__contact-link {
  display: block;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 12px;
  transition: opacity var(--transition);
}

.footer__contact-link:hover {
  opacity: 0.7;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__legal-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer__legal-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .nav-pill__link {
    padding: 10px 12px;
    font-size: 12px;
  }

  .header__cta {
    padding: 14px 16px;
    font-size: 12px;
  }

  .gallery-duo__grid {
    grid-template-columns: 1fr;
  }

  .gallery-duo__item {
    height: 360px;
  }

  .split,
  .image-pair {
    grid-template-columns: 1fr;
  }

  .tariffs-hero__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__cta {
    grid-column: 1 / -1;
  }

  .intro__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .advantages__wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .advantages__side {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .advantages__grid {
    grid-template-columns: 1fr 1fr;
  }

  .advantages__cell--featured {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header__right {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(29, 29, 27, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 99;
    padding: 24px;
  }

  .header__right.open {
    display: flex;
  }

  .nav-pill {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    padding: 8px;
    border-radius: 8px;
  }

  .nav-pill__link {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .header__cta {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    padding: 16px 24px;
    font-size: 15px;
    border-radius: 8px;
  }

  .burger {
    display: flex;
    z-index: 101;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 56px;
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__desc {
    text-align: left;
    margin-left: 0;
    max-width: none;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .advantages__grid {
    grid-template-columns: 1fr;
  }

  .split__content {
    padding: 48px 24px;
  }

  .tariffs-hero__grid {
    grid-template-columns: 1fr;
  }

  .tariffs-hero {
    min-height: auto;
    padding: 56px 0;
  }

  .tariffs-hero__inner {
    min-height: auto;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__legal-links {
    flex-direction: column;
    gap: 10px;
  }

  .full-image,
  .full-image--tall {
    height: 320px;
  }

  .image-pair__item {
    height: 280px;
  }
}

/* ===== Inner page header ===== */
.page-inner .header {
  position: sticky;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.page-inner .logo {
  color: var(--black);
}

.page-inner .nav-pill {
  background: var(--gray-bg);
}

.nav-pill__link--active {
  background: var(--white);
  font-weight: 600;
}

.header__cta--dark {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 16px 22px;
  border-radius: 6px;
}

.header__cta--dark:hover {
  background: #1e3159;
}

/* ===== Contract page ===== */
.contract__hero {
  background: var(--gray-bg);
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border);
}

.contract__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contract__breadcrumb a {
  color: var(--navy);
  transition: opacity var(--transition);
}

.contract__breadcrumb a:hover {
  opacity: 0.7;
}

.contract__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.contract__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contract__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.contract__badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
}

.contract__executor {
  font-size: 14px;
  color: var(--text-muted);
}

.contract__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 64px 0 80px;
  align-items: start;
}

.contract__toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 24px;
}

.contract__toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 20px;
}

.contract__toc-list {
  list-style: none;
  counter-reset: toc;
}

.contract__toc-list li {
  counter-increment: toc;
  margin-bottom: 4px;
}

.contract__toc-list a {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.contract__toc-list li:last-child a {
  border-bottom: none;
}

.contract__toc-list a:hover {
  color: var(--navy);
}

.contract__section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.contract__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.contract__section h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 24px;
  line-height: 1.25;
}

.contract__section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 16px;
}

.contract__section p strong {
  color: var(--navy);
  font-weight: 600;
}

.contract__section ul {
  margin: 12px 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.contract__section ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid rgba(216, 216, 216, 0.5);
}

.contract__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
}

.contract__section a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contract__requisites {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.contract__req-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}

.contract__req-row:last-child {
  border-bottom: none;
}

.contract__req-row dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 16px 20px;
  background: var(--gray-bg);
}

.contract__req-row dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  padding: 16px 20px;
  margin: 0;
}

.contract__req-row dd a {
  color: var(--navy);
}

.contract__notice {
  background: var(--gray-bg);
  border-left: 4px solid var(--navy);
  padding: 24px 28px;
  margin-top: 48px;
}

.contract__notice p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contract__notice p:last-child {
  margin-bottom: 0;
  color: var(--black);
}

.contract__cta {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.contract__cta-inner h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contract__cta-inner p {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 28px;
}

.contract__cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contract__cta .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.contract__cta .btn-outline-dark:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

@media (max-width: 1024px) {
  .contract__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contract__toc {
    position: static;
  }

  .contract__req-row {
    grid-template-columns: 1fr;
  }

  .contract__req-row dt {
    padding-bottom: 8px;
  }
}
