header {
  display: none;
}
/* ====== БАЗА. Общие переменные и сброс ====== */
:root {
  /* Цветовая палитра */
  --ink: #1f1a17;
  --muted: #7c7c7c;
  --bg: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 42px rgba(15, 33, 54, 0.16);

  /* Акцентные цвета */
  --blue: #93abd8;
  --blue-soft: #a9bce6;
  --blue-title: #a9c0f2;
  --accent: #274b9f;
  --accent-2: #6f8bd8;
  --accent-soft: #e5ecfb;
  --accent-cream: #f6ead8;

  /* Светлые подложки */
  --cream: #fdf8ee;
  --cream-100: #fff7de;
  --cream-200: #f5ead5;

  /* Тарифные карточки */
  --smart-accent: #2e49b8;
  --smart-ink: #253050;
  --prem-accent: #b35a00;
  --prem-ink: #5b3514;
  --ultra-accent: #a53434;
  --ultra-ink: #5b2323;
  --blue-bg: #eaf0ff;
  --blue-edge: #c7d2fe;
  --cream100-bg: #fff7ec;
  --cream100-edge: #ffe8c7;
  --cream200-bg: #feeff2;
  --cream200-edge: #f9d2d9;

  /* Типографика и скругления */
  --font-base: "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --btn-radius: 16px;
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --maxw: 1440px;
  --adv-brown: #583722;
  --brown: #4e392f;

  /* Блок "О нас" */
  --about-radius: 28px;
  --about-shadow: 0 30px 64px rgba(15, 33, 54, 0.12);

  --aud-bg: #fbf6ec;       /* общий тёплый фон секции */
  --aud-blue: #93ABD8;     /* голубая карточка */
  --aud-cream-100: #fff7de;/* светлая кремовая (почти «белая») */
  --aud-cream-200: #f5ead5;/* насыщенная кремовая/беж */
  --aud-brown: #4E392F;
  --aud-bright-grey: #E5DFCF; /* ярко-серая карточка */
}


html,body{height:100%}
*{box-sizing:border-box}
body{
  margin:0;
  color:var(--ink);
  background:#fff;
  font-family:var(--font-base);
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

.nav-inner{
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  grid-template-areas: "logo menu tel theme button";
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(16px, 2.8vw, 26px);
}

.logo{
  grid-area: logo;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu{
  grid-area: menu;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu a{
  position: relative;
  font-weight: 500;
  padding-bottom: 4px;
}

.menu a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.menu a:focus-visible::after,
.menu a:hover::after{
  opacity: 1;
  transform: scaleX(1);
}

.tel{
  grid-area: tel;
  justify-self: end;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.theme-switch{
  grid-area: theme;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.switch{
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 24px;
}

.switch input{
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  transition: background .2s ease;
}

.switch span::before{
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transition: transform .2s ease;
}

.switch input:checked + span{
  background: var(--accent-2);
}

.switch input:checked + span::before{
  transform: translateX(18px);
}

header .btn{
  grid-area: button;
  justify-self: end;
  height: 60px;
  padding: 0 clamp(24px, 4vw, 42px);
  font-size: 15px;
}

@media (max-width: 1024px){
  .nav-inner{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo button"
      "menu menu"
      "tel theme";
  }

  .menu{
    justify-content: flex-start;
  }

  header .btn{
    justify-self: end;
  }

  .tel{
    justify-self: flex-start;
  }
}

@media (max-width: 640px){
  .nav-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "button"
      "menu"
      "tel"
      "theme";
    justify-items: center;
    text-align: center;
    gap: 18px;
  }

  .menu{
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  header .btn{
    width: 100%;
    max-width: 320px;
  }

  .tel,
  .theme-switch{
    justify-self: center;
  }

  .tel{
    font-size: 14px;
  }
}

/* ====== HERO (80% высоты, нижние углы скруглены) ====== */
/* Обёртка, которая обрезает углы и держит 80% высоты окна */
.hero{
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 50/50 */
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.hero__left{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(32px, 9vh, 160px);
  padding: clamp(24px, 6vw, 72px) clamp(20px, 5vw, 80px);
  max-width: var(--maxw);
  position: relative;
}

.hero__heading{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2vh, 36px);
  max-width: 520px;
}

.hero__kicker{
  color: var(--ink);
  font-family: var(--font-base);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: 0.22em;
  margin: 0 0 clamp(24px, 4vh, 56px);
  position: relative;
  z-index: 2;
}
.hero__lead{
  color: var(--ink);
  font-family: var(--font-base);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
}

.hero__right{ 
  position: relative;
  overflow: hidden;          /* никаких закруглений снизу */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.hero__right img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(105%);
}

/* типографика */
.hero__meta{
  position: absolute;
  top: clamp(24px, 7vh, 72px);
  left: clamp(20px, 5vw, 80px);
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--blue-title);
  letter-spacing: .18em;
  font-weight: 300;
  word-spacing: 10px;
}



.hero__title {
  font-family: 'Impact', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Синий залив + контур для чёткости */
  color: var(--blue);
  -webkit-text-stroke: 1px var(--blue);

  white-space: nowrap;

  line-height: .9;
  font-size: clamp(18px, 6vw, 80px);

  /* Искажения */
  transform: scaleX(0.92) scaleY(1.35);
  transform-origin: left bottom;

  margin: 0;
}




/* Факты — две колонки, без плашек */
.hero-facts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px) clamp(32px, 4vw, 64px);
  align-items: start;
  margin: clamp(16px, 3vh, 40px) 0 0;
  max-width: 660px; /* чтобы красиво встало под заголовком */
  margin-left: 0;
}
.hero-fact{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
}
.hero-fact__title{
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  font-weight: 500;
  color: var(--blue-title);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  transform: scaleX(1.2); /* чуть растянули по горизонтали */
  margin-left: 0;
  white-space: nowrap;
}
.hero-fact__title span{
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--blue-title);
  opacity: .9;
}
.hero-fact__desc{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

/* Кнопки — прямоугольные с лёгким скруглением */


.hero__actions{
  display:flex;
  gap:60px;
}

.btn{
  font-family: var(--font-base);  /* как lead/kicker */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 82px;                   /* больше */
  padding: 0 84px;                /* шире */
  border-radius: 16px;
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease;
  text-align: center;          /* центрируем текст */
}

.btn--primary,
.btn-primary{
  background: var(--blue);        /* #93ABD8 */
  color: var(--ink);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 16px 36px rgba(147,171,216,.35);
  text-align: center;       /* центрируем текст */
  text-align: center;       /* центрируем текст */
  align-items: center;      /* центрируем по вертикали */
  align-content: center;    /* центрируем по вертикали */
}

.btn--secondary,
.btn-secondary{
  background: var(--cream-100);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  text-align: center;
  align-items: center;
  align-content: center;
}

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn:hover{ transform: translateY(-1px); }
/* адаптив */
@media (max-width: 1024px){
  .hero{ grid-template-columns: 1fr; }
  .hero__right{ order: -1; min-height: 52vh; }
  .hero__left{ padding-top: 24px; padding-bottom: 36px; }
  .hero-facts{ grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .hero__meta{ top: 4%; left: 6%; }
}

@media (max-width: 900px){
  .hero{
    grid-auto-rows: auto;
    padding-bottom: 32px;
    row-gap: 24px;
  }

  .hero__right{
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    width: min(92vw, 420px);
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
  }

  .hero__right img{
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    border-radius: inherit;
  }

  .hero__left{
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    padding: 32px clamp(18px, 6vw, 40px) 48px;
  }

  .hero__heading{
    align-items: flex-start;
  }

  .hero__kicker{
    margin-bottom: 12px;
  }

  .hero__meta{
    position: static;
    order: -1;
    font-size: 12px;
    letter-spacing: 0.14em;
    margin-bottom: -4px;
    text-align: left;
    word-spacing: 6px;
  }

  .hero__title{
    white-space: normal;
    transform: none;
    font-size: clamp(44px, 14vw, 82px);
    line-height: 0.95;
  }

  .hero__actions{
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }

  .hero__actions .btn{
    flex: 1 1 calc(50% - 7px);
    max-width: none;
    min-width: 0;
  }

  .hero-facts{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 8px;
  }

  .hero-fact{
    align-items: flex-start;
    text-align: left;
    min-width: min(45%, 180px);
    flex: 1 1 calc(50% - 12px);
  }

  .hero-fact__desc{
    max-width: 220px;
    text-align: left;
  }
}

@media (max-width: 640px){
  .hero__title{
    font-size: clamp(40px, 18vw, 72px);
  }

  .hero__lead{
    font-size: 16px;
  }

  .btn{
    height: 58px;
    padding: 0 28px;
  }

  .hero{
    padding-bottom: 40px;
  }

  .hero__left{
    width: 100%;
    padding-inline: clamp(18px, 6vw, 32px);
  }

  .hero__right{
    aspect-ratio: 4 / 5;
    width: min(360px, 88vw);
  }

  .hero-fact{
    min-width: 140px;
  }
}

@media (max-width: 560px){
  .hero__right{
    padding-top: 16px;
  }

  .hero-facts{
    gap: 12px 24px;
  }

  .hero-fact{
    min-width: 120px;
  }
}

.section-advantages{
  padding: clamp(56px, 8vw, 100px) 0;
}

.advantages-title{
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  color: var(--adv-brown);
  line-height: 1.25;
}

.advantages-title .accent{
  font-family: 'Impact', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em; /* было Bebas Neue */
  letter-spacing: -0.02em;           /* было .05em — делаем плотнее */
  font-weight: 100;
  transform: scaleY(1.9);           /* слегка "вытянуть", как в рефе */
  transform-origin: left bottom;
  color: var(--blue);
  font-size: clamp(32px, 3vw, 44px);                 /* #93ABD8 */
}
.section-audience{
  background: var(--aud-bg); /* было var(--cream-100) */
  padding: clamp(56px, 8vw, 100px) 0;
}

/* двухколоночный лэйаут */
.audience{
  display: grid;
  grid-template-columns: minmax(520px, 55%) 45%;
  grid-template-areas:
    "left grid"
    "actions grid";
  align-items: start;
  gap: clamp(16px, 3vw, 32px);
}

/* левая колонка */
.audience-left{
  grid-area: left;
  padding-right: clamp(6px, 2vw, 16px);
  color: var(--adv-brown);
}
.audience-title{
  margin: 0 0 18px;
  font-family: var(--font-base); 
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 40px;
}
.audience-lead{
  max-width: 48ch;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  opacity: .9;
  font-weight: 300;
}
/* делаем «как в макете»: крупные, с тенью и чётким заполнением */
.audience-actions{
  grid-area: actions;
  margin-top: clamp(48px, 8vw, 120px);
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  justify-content: flex-start;
  align-self: flex-start;
}

.btn-aud{
  appearance:none;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 82px;                 /* крупная высота */
  padding: 0 84px;              /* широкие поля */
  border-radius: 16px;
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-aud--primary{
  background: var(--aud-blue);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(147,171,216,.35);
  border: 1px solid rgba(0,0,0,.06);
}

.btn-aud--ghost{
  background: var(--aud-bright-grey);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.08);
}

.btn-aud:hover{ transform: translateY(-1px); filter: brightness(1.02); }



/* правая колонка — сетка карточек */
.audience-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  grid-area: grid;
}

/* карточка */
/* карточка */
.aud-card{
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 28px;
  color: var(--brown);
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.25;

  --bars: #583722;  /* ← базовый цвет столбиков для светлых карточек */
}
.aud-card.is-brown{ 
  background: var(--aud-brown); 
  color: var(--aud-cream-100);
  box-shadow: 0 12px 24px rgba(15,33,54,.08);
  --bars: #FFF3CC;   /* ← светлые столбики на тёмной */
}

.aud-bars{
  position:absolute; right:14px; bottom:12px;
  display:inline-block; pointer-events:none;
}

/* 3 палочки */
.bars-3{
  width:24px; height:16px;
  background:
    linear-gradient(var(--bars), var(--bars)) 0 100% / 5px 6px no-repeat,
    linear-gradient(var(--bars), var(--bars)) 9px 100% / 5px 10px no-repeat,
    linear-gradient(var(--bars), var(--bars)) 18px 100% / 5px 16px no-repeat;
}

/* 2 палочки */
.bars-2{
  width:14px; height:12px;
  background:
    linear-gradient(var(--bars), var(--bars)) 0 100% / 5px 8px no-repeat,
    linear-gradient(var(--bars), var(--bars)) 9px 100% / 5px 12px no-repeat;
}
.bars-1{
  width:8px; height:8px;
  background:
    linear-gradient(var(--bars), var(--bars)) 0 100% / 5px 6px no-repeat;
}

/* модификаторы фона */
.aud-card.is-blue  { background: var(--aud-blue);      color: #2A211B; box-shadow: 0 12px 24px rgba(15,33,54,.08); }
.aud-card.is-bg    { background: var(--aud-cream-100); color: #2A211B; box-shadow: 0 12px 24px rgba(15,33,54,.08);} /* «почти белая» */
.aud-card.is-cream { background: var(--aud-bg); color: #2A211B; } /* беж */

/* небольшой индикатор (бар-иконка) справа снизу */


/* размеры как в макете: две маленькие сверху справа, одна высокая справа снизу */
.aud-card.tall{ min-height: 190px; }
.aud-card.short{ min-height: 120px; }
.aud-card.big{ min-height: 190px; }

/* адаптив */
@media (max-width: 980px){
  .audience{
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "grid"
      "actions";
  }
  .audience-left{
    text-align: center;
    padding-right: 0;
  }
  .audience-actions{
    margin-top: 40px;
    justify-content: center;
  }
}

@media (max-width: 720px){
  .audience{
    gap: 32px;
  }
  .audience-left{
    text-align: left;
  }
  .audience-lead{
    text-align: left;
  }
  .audience-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .aud-card{
    text-align: left;
    padding: 20px 24px 28px;
    font-size: 18px;
    line-height: 1.35;
  }
  .aud-card.big,
  .aud-card.short,
  .aud-card.tall{
    min-height: auto;
  }
  .audience-actions{
    width: 100%;
    justify-content: center;
    gap: 16px;
  }
  .audience-actions .btn-aud{
    flex: 1 1 160px;
    min-height: 60px;
    max-width: 240px;
    padding: 0 28px;
  }
}
/* Сетка 2 колонки */
.advantages-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 36px;
}

@media (max-width: 960px){
  .advantages-grid{ grid-template-columns: 1fr; }
}

/* Карточка-пилюля */
.adv-card{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 2.4vw, 28px);
  border-radius: 18px;
  background: var(--blue-soft);        /* без обводки, мягкий голубой */
  box-shadow: 0 10px 20px rgba(15,33,54,.08);
  color: var(--adv-brown);
}

/* Номер слева — большой, приглушённый */
.adv-num{
  min-width: 56px;
  text-align: left;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 301;
  letter-spacing: .06em;
  color: rgba(0,0,0,.16);        /* мягкий номер на голубом */
  user-select: none;
}


/* Текст карточки */
.adv-text{
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  font-weight: 700;
}

/* Поддержка акцентов в тексте (если хотите выделять слова) */
.adv-text em{ font-style: normal; text-decoration: underline; text-underline-offset: 3px; }
.adv-text strong{ font-weight: 700; }
/* НИЖНИЙ БЛОК: кнопки */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.35);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}



#programs.section{
  padding-block: 72px 96px;
}

.tariffs-heading{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin: 0 auto clamp(32px, 6vw, 60px);
  text-transform: uppercase;
  color: var(--adv-brown);
}

.tariffs-heading__kicker{
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.26em;
  font-weight: 500;
}

.tariffs-heading__title{
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 92px);
  letter-spacing: 0.08em;
  transform: scaleY(1.6);
  transform-origin: left bottom;
}

@media (max-width: 720px){
  .tariffs-heading{
    align-items: center;
    text-align: center;
  }

  .tariffs-heading__title{
    transform-origin: center bottom;
  }
}

.tariffs{
  width: 100%;
  margin: 0;
  padding-inline: clamp(24px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

.tariff-card{
  width: 100%;
  min-height: 560px;
  padding: 64px 48px 48px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.tariff-card__title{
  margin: 0 0 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 12vw, 118px);
  line-height: 0.85;
  letter-spacing: 0.04em;
}

.tariff-card__subtitle{
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.tariff-card__list{
  margin: 0 0 8px;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.4;
  list-style: disc;
  text-transform: none;
}

.tariff-card__list li{
  margin-bottom: 12px;
}

.tariff-card__price{
  margin-top: auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(58px, 8vw, 86px);
  letter-spacing: 0.02em;
  align-self: flex-end;
  text-align: right;
}

.tariff-card__note{
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.tariff-card__actions{
  margin-top: 12px;
}

.tariff-card__btn{
  width: 100%;
  min-height: 66px;
  border-radius: 18px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tariff-card__btn:hover{
  transform: translateY(-2px);
}

.tariff-card__btn:focus-visible{
  outline: 2px solid rgba(0,0,0,0.4);
  outline-offset: 3px;
}

@media (max-width: 720px){
  .tariffs{
    padding-inline: clamp(16px, 6vw, 32px);
  }

  .tariff-card{
    padding: 40px 28px;
    min-height: auto;
  }

  .tariff-card__title{
    font-size: clamp(48px, 20vw, 96px);
  }

  .tariff-card__subtitle{
    font-size: 16px;
  }

  .tariff-card__list{
    font-size: 16px;
    padding-left: 18px;
  }

  .tariff-card__price{
    align-self: flex-start;
    text-align: left;
  }
}

.tariff-card--premium{
  background: #9eafd5;
  color: #f6f3ef;
}

.tariff-card--premium .tariff-card__title{
  color: #583722;
}

.tariff-card--premium .tariff-card__price{
  color: #ffffff;
}

.tariff-card--premium .tariff-card__btn{
  background: #583722;
  color: #ede2c8;
  box-shadow: 0 18px 42px rgba(88, 55, 34, 0.35);
}

.tariff-card--smart{
  background: #ede2c8;
  color: #583722;
}

.tariff-card--smart .tariff-card__title{
  color: #583722;
}

.tariff-card--smart .tariff-card__subtitle,
.tariff-card--smart .tariff-card__price,
.tariff-card--smart .tariff-card__note{
  color: #a9c0f2;
}

.tariff-card--smart .tariff-card__note{
  text-transform: uppercase;
}

.tariff-card--smart .tariff-card__btn{
  background: #a9c0f2;
  color: #253050;
  box-shadow: 0 18px 42px rgba(169, 192, 242, 0.4);
}

.tariff-card--ultra{
  background: #583722;
  color: #ede2c8;
}

.tariff-card--ultra .tariff-card__title,
.tariff-card--ultra .tariff-card__price{
  color: #9ec8ff;
}

.tariff-card--ultra .tariff-card__subtitle{
  color: #ede2c8;
}

.tariff-card--ultra .tariff-card__btn{
  background: #ede2c8;
  color: #583722;
  box-shadow: 0 18px 42px rgba(237, 226, 200, 0.35);
}

.portfolio-wrap {
  background: #f7f3ee;
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 44px 40px 48px;
  display: grid;
  gap: 28px;
  overflow: hidden;
  position: relative;
}
.portfolio-title {
  margin: 0;
  font-family: 'Impact', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(42px, 5vw, 64px);
  text-transform: uppercase;
  text-align: center;
  color: #4e392f;
}

body.modal-open{
  overflow: hidden;
}

.modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  background: rgba(15, 33, 54, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1000;
}

.modal.is-open{
  visibility: visible;
  pointer-events: auto;
}

.modal.visible{
  opacity: 1;
}

.modal__overlay{
  position: absolute;
  inset: 0;
}

.modal__window{
  position: relative;
  width: min(520px, 100%);
  border-radius: 28px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(14px);
  transition: transform .25s ease;
}

.modal__window--scrollable{
  max-height: min(92vh, 720px);
}

.modal__window--scrollable .request-form{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.modal__window--scrollable .request-form::-webkit-scrollbar{
  width: 6px;
}

.modal__window--scrollable .request-form::-webkit-scrollbar-thumb{
  background: rgba(15, 33, 54, 0.25);
  border-radius: 3px;
}

.modal__window--scrollable .request-form::-webkit-scrollbar-track{
  background: transparent;
}

.modal.visible .modal__window{
  transform: translateY(0);
}

.modal__close{
  position: absolute;
  top: clamp(14px, 2vw, 22px);
  right: clamp(14px, 2vw, 22px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  color: inherit;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.modal__close:hover{
  transform: rotate(90deg);
}

.modal__heading{
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal__lead{
  margin: 0;
  font-size: 15px;
  opacity: .75;
  line-height: 1.5;
}

.modal__program{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal__program strong{
  font-weight: 700;
}

.request-form{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.request-form__field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-form__input,
.request-form__checkbox input{
  font-family: inherit;
}

.request-form__input{
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  font-size: 15px;
}

.request-form__textarea{
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.request-form__checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

.request-form__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.request-form__submit{
  flex: 1 1 220px;
}

.request-form__cancel{
  flex: 1 1 140px;
}

@media (max-width: 560px){
  .modal{
    align-items: flex-start;
    padding: 18px 12px 32px;
  }

  .modal__window{
    border-radius: 22px;
    width: 100%;
  }

  .request-form__actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-form__submit,
  .request-form__cancel{
    flex: initial;
    width: 100%;
  }
}

@media (max-width: 640px){
  .tariff-card{
    padding: 48px 32px 40px;
  }

  .modal__window{
    border-radius: 22px;
    padding: 28px 24px 32px;
  }

  .modal__close{
    width: 36px;
    height: 36px;
  }
}
.portfolio-highlight {
  position: relative;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, rgba(30,26,23,0.78), rgba(30,26,23,0.42));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.portfolio-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.4;
}
.portfolio-highlight__frame {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255,255,255,0.1), rgba(12,22,36,0.8));
  box-shadow: 0 28px 56px rgba(15,33,54,0.28);
  display: grid;
  place-items: center;
  aspect-ratio: var(--highlight-ratio, 4 / 3);
  max-height: min(68vh, 520px);
  transition: aspect-ratio 0.4s ease;
}
.portfolio-highlight__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(12,22,36,0.86);
  border-radius: inherit;
  transition: opacity 0.35s ease;
}
.portfolio-highlight.is-loading .portfolio-highlight__frame img {
  opacity: 0.4;
  filter: saturate(0.6);
}
.portfolio-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.portfolio-item {
  position: relative;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 48px rgba(15,33,54,0.14);
  scroll-snap-align: start;
  cursor: pointer;
  background: none;
  padding: 0;
  display: block;
  color: inherit;
  font: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,26,23,0.08), rgba(30,26,23,0.32));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio-item:hover::after,
.portfolio-item.is-active::after {
  opacity: 1;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-item.is-active {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(15,33,54,0.22);
}
.portfolio-item:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}
.portfolio-scroller::-webkit-scrollbar {
  height: 10px;
}
.portfolio-scroller::-webkit-scrollbar-track {
  background: rgba(30,26,23,0.08);
  border-radius: 999px;
}
.portfolio-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

@media (max-width: 840px) {
  .portfolio-wrap {
    padding: 32px 24px 36px;
    border-radius: 28px;
  }
  .portfolio-highlight {
    padding: 28px;
  }
}
@media (max-width: 640px) {
  .portfolio-scroller {
    grid-auto-columns: 68%;
    gap: 14px;
  }
  .portfolio-item {
    border-radius: 20px;
  }
  .portfolio-highlight {
    padding: 24px;
  }
}

/* ====== ОТЗЫВЫ (широкая голубая рамка + одна строка) ====== */
#reviews {
  background:#93ABD8;           /* голубой фон */
  padding:56px 0 40px;
}
#reviews .section-title {
  text-align:center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight:600;
  margin-bottom:20px;
  color:#fff;                   /* белый текст */
}
#reviewsRow{
  --rowH:320px;
  display:flex; flex-wrap:nowrap; align-items:flex-start; gap:0;
  overflow-x:auto; overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  padding:0 12px;
}
.review-card{
  flex:0 0 auto;
  height:var(--rowH);
  margin:6px;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 16px 32px rgba(15,33,54,.10);
  background:#fff;
  scroll-snap-align:start;
}
.review-card img{
  width:100%; height:100%; object-fit:contain; background:#fff;
}
@media (max-width:1280px){ #reviewsRow{ --rowH: 280px; } }
@media (max-width:768px){  #reviewsRow{ --rowH: 220px; } }
/* Контейнер ограничивает ширину и добавляет адаптивные отступы */
.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section-about{
  background: var(--blue);
  padding: clamp(32px, 6vw, 80px) 0;
  width: 100%;
}

.section-about .container{
  display: flex;
  justify-content: center;
  width: 100%;
}

.section-about .about-card{
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(16,24,40,.08);
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(32px, 5.5vw, 72px) clamp(24px, 5.5vw, 68px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(24px, 3.2vw, 48px);
}


/* Левая колонка — ширина текста */
.section-about .about-left{ max-width: none; }

/* Кикер (серый мелкий текст сверху) */
.about-kicker{
  margin: 0 0 18px;
  font-size: clamp(12px, 1.6vw, 20px);
  color: rgba(0,0,0,.38);
  letter-spacing: .04em;
}

/* Заголовок как в макете: высокий, плотный, коричневый */
.about-title{
  margin: 0 0 28px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(10px, 6vw, 64px);
  line-height: 1;
  color: var(--avg-brown, #5B3A2F);
  text-wrap: balance;
}

/* Список — без кружков, с длинным тире */
.about-list{
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 680px;
  color: var(--adv-brown);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.5;
  font-weight: 400;
}
.about-list li{
  margin: 12px 0 16px;
  padding-left: 20px;
  position: relative;
}
.about-list li::before{
  content: "–";
  position: absolute;
  left: 0; top: 0;
  color: var(--about-text);
}

/* Правая колонка (фото/стрелки) — оставляем как есть, но подправим рамки */
.section-about .about-media{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #F3F3F3;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: stretch;
  max-height: clamp(360px, 60vh, 600px);
  justify-self: center;
  width: 100%;
}
.section-about .about-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  grid-area: 1 / 1;
}

/* Адаптив: на узких экранах стекаем в одну колонку */
@media (max-width: 980px){
  .section-about .about-card{
    max-width: min(100%, 980px);
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .section-about .about-media{
    aspect-ratio: 4 / 5;
    max-height: clamp(320px, 58vh, 520px);
    width: min(100%, 420px);
    order: -1;
  }
  .about-title{
    font-size: clamp(40px, 11vw, 60px);
  }
}

@media (max-width: 640px){
  .section-about .about-card{
    gap: 20px;
    padding: clamp(24px, 8vw, 40px) clamp(18px, 7vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .section-about .about-media{
    aspect-ratio: 3 / 4;
    width: min(88vw, 340px);
    max-height: clamp(240px, 62vh, 380px);
    margin: 0 auto;
  }

  .about-kicker{
    margin-bottom: 12px;
    font-size: 14px;
  }

  .about-title{
    letter-spacing: 0.06em;
    line-height: 1.08;
    font-size: clamp(34px, 12vw, 50px);
    margin-bottom: 18px;
  }

  .about-nav{
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .about-list{
    font-size: 15px;
    line-height: 1.6;
  }

  .about-list li{
    margin: 10px 0 14px;
  }
}

@media (max-width: 480px){
  .section-about .about-media{
    width: min(92vw, 300px);
    max-height: clamp(210px, 64vh, 320px);
  }

  .section-about .about-card{
    padding: clamp(22px, 8vw, 32px) clamp(18px, 6vw, 22px);
    gap: 18px;
  }

  .about-title{
    font-size: clamp(32px, 14vw, 46px);
  }

  .about-list li{
    padding-left: 18px;
  }
}

.about-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  transition: opacity .25s ease;
}
.about-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border: 0; border-radius: 12px;
  cursor: pointer;
  background: var(--adv-brown);
  color: #fff; font-size: 28px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  transition: transform .15s ease, filter .15s ease;
}
.about-prev{ left: 14px; }
.about-next{ right: 14px; }
.about-nav:hover{ filter: brightness(1.08); transform: translateY(-50%) scale(1.03); }

@media (max-width: 980px){
  .about-card{ grid-template-columns: 1fr; }
  .about-img{ max-height: 56svh; }
}
/* Футер */
.mega-footer {
  background: #93ABD8;
  padding: clamp(48px, 8vw, 96px) 5vw clamp(96px, 14vw, 180px);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 120px);
  border-top: 5px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-top:2px solid rgba(0,0,0,.1);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: #1b1b1b;
  margin-bottom: 150px;
}

.footer-bottom {
  margin-top: auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(88px, 18vw, 200px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--avg-brown, #5B3A2F); /* коричневый цвет */
  transform: scaleY(2.6);
  line-height: 0.72;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .mega-footer {
    padding-left: clamp(24px, 6vw, 48px);
    padding-right: clamp(24px, 6vw, 48px);
  }

  .footer-bottom {
    font-size: clamp(52px, 22vw, 160px);
    line-height: 0.9;
    transform: none;
    white-space: normal;
  }
}