/* ==========================================================================
   QARYZ JOQ — лендинг (композиция 1:1 с эталонным макетом)
   ========================================================================== */

:root {
  --accent: #058240;          /* фирменный зелёный */
  --accent-dark: #046c35;
  --accent-soft: #e8f3ec;     /* подложка иконок и чипов */
  --yellow: #ffd400;
  --ink: #0d130f;
  --body: #75817a;
  --line: #e5eae6;
  --bg: #f4f7f4;
  --card: #ffffff;
  --dark: #062a18;            /* глубокий зелёно-чёрный */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;          /* clip, а не hidden: иначе ломается position: sticky */
}

html { overflow-x: clip; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- типографика ------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }

.h-display { font-size: clamp(44px, 5.7vw, 68px); }
.h-section { font-size: clamp(35px, 3.7vw, 51px); }
.h-card { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }

p { margin: 0; line-height: 1.7; color: var(--body); font-size: 14.3px; }
.lead { font-size: 15.4px; }

.section { padding: 70px 0; position: relative; }

/* --- кнопки ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15.4px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #041d10; }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(5, 130, 64, .85); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-ghost { background: transparent; color: var(--body); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #d7ded9; }

.btn-sm { height: 38px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* --- декор ------------------------------------------------------------- */

.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; }
.blob { position: absolute; pointer-events: none; z-index: 0; }

/* декоративные фигуры по краям — герой и секции ниже */
.deco-shape { display: block; opacity: .5; }

.hero .m-zigzag { top: 130px; right: -40px; width: 210px; }
.hero .m-asterisk { left: -20px; bottom: 40px; width: 230px; opacity: .45; }

#how .m-spiral { left: calc(50% - 50vw - 50px); top: -50px; width: 270px; opacity: .3; }
#terms .m-burst { right: -130px; top: 20px; width: 330px; opacity: .28; }

#calc .m-zigzag2 { right: -30px; top: 30px; width: 180px; opacity: .45; }
#calc .m-spiral2 { left: calc(50% - 50vw - 60px); bottom: 30px; width: 250px; opacity: .28; }

/* --- шапка ------------------------------------------------------------- */

/* высота шапки постоянна — иначе при скролле страница дёргается */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  /* лёгкая дымка: плотнее сверху, к низу сходит на нет */
  background: linear-gradient(
    to bottom,
    rgba(244, 247, 244, .92) 0%,
    rgba(244, 247, 244, .62) 45%,
    rgba(244, 247, 244, .22) 78%,
    rgba(244, 247, 244, 0) 100%
  );
  transition: background-color .2s ease, box-shadow .2s ease;
}

.nav { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav-logo { justify-self: start; }
.nav-logo img { height: 30px; width: auto; }

.nav-panel { display: contents; }
.nav-panel-head, .nav-panel-foot { display: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
  padding: 5px;
  list-style: none;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
  border-radius: 999px;
}
.nav-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  border-radius: 999px;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(13, 19, 15, .07); }

.nav-side { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.nav-burger span { display: block; width: 16px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-burger span::before, .nav-burger span::after {
  content: ''; display: block; width: 16px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s ease;
}
.nav-burger span::before { transform: translateY(-5px); }
.nav-burger span::after { transform: translateY(3px); }
.nav-burger.is-open span { background: transparent; }
.nav-burger.is-open span::before { transform: translateY(1px) rotate(45deg); }
.nav-burger.is-open span::after { transform: translateY(-1px) rotate(-45deg); }
.nav-side .link { font-size: 13px; font-weight: 600; color: var(--body); }
.nav-side .link:hover { color: var(--ink); }

/* --- герой ------------------------------------------------------------- */

.hero { position: relative; padding: 104px 0 110px; text-align: center; }

.hero .blob-main {
  top: 6px;
  left: 50%;
  width: min(940px, 118vw);
  transform: translate(calc(-50% - 20px), 0);
}

.hero-inner { position: relative; z-index: 2; }

/* акцент в заголовке */
.hero h1 .hl {
  display: inline-block;
  font-style: normal;
  color: var(--accent);
  animation: hl-pulse 2.6s ease-in-out 1.1s infinite;
  will-change: transform;
}
@keyframes hl-pulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(5, 130, 64, 0); }
  50%      { transform: scale(1.035); text-shadow: 0 6px 26px rgba(5, 130, 64, .28); }
}

/* мягкое появление героя */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blob-in {
  from { opacity: 0; transform: translate(calc(-50% - 20px), 14px) scale(.94); }
  to   { opacity: 1; }
}

.hero h1, .hero .btn { animation: rise .8s cubic-bezier(.22, .8, .3, 1) both; }
.hero h1 { animation-delay: .05s; }
.hero .btn { animation-delay: .22s; }
.hero .blob-main { animation: blob-in 1.1s cubic-bezier(.22, .8, .3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .btn, .hero .blob-main, .calc-pane, .hero h1 .hl,
  .scroll-down span, .rev { animation: none; }
}
.hero h1 { max-width: 13ch; margin: 0 auto 34px; }

.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px auto 32px;
}
.hero-sub .lead { font-size: 17.6px; }

.hero-socials { display: flex; gap: 10px; }
.hero-socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .18s ease;
}
.hero-socials a:hover { transform: translateY(-2px); }
.hero-socials img { width: 20px; height: 20px; }

/* блок «ВАЖНО» под кнопкой */
.note { margin-top: 22px; font-size: 15.4px; line-height: 1.75; }
.note b {
  display: block;
  margin-bottom: 6px;
  font-size: 15.4px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--accent);
}
.note p { font-size: 15.4px; font-weight: 600; color: #38443d; }
.note-left { margin-top: 18px; max-width: 40ch; }

.scroll-down {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .15s ease;
}
.scroll-down:hover { color: var(--accent); }
.scroll-down span {
  display: block;
  width: 34px; height: 34px;
  border-radius: 50%;
  /* стрелка нарисована в svg — так она стоит ровно по центру круга */
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='4' x2='12' y2='19'/%3E%3Cpolyline points='6 13 12 19 18 13'/%3E%3C/svg%3E") center / 15px no-repeat;
  font-size: 0;
  box-shadow: 0 8px 18px -8px rgba(5, 130, 64, .8);
  animation: hop 1.5s cubic-bezier(.28, .84, .42, 1) infinite;
}
@keyframes hop {
  0%, 22%, 55%, 100% { transform: translateY(0); }
  35%                { transform: translateY(9px); }
  45%                { transform: translateY(0); }
  50%                { transform: translateY(4px); }
}

/* отзывы — парящие сообщения */

.reviews { position: relative; padding-top: 20px; }
.reviews .m-spiral3 { display: none; }

.reviews-flow {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}

.rev {
  max-width: 490px;
  padding: 22px 24px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 45px -32px rgba(13, 19, 15, .4);
  animation: drift 7s ease-in-out infinite;
  will-change: transform;
}
.rev:nth-child(odd) { justify-self: start; border-bottom-left-radius: 6px; }
.rev:nth-child(even) { justify-self: end; border-bottom-right-radius: 6px; }

.rev:nth-child(2) { animation-duration: 8.5s; animation-delay: -1.6s; }
.rev:nth-child(3) { animation-duration: 6.4s; animation-delay: -3.2s; }
.rev:nth-child(4) { animation-duration: 9s;   animation-delay: -0.8s; }
.rev:nth-child(5) { animation-duration: 7.6s; animation-delay: -4.4s; }

.rev-wide { max-width: 560px; }

.rev p { font-size: 15px; color: #38443d; line-height: 1.65; }

.rev footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rev-ava {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.rev-name { font-size: 13px; font-weight: 700; }
.rev-time { font-size: 12px; color: var(--body); margin-left: auto; }
.rev-src { width: 16px; height: 16px; margin-left: 10px; opacity: .9; }

/* галочки «доставлено» у сообщений из WhatsApp */
.rev-wa footer::after {
  content: '';
  order: 10;
  width: 15px; height: 15px;
  margin-left: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334b7f1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 13 6.5 17.5 14 8'/%3E%3Cpolyline points='9 13 13.5 17.5 21 8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* лёгкий оттенок мессенджера */
.rev-wa { background: linear-gradient(180deg, #f2fbf5, #ffffff 60%); }

.reviews .dots { display: none; }   /* точки нужны только в мобильном слайдере */

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

/* тезисные секции */
.pitch { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.pitch-text { display: grid; gap: 14px; }
.pitch-lead { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.35; }
.pitch-text p { font-size: 16.5px; }

.cta-block { margin-top: 46px; text-align: center; }
.cta-block .scroll-down { margin-top: 26px; }

/* --- секции с заголовком ----------------------------------------------- */

.section-head { margin-bottom: 30px; }
.section-head.center { text-align: center; }
.section-head.center p { max-width: 44ch; margin: 12px auto 0; }

/* --- сетка услуг ------------------------------------------------------- */

.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.svc {
  position: relative;
  min-height: 218px;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(13, 19, 15, .3); }

.svc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 22px;
  background: var(--accent-soft);
  border-radius: 9px;
  color: var(--accent);
}
.svc-icon svg { width: 17px; height: 17px; }
.svc h3 { margin-bottom: 10px; }

.svc-accent {
  background: var(--accent);
  border-color: var(--accent);
  display: grid;
  place-items: center;
}
.svc-accent img { width: 72px; filter: brightness(0) invert(1); }

.svc-photo {
  padding: 0;
  border-color: transparent;
  background: linear-gradient(155deg, #04200f, #05502c 55%, var(--accent));
}
.svc-photo .svc-photo-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 26px 24px;
}
.svc-photo h3 { color: #fff; }
.svc-photo p { color: rgba(255, 255, 255, .68); }
.svc-photo .deco-burst { right: -70px; top: -80px; width: 240px; opacity: .22; }

/* --- слайдер «Наши клиенты» -------------------------------------------- */

.work { position: relative; }
.work .deco-burst {
  top: -70px; left: 50%;
  width: 560px;
  transform: translateX(-50%);
  opacity: .4;
}
.work .section-head { position: relative; z-index: 2; }

.work-row { position: relative; display: flex; align-items: center; gap: 20px; }

.arrow {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.arrow:hover { background: #f7faf8; transform: translateY(-1px); }

.slider {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slider::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 27%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 22px;
  background: linear-gradient(160deg, #eaf1ec, #dbe7df);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  scroll-snap-align: center;
  opacity: .75;
  transition: flex-basis .35s ease, min-height .35s ease, opacity .3s ease, box-shadow .35s ease;
}
.slide.is-active {
  flex-basis: 44%;
  min-height: 340px;
  opacity: 1;
  box-shadow: 0 26px 60px -34px rgba(13, 19, 15, .35);
}

/* видео и фото занимают всю карточку */
.slide-video, .media-photo { padding: 0; overflow: hidden; border-color: transparent; }
.slide-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d130f;
}
.media-photo {
  background-size: cover;
  background-position: center 42%;   /* лица людей в кадре, а не потолок */
}

/* заглушка под будущие фото и видео */
.slide:not(.slide-video):not(.media-photo)::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -60%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23058240'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.slide-badge { z-index: 3; }

.slide-badge {
  position: absolute;
  top: 18px; left: 18px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.slide-badge { font-size: 12px; }
.slide p { font-weight: 700; color: var(--ink); }

/* подпись на фото: белым, поверх затемнения снизу */
.media-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 42, 24, 0) 45%, rgba(6, 42, 24, .82) 100%);
}
.media-photo p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfdbd4;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.dots button.is-active { width: 24px; border-radius: 999px; background: var(--accent); }

/* --- калькулятор -------------------------------------------------------- */

.calc { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: start; }
.calc .lead { margin-top: 14px; max-width: 34ch; }

.calc-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.calc-card .btn { margin-top: 6px; }

.calc-error { margin-top: 12px; font-size: 13.2px; color: #d63b3b; text-align: center; }

.calc-pane[hidden] { display: none; }
.calc-pane { animation: rise .4s cubic-bezier(.22, .8, .3, 1) both; }

.calc-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 320px;
  text-align: center;
}

.loader-ring { position: relative; width: 96px; height: 96px; }
.loader-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring-bg { stroke: var(--accent-soft); }
.ring-fg {
  stroke: var(--accent);
  stroke-dasharray: 214;          /* 2πr при r=34 */
  stroke-dashoffset: 214;
  transition: stroke-dashoffset .12s linear;
}
.loader-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.loader-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.loader-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.3px;
  font-weight: 600;
  color: var(--body);
  opacity: .45;
  transition: opacity .3s ease, color .3s ease;
}
.loader-steps li::before {
  content: '';
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  background: transparent center / 10px no-repeat;
  transition: background .3s ease, border-color .3s ease;
}
.loader-steps li.is-active { opacity: 1; color: var(--ink); }
.loader-steps li.is-done {
  opacity: 1;
  color: var(--ink);
}
.loader-steps li.is-done::before {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.calc-result .btn + .btn { margin-top: 10px; }
.calc-result-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--body); }

.calc-value {
  margin: 10px 0 22px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--accent);
}
.calc-value span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--body); }

.calc-facts { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.calc-facts li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 13px;
}
.calc-facts li span { color: var(--body); }
.calc-facts li b { font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.calc-facts li b.up { color: var(--accent); }

.calc-note { margin-top: 12px; font-size: 12px; text-align: center; }

/* --- FAQ ---------------------------------------------------------------- */

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; position: relative; }
.faq .deco-spiral { left: calc(50% - 50vw - 40px); top: 10px; width: 420px; opacity: .6; }
.faq h2 { position: relative; z-index: 2; }

.acc { display: grid; gap: 12px; }
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 18px 22px;
  background: none; border: 0;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink);
  text-align: left; cursor: pointer;
}
.acc-q i {
  flex: none;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375817a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
.acc-item.is-open .acc-q i { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a p { padding: 0 60px 20px 22px; font-size: 13px; }

/* --- контакты ---------------------------------------------------------- */

.contact { position: relative; }
.contact .deco-burst { left: -70px; top: 30px; width: 320px; opacity: .7; }
.contact-card { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13.2px; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: 15.4px; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(5, 130, 64, .12); }
.field .errorlist { margin: 8px 0 0; padding: 0; list-style: none; color: #d63b3b; font-size: 13.2px; }

.form-note { margin-top: 14px; text-align: center; font-size: 12px; }
.form-note a { color: var(--accent); font-weight: 700; }

.alert {
  padding: 14px 18px; margin-bottom: 22px;
  background: rgba(5, 130, 64, .08);
  border: 1px solid rgba(5, 130, 64, .2);
  border-radius: 12px;
  color: var(--accent-dark);
  font-size: 13px; font-weight: 600;
}

/* --- модальное окно ---------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 42, 24, .5);
  backdrop-filter: blur(6px);
  animation: modal-fade .25s ease both;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 34px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -40px rgba(6, 42, 24, .55);
  animation: modal-in .32s cubic-bezier(.22, .8, .3, 1) both;
}
.modal-card::-webkit-scrollbar { width: 0; }

.modal-blob {
  position: absolute;
  top: -120px; left: 50%;
  width: 460px;
  transform: translateX(-50%);
  opacity: .5;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--body);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.modal-close:hover { color: var(--ink); border-color: #d7ded9; }

.modal-body, .modal-done { position: relative; z-index: 2; }

.modal-calc {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: 14px;
}
.modal-calc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.modal-calc ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.modal-calc li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--body); }
.modal-calc li b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.modal-body h3, .modal-done h3 { font-size: 24px; margin-bottom: 8px; }
.modal-sum {
  margin: 14px 0 18px;
  font-size: clamp(37px, 6.6vw, 51px);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--accent);
  line-height: 1.05;
}
.modal-sum span { display: block; margin-top: 6px; font-size: 14.3px; font-weight: 700; letter-spacing: 0; color: var(--body); }
.modal-sum[hidden] { display: none; }
.modal-body > p, .modal-done > p { margin-bottom: 22px; }
.modal-body .field:last-of-type { margin-bottom: 22px; }
.modal-body textarea { min-height: 92px; }
.modal .errorlist:empty { display: none; }

.modal-done { text-align: center; padding: 14px 0 6px; }
.modal-done-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.modal-done-icon svg { width: 26px; height: 26px; }
.modal-done .btn { margin-top: 22px; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card { animation: none; }
}

body.is-locked { overflow: hidden; }

/* --- подвал ------------------------------------------------------------ */

.footer { padding: 30px 0 44px; position: relative; }
.footer .deco-asterisk { left: -30px; bottom: 30px; width: 230px; opacity: .75; z-index: 3; }
.footer .deco-spiral-2 { right: -70px; top: -60px; width: 250px; opacity: .75; }

.footer p, .footer a { font-size: 13px; }

.footer-card {
  position: relative;
  overflow: hidden;
  padding: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.footer-card .blob-foot { left: -220px; bottom: -300px; width: 640px; opacity: .5; }

.footer-top {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
}
.footer-logo img { height: 74px; width: auto; margin-bottom: 16px; }
.footer-logo p { max-width: 32ch; }

.footer-cols { display: flex; align-items: flex-start; gap: 56px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-phone { display: block; margin-bottom: 6px; font-size: 20px !important; font-weight: 800; letter-spacing: -.02em; }
.footer-contacts p { font-size: 13px; }
.footer-nav a { font-size: 13px; font-weight: 600; color: var(--body); }
.footer-nav a:hover { color: var(--ink); }

.footer-bottom {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 54px; padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer-author { color: var(--body); transition: color .15s ease; }
.footer-author:hover { color: var(--accent); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  transition: transform .18s ease;
}
.socials a:hover { transform: translateY(-2px); }
.socials img { width: 18px; height: 18px; }

/* --- адаптив ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .pitch, .calc { grid-template-columns: 1fr; gap: 24px; }
  .rev, .rev-wide { max-width: 100%; }
  .reviews-flow { gap: 16px; }
  .slide { flex-basis: 34%; min-height: 240px; }
  .slide.is-active { flex-basis: 52%; min-height: 320px; }
  .footer .deco-spiral-2 { display: none; }
  /* на мобильном шапка прозрачная и наливается фоном при скролле */
  .nav-shell {
    z-index: 120;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav-shell.is-stuck {
    background: rgba(244, 247, 244, .97);
    box-shadow: 0 1px 0 var(--line);
  }
  .nav { grid-template-columns: auto 1fr; }
  .nav-side .link { display: none; }
  .nav-side .btn { display: none; }
  .nav-burger { display: block; }

  /* меню открывается на весь экран, со своей шапкой */
  .nav-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 130;
    padding: 0 24px 32px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-panel.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 74px;
    margin: 0 -24px;
    padding: 0 24px;
    background: var(--bg);
  }
  .nav-panel-logo img { height: 30px; width: auto; }
  .nav-panel-close {
    width: 42px; height: 42px;
    padding: 0;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .nav-menu { margin: 18px 0 0; }
  .nav-panel-foot { margin-top: auto; padding-top: 40px; }

  .nav-menu {
    display: grid;
    gap: 2px;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }
  .nav-menu a {
    padding: 16px 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu a.is-active { background: none; box-shadow: none; color: var(--accent); }

  .nav-panel-foot { display: block; }
  .nav-panel-phone { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
  .nav-panel-foot p { margin: 6px 0 18px; font-size: 13px; }
}

@media (max-width: 1080px) {
  /* на мобильном фигуры мельче и ближе к краям */
  .hero .m-zigzag { top: 40px; right: -46px; width: 130px; }
  .hero .m-asterisk { left: -20px; bottom: 30px; width: 190px; opacity: .5; }

  #how .m-spiral { left: calc(50% - 50vw - 55px); top: -30px; width: 150px; opacity: .32; }
  #terms .m-burst { right: -100px; top: 30px; width: 220px; opacity: .35; }

  #calc .m-zigzag2 { right: -40px; top: 20px; width: 120px; }
  #calc .m-spiral2 { left: calc(50% - 50vw - 80px); bottom: 80px; width: 190px; opacity: .35; }
}

/* на телефоне отзывы листаются свайпом */
@media (max-width: 780px) {
  .reviews-flow {
    display: flex;
    align-items: center;   /* карточка по высоте текста, а не во всю ленту */
    gap: 14px;
    margin: 0 -24px;
    padding: 8px 24px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .reviews-flow::-webkit-scrollbar { display: none; }

  .rev,
  .rev-wide {
    flex: 0 0 82%;
    max-width: none;
    scroll-snap-align: center;
    animation: none;
    /* лёгкий наклон остаётся, соседние карточки чуть меньше и приглушены */
    transform: scale(.93) rotate(var(--rot, 0deg));
    opacity: .5;
    transition: transform .38s cubic-bezier(.22, .8, .3, 1), opacity .38s ease, box-shadow .38s ease;
    box-shadow: 0 14px 30px -26px rgba(13, 19, 15, .5);
  }
  .rev.is-active {
    transform: scale(1) rotate(var(--rot, 0deg));
    opacity: 1;
    box-shadow: 0 26px 50px -30px rgba(13, 19, 15, .45);
  }
  .rev p { font-size: 14.3px; }

  .reviews .dots { display: flex; margin-top: 18px; }
}

@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .grid-services { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr; }
  .price-row { flex-wrap: wrap; }
  .footer p, .footer a { font-size: 13px; }

.footer-card { padding: 28px 22px; }
  .footer-top { flex-direction: column; gap: 26px; }
  .footer-cols { flex-direction: column; gap: 26px; }
  .footer .deco-asterisk { width: 170px; left: -50px; }
  .calc-card { padding: 24px; }
  .work .arrow { display: none; }
  .slide { flex-basis: 50%; min-height: 200px; }
  .slide.is-active { flex-basis: 76%; min-height: 290px; }
  .modal-card { padding: 26px 22px; }
}
