/* ============================================================
   Тёплый Шаг — дизайн-система сайта
   Палитра: #F6C95B (жёлтый) · #A7C957 (зелёный) · #8FB7D9 (голубой)
            #EDE5D6 (беж) · #8B8B6B (олива)
   Шрифты:  Comfortaa (заголовки) · Nunito Sans (текст) · Caveat (рукописные акценты)
   ============================================================ */

:root {
  --paper: #F8F2E6;
  --paper-2: #F3EAD8;
  --card: #FDFAF3;
  --yellow: #F6C95B;
  --yellow-soft: #F9E3AC;
  --yellow-tint: #FAEFD3;
  --green: #A7C957;
  --green-deep: #7E9B3C;
  --green-tint: #EAF1D8;
  --blue: #8FB7D9;
  --blue-deep: #5E86A8;
  --blue-tint: #E1EBF4;
  --beige: #EDE5D6;
  --olive: #8B8B6B;
  --olive-deep: #6B6B4F;
  --ink: #453F2E;
  --ink-soft: #6E6752;
  --line: #E3D8C2;
  --pink: #F0C7B8;
  --pink-tint: #F7E3DA;

  --font-head: "Comfortaa", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --shadow-soft: 0 10px 30px rgba(106, 90, 55, .10);
  --shadow-lift: 0 16px 40px rgba(106, 90, 55, .16);

  --r-card: 26px 22px 26px 22px / 22px 26px 22px 26px;
  --r-btn: 22px 20px 22px 20px / 20px 22px 20px 22px;
  --r-img: 30px 26px 30px 26px / 26px 30px 26px 30px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* бумажная текстура */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .40 0 0 0 0 .30 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--olive-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: .01em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p + p { margin-top: .8em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px;
  background: var(--card); border: 2px solid var(--olive);
  border-radius: 0 0 16px 16px;
  font-weight: 700; text-decoration: none; color: var(--ink);
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.hand { font-family: var(--font-hand); font-weight: 600; }

/* цветные слова в заголовках, как в макетах */
.w-yellow { color: #D9A32E; }
.w-green { color: var(--green-deep); }
.w-blue { color: var(--blue-deep); }
.w-pink { color: #C97C63; }

/* =====================  ШАПКА  ===================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 242, 230, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 12px 0;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
}
.logo img { width: 52px; height: auto; }
.logo-text b {
  display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1;
}
.logo-text span {
  display: block; font-size: .72rem; color: var(--ink-soft); line-height: 1.3;
  max-width: 190px;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
  display: block; padding: 9px 13px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .95rem;
  border-radius: 14px;
}
.main-nav a:hover { background: var(--yellow-tint); color: var(--ink); }
.main-nav a[aria-current="page"] {
  background: var(--yellow-soft);
  border-radius: 16px 14px 16px 14px / 14px 16px 14px 16px;
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; flex-shrink: 0;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--card); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================  КНОПКИ  ===================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  color: var(--ink); text-decoration: none; text-align: center;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--yellow); box-shadow: 0 4px 0 #DFAE3B; }
.btn-primary:hover { background: #F8D274; }
.btn-primary:active { box-shadow: 0 1px 0 #DFAE3B; transform: translateY(3px); }

.btn-outline {
  background: transparent; border-color: var(--olive);
  color: var(--olive-deep);
}
.btn-outline:hover { background: var(--beige); }

.btn-green { background: var(--green); color: #3C4A1B; box-shadow: 0 4px 0 #8Fb148; }
.btn-green:hover { background: #B2D268; }

.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }

/* =====================  ХЛЕБНЫЕ КРОШКИ  ===================== */

.breadcrumbs { padding: 18px 0 4px; font-size: .88rem; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--olive); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* =====================  СЕКЦИИ  ===================== */

section, .section { padding: 72px 0; position: relative; }
.section-tint-yellow { background: var(--yellow-tint); }
.section-tint-blue { background: var(--blue-tint); }
.section-tint-green { background: var(--green-tint); }
.section-tint-beige { background: var(--beige); }

/* волнистый разделитель между секциями */
.section-wave { padding: 0; line-height: 0; }
.section-wave svg { display: block; width: 100%; height: 34px; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; color: var(--ink-soft); }

/* рукописная подпись-акцент */
.hand-note {
  font-family: var(--font-hand);
  font-size: 1.5rem; line-height: 1.3;
  color: var(--green-deep);
  transform: rotate(-1.2deg);
  display: inline-block;
}

/* =====================  ГЕРОЙ  ===================== */

.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero h1 { margin: 18px 0 20px; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-photo {
  position: relative;
}
.hero-photo::before {
  /* жёлтый мазок за фото */
  content: ""; position: absolute; inset: -18px 22px 26px -14px;
  background: var(--yellow-soft);
  border-radius: 44% 56% 52% 48% / 55% 45% 55% 45%;
  transform: rotate(-2.5deg);
  z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1;
}
.hero-photo .hero-img {
  border-radius: var(--r-img);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  width: 100%;
}
.hero-photo .hand-quote {
  position: absolute; z-index: 2; right: -8px; bottom: -26px;
  max-width: 240px;
  font-family: var(--font-hand);
  font-size: 1.28rem; line-height: 1.25;
  color: #9A4A33;
  background: var(--pink);
  padding: 14px 18px;
  border-radius: 30px 26px 32px 24px / 26px 32px 24px 32px;
  transform: rotate(2deg);
  box-shadow: var(--shadow-soft);
}
.hero-decor-sun {
  position: absolute; z-index: 0;
  width: 130px; top: -46px; right: -10px;
  animation: sunspin 60s linear infinite;
}
@keyframes sunspin { to { transform: rotate(360deg); } }

/* бейджи-плашки */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  background: var(--green-tint);
  border: 1.5px solid rgba(126, 155, 60, .35);
  border-radius: 18px 15px 18px 15px / 15px 18px 15px 18px;
  font-size: .86rem; font-weight: 700; color: var(--olive-deep);
}
.badge svg { width: 17px; height: 17px; flex-shrink: 0; }
.badge-yellow { background: var(--yellow-tint); border-color: rgba(217, 163, 46, .4); }
.badge-blue { background: var(--blue-tint); border-color: rgba(94, 134, 168, .4); }
.badge-pink { background: var(--pink-tint); border-color: rgba(201, 124, 99, .4); }

/* =====================  ПОЛОСА НАПРАВЛЕНИЙ  ===================== */

.services-strip { padding: 54px 0 60px; }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.service-item {
  padding: 10px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.service-item + .service-item { border-left: 1.5px dashed var(--line); }
.service-item .ico {
  width: 64px; height: 64px; flex-shrink: 0;
}
.service-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-item p { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

/* =====================  КАРТОЧКИ  ===================== */

.card-grid { display: grid; gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card h3 { font-size: 1.14rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card .ico { width: 68px; height: 68px; }
.card .card-link {
  margin-top: auto; font-weight: 700; font-size: .92rem;
  color: var(--green-deep); text-decoration: none;
  display: inline-flex; gap: 6px; align-items: center;
}
.card .card-link:hover { text-decoration: underline; }

/* =====================  БЛОК "ПОЧЕМУ ЛОШАДЬ"  ===================== */

.why-horse { overflow: hidden; }
.why-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
}
.why-illustration { position: relative; text-align: center; }
.why-illustration img { width: 210px; margin: 0 auto; }
.why-illustration .deco-heart { position: absolute; top: -6px; right: 8px; width: 44px; }
.why-illustration .deco-flowers { position: absolute; bottom: -14px; left: -4px; width: 120px; }
.why-illustration .deco-grass { position: absolute; bottom: -20px; right: 0; width: 110px; }

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px 34px;
}
.skill { display: flex; gap: 15px; align-items: flex-start; }
.skill .ico { width: 62px; height: 62px; flex-shrink: 0; }
.skill h3 { font-size: 1.04rem; margin-bottom: 4px; }
.skill p { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }

/* =====================  ШАГИ  ===================== */

.steps-band { overflow: hidden; }
.steps-wrap {
  display: grid; grid-template-columns: .9fr 1.35fr; gap: 44px; align-items: center;
}
.steps-flow {
  display: flex; flex-wrap: wrap; gap: 6px 0; align-items: flex-start; justify-content: center;
}
.step {
  display: flex; align-items: center; gap: 0;
}
.step .step-body {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 96px; text-align: center;
}
.step .step-body .ico { width: 58px; height: 58px; }
.step .step-body span { font-size: .84rem; font-weight: 700; line-height: 1.25; }
.step-arrow { width: 34px; height: 22px; margin-top: 18px; flex-shrink: 0; }
.steps-total {
  margin-top: 30px; text-align: center;
  font-family: var(--font-hand); font-size: 1.7rem; color: var(--green-deep);
  transform: rotate(-1deg);
}

/* =====================  ФОТО-КАРТОЧКИ "МЫ УЖЕ РАБОТАЕМ"  ===================== */

.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.photo-card {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.photo-card img {
  aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
}
.photo-card .photo-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.photo-card h3 { font-size: 1.08rem; }
.photo-card p { font-size: .9rem; color: var(--ink-soft); }

/* =====================  ЦИТАТА / ОТЗЫВ  ===================== */

.quote-block {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 40px 30px;
}
.quote-block blockquote {
  font-family: var(--font-hand); font-size: 1.9rem; line-height: 1.4;
  color: var(--ink);
}
.quote-block cite {
  display: block; margin-top: 16px;
  font-style: normal; font-size: .95rem; color: var(--ink-soft);
}

/* =====================  CTA-БЛОК  ===================== */

.cta-band .cta-inner {
  background: var(--yellow-soft);
  border-radius: 40px 34px 40px 34px / 34px 40px 34px 40px;
  padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: 1.7rem; }
.cta-band p { color: var(--ink-soft); margin-top: 8px; max-width: 34em; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.cta-deco-flower { position: absolute; width: 92px; right: 24%; bottom: -20px; opacity: .85; }

/* =====================  ПОДВАЛ  ===================== */

.site-footer {
  margin-top: 72px;
  background: var(--paper-2);
  border-top: 1.5px solid var(--line);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.1fr;
  gap: 40px;
}
.footer-grid h3 {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); margin-bottom: 14px; font-weight: 700;
}
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.footer-grid a:hover { color: var(--green-deep); text-decoration: underline; }
.footer-about p { font-size: .92rem; color: var(--ink-soft); margin-top: 12px; max-width: 26em; }
.footer-contacts li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.footer-contacts svg { width: 17px; height: 17px; margin-top: 4px; flex-shrink: 0; color: var(--olive-deep); }

.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--ink-soft);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--ink-soft); }
.footer-animals {
  display: flex; align-items: flex-end; gap: 20px; margin-top: 34px;
  opacity: .9;
}
.footer-animals img { height: 54px; width: auto; }

/* =====================  ВНУТРЕННИЕ СТРАНИЦЫ  ===================== */

.page-head { padding: 34px 0 10px; }
.page-head h1 { margin: 8px 0 14px; }
.page-head .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 40em; }

.prose { max-width: 780px; }
.prose h2 { margin: 44px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 7px; }
.prose li::marker { color: var(--green-deep); }
.prose .hand-note { margin: 20px 0; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.two-col .col-photo {
  position: relative;
}
.two-col .col-photo img { border-radius: var(--r-img); box-shadow: var(--shadow-soft); width: 100%; object-fit: cover; }
.two-col .col-photo .deco {
  position: absolute; width: 84px; bottom: -26px; right: -14px; transform: rotate(6deg);
}

/* таймлайн истории */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px;
  width: 2px; background: repeating-linear-gradient(to bottom, var(--olive) 0 6px, transparent 6px 12px);
  opacity: .5;
}
.timeline li {
  position: relative; padding: 0 0 34px 56px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 5px;
  width: 20px; height: 20px;
  background: var(--yellow);
  border: 3px solid var(--paper);
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  box-shadow: 0 0 0 2px var(--olive);
}
.timeline time {
  font-family: var(--font-head); font-weight: 700; color: var(--green-deep);
  display: block; font-size: 1.02rem; margin-bottom: 4px;
}
.timeline p { color: var(--ink-soft); font-size: .97rem; max-width: 42em; }

/* команда */
.person-card { text-align: left; }
.person-card .person-icon {
  width: 76px; height: 76px; margin-bottom: 6px;
}
.person-card .role {
  font-size: .88rem; color: var(--green-deep); font-weight: 700; margin-bottom: 8px;
}

/* список «что развивает» на странице как помогает */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* форма */
.form-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px 34px;
  box-shadow: var(--shadow-soft);
  max-width: 560px;
}
.form-row { display: grid; gap: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: #FFFEF9;
  border: 1.5px solid var(--line);
  border-radius: 16px 14px 16px 14px / 14px 16px 14px 16px;
  padding: 12px 16px;
  transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(167, 201, 87, .25);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-check { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.form-check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--green-deep); flex-shrink: 0; }
.form-check a { color: var(--ink); }
.form-note { font-size: .84rem; color: var(--ink-soft); }

/* аккордеон FAQ */
details.faq {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 26px;
  margin-bottom: 14px;
}
details.faq summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.04rem;
  list-style: none; position: relative; padding-right: 40px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--green-deep); font-family: var(--font-body);
  transition: transform .2s;
}
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq .faq-body { margin-top: 12px; color: var(--ink-soft); font-size: .96rem; }

/* способы поддержки */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support-num {
  font-family: var(--font-hand); font-size: 2rem; color: #D9A32E;
  line-height: 1; margin-bottom: 4px;
}

/* контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list .ico { width: 50px; height: 50px; flex-shrink: 0; }
.contact-list b { display: block; font-size: .88rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 2px; }
.contact-list a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.06rem; }
.contact-list a:hover { color: var(--green-deep); text-decoration: underline; }
.contact-list p { font-size: .95rem; color: var(--ink-soft); }

/* =====================  COOKIE-БАННЕР  ===================== */

.cookie-banner {
  position: fixed; z-index: 100;
  left: 20px; right: 20px; bottom: 20px;
  margin: 0 auto; max-width: 880px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 26px 22px 26px 22px / 22px 26px 22px 26px;
  box-shadow: var(--shadow-lift);
  padding: 22px 26px;
  display: none; /* показывается скриптом */
}
.cookie-banner.is-open { display: block; }
.cookie-banner .cookie-row {
  display: flex; gap: 20px; align-items: flex-start; justify-content: space-between;
}
.cookie-banner p { font-size: .9rem; color: var(--ink-soft); max-width: 34em; }
.cookie-banner p a { color: var(--ink); font-weight: 700; }
.cookie-banner .cookie-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.cookie-deco { position: absolute; width: 46px; top: -20px; left: 22px; }

/* =====================  ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ  ===================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-decor-sun { animation: none; }
  .btn, .card, .photo-card { transition: none; }
}

/* =====================  АДАПТИВ  ===================== */

@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .service-item:nth-child(3) { border-left: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-illustration { max-width: 300px; margin: 0 auto 10px; }
  .steps-wrap { grid-template-columns: 1fr; }
  .card-grid.cols-3, .help-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1.5px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 12px 24px 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 1.02rem; }

  .hero-grid, .two-col, .contacts-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero-photo { margin-top: 14px; }
  .hero-photo .hand-quote { right: 6px; bottom: -20px; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
  section, .section { padding: 52px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item + .service-item { border-left: none; border-top: 1.5px dashed var(--line); padding-top: 24px; }
  .card-grid.cols-3, .card-grid.cols-2, .help-grid, .support-grid, .photo-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-card { padding: 26px 22px; }
  .cookie-banner .cookie-row { flex-direction: column; }
  .cookie-banner .cookie-actions { flex-direction: row; flex-wrap: wrap; }
  .step .step-body { width: 78px; }
  .step .step-body .ico { width: 48px; height: 48px; }
  .step-arrow { width: 22px; }
  .hero-photo .hand-quote { max-width: 200px; font-size: 1.1rem; }
}

/* печать */
@media print {
  .site-header, .site-footer, .cookie-banner, .breadcrumbs, .cta-band { display: none !important; }
  body { background: #fff; }
}
