/* ============================================================
   АРТ КУБ — аренда ярмарочных киосков
   ============================================================ */

:root{
  /* ============================================================
     ★★★ ТАБЛИЦА ОТСТУПОВ ★★★
     ------------------------------------------------------------
     Здесь — ДЕСКТОПНЫЕ значения (px). Меняйте их свободно,
     ничего дополнительно пересчитывать не нужно.

     Мобильные значения (экран ≤600px) заданы ОТДЕЛЬНО, чуть ниже,
     в блоке "@media (max-width:600px)" — там те же самые
     переменные, но со своими цифрами. Меняйте их там напрямую,
     никакого множителя больше нет.

     ВАЖНО ПРО ЦВЕТ:
     Отступы выполнены через padding — то есть КАЖДЫЙ БЛОК сам
     закрашивает свои отступы СВОИМ цветом (--…-bg).
     Поэтому, если у #calc фон белый, отступы сверху/снизу тоже
     белые; если у #about фон серый — его отступы тоже серые.
     ============================================================ */

  /* -------- HERO -------- */
  --hero-bg:          #4C7A58;        /* базовый цвет, если нет картинки */
  --hero-height:      90vh;           /* высота блока: % от высоты экрана (vh) */
  --hero-pad-top:     90px;
  --hero-pad-bottom:  90px;

  /* -------- КАТАЛОГ -------- */
  --catalog-bg:        #F3F4F2;       /* gray-100 */
  --catalog-pad-top:   90px;
  --catalog-pad-bottom:90px;

  /* -------- КАЛЬКУЛЯТОР -------- */
  --calc-bg:           #FFFFFF;       /* white */
  --calc-pad-top:      90px;
  --calc-pad-bottom:   90px;

  /* -------- НАШИ РАБОТЫ -------- */
  --projects-bg:       #FFFFFF;
  --projects-pad-top:  90px;
  --projects-pad-bottom:90px;

  /* -------- О НАС -------- */
  --about-bg:          #F3F4F2;
  --about-pad-top:     90px;
  --about-pad-bottom:  90px;

  /* -------- FAQ -------- */
  --faq-bg:            #FFFFFF;
  --faq-pad-top:       90px;
  --faq-pad-bottom:    90px;

  /* -------- КОНТАКТЫ -------- */
  --contact-bg:        #F3F4F2;
  --contact-pad-top:   90px;
  --contact-pad-bottom:90px;

  /* -------- ЮРИДИЧЕСКИЕ СТРАНИЦЫ -------- */
  --legal-bg:          #FFFFFF;
  --legal-pad-top:     90px;
  --legal-pad-bottom:  90px;

  /* -------- СПАСИБО / 404 -------- */
  --thanks-bg:         #FFFFFF;
  --thanks-pad-top:    90px;
  --thanks-pad-bottom: 90px;
  --error-bg:          #FFFFFF;
  --error-pad-top:     90px;
  --error-pad-bottom:  90px;

  /* -------- палитра -------- */
  --green:#79BD8F;
  --green-dark:#4C7A58;
  --green-pale:#E7F0E9;
  --gray-900:#2B2E2C;
  --gray-700:#565B57;
  --gray-400:#8B918C;
  --gray-100:#F3F4F2;
  --gray-200:#E6E8E4;
  --white:#FFFFFF;
  --danger:#D9534F;
  --radius:14px;
  color-scheme: light;
}

/* ============================================================
   ★★★ ТА ЖЕ ТАБЛИЦА ОТСТУПОВ — ТОЛЬКО ДЛЯ МОБИЛЬНЫХ (≤600px) ★★★
   ------------------------------------------------------------
   Те же переменные, что и выше, но со своими значениями —
   задавайте их вручную в px, без всякого автоматического деления.
   Изначально стоит "половина" от десктопа, но это просто цифры,
   их можно менять как угодно.
   ============================================================ */
@media (max-width:600px){
  :root{
    --hero-height: 100dvh; /* на мобильных — во весь экран */
    --hero-pad-top:     45px;
    --hero-pad-bottom:  45px;

    --catalog-pad-top:   45px;
    --catalog-pad-bottom:45px;

    --calc-pad-top:      45px;
    --calc-pad-bottom:   45px;

    --projects-pad-top:  45px;
    --projects-pad-bottom:45px;

    --about-pad-top:     45px;
    --about-pad-bottom:  45px;

    --faq-pad-top:       45px;
    --faq-pad-bottom:    45px;

    --contact-pad-top:   45px;
    --contact-pad-bottom:45px;

    --legal-pad-top:     45px;
    --legal-pad-bottom:  45px;

    --thanks-pad-top:    45px;
    --thanks-pad-bottom: 45px;
    --error-pad-top:     45px;
    --error-pad-bottom:  45px;
  }
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:80px;
}
@media (max-width:600px){ html{scroll-padding-top:70px} }

body{
  font-family:'Manrope',system-ui,-apple-system,sans-serif;
  color:var(--gray-900);
  background:var(--white);
  line-height:1.5;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
body.modal-open,
body.menu-open{overflow:hidden}

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

.wrap{
  max-width:1440px;
  margin:0 auto;
  padding:0 20px;
}
@media (max-width:600px){
  .wrap{padding:0 10px}
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 24px;border-radius:999px;
  font-weight:700;font-size:15px;font-family:inherit;
  border:none;cursor:pointer;white-space:nowrap;text-decoration:none;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),
             box-shadow .3s ease, background .25s ease, border-color .25s ease;
}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(121,189,143,.4);
  background:#6AAF80;
}
.btn-outline{background:transparent;color:var(--gray-900);border:1.5px solid var(--gray-200)}
.btn-outline:hover{border-color:var(--green)}
.btn:disabled{opacity:.4;cursor:not-allowed;transform:none;box-shadow:none}

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--gray-200);
  padding-top:env(safe-area-inset-top,0px);
}
.headerbar{
  display:flex;align-items:center;justify-content:space-between;
  height:70px;gap:32px;
}

.brand{
  display:inline-flex;align-items:center;text-decoration:none;color:inherit;
  flex-shrink:0;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
}
.brand:hover{transform:scale(1.025)}
.brand-svg{
  display:block;
  width:149px;height:42px;
  overflow:visible;
}
.brand-svg .square{
  fill:none;stroke:#79BD8F;stroke-width:3.5;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:380;stroke-dashoffset:380;
  animation: drawSquare 2.6s cubic-bezier(.55,.05,.25,.95) forwards;
  transform-origin: 46px 46px;
}
@keyframes drawSquare{
  0%   { stroke-dashoffset: 380; opacity: 0; }
  6%   { stroke-dashoffset: 372; opacity: 1; }
  90%  { stroke-dashoffset: 6; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.brand-svg .text{
  opacity:0;
  animation: fadeText 1.2s cubic-bezier(.25,.6,.3,1) 1.8s forwards;
}
@keyframes fadeText{
  0%   { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}
.brand:hover .brand-svg .square{
  animation: pulseSquare 2s ease-in-out infinite;
}
@keyframes pulseSquare{
  0%, 100% { filter: drop-shadow(0 0 0 rgba(121,189,143,0)); }
  50%      { filter: drop-shadow(0 0 8px rgba(121,189,143,.5)); }
}

nav.desktop-nav{
  display:flex;align-items:center;gap:16px;
  font-weight:600;color:var(--gray-700);
}
nav.desktop-nav a{
  display:inline-flex;align-items:center;
  padding:6px 10px;
  font-size:14px;line-height:1.2;
  border-radius:8px;text-decoration:none;color:inherit;
  transition:color .2s ease, background .2s ease;
  white-space:nowrap;
}
nav.desktop-nav a:hover,
nav.desktop-nav a.active{
  color:var(--green-dark);
  background:var(--green-pale);
}

.header-right{
  display:flex;align-items:center;gap:20px;flex-shrink:0;
}

.phone{
  display:inline-flex;align-items:center;gap:0;
  padding:6px 10px;border-radius:8px;
  font-weight:700;font-size:15px;
  white-space:nowrap;text-decoration:none;color:var(--gray-900);
  transition:color .25s ease, background .25s ease, gap .3s cubic-bezier(.2,.8,.2,1);
}
.phone:hover{
  color:var(--green-dark);
  background:var(--green-pale);
  gap:8px;
}
.phone-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:0;height:18px;overflow:hidden;
  opacity:0;transform:translateX(-6px) rotate(-12deg);
  transition:width .3s cubic-bezier(.2,.8,.2,1),
             opacity .25s ease,
             transform .3s cubic-bezier(.2,.8,.2,1);
}
.phone-icon svg{
  width:18px;height:18px;flex-shrink:0;
  stroke:currentColor;fill:none;
  stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.phone:hover .phone-icon{
  width:18px;opacity:1;
  transform:translateX(0) rotate(0deg);
  animation: ring 1s ease-in-out infinite;
}
@keyframes ring{
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-14deg); }
  30%  { transform: rotate(12deg); }
  45%  { transform: rotate(-10deg); }
  60%  { transform: rotate(8deg); }
  75%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

/* ============================================================
   БУРГЕР
   ============================================================ */
.burger{
  display:none;
  width:38px;height:38px;
  background:transparent;
  border:1px solid var(--gray-200);
  border-radius:10px;
  cursor:pointer;position:relative;flex-shrink:0;padding:0;
  transition:background .2s ease, border-color .2s ease;
}
.burger:hover{
  border-color:var(--green);
  background:var(--green-pale);
}
.burger span{
  display:block;background:var(--gray-900);border-radius:2px;
  transition:width .25s ease-in-out,
             height .25s ease-in-out,
             top .25s ease-in-out,
             left .25s ease-in-out,
             transform .25s ease-in-out,
             background .2s ease;
}
.burger .hamburger{position:absolute;inset:0;background:transparent}
.burger .hamburger span{
  position:absolute;left:50%;height:2px;width:18px;
  transform:translateX(-50%);background:var(--gray-900);
}
.burger .hamburger span:nth-child(1){top:13px;transition-delay:.5s}
.burger .hamburger span:nth-child(2){top:18px;transition-delay:.625s}
.burger .hamburger span:nth-child(3){top:23px;transition-delay:.75s}

.burger .cross{
  position:absolute;inset:0;background:transparent;
  transform:rotate(45deg);
}
.burger .cross span{
  position:absolute;background:var(--green-dark);border-radius:2px;
  transition-delay:0s;
}
.burger .cross span:nth-child(1){
  width:2px;height:0;left:50%;top:50%;
  transform:translate(-50%,-50%);transition-delay:0s;
}
.burger .cross span:nth-child(2){
  width:0;height:2px;left:50%;top:50%;
  transform:translate(-50%,-50%);transition-delay:.25s;
}
.burger.active .hamburger span{width:0}
.burger.active .hamburger span:nth-child(1){transition-delay:0s}
.burger.active .hamburger span:nth-child(2){transition-delay:.125s}
.burger.active .hamburger span:nth-child(3){transition-delay:.25s}
.burger.active .cross span:nth-child(1){height:18px;transition-delay:.625s}
.burger.active .cross span:nth-child(2){width:18px;transition-delay:.375s}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.mobile-menu{
  display:none;
  position:fixed;top:58px;left:0;right:0;bottom:0;
  background:var(--white);
  padding:16px 12px 24px;
  z-index:49;
  flex-direction:column;gap:2px;
  overflow-y:auto;
  opacity:0;transform:translateY(-8px);pointer-events:none;
  transition:opacity .3s cubic-bezier(.2,.8,.2,1),
             transform .3s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open{opacity:1;transform:translateY(0);pointer-events:auto}
.mobile-menu a.m-link{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 12px;
  font-size:15px;font-weight:600;color:var(--gray-900);
  text-decoration:none;border-radius:12px;
  border-bottom:1px solid var(--gray-100);
  transition:background .2s ease, color .2s ease;
}
.mobile-menu a.m-link:last-of-type{border-bottom:none}
.mobile-menu a.m-link:hover,
.mobile-menu a.m-link:active{
  background:var(--green-pale);
  color:var(--green-dark);
}
.mobile-menu a.m-link::after{
  content:"→";font-size:15px;color:var(--gray-400);
  transition:transform .25s ease, color .25s ease;
}
.mobile-menu a.m-link:hover::after{
  transform:translateX(3px);
  color:var(--green-dark);
}
.mobile-menu .m-cta{
  margin-top:14px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:14px 20px;
  background:var(--green);color:#fff;
  font-weight:700;font-size:15px;
  border-radius:999px;text-decoration:none;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.mobile-menu .m-cta:hover{
  background:#6AAF80;transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(121,189,143,.4);
}
.mobile-menu .m-cta svg{width:20px;height:20px;fill:#fff;flex-shrink:0}
.mobile-menu .m-info{
  margin-top:auto;padding-top:20px;
  font-size:12px;color:var(--gray-400);
  text-align:center;line-height:1.6;
}
.mobile-menu .m-info a{
  color:var(--green-dark);font-weight:700;text-decoration:none;
}

@media (max-width:1024px){
  nav.desktop-nav{display:none}
  .phone{display:none}
  .burger{display:block}
  .mobile-menu{display:flex}
}
@media (max-width:600px){
  .headerbar{height:58px;gap:8px}
  .brand-svg{height:28px;width:auto}
  .header-right{gap:6px}
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;display:flex;align-items:center;
  min-height:var(--hero-height);
  padding-top:var(--hero-pad-top);
  padding-bottom:var(--hero-pad-bottom);
  color:#fff;overflow:hidden;isolation:isolate;
}
.hero-bg{
  position:absolute;inset:0;z-index:-2;
  background-color:var(--hero-bg);
  background-image:url('img/hero.jpg');
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
.hero-overlay{
  position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(180deg, rgba(20,28,22,.45) 0%, rgba(20,28,22,.55) 100%),
    linear-gradient(90deg, rgba(20,28,22,.35) 0%, rgba(20,28,22,.15) 50%, rgba(20,28,22,.35) 100%);
}
.hero-grid{
  position:relative;z-index:2;
  display:grid;grid-template-columns:1fr 1fr;gap:48px;
  align-items:stretch;width:100%;
}
.hero-text{display:flex;flex-direction:column;justify-content:center;padding:8px 0}
.hero h1{
  font-size:clamp(30px, 3.4vw, 44px);
  line-height:1.12;font-weight:800;letter-spacing:-.5px;
  margin-bottom:18px;color:#fff;
  text-shadow:0 2px 20px rgba(0,0,0,.35);
}
.hero p{
  font-size:16px;color:rgba(255,255,255,.94);
  max-width:520px;margin-bottom:28px;
  text-shadow:0 1px 12px rgba(0,0,0,.35);
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-actions .btn{min-height:52px}
.hero .btn-outline{
  background:rgba(255,255,255,.10);color:#fff;
  border:1.5px solid rgba(255,255,255,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.hero .btn-outline:hover{background:rgba(255,255,255,.20);border-color:#fff}

.hero-visual{
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.28);
  border-radius:20px;padding:28px;
  box-shadow:0 30px 60px rgba(0,0,0,.28);
  color:#fff;display:flex;flex-direction:column;justify-content:center;
  gap:18px;height:100%;
}
.hero-feature{
  display:flex;align-items:center;gap:16px;
  padding:14px;border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  transition:background .2s ease, border-color .2s ease, transform .15s ease;
}
.hero-feature:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.28);
  transform:translateY(-1px);
}
.hero-feature-icon{
  flex-shrink:0;width:48px;height:48px;border-radius:14px;
  background:rgba(121,189,143,.30);
  border:1px solid rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.hero-feature-icon svg{
  width:24px;height:24px;stroke:#fff;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.hero-feature-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.hero-feature-label{
  font-size:12px;font-weight:600;color:rgba(255,255,255,.65);
  letter-spacing:.4px;text-transform:uppercase;
}
.hero-feature-value{font-size:17px;font-weight:800;color:#fff;line-height:1.2}

@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr;gap:32px}
  .hero h1{font-size:34px}
  .hero p{font-size:15px}
  .hero-visual{padding:22px;gap:14px}
}
@media (max-width:560px){
  .hero h1{font-size:28px;line-height:1.18}
  .hero-visual{padding:18px;gap:12px}
  .hero-feature{padding:12px;gap:12px}
  .hero-feature-icon{width:42px;height:42px}
  .hero-feature-icon svg{width:20px;height:20px}
  .hero-feature-value{font-size:15px}
  .hero-actions .btn{flex:1 1 100%}
}

/* ============================================================
   ОБЩИЕ СЕКЦИИ
   ============================================================ */
#catalog{
  background:var(--catalog-bg);
  padding-top:var(--catalog-pad-top);
  padding-bottom:var(--catalog-pad-bottom);
}
#projects{
  background:var(--projects-bg);
  padding-top:var(--projects-pad-top);
  padding-bottom:var(--projects-pad-bottom);
}
#calc{
  background:var(--calc-bg);
  padding-top:var(--calc-pad-top);
  padding-bottom:var(--calc-pad-bottom);
}
#about{
  background:var(--about-bg);
  padding-top:var(--about-pad-top);
  padding-bottom:var(--about-pad-bottom);
}
#faq{
  background:var(--faq-bg);
  padding-top:var(--faq-pad-top);
  padding-bottom:var(--faq-pad-bottom);
}
#contact{
  background:var(--contact-bg);
  padding-top:var(--contact-pad-top);
  padding-bottom:var(--contact-pad-bottom);
}

.section-head{max-width:640px;margin-bottom:36px}
.section-head h2{font-size:30px;font-weight:800;letter-spacing:-.3px}
.section-head p{color:var(--gray-700);margin-top:10px}

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius);
  padding:16px 16px 22px;
  display:flex;flex-direction:column;gap:14px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(43,46,44,.08)}
.card-media{
  width:100%;aspect-ratio:4/3;border-radius:14px;
  overflow:hidden;background:var(--gray-100);
}
.card-media img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .4s ease;
}
.card:hover .card-media img{transform:scale(1.04)}
.card h3{font-size:20px;font-weight:800;padding:0 10px}
.card .price{padding:0 10px}
.card > p{padding:0 10px}
.card .opts{padding:0 10px}
.card .btn{margin:0 10px;align-self:flex-start}
.price{display:flex;align-items:baseline;gap:6px}
.price b{font-size:28px;font-weight:800;color:var(--green-dark)}
.price span{color:var(--gray-400);font-size:13px}
.card p{color:var(--gray-700);font-size:14px}
.opts{list-style:none;display:flex;flex-wrap:wrap;gap:8px;font-size:12px}
.opts li{
  background:var(--green-pale);color:var(--green-dark);
  padding:5px 10px;border-radius:999px;font-weight:600;
}
@media (max-width:860px){.cards{grid-template-columns:1fr}}

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */
.calc{
  background:var(--gray-100);
  border:1px solid var(--gray-200);
  border-radius:14px;
  padding:32px;
}
.calc-block{margin-bottom:28px}
.calc-block:last-child{margin-bottom:0}
.calc-block-title{
  font-size:16px;font-weight:800;color:var(--gray-900);
  margin-bottom:14px;padding-bottom:10px;
  border-bottom:1px solid var(--gray-200);
}
.calc-block-hint{
  font-size:13px;color:var(--gray-400);font-weight:500;margin-left:8px;
}

.calc-cards{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:14px;align-items:start;
}
@media (max-width:900px){.calc-cards{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.calc-cards{grid-template-columns:1fr}}

.calc-card{
  position:relative;display:flex;flex-direction:column;
  background:var(--white);
  border:2px solid var(--gray-200);border-radius:14px;
  overflow:hidden;
  transition:border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.calc-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(43,46,44,.08)}
.calc-card.active{border-color:var(--green);box-shadow:0 10px 24px rgba(121,189,143,.18)}
.calc-card-media{
  width:100%;aspect-ratio:4/3;background:var(--gray-100);
  overflow:hidden;position:relative;
}
.calc-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.calc-card-media .placeholder{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--green-pale),#d8e6dc);
}
.calc-card-media .placeholder svg{
  width:48px;height:48px;stroke:var(--green-dark);fill:none;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.calc-card-check{
  position:absolute;top:10px;right:10px;
  width:22px;height:22px;border-radius:6px;
  background:rgba(255,255,255,.95);
  border:1.5px solid var(--gray-400);
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease, border-color .15s ease;
  z-index:2;
}
.calc-card-check svg{
  width:14px;height:14px;stroke:#fff;fill:none;
  stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;
  opacity:0;transition:opacity .15s ease;
}
.calc-card.active .calc-card-check{background:var(--green);border-color:var(--green)}
.calc-card.active .calc-card-check svg{opacity:1}

.calc-card-body{padding:14px;display:flex;flex-direction:column;gap:10px}
.calc-card-name{font-size:16px;font-weight:800;color:var(--gray-900)}

.calc-counter{
  display:none;align-items:center;justify-content:space-between;
  gap:8px;padding:6px 6px 6px 14px;
  background:var(--green-pale);border-radius:14px;width:100%;
}
.calc-card.active .calc-counter{display:flex}
.calc-counter-label{
  font-size:13px;font-weight:700;color:var(--gray-700);
  white-space:nowrap;flex-shrink:0;
}
.qty-controls{display:flex;align-items:center;gap:2px;flex-shrink:0}
.qty-btn{
  width:30px;height:30px;border-radius:10px;
  background:var(--white);border:1px solid var(--gray-200);
  font-size:16px;font-weight:800;color:var(--gray-900);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:border-color .15s ease, color .15s ease;
  font-family:inherit;flex-shrink:0;padding:0;line-height:1;
}
.qty-btn:hover{border-color:var(--green);color:var(--green-dark)}
.qty-btn:active{transform:scale(.96)}
.qty-input{
  width:44px;text-align:center;border:none;background:transparent;
  font-size:15px;font-weight:800;color:var(--gray-900);
  font-family:inherit;padding:4px 0;margin:0;
  -moz-appearance:textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-input:focus{outline:none}

.calc-card-options{
  display:none;flex-direction:column;gap:6px;
  padding-top:12px;border-top:1px solid var(--gray-200);
}
.calc-card.active .calc-card-options{display:flex}
.calc-card-options-title{
  font-size:12px;font-weight:700;color:var(--gray-400);
  text-transform:uppercase;letter-spacing:.4px;margin-bottom:2px;
}
.calc-option{
  display:flex;align-items:center;gap:8px;
  cursor:pointer;user-select:none;
  font-size:13px;color:var(--gray-700);
  padding:4px 0;transition:color .15s ease;
}
.calc-option:hover{color:var(--green-dark)}
.calc-option input[type="checkbox"]{
  width:16px;height:16px;accent-color:var(--green);
  cursor:pointer;flex-shrink:0;margin:0;
}
.calc-option-price{
  margin-left:auto;font-size:12px;font-weight:700;
  color:var(--green-dark);white-space:nowrap;
}

.calc-common{
  display:flex;flex-direction:column;gap:14px;
  width:calc((100% - 28px) / 3);
  min-width:260px;
}
.calc-days{
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;padding:6px 6px 6px 14px;
  background:var(--white);border:1.5px solid var(--gray-200);
  border-radius:14px;width:100%;
}
@media (max-width:900px){.calc-common{width:calc((100% - 14px) / 2)}}
@media (max-width:600px){.calc-common{width:100%;min-width:0}}

.calc-extras{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:10px;margin-bottom:12px;
}
@media (max-width:860px){.calc-extras{grid-template-columns:1fr}}

.calc-extra{
  display:flex;align-items:center;gap:10px;
  padding:13px 16px;background:var(--white);
  border:1.5px solid var(--gray-200);border-radius:14px;
  cursor:pointer;user-select:none;
  font-size:14px;font-weight:600;color:var(--gray-700);
  transition:border-color .2s ease, opacity .2s ease, background .2s ease;
}
.calc-extra:hover{border-color:var(--green)}
.calc-extra input[type="checkbox"]{
  width:18px;height:18px;accent-color:var(--green);
  cursor:pointer;flex-shrink:0;margin:0;
}
.calc-extra-price{
  margin-left:auto;color:var(--green-dark);
  font-weight:700;white-space:nowrap;font-size:13px;
}
.calc-extra.disabled{opacity:.45;cursor:not-allowed;background:var(--gray-100)}
.calc-extra.disabled input{cursor:not-allowed}

.calc-package{
  padding:14px 16px;background:var(--white);
  border:1.5px solid var(--gray-200);border-radius:14px;
  cursor:pointer;display:flex;align-items:center;gap:12px;
  flex-wrap:wrap;
  transition:border-color .2s ease, background .2s ease;
  user-select:none;
}
.calc-package:hover{border-color:var(--green)}
.calc-package.active{border-color:var(--green);background:var(--green-pale)}
.calc-package input[type="checkbox"]{
  width:18px;height:18px;accent-color:var(--green);
  cursor:pointer;flex-shrink:0;margin:0;
}
.calc-package-icon{font-size:18px;flex-shrink:0}
.calc-package-text{font-size:14px;font-weight:700;color:var(--gray-900);flex-shrink:0}
.calc-package-prices{
  margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.calc-package-old{
  font-size:13px;color:var(--gray-400);
  text-decoration:line-through;font-weight:600;
}
.calc-package-badge{
  font-size:12px;font-weight:800;color:#fff;
  background:var(--green);padding:3px 8px;
  border-radius:999px;letter-spacing:.3px;
}
.calc-package-new{font-size:16px;font-weight:800;color:var(--green-dark)}

.calc-summary{
  background:var(--white);border:1px solid var(--gray-200);
  border-radius:14px;padding:24px;margin-bottom:20px;
}
.calc-summary-row{
  display:flex;justify-content:space-between;align-items:baseline;
  padding:8px 0;font-size:14px;color:var(--gray-700);
  border-bottom:1px solid var(--gray-100);
}
.calc-summary-row:last-of-type{border-bottom:none}
.calc-summary-row span:last-child{
  font-weight:700;color:var(--gray-900);white-space:nowrap;
}
.calc-summary-row.discount span:last-child{color:var(--green-dark)}
.calc-summary-total{
  display:flex;justify-content:space-between;align-items:baseline;
  padding-top:16px;margin-top:8px;
  border-top:2px solid var(--green-pale);gap:16px;
}
.calc-summary-total-label{
  font-size:14px;font-weight:700;color:var(--gray-900);
  text-transform:uppercase;letter-spacing:.4px;
}
.calc-summary-total-value{
  font-size:36px;font-weight:800;color:var(--green-dark);
  line-height:1;white-space:nowrap;
}
.calc-submit{display:flex;justify-content:center;margin-bottom:12px}
.calc-submit .btn{min-height:52px;padding:14px 42px;font-size:16px;width:100%;max-width:400px}
.calc-note{font-size:12px;color:var(--gray-400);text-align:center}

@media (max-width:640px){
  .calc{padding:22px}
  .calc-summary{padding:18px}
  .calc-summary-total-value{font-size:28px}
  .calc-package{flex-direction:column;align-items:flex-start}
  .calc-package-prices{margin-left:0}
}

/* ============================================================
   СЛАЙДЕР «НАШИ РАБОТЫ»
   ============================================================ */
#projects .section-head{text-align:center;margin-left:auto;margin-right:auto}
.slider{
  position:relative;
  max-width:1440px;
  margin:0 auto;
  padding:0 20px;
  user-select:none;
}
@media (max-width:600px){ .slider{padding:0 10px} }

.slider-stage{
  position:relative;
  height:520px;
  perspective:1400px;
  transform-style:preserve-3d;
  margin:0 auto;
}
@media (max-width:960px){ .slider-stage{height:420px} }
@media (max-width:640px){ .slider-stage{height:300px} }

.slide{
  position:absolute;top:50%;left:50%;
  width:640px;height:460px;
  border-radius:16px;overflow:hidden;
  background:var(--gray-100);
  transform-style:preserve-3d;
  transition:
    transform .9s cubic-bezier(.5,.05,.2,1),
    opacity .9s cubic-bezier(.5,.05,.2,1),
    filter .9s cubic-bezier(.5,.05,.2,1),
    box-shadow .9s cubic-bezier(.5,.05,.2,1);
  will-change:transform, opacity, filter;
  cursor:pointer;
  box-shadow:0 20px 50px rgba(43,46,44,.10);
  filter:grayscale(100%) brightness(.85);
  opacity:.45;
  transform:translate(-50%,-50%) scale(.78);
}
@media (max-width:960px){ .slide{width:520px;height:370px} }
@media (max-width:640px){ .slide{width:calc(100% - 40px);height:280px;border-radius:14px} }

.slide img{
  width:100%;height:100%;object-fit:cover;display:block;
  pointer-events:none;
  transition:transform .9s cubic-bezier(.5,.05,.2,1);
}
.slide.is-center{
  filter:grayscale(0%) brightness(1);
  opacity:1;
  transform:translate(-50%,-50%) scale(1) translateZ(0);
  box-shadow:0 30px 70px rgba(43,46,44,.22);
  z-index:10;cursor:default;
}
.slide.is-center img{transform:scale(1.02)}
.slide.is-left{transform:translate(-50%,-50%) translateX(-62%) scale(.78) rotateY(12deg);z-index:5}
.slide.is-right{transform:translate(-50%,-50%) translateX(62%) scale(.78) rotateY(-12deg);z-index:5}
.slide.is-far-left{transform:translate(-50%,-50%) translateX(-110%) scale(.62) rotateY(18deg);opacity:.25;z-index:3}
.slide.is-far-right{transform:translate(-50%,-50%) translateX(110%) scale(.62) rotateY(-18deg);opacity:.25;z-index:3}
.slide.is-hidden{opacity:0;pointer-events:none;z-index:1}

.slider-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:30;
  width:54px;height:54px;border-radius:50%;
  background:rgba(255,255,255,.95);
  border:1px solid var(--gray-200);
  color:var(--gray-900);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px rgba(43,46,44,.10);
  transition:background .25s ease, border-color .25s ease,
             transform .25s ease, color .25s ease, box-shadow .25s ease;
  padding:0;
}
.slider-arrow:hover{
  background:var(--green);border-color:var(--green);color:#fff;
  transform:translateY(-50%) scale(1.06);
  box-shadow:0 12px 28px rgba(121,189,143,.45);
}
.slider-arrow:active{transform:translateY(-50%) scale(.96)}
.slider-arrow svg{
  width:22px;height:22px;stroke:currentColor;fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  pointer-events:none;
}
.slider-arrow.prev{ left:0; }
.slider-arrow.next{ right:0; }
@media (max-width:960px){
  .slider-arrow{width:46px;height:46px}
  .slider-arrow svg{width:20px;height:20px}
}
@media (max-width:640px){
  .slider-arrow{width:42px;height:42px}
  .slider-arrow svg{width:18px;height:18px}
  .slider-arrow.prev{ left:2px; }
  .slider-arrow.next{ right:2px; }
}

.slider-dots{
  display:flex;justify-content:center;align-items:center;
  gap:8px;margin-top:28px;flex-wrap:wrap;
  max-width:640px;margin-left:auto;margin-right:auto;
}
.slider-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--gray-200);border:none;cursor:pointer;padding:0;
  transition:width .3s cubic-bezier(.2,.8,.2,1), background .25s ease;
  flex-shrink:0;
}
.slider-dot:hover{background:var(--gray-400)}
.slider-dot.is-active{width:24px;border-radius:999px;background:var(--green)}
@media (max-width:640px){
  .slider-dots{margin-top:20px;gap:6px}
  .slider-dot{width:6px;height:6px}
  .slider-dot.is-active{width:20px}
}

/* ============================================================
   ПОЧЕМУ ВЫБИРАЮТ НАС
   ============================================================ */
.about-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;
}
@media (max-width:960px){ .about-grid{grid-template-columns:1fr;gap:32px} }
.about-text{display:flex;flex-direction:column}
.about-text .section-head{margin-bottom:28px}
.about-text h2{font-size:30px;font-weight:800;letter-spacing:-.3px;margin-bottom:12px}
.about-text .section-head p{color:var(--gray-700);font-size:15px}

.about-benefits{display:flex;flex-direction:column;gap:16px}
.benefit{
  display:flex;gap:18px;padding:20px 22px;
  background:var(--white);border:1px solid var(--gray-200);
  border-radius:14px;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),
             box-shadow .3s ease, border-color .3s ease;
  cursor:default;
}
.benefit:hover{transform:translateY(-3px);border-color:var(--green);box-shadow:0 15px 30px rgba(43,46,44,.08)}

.benefit-icon{
  flex-shrink:0;width:48px;height:48px;border-radius:14px;
  background:var(--green-pale);
  display:flex;align-items:center;justify-content:center;
  transition:background .3s ease, transform .3s ease;
  overflow:hidden;position:relative;
}
.benefit:hover .benefit-icon{background:var(--green);transform:scale(1.05)}
.benefit-icon svg{
  width:26px;height:26px;display:block;
  stroke:var(--green-dark);fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  transition:stroke .3s ease;
}
.benefit:hover .benefit-icon svg{stroke:#fff}
.benefit-icon svg path,
.benefit-icon svg line,
.benefit-icon svg rect,
.benefit-icon svg circle,
.benefit-icon svg polyline,
.benefit-icon svg polygon{
  stroke-dasharray:200;stroke-dashoffset:0;
}
.benefit:hover .benefit-icon svg path,
.benefit:hover .benefit-icon svg line,
.benefit:hover .benefit-icon svg rect,
.benefit:hover .benefit-icon svg circle,
.benefit:hover .benefit-icon svg polyline,
.benefit:hover .benefit-icon svg polygon{
  animation: drawIcon 1.2s cubic-bezier(.4,.1,.3,1) forwards;
}
@keyframes drawIcon{
  0%   { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}
.benefit:hover .benefit-icon{animation: iconWiggle .8s ease-in-out}
@keyframes iconWiggle{
  0%   { transform: scale(1.05) rotate(0deg); }
  20%  { transform: scale(1.05) rotate(-6deg); }
  40%  { transform: scale(1.05) rotate(5deg); }
  60%  { transform: scale(1.05) rotate(-3deg); }
  80%  { transform: scale(1.05) rotate(2deg); }
  100% { transform: scale(1.05) rotate(0deg); }
}
.benefit-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.benefit h4{font-size:15px;font-weight:700;margin:0;transition:color .3s ease}
.benefit:hover h4{color:var(--green-dark)}
.benefit p{font-size:13px;color:var(--gray-700);line-height:1.5;margin:0}

.about-photo{
  position:relative;width:100%;aspect-ratio:4/5;
  border-radius:20px;overflow:hidden;
  background:var(--gray-100);
  box-shadow:0 30px 60px rgba(43,46,44,.14);
  transition:box-shadow .4s ease;
}
.about-photo img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .8s cubic-bezier(.2,.8,.2,1);
}
.about-photo:hover img{transform:scale(1.03)}
.about-photo:hover{box-shadow:0 40px 80px rgba(43,46,44,.20)}
.about-photo .placeholder{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;color:var(--gray-400);font-size:13px;font-weight:600;
  background:linear-gradient(135deg,var(--green-pale) 0%,#d8e6dc 100%);
}
.about-photo .placeholder svg{
  width:56px;height:56px;stroke:var(--green-dark);fill:none;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
@media (max-width:960px){
  .about-photo{aspect-ratio:16/10;max-width:640px;margin:0 auto;order:-1}
  .about-benefits{flex-direction:row;flex-wrap:wrap}
  .benefit{flex:1 1 calc(50% - 8px);min-width:240px}
}
@media (max-width:560px){
  .about-benefits{flex-direction:column}
  .benefit{flex:1 1 100%}
  .about-photo{aspect-ratio:4/3;border-radius:16px}
  .about-text h2{font-size:24px}
  .benefit-icon{width:42px;height:42px;border-radius:12px}
  .benefit-icon svg{width:22px;height:22px}
}

/* ============================================================
   FAQ — версия 1 (grid, min-content)
   ============================================================ */
.faq{
  max-width:1000px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  align-items:start;
  grid-auto-rows:min-content;
}
@media (max-width:860px){ .faq{grid-template-columns:1fr} }

.faq-item{
  background:var(--white);
  border:1.5px solid var(--gray-200);
  border-radius:14px;
  overflow:hidden;
  transition:
    border-color .4s cubic-bezier(.2,.8,.2,1),
    box-shadow .4s cubic-bezier(.2,.8,.2,1);
}
.faq-item:hover{
  border-color:var(--green);
  box-shadow:0 10px 24px rgba(121,189,143,.10);
}
.faq-item.is-open{
  border-color:var(--green);
  box-shadow:0 15px 35px rgba(121,189,143,.15);
}

.faq-question{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  padding:20px 24px;
  background:transparent;
  border:none;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  color:var(--gray-900);
  text-align:left;
  cursor:pointer;
  transition:color .3s ease;
}
.faq-item:hover .faq-question{color:var(--green-dark)}
.faq-item.is-open .faq-question{color:var(--green-dark)}

.faq-toggle{
  flex-shrink:0;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--green-pale);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  transition:
    background .35s cubic-bezier(.2,.8,.2,1),
    transform .5s cubic-bezier(.5,.05,.2,1);
}
.faq-item:hover .faq-toggle{background:var(--green)}
.faq-item.is-open .faq-toggle{
  background:var(--green);
  transform:rotate(180deg);
}
.faq-toggle::before,
.faq-toggle::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  background:var(--green-dark);
  border-radius:2px;
  transition:
    background .35s ease,
    transform .5s cubic-bezier(.5,.05,.2,1);
}
.faq-toggle::before{width:12px;height:2px;transform:translate(-50%,-50%)}
.faq-toggle::after{width:2px;height:12px;transform:translate(-50%,-50%)}
.faq-item:hover .faq-toggle::before,
.faq-item:hover .faq-toggle::after{background:#fff}
.faq-item.is-open .faq-toggle::before{
  background:#fff;
  transform:translate(-50%,-50%) rotate(45deg);
}
.faq-item.is-open .faq-toggle::after{
  background:#fff;
  transform:translate(-50%,-50%) rotate(45deg);
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-8px);
  padding:0 24px;
  transition:
    max-height .55s cubic-bezier(.4,.05,.2,1),
    opacity .4s cubic-bezier(.4,.05,.2,1) .05s,
    transform .4s cubic-bezier(.4,.05,.2,1) .05s,
    padding .55s cubic-bezier(.4,.05,.2,1);
}
.faq-item.is-open .faq-answer{
  max-height:600px;
  opacity:1;
  transform:translateY(0);
  padding:0 24px 22px;
}
.faq-answer p{
  font-size:14px;
  color:var(--gray-700);
  line-height:1.65;
}
.faq-answer p + p{margin-top:10px}
.faq-answer strong{color:var(--gray-900);font-weight:700}
.faq-answer ul{
  margin:10px 0 0 18px;
  font-size:14px;
  color:var(--gray-700);
}
.faq-answer li{margin-bottom:4px}

@media (max-width:560px){
  .faq-question{padding:16px 18px;font-size:15px;gap:12px}
  .faq-toggle{width:26px;height:26px}
  .faq-toggle::before{width:10px;height:2px}
  .faq-toggle::after{width:2px;height:10px}
  .faq-answer{padding:0 18px}
  .faq-item.is-open .faq-answer{padding:0 18px 18px}
}

/* ============================================================
   КОНТАКТЫ + КАРТА (плавающая карточка)
   ============================================================ */
.map-section{
  position:relative;width:100%;
  min-height:560px;
  border-radius:20px;overflow:hidden;
  box-shadow:0 30px 60px rgba(43,46,44,.12);
  background:#eee;
}
@media (max-width:960px){ .map-section{min-height:auto;display:flex;flex-direction:column} }

.map-section iframe{
  display:block;width:100%;height:560px;border:0;
}
@media (max-width:960px){
  .map-section iframe{height:400px;border-radius:16px 16px 0 0;order:1}
}
@media (max-width:560px){
  .map-section iframe{height:320px}
}

.contact-card{
  position:absolute;top:40px;left:40px;z-index:5;
  width:380px;max-width:calc(100% - 80px);
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.65);
  border-radius:20px;padding:28px;
  box-shadow:0 30px 60px rgba(20,28,22,.18);
  transition:transform .4s cubic-bezier(.2,.8,.2,1),
             box-shadow .4s ease, background .4s ease;
}
.contact-card:hover{
  transform:translateY(-3px);
  box-shadow:0 40px 80px rgba(20,28,22,.25);
  background:rgba(255,255,255,.85);
}
.contact-card-title{font-size:20px;font-weight:800;color:var(--gray-900);margin-bottom:6px}
.contact-card-subtitle{font-size:13px;color:var(--gray-700);margin-bottom:20px;line-height:1.5}

.contact-item{
  display:flex;align-items:center;gap:14px;
  padding:12px 0;
  border-bottom:1px solid rgba(43,46,44,.08);
  text-decoration:none;color:inherit;
  transition:transform .25s cubic-bezier(.2,.8,.2,1), color .25s ease;
}
.contact-item:last-of-type{border-bottom:none}
.contact-item:hover{transform:translateX(4px);color:var(--green-dark)}
.contact-icon{
  flex-shrink:0;width:42px;height:42px;border-radius:12px;
  background:var(--green-pale);
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease, transform .25s ease;
}
.contact-icon svg{
  width:20px;height:20px;stroke:var(--green-dark);fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  transition:stroke .25s ease;
}
.contact-item:hover .contact-icon{background:var(--green);transform:scale(1.05)}
.contact-item:hover .contact-icon svg{stroke:#fff}
.contact-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.contact-label{
  font-size:11px;font-weight:600;color:var(--gray-400);
  text-transform:uppercase;letter-spacing:.4px;
}
.contact-value{
  font-size:15px;font-weight:700;color:var(--gray-900);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transition:color .25s ease;
}
.contact-item:hover .contact-value{color:var(--green-dark)}
.contact-card .btn{
  width:100%;justify-content:center;margin-top:18px;min-height:48px;
}

@media (max-width:960px){
  .contact-card{
    position:static;width:100%;max-width:100%;margin:0;
    background:var(--white);
    backdrop-filter:none;-webkit-backdrop-filter:none;
    border:1px solid var(--gray-200);
    border-radius:0;box-shadow:none;order:2;
  }
  .contact-card:hover{transform:none;box-shadow:none;background:var(--white)}
}
@media (max-width:560px){
  .contact-card{padding:22px}
  .contact-card-title{font-size:18px}
  .contact-icon{width:38px;height:38px;border-radius:10px}
  .contact-icon svg{width:18px;height:18px}
  .contact-value{font-size:14px}
}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  background:var(--gray-900);
  color:var(--gray-400);
  padding:48px 0 24px;
  font-size:13px;
  padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));
}
.foot-grid{
  display:grid;grid-template-columns:1.2fr 1fr 1fr;
  gap:40px;margin-bottom:40px;
}
@media (max-width:860px){
  .foot-grid{grid-template-columns:1fr;gap:32px;text-align:center}
}
.foot-brand-col{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
@media (max-width:860px){ .foot-brand-col{align-items:center} }
.foot-brand{
  display:inline-flex;align-items:center;
  text-decoration:none;color:var(--white);
  transition:opacity .25s ease;
}
.foot-brand:hover{opacity:.85}
.foot-brand .brand-svg{width:auto;height:36px;animation:none}
.foot-brand .brand-svg .square{animation:none;stroke-dashoffset:0}
.foot-brand .brand-svg .text{animation:none;opacity:1}
.foot-brand-desc{font-size:13px;color:var(--gray-400);line-height:1.55;max-width:320px}
@media (max-width:860px){ .foot-brand-desc{max-width:100%} }

.foot-col-title{
  font-size:12px;font-weight:700;color:var(--white);
  text-transform:uppercase;letter-spacing:.5px;margin-bottom:16px;
}
.foot-links{list-style:none;display:flex;flex-direction:column;gap:10px}
.foot-links a{
  color:var(--gray-400);font-size:13.5px;text-decoration:none;
  transition:color .25s ease, transform .25s ease;
  display:inline-block;line-height:1.4;
}
.foot-links a:hover{color:var(--green);transform:translateX(3px)}
@media (max-width:860px){ .foot-links a:hover{transform:none} }

.foot-contacts{display:flex;flex-direction:column;gap:10px}
.foot-contacts a{
  color:var(--white);font-weight:600;font-size:14px;
  text-decoration:none;transition:color .25s ease;
}
.foot-contacts a:hover{color:var(--green)}
.foot-contacts .muted{
  color:var(--gray-400);font-size:12px;margin-top:6px;line-height:1.55;
}

.foot-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:24px;
  display:flex;justify-content:space-between;flex-wrap:wrap;
  gap:14px;align-items:center;
  font-size:12px;color:var(--gray-400);
}
.foot-bottom-left,
.foot-bottom-right{
  display:flex;flex-wrap:wrap;gap:16px;align-items:center;
}
.foot-bottom a{
  color:var(--gray-400);text-decoration:none;
  transition:color .25s ease;
}
.foot-bottom a:hover{color:var(--green)}
.foot-bottom .divider{
  width:3px;height:3px;border-radius:50%;
  background:var(--gray-400);opacity:.5;
}
@media (max-width:600px){
  footer{padding:40px 0 20px}
  .foot-grid{gap:28px;margin-bottom:28px}
  .foot-bottom{flex-direction:column;align-items:center;text-align:center;gap:12px}
  .foot-bottom-left,
  .foot-bottom-right{justify-content:center;gap:12px}
}

/* ============================================================
   ПЛАВАЮЩИЕ ВИДЖЕТЫ (FAB) — всегда над футером
   ============================================================ */
.fab-stack{
  position:fixed;
  right:20px;
  bottom:calc(20px + 70px); /* подъём на высоту футера + отступ */
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:90;
}
.fab{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  position:relative;
  transition:transform .2s ease, box-shadow .25s ease, background .25s ease;
  overflow:hidden;
}
.fab:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 15px 30px rgba(0,0,0,.25);
}
.fab svg{
  width:26px;
  height:26px;
  display:block;
  position:relative;
  z-index:2;
}

/* Max — зелёный в палитре сайта (замените цвет/иконку на фирменные Max, когда придёт лого) */
.fab-max{
  background:#fff;
  padding:6px;
}
.fab-max:hover{
  box-shadow:0 15px 30px rgba(80,80,200,.35);
}
.fab-max img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
  position:relative;
  z-index:2;
}
.fab-max::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:linear-gradient(135deg,#5B7CFA,#8B5CF6);
  opacity:.35;
  z-index:1;
  animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse{
  0%   { transform:scale(1); opacity:.45; }
  80%  { transform:scale(1.6); opacity:0; }
  100% { transform:scale(1.6); opacity:0; }
}

/* Телефон — тёмно-серый (gray-900) */
.fab-phone{
  background:var(--gray-900);
}
.fab-phone:hover{
  background:#1a1c1a;
  box-shadow:0 15px 30px rgba(43,46,44,.5);
}
.fab-phone svg{
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media (max-width:600px){
  .fab-stack{
    right:14px;
    bottom:calc(14px + 70px);
    gap:10px;
  }
  .fab{width:50px;height:50px}
  .fab svg{width:22px;height:22px}
}

/* ============================================================
   КНОПКА «НАВЕРХ» — всегда над футером
   ============================================================ */
.to-top{
  position:fixed;
  left:20px;
  bottom:calc(20px + 70px);
  z-index:90;
  width:46px;height:46px;border-radius:50%;
  background:var(--white);border:1px solid var(--gray-200);
  color:var(--gray-900);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  opacity:0;pointer-events:none;transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease,
             border-color .2s ease, background .2s ease;
}
.to-top:hover{border-color:var(--green);color:var(--green-dark);background:var(--green-pale)}
.to-top.show{opacity:1;pointer-events:auto;transform:translateY(0)}
.to-top svg{
  width:20px;height:20px;stroke:currentColor;fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
@media (max-width:600px){
  .to-top{
    left:14px;
    bottom:calc(14px + 70px);
    width:42px;height:42px;
  }
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal-overlay{
  position:fixed;inset:0;
  background:rgba(20,28,22,.55);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;
  padding:20px;z-index:1000;
  opacity:0;pointer-events:none;
  transition:opacity .25s ease;
  overflow-y:auto;
}
.modal-overlay.open{opacity:1;pointer-events:auto}
.modal{
  background:var(--white);border-radius:14px;
  width:100%;max-width:560px;
  max-height:calc(100vh - 40px);
  overflow-y:auto;padding:32px;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  position:relative;
  transform:translateY(10px) scale(.98);
  transition:transform .25s ease;
  margin:auto;
}
.modal-overlay.open .modal{transform:translateY(0) scale(1)}
.modal-close{
  position:absolute;top:14px;right:14px;
  width:36px;height:36px;border-radius:10px;
  background:transparent;border:1px solid var(--gray-200);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:var(--gray-700);font-size:18px;font-family:inherit;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
  padding:0;line-height:1;
}
.modal-close:hover{border-color:var(--danger);color:var(--danger);background:#fdf3f3}
.modal-title{font-size:22px;font-weight:800;margin-bottom:6px;padding-right:40px}
.modal-subtitle{font-size:14px;color:var(--gray-700);margin-bottom:22px}

.order-summary{
  background:var(--gray-100);border:1px solid var(--gray-200);
  border-radius:14px;padding:16px 18px;margin-bottom:22px;font-size:14px;
}
.order-summary-title{
  font-size:12px;font-weight:700;color:var(--gray-400);
  text-transform:uppercase;letter-spacing:.4px;margin-bottom:10px;
}
.order-summary-list{list-style:none;display:flex;flex-direction:column;gap:6px}
.order-summary-list li{
  display:flex;justify-content:space-between;gap:12px;color:var(--gray-700);
}
.order-summary-list li b{color:var(--gray-900);font-weight:700;white-space:nowrap}
.order-summary-total{
  display:flex;justify-content:space-between;
  padding-top:12px;margin-top:10px;
  border-top:1px solid var(--gray-200);
  font-weight:800;font-size:16px;
}
.order-summary-total span:last-child{color:var(--green-dark)}

.modal .form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.modal .form-field label{font-size:12px;font-weight:700;color:var(--gray-700)}
.modal .form-field input,
.modal .form-field textarea{
  border:1.5px solid var(--gray-200);border-radius:12px;
  padding:10px 13px;font-family:inherit;font-size:13px;
  width:100%;background:var(--white);color:var(--gray-900);
  transition:border-color .15s ease, outline .15s ease;
  line-height:1.3;
}
.modal .form-field textarea{min-height:80px;resize:vertical}
.modal .form-field input:focus,
.modal .form-field textarea:focus{outline:2px solid var(--green);border-color:var(--green)}
.modal .form-field input.error,
.modal .form-field textarea.error{border-color:var(--danger);outline-color:var(--danger)}
.modal .form-field .error-msg{font-size:12px;color:var(--danger);display:none}
.modal .form-field.has-error .error-msg{display:block}

.modal .contact-field{display:none !important;margin-bottom:10px}
.modal .contact-field.visible{display:block !important}
.modal .contact-field .contact-field-hint{font-size:11px;color:var(--gray-400);margin-top:4px}

.contact-methods{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.contact-method{
  width:44px;height:44px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  padding:0;background:transparent;
  border:1.5px solid transparent;border-radius:12px;
  cursor:pointer;user-select:none;
  transition:background .15s ease, border-color .15s ease;
  font-family:inherit;outline:none;
  -webkit-tap-highlight-color:transparent;
}
.contact-method:hover{background:var(--gray-100)}
.contact-method.active{background:var(--green-pale);border-color:var(--green)}
.contact-method .icon{
  width:28px;height:28px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;pointer-events:none;
}
.contact-method .icon svg,
.contact-method .icon img{
  width:28px;height:28px;display:block;
  object-fit:contain;pointer-events:none;
}
.contact-method .icon svg.stroke-icon{
  stroke:var(--gray-700);fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  transition:stroke .15s ease;
}
.contact-method.active .icon svg.stroke-icon{stroke:var(--green-dark)}
@media (max-width:520px){
  .contact-methods{gap:6px}
  .contact-method{width:40px;height:40px;border-radius:10px}
  .contact-method .icon,
  .contact-method .icon svg,
  .contact-method .icon img{width:24px;height:24px}
}

.form-checks{
  display:flex;flex-direction:column;gap:12px;
  margin-bottom:22px;padding-top:6px;
}
.form-check{
  display:flex;align-items:flex-start;gap:10px;
  cursor:pointer;user-select:none;
  font-size:13px;color:var(--gray-700);line-height:1.45;
}
.form-check input[type="checkbox"]{
  width:18px;height:18px;accent-color:var(--green);
  cursor:pointer;flex-shrink:0;margin:0;margin-top:1px;
}
.form-check a{color:var(--green-dark);text-decoration:underline;text-underline-offset:2px}
.form-check a:hover{color:var(--green)}
.form-check.has-error{color:var(--danger)}
.form-check.has-error input{outline:2px solid var(--danger);outline-offset:1px;border-radius:4px}
.form-submit{display:flex;justify-content:center}
.form-submit .btn{width:100%}
.form-note{font-size:11px;color:var(--gray-400);text-align:center;margin-top:10px}
@media (max-width:600px){
  .modal{padding:22px}
  .modal-title{font-size:20px}
}

/* ============================================================
   СТРАНИЦА «СПАСИБО»
   ============================================================ */
.thanks-page{
  min-height:60vh;display:flex;align-items:center;justify-content:center;
  background:var(--thanks-bg);
  padding-top:var(--thanks-pad-top);
  padding-bottom:var(--thanks-pad-bottom);
  padding-left:20px;padding-right:20px;
}
@media (max-width:600px){ .thanks-page{padding-left:10px;padding-right:10px} }

.thanks-card{
  max-width:640px;width:100%;text-align:center;
  background:var(--white);border:1px solid var(--gray-200);
  border-radius:24px;padding:56px 40px;
  box-shadow:0 30px 60px rgba(43,46,44,.08);
}
@media (max-width:600px){ .thanks-card{padding:36px 22px;border-radius:18px} }

.thanks-icon{
  width:96px;height:96px;border-radius:50%;
  background:var(--green-pale);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 28px;position:relative;
  animation: thanksPop .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes thanksPop{
  0%   { transform:scale(.6); opacity:0; }
  60%  { transform:scale(1.08); }
  100% { transform:scale(1); opacity:1; }
}
.thanks-icon svg{
  width:48px;height:48px;stroke:var(--green-dark);stroke-width:2.5;
  fill:none;stroke-linecap:round;stroke-linejoin:round;
}
.thanks-icon svg path{
  stroke-dasharray:40;stroke-dashoffset:40;
  animation: drawCheck .8s cubic-bezier(.4,.05,.2,1) .3s forwards;
}
@keyframes drawCheck{ to { stroke-dashoffset:0; } }
@media (max-width:600px){
  .thanks-icon{width:76px;height:76px;margin-bottom:20px}
  .thanks-icon svg{width:38px;height:38px}
}

.thanks-title{font-size:30px;font-weight:800;letter-spacing:-.4px;margin-bottom:14px;line-height:1.15}
@media (max-width:600px){ .thanks-title{font-size:22px} }
.thanks-text{font-size:15px;color:var(--gray-700);line-height:1.6;max-width:460px;margin:0 auto 28px}
.thanks-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
@media (max-width:480px){
  .thanks-actions{flex-direction:column}
  .thanks-actions .btn{width:100%;justify-content:center}
}
.thanks-contacts{
  margin-top:32px;padding-top:24px;
  border-top:1px solid var(--gray-200);
  font-size:13px;color:var(--gray-400);
}
.thanks-contacts a{color:var(--green-dark);font-weight:600;text-decoration:none;transition:color .2s ease}
.thanks-contacts a:hover{color:var(--green)}

/* ============================================================
   СТРАНИЦА 404
   ============================================================ */
.page-404{
  min-height:70vh;display:flex;align-items:center;justify-content:center;
  background:var(--error-bg);
  padding-top:var(--error-pad-top);
  padding-bottom:var(--error-pad-bottom);
  padding-left:20px;padding-right:20px;
}
@media (max-width:600px){ .page-404{padding-left:10px;padding-right:10px} }

.error-card{max-width:720px;width:100%;text-align:center}
.error-code{
  font-size:clamp(80px, 16vw, 180px);
  font-weight:800;letter-spacing:-6px;line-height:1;
  color:var(--green);
  background:linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:16px;
  animation: float404 4s ease-in-out infinite;
}
@keyframes float404{
  0%, 100% { transform:translateY(0); }
  50%      { transform:translateY(-8px); }
}
.error-title{font-size:26px;font-weight:800;letter-spacing:-.3px;margin-bottom:12px}
@media (max-width:600px){ .error-title{font-size:20px} }
.error-text{font-size:15px;color:var(--gray-700);line-height:1.6;max-width:520px;margin:0 auto 28px}
.error-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:44px}
@media (max-width:480px){
  .error-actions{flex-direction:column}
  .error-actions .btn{width:100%;justify-content:center}
}
.error-links{
  display:flex;gap:10px;flex-wrap:wrap;justify-content:center;
  padding-top:32px;border-top:1px solid var(--gray-200);
}
.error-links a{
  padding:10px 18px;border-radius:999px;background:var(--gray-100);
  color:var(--gray-900);font-size:13.5px;font-weight:600;
  text-decoration:none;
  transition:background .25s ease, color .25s ease, transform .25s ease;
}
.error-links a:hover{background:var(--green);color:#fff;transform:translateY(-1px)}

/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   ============================================================ */
.legal-page{
  background:var(--legal-bg);
  padding-top:var(--legal-pad-top);
  padding-bottom:var(--legal-pad-bottom);
}

.legal-back{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:999px;
  background:var(--green-pale);color:var(--green-dark);
  font-size:13px;font-weight:700;text-decoration:none;
  margin-bottom:28px;
  transition:background .25s ease, transform .25s ease;
}
.legal-back:hover{background:var(--green);color:#fff;transform:translateX(-3px)}
.legal-back svg{
  width:16px;height:16px;stroke:currentColor;fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}

.legal-page h1{
  font-size:clamp(26px, 3vw, 38px);
  font-weight:800;letter-spacing:-.4px;margin-bottom:12px;line-height:1.15;
}
.legal-meta{
  font-size:13px;color:var(--gray-400);
  margin-bottom:32px;padding-bottom:20px;
  border-bottom:1px solid var(--gray-200);
}
.legal-content{
  max-width:820px;font-size:15px;line-height:1.7;color:var(--gray-700);
}
.legal-content h2{
  font-size:19px;font-weight:800;color:var(--gray-900);
  margin:36px 0 14px;letter-spacing:-.2px;
}
.legal-content h2:first-of-type{margin-top:0}
.legal-content h3{font-size:16px;font-weight:700;color:var(--gray-900);margin:24px 0 10px}
.legal-content p{margin-bottom:14px}
.legal-content ul,
.legal-content ol{margin:0 0 16px 22px}
.legal-content li{margin-bottom:6px}
.legal-content strong{color:var(--gray-900);font-weight:700}
.legal-content a{
  color:var(--green-dark);text-decoration:underline;
  text-underline-offset:2px;transition:color .2s ease;
}
.legal-content a:hover{color:var(--green)}
.legal-content table{
  width:100%;border-collapse:collapse;margin:16px 0 20px;font-size:14px;
}
.legal-content th,
.legal-content td{
  border:1px solid var(--gray-200);padding:10px 14px;
  text-align:left;vertical-align:top;
}
.legal-content th{background:var(--gray-100);font-weight:700;color:var(--gray-900)}
.legal-content .small{font-size:13px;color:var(--gray-400)}

/* ============================================================
   ПРИЛИПАЮЩИЙ ФУТЕР — всегда виден внизу, никогда не исчезает
   ============================================================ */
.sticky-footer-wrap{
  position:relative;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

.sticky-footer-wrap .sticky-footer-fixed{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  width:100%;
  z-index:40;
  box-shadow:0 -10px 40px rgba(0,0,0,.08);
  /* Никаких transform / opacity — футер всегда виден */
}

/* Резерв создаёт высоту, чтобы контент не «упирался» под футер */
.sticky-footer-reserve{
  display:block;
  height:0;
}

/* На мобильном sticky отключаем — футер в обычном потоке */
@media (max-width:600px){
  .sticky-footer-wrap .sticky-footer-fixed{
    position:static;
    box-shadow:none;
  }
  .sticky-footer-wrap,
  .sticky-footer-reserve{
    height:auto !important;
  }
}

/* ============================================================
   БАННЕР COOKIE
   ============================================================ */
.cookie-banner{
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  z-index:200;
  max-width:880px;
  margin:0 auto;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--gray-200);
  border-radius:16px;
  padding:20px 24px;
  display:flex;
  align-items:center;
  gap:20px;
  box-shadow:0 30px 60px rgba(43,46,44,.18);
  transform:translateY(140%);
  opacity:0;
  transition:transform .5s cubic-bezier(.2,.8,.2,1),
             opacity .5s ease;
}
.cookie-banner.show{
  transform:translateY(0);
  opacity:1;
}

.cookie-banner-text{
  flex:1;
  font-size:13px;
  line-height:1.6;
  color:var(--gray-700);
}
.cookie-banner-text a{
  color:var(--green-dark);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
}
.cookie-banner-text a:hover{color:var(--green)}

.cookie-banner-actions{
  flex-shrink:0;
  display:flex;
  gap:10px;
}
.cookie-banner .btn{
  padding:12px 24px;
  font-size:14px;
  min-height:44px;
}

/* Поднимаем баннер над футером когда футер sticky */
.cookie-banner{
  bottom:calc(20px + 70px);
}
@media (max-width:720px){
  .cookie-banner{
    left:14px;
    right:14px;
    bottom:calc(14px + 70px);
    flex-direction:column;
    align-items:stretch;
    padding:18px;
    gap:14px;
  }
  .cookie-banner-actions{
    justify-content:flex-end;
  }
  .cookie-banner .btn{
    padding:11px 18px;
    font-size:13px;
  }
}

/* ============================================================
   ДОСТУПНОСТЬ
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .brand-svg .square,
  .brand-svg .text,
  .brand:hover .brand-svg .square,
  .phone:hover .phone-icon,
  .burger span,
  .slide,
  .thanks-icon,
  .error-code,
  .benefit-icon svg path,
  .benefit-icon svg line,
  .benefit-icon svg rect,
  .benefit-icon svg circle,
  .benefit-icon svg polyline,
  .benefit-icon svg polygon,
  .fab-max::before{
    animation: none !important;
    transition: none !important;
  }
  .brand-svg .square{stroke-dashoffset: 0 !important; opacity: 1 !important}
  .brand-svg .text{opacity: 1 !important; transform: none !important}
  .brand:hover, .btn:hover, .phone:hover{transform: none !important}
  .sticky-footer-wrap .sticky-footer-fixed{
    position:static;
    transition:none;
  }
  .sticky-footer-wrap,
  .sticky-footer-reserve{height:auto !important}
  .cookie-banner{transition:none}
}