:root{
  --btnGrad: linear-gradient(90deg, #305FAF 0%, #053377 100%);
  --blockGrad: linear-gradient(90deg, #334381 0%, #242F5B 100%);
  --text: #454545;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --soft: #F3F3F5;

  --h1: clamp(20px, 2.8vw, 40px);
  --sub: clamp(16px, 1.5vw, 20px);
  --h: clamp(15px, 1.5vw, 20px);
  --p: clamp(12px, 1.3vw, 16px);

  --padd: clamp(40px, 14vw, 200px);
  --radius: 18px;

  --shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.10);
  --shadowMenu: 2px 2px 15px 0 rgba(0, 0, 0, 0.15);

  --headerH: 90px;
  --headerH_m: 70px;

  --headerOffset: var(--headerH);
  --headerOffsetM: var(--headerH_m);
}

*{ 
  box-sizing: border-box; 
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
html, body { 
  height: 100%; 
  scroll-behavior: smooth;
}

body{
  margin:0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
img{ display:block; max-width:100%; }

.page{
  margin: 0 auto;
  background: #fff;
}

.container{
  width: min(1440px, calc(100% - var(--padd)));
  margin: 0 auto;
}

/* ================= Header ================= */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;

  background: transparent;
  border: none;

  /* чтобы плавно появлялось/исчезало */
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

/* фон на скролле (DESKTOP) */
.header.header--solid{
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

/* если будет нужно — можно включить на скролле через JS классом .header--solid */
.header--solid{
  background: #fff;
}

main{ padding-top: 0; }

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

.logo img{
  height: clamp(45px, 2vw, 50px);
  width: auto;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

/* desktop nav */
.nav{
  display:flex;
  gap: clamp(15px, 1.5vw, 50px);
  align-items:center;
  font-size: clamp(14px, 1.2vw, 16px);
  color: #727375;
}
.nav a{
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a:hover{ color: #1f3f86; }
.nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  height:2px; width:0%;
  background:#305FAF;
  transition: width .25s ease;
  border-radius: 2px;
}
.nav a:hover::after{ width:100%; }

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 15px;
  padding: 15px clamp(15px, 1.5vw, 20px);

  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 16px);

  border: 0;
  cursor: pointer;
  user-select:none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn--primary{
  color:#fff !important;
  background: var(--btnGrad);
  box-shadow: var(--shadow);
}
.btn--primary:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 6px 34px rgba(6,52,121,.2);
}
.btn--primary:active{ transform: translateY(0px); }

.btn--secondary{
  background-color: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}
.btn--secondary:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 6px 34px rgba(237, 232, 232, 0.2);
}

/* ===== burger (right-aligned, sharp corners) ===== */

.burgerBtn{
  display:none;
  width:20px;
  height:20px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}

/* контейнер иконки — центрируется кнопкой */
.burgerIcon{
  position:relative;
  width:20px;     /* как ты и сказал: ширина зоны 20 */
  height:15px;    /* высота зоны бургера 15 */
}

/* общие линии (верх/низ) */
.burgerIcon::before,
.burgerIcon::after{
  content:"";
  position:absolute;
  right:4px;          /* ✅ верх/низ на 4px левее от правого края */
  left:auto;

  width:16px;         /* ✅ одинаковая длина */
  height:2px;
  background:#fff;

  border-radius:0;    /* ✅ ОСТРЫЕ углы */
  transform: none;

  transition: .25s ease;
}

/* верхняя */
.burgerIcon::before{ top:0; }

/* нижняя */
.burgerIcon::after{ bottom:0; }

/* средняя — тоже 16px, но прижата к правому краю */
.burgerIcon{
  background: linear-gradient(#fff,#fff) right center / 16px 2px no-repeat;
  transition: background-size .25s ease;
}

/* ===== open state (крестик 17x17) ===== */

.header.is-open .burgerIcon{
  width:17px;
  height:17px;
  background-size:0 2px; /* прячем среднюю */
}

/* делаем крестик по центру, без “уезда” */
.header.is-open .burgerIcon::before,
.header.is-open .burgerIcon::after{
  right:auto;
  left:50%;
  top:50%;
  bottom:auto;

  width:17px;          /* ✅ крестик 17 */
  border-radius:0;     /* ✅ острые */
}

/* диагонали */
.header.is-open .burgerIcon::before{
  transform: translate(-50%, -50%) rotate(45deg);
}

.header.is-open .burgerIcon::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ========== Mobile menu (NEW) ========== */
/* меню НЕ имеет оверлея — только панель на всю ширину */
.mobileMenu{
  position: fixed;
  left: 0;
  right: 0;
  top: 0; 
  background: #FFF;
  border-radius: 0 0 30px 30px;
  box-shadow: var(--shadowMenu);
  z-index: 45;
  transform: translateY(calc(-100% + var(--headerOffsetM)));
  opacity: 0;
  pointer-events: none;

  will-change: transform, opacity;
  transition:
    transform 420ms cubic-bezier(.2, .9, .2, 1),
    opacity   240ms ease;
}

.header.is-open .mobileMenu{
  transform: translateY(var(--headerOffsetM));
  opacity: 1;
  pointer-events: auto;
}

/* ссылки в меню */
.mobileMenu__links{
  display:flex;
  flex-direction:column;
  gap: 22px;
  padding: 26px 20px 22px;
}

.mobileMenu__links a{
  font-size:16px;
  font-weight:500;
  color: var(--text);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.mobileMenu__links svg{
  flex-shrink:0;
}

.mobileMenu__links a:active{
  opacity: .75;
}

.mobileMenu__cta{
  margin-top: 4px;
  width: 100%;
}

/* ================= Hero ================= */
.hero{
  position: relative;
  padding: 54px 0 80px;
  overflow:hidden;
}

/* BG на всю ширину */
.hero::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform: translateX(-50%);
  background: #f6f7f9 url("public/bg.png") no-repeat;
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.content-container{
  width: min(1440px, calc(100% - var(--padd)));
  position: relative;
  margin: 0 auto;
  padding-top: 220px;
  padding-bottom: 140px;
  z-index: 1;
}

.content-container > .container{
  width: 100%;
}

/* left content */
.hero__content{
  max-width: clamp(600px, 55vw, 790px);
  position: relative;
  z-index: 2;
}

.h1{
  font-size: var(--h1);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--text);
}

.sub{
  font-size: var(--sub);
  line-height: 1.35;
  margin: 0 0 26px;
  max-width: 90%;
  color: var(--text);
  font-weight: 500;
}

.hero__actions{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__note{
  font-size: var(--p);
  color: var(--text);
}

/* facts */
.hero__facts{
  display:flex;
  align-items:flex-start;
  gap: 26px;
  flex-wrap: nowrap;
}

.fact{ padding-top: 8px; }

.fact__title{
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.fact__text{
  font-size: var(--p);
  color: var(--text);
  line-height: 1.35;
}

.fact--split{
  position: relative;
  padding-left: 26px;
}
.fact--split::before{
  content:"";
  position:absolute;
  left: 0;
  top: 20px;
  bottom: 8px;
  width: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* right photo */
.hero__media{
  position: relative;
  width: 100%;
  height: 580px;
  display:flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero__photo{
  position: absolute;
  bottom: 0;
  right: 0;
  height: clamp(370px, 39vw, 560px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* badges */
.hero__badges{
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 720px;
  pointer-events: none;
  z-index: 2;
}

.badge{
  position: absolute;
  display:flex;
  align-items:center;
  gap: 10px;

  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 7px 20px 7px 7px;

  pointer-events: auto;
}

.badge--top{
  bottom: 110px;
  right: 0;
}

.badge--bottom{
  bottom: 0;
  right: clamp(120px, 20vw, 320px);
}

.badge__icon{
  width: 70px;
  height: 70px;
  border-radius: 999px;
  padding: 15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #F5F5F5;
}

.badge__text{
  color:#5d5d5d;
  font-size: var(--p);
  font-weight: 500;
}
.badge__name{
  font-weight: 600;
  color:var(--text);
  margin-bottom: 2px;
}
.badge__desc{
  font-weight: 600;
  color:#727375;
}

/* ================= Animations ================= */
.anim{
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .8s ease forwards;
}
.anim--d1{ animation-delay: .12s; }
.anim--d2{ animation-delay: .22s; }
.anim--d3{ animation-delay: .32s; }

@keyframes fadeUp{
  to{ opacity: 1; transform: translateY(0); }
}

.anim--float{
  opacity: 0;
  transform: translateY(10px) scale(.98);
  animation: floatIn .9s ease forwards, floatY 4.2s ease-in-out infinite;
}
@keyframes floatIn{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
/* ОДИНАКОВАЯ форма движения (как у bottom), без “странного” поведения */
@keyframes floatY_good {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}

/* вариант “поменьше амплитуда”, но та же форма */
@keyframes floatY_goodSmall {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -7px, 0); }
}

/* базово */
.anim--float{
  opacity: 0;
  transform: translateY(10px) scale(.98);
  animation:
    floatIn .9s ease forwards,
    floatY_good 6.1s cubic-bezier(.37, 0, .63, 1) infinite;
  will-change: transform;
}

/* bottom — как тебе нравится */
.badge--bottom.anim--float{
  animation:
    floatIn .9s ease forwards,
    floatY_good 6.1s cubic-bezier(.37, 0, .63, 1) -3.1s infinite;
}

/* top — ТО ЖЕ ощущение, просто другой ритм и фаза */
.badge--top.anim--float{
  animation:
    floatIn .9s ease forwards,
    floatY_goodSmall 7.4s cubic-bezier(.37, 0, .63, 1) -1.7s infinite;
}

/* ================= Responsive ================= */
@media (max-width: 1024px){
    .content-container{
      padding-top: 60px;
    }
  .hero{
    padding-bottom: 60px;
  }
  .nav{ display:none; }
  .header__cta{ display:none; }
  .burgerBtn{ display:flex; }

  .header{
    background: linear-gradient(90deg, #053378 0%, #305FAF 100%);
  }
  .header .container{
    width: 100%;
    padding: 0 clamp(20px, 4vw, 40px);
  }
  .header__inner{ 
    height: var(--headerH_m); 
    position: relative;
    z-index: 50;
    background: linear-gradient(90deg, #053378 0%, #305FAF 100%);
  }
  .hero__media{
    height: 420px;
    justify-content: center;
    align-items: flex-end;
  }

  .hero__badges{
    position: relative;
    height: 370px;
    margin-top: -240px;
    right: auto;
    top: auto;
  }

  .badge__icon{
    width: 50px;
    height: 50px;
    padding: 10px;
  }

  .badge--top{
    bottom: -80px;
    left: 80px;
    right: unset;
  }

  .badge--bottom{
    bottom: 20px;
    left: 100px;
    right: unset;
  }

  .hero::before{
    background-position: center bottom;
  }
}

@media (max-width: 720px){
  .hero__facts{
    flex-direction: column;
    gap: 18px;
  }
  .fact--split{
    padding-left: 0;
  }
  .fact--split::before{
    display:none;
  }
  .hero__actions{
      gap: 12px;
      margin-bottom: 10px;
    }
}

@media (max-width: 600px){
  :root{
    --h1: 20px;
    --sub: 16px;
    --h: 15px;
    --p: 12px;

    :root{ --headerOffsetM: var(--headerH_m); }
  }

  .container{
    width: min(1240px, calc(100% - 28px));
  }
  .logo img{ height: 40px; }

  .hero{ padding: 30px 0 0; }

  .h1{
    margin-bottom: 14px;
    letter-spacing: -0.01em;
  }
  .sub{ margin-bottom: 18px; }

  .hero__note{ display: none; }

  .fact__title{ font-size: 24px; }

  .hero__media{
    height: 440px;
    justify-content: center;
  }

  .hero__photo{
    right: -100px;
    height: 420px;
    overflow: visible;
    object-fit: cover;
  }

  .hero__badges{
    height: 360px;
    margin-top: -240px;
  }

  .badge--top{
    bottom: -80px;
    left: 5%;
    right: unset;
  }

  .badge--bottom{
    bottom: 20px;
    left: 15%;
  }
}

/* ================= We help ================= */

.wehelp{
  position: relative;
  z-index: 2;
}

/* белый “подиум” со скруглениями, который наезжает на hero */
.wehelp__wrap{
  background: #fff;
  border-radius: 100px;
  margin-top: -80px;       
  padding: 100px 0 0;
  box-shadow: none;
}

/* заголовок/подзаг */
.wehelp__head{
  text-align: center;
  max-width: 920px;
  margin: 0 auto 44px;
}

.wehelp__title{
  margin: 0 0 14px;
  font-size: var(--h1);
  line-height: 1.12;
  font-weight: 600;
  color: var(--text);
}

.cont_sub{
 display: flex;
 justify-content: center;
}

.wehelp__sub{
  margin: 0;
  max-width: clamp(60%, 42vw, 80%);
  font-size: var(--sub);
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}

/* сетка карточек */
.wehelp__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* карточки */
.wehelpCard{
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 190px;
}

.wehelpCard--blue{
  background: var(--blockGrad);
  color: #fff;
}

.wehelpCard--gray{
  background: var(--soft);
  color: var(--text);
  box-shadow: none;
}

.wehelpCard__icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.wehelpCard--gray .wehelpCard__icon{
  background: #334381;
}

.wehelpCard__icon img{
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.wehelpCard__title{
  margin: 0 0 10px;
  font-size: var(--h);
  line-height: 1.2;
  font-weight: 600;
}

.wehelpCard__text{
  margin: 0;
  font-size: var(--p);
  line-height: 1.45;
  font-weight: 400;
}

.wehelpCard--gray .wehelpCard__text{
  opacity: 1;
  color: #6b6b6b;
}

/* широкий серый блок: 2 колонки */
.wehelpCard--wide{
  grid-column: 1 / span 2;
  min-height: 210px;
}

/* ================= Reveal on scroll (animation) ================= */

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

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

/* hover скорости — у карточки */
.wehelpCard{
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s cubic-bezier(.2,.8,.2,1),
    background .28s ease;
}

.wehelpCard__icon{
  transition: transform .35s ease;
}

/* чтобы hover перебивал reveal transform (и работал всегда) */
@media (hover:hover){
  .wehelpCard:hover{
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.14);
  }
}

@media (hover:hover){
  .wehelpCard:hover .wehelpCard__icon{
    transform: scale(1.08);
  }
}

/* небольшая “лесенка” по карточкам */
.wehelp__grid .reveal:nth-child(1){ transition-delay: .02s; }
.wehelp__grid .reveal:nth-child(2){ transition-delay: .08s; }
.wehelp__grid .reveal:nth-child(3){ transition-delay: .14s; }
.wehelp__grid .reveal:nth-child(4){ transition-delay: .10s; }
.wehelp__grid .reveal:nth-child(5){ transition-delay: .16s; }

/* ================= Responsive ================= */

@media (max-width: 1024px){
  .wehelp__wrap{
    border-radius: 0;
    margin-top: -60px;
    padding: 80px 0 0;
  }

  .wehelp__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wehelpCard--wide{
    grid-column: auto;
  }

  .wehelp__head{
    margin-bottom: 25px;
  }
}

@media (max-width: 600px){
  .wehelp__wrap{
    border-radius: 0;
    margin-top: -35px;
  }

  .wehelpCard{
    border-radius: 26px; /* карточки остаются округлённые как на макете */
    padding: 22px;
  }

  .wehelpCard__icon{
    width: 52px;
    height: 52px;
  }

  .wehelp__sub{
    max-width: 100%;
  }
}


/* ================= About (FIXED) ================= */

.about{
  padding: 100px 0 0;
}

/* Заголовки */
.about__head{
  text-align: center;
  display: flex;
  justify-content: center;
}

.about__title{
  margin: 0;
  font-size: var(--h1);
  line-height: 1.12;
  font-weight: 500;
  color: var(--text);
  max-width: 90%;
}

/* по умолчанию: показываем заголовок ВНУТРИ синего блока */
.about__head--mobile{ display:none; }

/* сам синий блок */
.about__card{
  margin-top: 0;
  border-radius: 40px;
  overflow: hidden;
  padding: clamp(20px, 3vw, 50px) clamp(20px, 3vw, 40px);

  background: url("public/about-bg.png") no-repeat center;
  background-size: cover;

  color:#fff;
  position: relative;
  box-shadow: none;
}

/* заголовок внутри блока */
.about__head--desktop{
  margin-bottom: 46px;
}

.about__head--desktop .about__title{
  color:#fff; /* внутри синего блока */
}

/* внутренняя сетка */
.about__inner{
  display: grid;
  grid-template-columns: clamp(260px, 19vw, 330px) clamp(220px, 21vw, 300px);
  width: 100%;
  /* gap: clamp(60px, 8vw, 160px); */
  justify-content: space-between;
}

/* LEFT */
.about__name{
  font-size: var(--h);
  font-weight: 600;
  margin: 0 0 6px;
  color:#fff;
}

.about__role{
  font-size: var(--p);
  margin: 0 0 26px;
  color:#fff;
  font-style: italic;
  font-weight: 400;
}

.about__quote{
  margin: 0 0 20px;
}

.about__quote svg{
  width: 60px;   /* регулируй размер тут */
  height: auto;
  display: block;
  color: #fff;   /* цвет кавычек */
}

.about__text p{
  margin: 0 0 18px;
  font-size: var(--p);
  line-height: 1.6;
  color:#fff;
}
.about__left .about__text p:last-child{
  margin: 0;
}
.about__left,
.about__right{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* RIGHT */
.about__expTitle{
  font-size: var(--h);
  font-weight: 600;
  margin: 0 0 6px;
  color:#fff;
}
.about__expText{
  font-size: var(--p);
  margin: 0 0 26px;
  opacity: .9;
  color:#fff;
}

.about__img{
  margin: 25px 0;
}
.about__img img{
  width: 170px;
  height: auto;
  display:block;
}

.about__item{
  margin-top: 24px;
}
.about__itemTitle{
  font-size: var(--h);
  font-weight: 600;
  margin: 0 0 6px;
  color:#fff;
}
.about__itemText{
  font-size: var(--p);
  line-height: 1.5;
  margin: 0;
  color:#fff;
}

/* ================= Mobile like mockup ================= */
@media (max-width: 1024px){

  .about{
    padding: 80px 0 0;
  }

  .about__head--mobile{
    display:flex;
    justify-content: center;
    margin-bottom: 25px;
    max-width: 1024px;
  }
  .about__title{
    max-width: 100%;
  }
  .about__head--desktop{ display:none; }

  .about__card{
    border-radius: 40px;
  }

  .about__name{
    font-size: 24px;
  }
  .about__role{
    font-size: 20px;
  }

  .about__quote svg{
    width: 50px; 
  }

  .about__person{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about__inner{
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about__img{
    display: none;
  }
  /* ПРАВАЯ колонка: делаем контейнером для "прибитого" exp */
  .about__right{
    position: relative;
    padding-bottom: 260px; /* место под блок "7+ лет" снизу */
  }

  /* Переставляем порядок на мобилке */
  .about__exp{ order: 3; }
  .about__item:nth-of-type(1){ order: 1; }
  .about__item:nth-of-type(2){ order: 2; }

  /* Прибиваем "7+ лет" в самый низ слева */
  .about__exp{
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    text-align: left;
  }

  .about__expTitle{
    margin: 0 0 6px;
  }
  .about__expText{
    margin: 0;
  }
  .about__cff{
    text-align: right;
  }
}

@media (max-width: 600px){
  .about__card{
    border-radius: 34px;
    background: url("public/bg-about_mobile.png") no-repeat center bottom;
    background-size: 100% auto;
  }

  .about__name {
    font-size: var(--h);
  }
  .about__role {
    font-size: var(--p);
  }
  .about__quote svg{
    width: 40px; 
  }

  .about__expText{
    max-width: 70%;
  }
}

@media (max-width: 400px){
  .about__card{
    background-size: 110%;
  }
}

@media (max-width: 371px){
  .about__card{
    background-size: 140%;
  }
}


/* ================= What (FIX) ================= */

/* 1) Делаем внутри секции свои fluid-переменные, чтобы “ужималось” */
.what{
  padding: 100px 0 0;

  --whatGap: clamp(18px, 2.2vw, 30px);
  --whatPad: clamp(18px, 2.2vw, 30px);
  --whatTitle: clamp(15px, 1.4vw, 20px);
  --whatText: clamp(12px, 1.2vw, 16px);
  --whatNum: clamp(44px, 4.45vw, 64px);
  /* line-height — чтобы текст занимал предсказуемую высоту */
  --lhTitle: 1.22;
  --lhText:  1.45;
}

.what__head{
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align:center;
  margin: 0 auto 44px;
}

.what__title{
  margin:0 0 14px;
  font-size: var(--h1);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
}
.what__sub{
  max-width: 65%;
  margin:0;
  font-size: var(--sub);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

/* 2) Колонки */
.what__columns{
  display:flex;
  gap: var(--whatGap);
  align-items: flex-start;
}

.what__col{
  flex: 1;
  display:flex;
  flex-direction: column;
  gap: var(--whatGap);
  min-width: 0; /* важно, чтобы флекс нормально сжимал контент */
}

/* 3) Карточки */
.whatCard{
  background: #F5F4F7;
  border-radius: 30px;
  padding: var(--whatPad);
  display:flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);

  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s cubic-bezier(.2,.8,.2,1),
    background .28s ease;
}

/* hover */
@media (hover:hover){
  .whatCard:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0,0,0,.12);
  }
}

/* Номер — без absolute, как ты и хочешь */
.whatCard__num{
  align-self: flex-end;
  font-weight: 700;
  font-size: var(--whatNum);
  line-height: 1;
  color: rgba(255,255,255,.75);
  user-select:none;
  transition: transform .3s ease, opacity .3s ease;
}

@media (hover:hover){
  .whatCard:hover .whatCard__num{
    transform: scale(1.08);
    opacity: .9;
  }
}

.whatCard__title{
  margin:0;
  font-size: var(--whatTitle);
  font-weight: 600;
  line-height: var(--lhTitle);
  color: var(--text);

  /* чтобы длинные слова не ломали ширину и не создавали лишние переносы */
  overflow-wrap: anywhere;
}

.whatCard__text{
  margin:0;
  font-size: var(--whatText);
  line-height: var(--lhText);
  color: #6b6b6b;
  overflow-wrap: anywhere;
}

/* 4) Геометрия высот (как у тебя), но держится потому что текст “ужимается” */
:root{
  --whatTop: 240px;     /* 01 и 04 */
  --whatBottom: 270px;  /* 02 и 05 */
  --whatBlue: 170px;    /* синий */
}

.whatCard--top{    min-height: var(--whatTop); }
.whatCard--bottom{ min-height: var(--whatBottom); }

.whatCard--blue{
  background: url("public/serv-bg.png") no-repeat center;
  background-size: cover;
  color:#fff;
}
.whatCard--blueH{ min-height: var(--whatBlue); }

.whatCard__blueText{
  margin:0;
  font-size: var(--whatText);
  font-weight: 500;
  line-height: var(--lhText);
  color:#fff;
}

/* 03 самый высокий и выравнивает низ 02/03/05 */
.whatCard--tall{
  min-height: calc(var(--whatTop) + var(--whatBottom) - var(--whatBlue));
}

/* 5) Переход в 1 столбец */
@media (max-width: 1024px){
  .what{ padding: 80px 0 0; }

  .what__columns{
    flex-direction: column;
    gap: 18px;
  }
  .what__col{ 
    gap: 18px; 
    width: 100%;
  }

  .whatCard--top,
  .whatCard--bottom,
  .whatCard--blueH,
  .whatCard--tall{
    min-height: auto;
  }
  .what__head{
    margin-bottom: 25px;
  }

  .whatCard__num{ align-self: flex-start; }
  .what__sub{
    max-width: 85%;
  }
}

/* JS будет выставлять конкретные высоты в px, но только когда 3 колонки */
@media (min-width: 981px){
  .whatCard--top,
  .whatCard--bottom,
  .whatCard--blueH,
  .whatCard--tall{
    height: auto;         /* важно */
    min-height: 0;        /* важно */
  }
}

/* ================= Banner ================= */

.banner{
  padding: 100px 0 0;
}

.banner__card{
  position: relative;
  border-radius: 40px;

  background: url("public/banner.png") no-repeat center;
  background-size: cover;

  padding: clamp(20px, 3.2vw, 56px);
  min-height: clamp(280px, 22vw, 360px);

  color: #fff;
}

.banner__content{
  position: relative;
  z-index: 2;
  max-width: clamp(520px, 52vw, 760px);
}

.banner__title{
  margin: 0 0 18px;
  font-size: clamp(24px, 2vw, 30px); 
  line-height: 1.12;
  font-weight: 600;
  color: #fff;
}

.banner__text{
  margin: 0 0 26px;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  max-width: 92%;
}

.banner__actions{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.banner__btn{
  background: #fff !important;
  color: var(--text) !important;
  border-radius: 18px;
  padding: 18px 26px;
  box-shadow: var(--shadow);
}

.banner__note{
  font-size: var(--p);
  color: rgba(255,255,255,.92);
  font-weight: 500;
}

/* photo */
.banner__photo{
  position: absolute;
  right: 0;
  bottom: 0;
  height: clamp(260px, 32vw, 420px);
  width: auto;
  max-width: 55%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ============ Tablet/Mobile ============ */
@media (max-width: 1024px){
  .banner{
    padding: 80px 0 0;
  }

  .banner__card{
    border-radius: 40px;
    text-align: center;
    padding: 20px;
    padding-bottom: 0;
    height: 440px;
  }

  .banner__content{
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding-bottom: 40px;
  }

  .banner__text{
    max-width: 100%;
    margin-bottom: 22px;
  }

  .banner__actions{
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }

  /* на мобилке фото НЕ абсолютом, идёт снизу */
  .banner__photo{
    right: 0;
    left: 0;
    height: 280px;
    max-width: 100%;
    margin: 18px auto 0;
    display: block;
  }
}

@media (max-width: 600px){
  .banner__card{
    height: 500px;
  }

  .banner__content{
    padding-bottom: 40px;
  }

  .banner__actions{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 6px;
  }

}


/* ================= Process ================= */

.process{
  padding: 100px 0 0;
}

.process__head{
  text-align: center;
  margin-bottom: 50px;
}

.process__title{
  margin: 0 0 14px;
  font-size: var(--h1);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
}

.process__sub{
  margin: 0 auto;
  max-width: 820px;
  font-size: var(--sub);
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}

.process__body{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

/* LEFT COLUMN */

.process__list{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CARD */

.processCard{
  display: flex;
  align-items: center;
  gap: 28px;

  padding: 15px;
  border-radius: 30px;
  background: #fff;

  box-shadow: 2px 2px 35px 0 rgba(0,0,0,.05);
}

.processCard__num{
  flex-shrink: 0;

  width: 100px;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;
  background: #334381;
  color: #fff;

  font-size: 60px;
  font-weight: 600;

  box-shadow: 2px 2px 35px 0 rgba(0,0,0,.05);
}

/* ================= Process hover ================= */

.processCard{
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s cubic-bezier(.2,.8,.2,1),
    background .28s ease;
  will-change: transform;
}

.processCard__num{
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    filter .28s cubic-bezier(.2,.8,.2,1);
}

@media (hover:hover){

  .processCard:hover{
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
  }

  .processCard:hover .processCard__num{
    transform: scale(1.04);
    filter: brightness(1.05);
    border-radius: 18px;
  }

}

.processCard__title{
  margin: 0 0 6px;
  font-size: var(--h);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.processCard__text{
  margin: 0;
  font-size: var(--p);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
}

/* IMAGE — FIX: картинка не влияет на высоту grid */
.process__image{
  position: relative;
  height: 100%;          /* тянемся по высоте строки (к высоте левого списка) */
  overflow: hidden;
  border-radius: 30px;
  align-self: stretch;   /* на всякий */
}

/* img убираем из потока, чтобы не “раздувала” строку */
.process__image img{
  position: absolute;
  inset: 0;              /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Mobile ============ */

@media (max-width: 1024px){

  .process{
    padding: 80px 0 0;
  }

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

  .process__image{
    display: none;
  }

  .processCard{
    gap: 17px;
    padding: 12px;
  }

  .processCard__num{
    width: auto;
    height: auto;
    font-size: 40px;
    background-color: #fff;
    box-shadow: none;
    color: #334381;
  }

  .process__head{
    margin-bottom: 25px;
  }
}

/* ================= Risk (3 cards protruding) ================= */

.risk{
  padding: 100px 0 0;
}

/* Синий фон-карточка */
.risk__card{
  position: relative;
  border-radius: 30px;
  background: url("public/time-bg.png") no-repeat center;
  background-size: cover;
  overflow: visible; /* важно, чтобы карточки могли вылезать */

  padding: clamp(26px, 3vw, 60px);
  padding-bottom: 80px;
  color: #fff;
}

/* верхняя часть: текст слева, картинка справа */
.risk__top{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 3vw, 46px);
  align-items: start;
}

.risk__left{
  max-width: 820px;
}

.risk__title{
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.12;
  font-weight: 500;
  color: #fff;
}

.risk__lead{
  position: relative;
  margin: 0;
  text-align: left;
  padding-left: 22px;          /* место под точку */
  font-size: var(--sub);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  max-width: 760px;
}

.risk__lead::before{
  content: "";
  position: absolute;

  left: 4px;
  top: 0.55em;                 /* центр по первой строке */

  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
}

/* правая картинка (НЕ absolute) */
.risk__right{
  display: flex;
  justify-content: flex-end;
}

.risk__img{
  width: clamp(260px, 30vw, 520px);
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ===== 3 белые карточки (DESKTOP absolute) ===== */
.risk__cards{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -90px;

  display: flex;
  justify-content: center; /* вот это центрирует реально */
  gap: 20px;

  padding: 0 40px; /* отступы от краёв */
  z-index: 3;
}

.riskItem{
  background: #fff;
  border-radius: 30px;
  box-shadow: 2px 2px 35px 0 rgba(0, 0, 0, 0.05);
  padding: 20px;
  color: var(--text);
  min-height: 200px;
  max-width: 280px;

  display: flex;
  flex-direction: column;
}

.riskItem__title{
  margin: 0;
  text-align: center;

  /* ключевое */
  min-height: calc(1.2em * 3);  /* 3 строки */
  display: flex;
  align-items: center;          /* вертикально по центру в этой высоте */
  justify-content: center;

  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

.riskItem__line{
  height: 1px;
  width: 100%;
  margin: 14px auto 14px;
  background: #334381;
}

.riskItem__text{
  position: relative;
  margin: 0;

  padding-left: 15px; 
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: #000;
}

.riskItem__text::before{
  content: "·";
  position: absolute;
  left: 0;
  top: -2px; 
  font-size: 22px;             /* размер точки */
  line-height: 1;
  color: #000;
}

/* ===== Tablet/Mobile: всё в столбик, без absolute ===== */
@media (max-width: 1024px){
  .risk{
    padding: 80px 0 0;
  }

  .risk__card{
    border-radius: 30px;
    padding: 30px 20px;
  }

  .risk__top{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }

  .risk__right{
    justify-content: center;
  }

  .risk__img{
    width: clamp(240px, 70vw, 520px);
  }

  .risk__cards{
    position: static;
    margin-top: 22px;
    grid-template-columns: 1fr;
    gap: 18px;
    flex-direction: column;
    padding: 0;
  }

  .riskItem{
    border-radius: 30px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px){
  .risk__card {
    padding: 30px 15px;
}
}

/* ===== Risk cards stagger (лесенка) ===== */
.risk__cards .riskItem.reveal:nth-child(1){ transition-delay: .06s; }
.risk__cards .riskItem.reveal:nth-child(2){ transition-delay: .14s; }
.risk__cards .riskItem.reveal:nth-child(3){ transition-delay: .22s; }

/* чуть приятнее движение именно для этих карточек */
.risk__cards .riskItem.reveal{
  transform: translateY(18px);
}
.risk__cards .riskItem.reveal.is-visible{
  transform: translateY(0);
}


/* ================= FAQ ================= */

.faq{
  padding: 190px 0 0;
}

.faq__title{
  margin: 0 0 40px;
  text-align: center;
  font-size: var(--h1);
  line-height: 1.12;
  font-weight: 600;
  color: var(--text);
}

.faq__grid{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: stretch;
}

/* LEFT IMAGE */
.faq__media{
  position: relative;
  align-self: stretch; 
  height: 100%;       
  border-radius: 30px;  
  overflow: hidden;  
}

.faq__img{
  position: absolute;
  inset: 0;               /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 30px;
  box-shadow: 2px 2px 35px 0 rgba(0, 0, 0, 0.05);
}

/* RIGHT LIST */
.faq__list{
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ITEM */
.faqItem{
  border-bottom: 1px solid var(--text);
}

/* button row */
.faqItem__btn{
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 0;
  cursor: pointer;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;

  text-align: left;
}

.faqItem__q{
  font-size: var(--sub);
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}

/* blue square icon */
.faqItem__icon{
  position: relative;
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: #334381;
  flex-shrink: 0;
}

/* plus (two strokes) */
.faqItem__icon::before,
.faqItem__icon::after{
  content:"";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: transform 260ms ease, opacity 260ms ease;
}

/* vertical stroke */
.faqItem__icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

/* OPEN => minus (hide vertical stroke) */
.faqItem.is-open .faqItem__icon::after{
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(.6);
}

/* focus/hover */
.faqItem__btn:hover .faqItem__q{
  color: #1f3f86;
}
.faqItem__btn:active{
  transform: translateY(1px);
}

/* PANEL (smooth) */
.faqItem__panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 380ms cubic-bezier(.2,.9,.2,1);
  will-change: max-height;
}

.faqItem__a{
  padding: 0 0 22px;
  font-size: var(--p);
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

/* OPEN: text fades in */
.faqItem.is-open .faqItem__a{
  opacity: 1;
  transform: translateY(0);
}

/* ============ Mobile ============ */
@media (max-width: 1024px){
  .faq{
    padding: 80px 0 0;
  }
  .faq__grid{
    grid-template-columns: 1fr;
  }
  .faq__media{
    display: none; /* как ты сказал — фото убираем */
  }
}

/* ================= Banner 2 (photo LEFT) ================= */

.banner2{
  padding: 100px 0 0;
}

.banner2__card{
  position: relative;
  border-radius: 40px;

  background: url("public/banner-bg2.png") no-repeat center;
  background-size: cover;

  padding: clamp(20px, 3.2vw, 56px);
  min-height: clamp(280px, 22vw, 360px);

  color: #fff;

  display: flex;
  align-items: center;
}

/* контент справа (на десктопе делаем отступ под фото слева) */
.banner2__content{
  position: relative;
  z-index: 2;

  max-width: clamp(520px, 47vw, 720px);
  margin-left: auto;
}

.banner2__title{
  margin: 0 0 18px;
  font-size: clamp(20px, 2vw, 30px); 
  line-height: 1.12;
  font-weight: 600;
  color: #fff;
}

.banner2__text{
  margin: 0 0 26px;
  font-size: clamp(12px, 1.4vw, 18px);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  max-width: 92%;
}

.banner2__actions{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.banner2__note{
  font-size: var(--p);
  color: rgba(255,255,255,.92);
  font-weight: 500;
}

/* фото слева */
.banner2__photo{
  position: absolute;
  left: 0;
  bottom: 0;

  height: clamp(260px, 32vw, 440px);
  width: auto;
  max-width: 55%;

  object-fit: contain;
  pointer-events: none;
  user-select: none;

  z-index: 1;
}

/* ============ Tablet/Mobile ============ */
@media (max-width: 1024px){
  .banner2{
    padding: 80px 0 0;
  }

  .banner2__card{
    border-radius: 40px;
    text-align: center;
    padding: 20px;
    padding-bottom: 0;
    height: 380px;
    display: block;
  }

  .banner2__content{
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding-bottom: 40px;
  }

  .banner2__text{
    max-width: 100%;
    margin: 0 auto;
  }

  .banner2__actions{
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }

  .banner2__note{
    text-align: center;
  }

  /* ✅ фото идёт после контента и НЕ абсолют */
  .banner2__photo{
    right: 0;
    left: 0;
    height: 280px;
    max-width: 100%;
    margin: 18px auto 0;
    display: block;
  }
}

@media (max-width: 600px){
  .banner2__card{
    height: 400px;
  }
}

/* ================= Footer ================= */

.footer{
  margin-top: 100px;
  padding: 44px 0 34px;
  color: #fff;
  background: url("public/footer.png") no-repeat center;
  background-size: cover;
}

.footer__top{
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 36px;
}

.footer__logo img{
  height: 52px;
  width: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.footer__title{
  line-height: 1.1;
}

.footer__h{
  font-size: var(--h1);
  font-weight: 600;
  margin-bottom: 6px;
}

.footer__h2{
  font-size: var(--h1);
  font-weight: 500;
}

.footer__phone{
  text-align: right;
  font-size: var(--h1);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.footer__phone span{
  font-weight: 500;
}

.footer__grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 0;
  align-items: start;
}

.footerCol__title{
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 600;
  margin: 0 0 20px;
}

.footerLinks{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footerLink{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.92);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 500;
}
.footerLink:hover{ opacity: .9; }

.footerLink__icon{
  width: 30px;
  height: 30px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink: 0;
}

.footerList{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footerList a{
  color: rgba(255,255,255,.92);
  font-size: clamp(16px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.35;
}
.footerList a:hover{ opacity: .9; }

/* .footer__formWrap{
  margin-top: 42px;
} */

.footer__formTitle{
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 600;
  margin: 0 0 14px;
}

.footerForm{
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
  align-items: center;
  max-width: 720px;
  background-color: #fff;
  border-radius: 10px;
  padding: 8px;
  position: relative;
}

.footerForm__status{
  max-width: 720px;   /* как у формы */
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;

  opacity: 0;
  transform: translateY(6px);
  transition: .25s;
}

.footerForm__status.is-sending,
.footerForm__status.is-success,
.footerForm__status.is-error{
  opacity: 1;
  transform: translateY(0);
}

/* под твой фон (сейчас у тебя темный футер) */
.footerForm__status.is-success{ color: rgba(255,255,255,.92); }
.footerForm__status.is-error{ color: rgba(255,255,255,.92); }
.footerForm__status.is-sending{ color: rgba(255,255,255,.75); }

.footerForm__input{
  width: 100%;
  border-radius: 14px;
  border: 0;
  outline: none;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: #fff;
}

.footerForm__btn{
  border-radius: 5px;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #31417D;
}

.footer__line{
  margin: 28px 0 18px;
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,.35);
}

.footer__bottom{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.footer__copy{
  font-size: clamp(14px, 1.1vw, 14px);
  line-height: 1.5;
  max-width: 760px;
}

.footer__legal{
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.footer__legal a{
  color: rgba(255,255,255,.92);
  font-size: clamp(14px, 1.1vw, 14px);
  font-weight: 500;
}
.footer__legal a:hover{ opacity: .9; }

/* ============ Mobile like mockup ============ */
@media (max-width: 1024px){
  .footer{
    margin-top: 80px;
    padding: 40px 0 20px;
  }

  .footer__top{
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .footer__logo{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  .footer__title{
    text-align: left;
  }

  .footer__phone{
    text-align: right;
    white-space: normal;
  }

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

  .footerCol--materials{ order: 2; }
  .footerCol--site{ order: 3; }

  .footer__formWrap{
    margin-top: 60px;
  }
  .footerForm{
    max-width: 100%;
  }

  .footer__bottom{
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer__legal{
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 600px){
  .footer__formTitle{
    max-width: 70%;
    text-align: center;
    margin: 0 auto 20px;
  }
  .footerForm{
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 7;
  }
  .footerForm__input{
    font-size: 12px;
    padding: 0 0 0 2px;
  }
  .footerForm__btn{
    width: 100%;
    padding: 10px 15px;
  }
}

/* ================= Materials page ================= */

.materialPage{
  padding-top: var(--headerH);
}

@media (max-width: 1024px){
  .materialPage{ padding-top: var(--headerH_m); }
}

.material{
  padding: 70px 0 0;
}

@media (max-width: 1024px){
  .material{ padding: 40px 0 0; }
}

.material__wrap{
  max-width: 920px;
  margin: 0 auto;
}

.material__breadcrumbs{
  font-size: var(--p);
  color: var(--muted);
  margin: 0 0 14px;
}

.material__breadcrumbs a{ color: inherit; }
.material__breadcrumbs a:hover{ opacity: .85; }

.material__title{
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
}

.material__lead{
  margin: 0 0 22px;
  font-size: var(--sub);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
}

.material__toc{
  margin: 0 0 26px;
  padding: 18px 18px;
  border-radius: 18px;
  background: #F5F4F7;
}

.material__tocTitle{
  margin: 0 0 10px;
  font-size: var(--h);
  font-weight: 600;
  color: var(--text);
}

.material__toc a{
  display: block;
  padding: 6px 0;
  font-size: var(--p);
  color: #1f3f86;
}
.material__toc a:hover{ opacity: .85; }

.material__content h2{
  margin: 30px 0 12px;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.material__content h3{
  margin: 18px 0 10px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.material__content p{
  margin: 0 0 14px;
  font-size: var(--p);
  line-height: 1.65;
  color: var(--text);
}

.material__content ul{
  margin: 0 0 14px;
  padding-left: 18px;
}

.material__content li{
  margin: 0 0 8px;
  font-size: var(--p);
  line-height: 1.6;
  color: var(--text);
}

.material__note{
  margin: 22px 0 0;
  padding: 16px 16px;
  border-radius: 16px;
  background: #F3F3F5;
  font-size: var(--p);
  line-height: 1.6;
  color: #6b6b6b;
}

.material__ctaRow{
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}