/* ==========================================================================
   Unicorn: оформление в стиле «бюро.» (см. визуальный стиль/STYLE_GUIDE.md)
   Подключается после tokens.css. Токены, .btn, .tag, .card, .panel, .badge,
   .ticker, .field и .reveal лежат в tokens.css, здесь только раскладка
   и компоненты этого сайта.
   ========================================================================== */

html { margin: 0; }
body { margin: 0; overflow-x: hidden; }
h3 { font-size: 20px; }
.lead, .lead-note { font-size: 17px; line-height: 1.7; }

/* ---------- Баннер адвент-календаря ---------- */
.advent-banner { position: relative; display: block; width: 100%; container-type: inline-size; background: var(--cream); }
.advent-banner img { display: block; width: 100%; height: auto; }
.advent-btn {
  position: absolute; left: 47.5%; top: 73%;
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  padding: .55em 1.6em; font: 800 clamp(11px, 2.3cqw, 26px)/1.2 var(--font); color: var(--ink);
  background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .25s, box-shadow .25s, background .25s;
  animation: sticker-bob 5s ease-in-out infinite;
}
.advent-btn span { transition: transform .25s; }
.advent-banner:hover .advent-btn span { transform: translateX(4px); }
.advent-banner:hover .advent-btn { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--lime-hover); }
.advent-tag { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); display: none; align-items: center; justify-content: center; pointer-events: none; animation: tag-ride 3.6s ease-in-out infinite; }
.advent-tag--d { display: flex; }
.advent-tag b { display: flex; align-items: center; justify-content: center; width: 100%; height: 72%; border-radius: 999px; background: #e8168a; color: #fff; font: 800 2.4cqw/1 var(--font); }
.advent-tag--m b { font-size: 3.6cqw; height: 88%; }
@keyframes tag-ride { 0%, 100% { transform: translate(0, -24px) rotate(-9deg); } 50% { transform: translate(8px, -32px) rotate(9deg); } }
.advent-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.advent-snow i {
  position: absolute; top: -24px; display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3cbe6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 3.5l3 2.5 3-2.5M9 20.5l3-2.5 3 2.5'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: snow-fall linear infinite, snow-sway ease-in-out infinite alternate;
}
@keyframes snow-fall { to { top: 100%; } }
@keyframes snow-sway { from { margin-left: -14px; } to { margin-left: 14px; } }
.nav-advent::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--fuchsia); vertical-align: 1px; }
.advent-timer { position: absolute; left: var(--gutter); bottom: 7%; box-sizing: border-box; width: 186px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px 10px; background: #cfe2f6; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); pointer-events: none; animation: sticker-bob 5s ease-in-out infinite; }
.at-row { display: flex; gap: 5px; width: 100%; }
.at-label { font: 800 11px/1.25 var(--font); color: var(--ink); }
.at-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-width: 0; padding: 5px 0 4px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); }
.at-cell b { font: 800 19px/1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.at-cell small { margin-top: 2px; font: 700 9px/1 var(--font); color: var(--muted); }
.at-sec { background: var(--fuchsia); }
.at-sec small { color: var(--ink); }
.advent-timer--open { padding: .6em 1.2em; bottom: 9%; font: 800 clamp(11px, 2cqw, 24px)/1 var(--font); color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 700px) {
  .advent-timer { bottom: 5%; width: 90px; padding: 4px 4px 4px; gap: 3px; border-width: 1px; border-radius: 7px; box-shadow: 1px 1px 0 var(--ink); }
  .at-row { gap: 2px; }
  .at-label { font-size: 6px; line-height: 1.15; }
  .at-cell { padding: 2px 0 1px; border-width: 1px; border-radius: 4px; box-shadow: none; }
  .at-cell b { font-size: 9px; }
  .at-cell small { font-size: 4.5px; margin-top: 1px; }
  .advent-tag--d { display: none; }
  .advent-tag--m { display: flex; animation-name: tag-ride-m; }
  @keyframes tag-ride-m { 0%, 100% { transform: translate(0, -12px) rotate(-5deg); } 50% { transform: translate(6px, -20px) rotate(5deg); } }
  .advent-btn { left: 49%; top: 57%; padding: .5em 1em; font-size: clamp(10px, 3.3cqw, 20px); box-shadow: 2px 2px 0 var(--ink); }
}

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
}
.logo, .footer-logo { display: inline-flex; align-items: center; gap: .3em; text-transform: uppercase; }
.logo-dot { width: .26em; height: .26em; border-radius: 50%; background: var(--fuchsia); flex: none; }
.logo { font: 800 26px/1 var(--font); letter-spacing: -.04em; }
.nav { display: flex; gap: 34px; font: 600 14px/1 var(--font); }
.nav a { white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--fuchsia); }
.header__right { display: flex; align-items: center; gap: 14px; }
.header-cta, .lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-btn);
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 13px/1 var(--font);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.header-cta:hover, .lang-switch:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--lime-tint); }
.header .btn { white-space: nowrap; min-height: 44px; padding: 0 18px; gap: 14px; }

/* ---------- Маркер: чуть выше по строке, чтобы не липнуть к соседним ---------- */
.highlight { color: var(--ink); }
.reveal.is-visible .highlight { animation: highlight-enter .85s ease both; }
.highlight { display: inline; white-space: nowrap; }   /* clip-path-анимация ломает перенос маркера по строкам */

/* ---------- Hero ---------- */
.hero { padding-block: 72px 88px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "tag tag" "title lead" "title cta";
  grid-template-rows: auto auto 1fr;
  column-gap: 72px; align-items: start;
}
.hero__grid .tag { grid-area: tag; justify-self: start; }
.hero__grid h1 { grid-area: title; margin-bottom: 26px; }
.hero__lead { grid-area: lead; max-width: 52ch; margin-top: 8px; font-size: 18px; line-height: 1.65; margin-bottom: 36px; }
.hero__cta { grid-area: cta; }

/* ---------- Секции ---------- */
.section--sand { background: var(--sand); }
.section--contact { background: var(--sand-dark); border-top: 2px solid var(--ink); }
.section-head { margin-bottom: 48px; }
.section-head h2, .section-band-head h2 { margin-bottom: 18px; }
.section-band-head { margin-bottom: 48px; }
.section-band-head p { font-size: 17px; line-height: 1.7; max-width: 62ch; }
.section-band-head p.wide, .section-band-head p.justify { max-width: 70ch; white-space: normal; text-align: left; }

/* ---------- Карточки-ситуации и «что вы получите» ---------- */
.situation-row-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.situation-card, .case-card, .review-card, .team-card {
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r-card-lg);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, background .3s;
}
.situation-card { padding: 30px 28px; }
.situation-card:hover, .case-card:hover, .review-card:hover, .team-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-hover);
}
.situation-card:hover { background: var(--fuchsia-tint); }
.situation-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 44px; padding: 0 12px; margin-bottom: 22px;
  background: var(--lime); border: 1.5px solid var(--ink); border-radius: var(--r-badge);
  font: 800 17px/1 var(--font);
}
.situation-card:nth-child(2) .num { background: var(--fuchsia); }
.situation-card h3 { font-size: 21px; margin: 0 0 12px; }
.situation-card p { font-size: 15px; line-height: 1.7; margin: 0; }

/* ---------- Колонки-«столпы» ---------- */
.pillar-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.pillar-row-center { grid-template-columns: repeat(4, 1fr); }
.pillar-card {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-card-lg);
  box-shadow: var(--shadow); padding: 28px;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); background: var(--fuchsia-tint); }
.section--sand .pillar-card:hover { background: var(--fuchsia-tint); }
.pillar-card h3 { font-size: 21px; margin-bottom: 14px; }
.pillar-card p { font-size: 15px; line-height: 1.7; margin: 0; }
.pillar-card ul { list-style: none; margin: 0; padding: 0; }
.pillar-card li { position: relative; padding: 7px 0 7px 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pillar-card li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 9px; height: 9px; background: var(--lime); border: 1.5px solid var(--ink); border-radius: 3px;
}
.feature-icon {
  width: 48px; height: 48px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r-badge);
  transition: transform .3s;
}
.pillar-card:nth-child(even) .feature-icon { background: var(--fuchsia); }
.pillar-card:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.feature-icon svg { width: 24px; height: 24px; }
.pillar-row-center { text-align: center; }
.pillar-row-center .feature-icon { margin-inline: auto; }
.pillar-row-center .pillar-card { padding: 24px 20px; }
.pillar-row-center h3 { margin-bottom: 0; }

/* ---------- Карусели ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.carousel-head .section-band-head { margin-bottom: 0; }
.carousel-arrows { display: flex; gap: 12px; flex-shrink: 0; }
.carousel-arrow {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--r-btn); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.carousel-arrow:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--lime-hover); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 6px 8px 14px 4px; margin: -6px -8px -14px -4px; scroll-padding-inline-start: 4px;   /* место под жёсткую тень */
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 auto; scroll-snap-align: start; }

/* Видео-плитки */
.video-tile {
  position: relative; width: calc((100% - 24px) / 2); aspect-ratio: 9 / 16; cursor: pointer; overflow: hidden;
  background: var(--sand-dark);
  border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.video-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.video-tile video, .video-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-tile::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; background: var(--lime);
  border: 2px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
}
.video-tile::before {
  content: ''; position: absolute; top: 50%; left: calc(50% + 2px); transform: translate(-50%, -50%); z-index: 2;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ink);
  pointer-events: none;
}
.video-tile.is-video { cursor: default; }
.video-tile.is-video::before, .video-tile.is-video::after { display: none; }
@media (min-width: 641px) { .video-tile { width: calc((100% - 72px) / 4); } }
@media (min-width: 901px) { .video-tile { width: calc((100% - 96px) / 5); } }

/* ---------- Кейсы ---------- */
.case-card { width: 100%; padding: 30px 28px; display: flex; flex-direction: column; }
@media (min-width: 641px) { .case-card { width: calc((100% - 24px) / 2); } }
@media (min-width: 901px) { .case-card { width: calc((100% - 48px) / 3); } }
.case-card h3 { font-size: 20px; margin-bottom: 16px; }
.case-line { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-bottom: 10px; }
.case-line b { color: var(--ink); font-weight: 700; }
.case-result {
  margin-top: auto; padding-top: 20px; border-top: 2px solid var(--ink);
  font: 800 22px/1.25 var(--font); letter-spacing: -.5px; color: var(--ink);
}
.case-card:hover .case-result { text-decoration: underline; text-decoration-color: var(--fuchsia); text-decoration-thickness: 4px; text-underline-offset: 5px; }

/* ---------- Отзывы ---------- */
.review-card {
  width: 100%; padding: 28px 26px 28px 30px;
  border-left: 1.5px solid var(--ink); position: relative;
}
.review-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--fuchsia); border-radius: var(--r-card-lg) 0 0 var(--r-card-lg);
}
.review-card:nth-child(even)::before { background: var(--lime); }
@media (min-width: 641px) { .review-card { width: calc((100% - 24px) / 2); } }
@media (min-width: 901px) { .review-card { width: calc((100% - 48px) / 3); } }
.stars { display: flex; gap: 4px; margin-bottom: 16px; color: var(--ink); }
.stars svg { width: 18px; height: 18px; }
.review-card p { font-size: 15px; line-height: 1.7; color: var(--ink); margin: 0 0 18px; }
.review-card .who { font-size: 13px; font-weight: 700; color: var(--muted-2); }

/* ---------- Цены ---------- */
.pillar-row + .price-block { margin-top: 44px; }
.price-block { max-width: 1000px; margin: 0 auto; }
.price-block.panel { padding: 36px 40px; background: var(--card); }
.price-list-row { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list-row:last-child { border-bottom: 0; }
.price-list-row .name { font-size: 16px; font-weight: 500; color: var(--ink); }
.price-list-row .dots { flex: 1 1 auto; min-width: 24px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.price-list-row .price { font: 800 18px/1 var(--font); letter-spacing: -.3px; color: var(--ink); white-space: nowrap; }
.price-list-row .name { white-space: nowrap; }
.price-note {
  margin-top: 28px; padding: 22px 26px;
  background: var(--lilac); border: 2px solid var(--ink); border-radius: var(--r-card-lg);
  font-size: 15px; line-height: 1.65; color: var(--ink);
}
.price-block.panel .price-note { margin-bottom: 0; }

/* ---------- Команда ---------- */
.team-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; margin-bottom: 32px; }
.team-card { display: flex; gap: 26px; padding: 24px; }
.team-card img {
  width: 170px; aspect-ratio: 3 / 4; flex-shrink: 0; object-fit: cover; object-position: center 15%;
  border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  transition: transform .3s;
}
.team-card:nth-child(1) img { transform: rotate(-2deg); }
.team-card:nth-child(2) img { transform: rotate(2deg); }
.team-card:hover img { transform: rotate(0); }
.team-card h3 { font-size: 21px; }
.team-card .role {
  display: inline-block; margin: 10px 0 14px; padding: 5px 12px;
  background: var(--lime); border: 1.5px solid var(--ink); border-radius: var(--r-pill);
  font: 700 12px/1.3 var(--font); color: var(--ink);
}
.team-card:nth-child(2) .role { background: var(--fuchsia); }
.team-card p { font-size: 14.5px; line-height: 1.65; margin: 0; }
.team-together {
  padding: 24px 28px;
  background: var(--lilac); border: 2px solid var(--ink); border-radius: var(--r-card-lg); box-shadow: var(--shadow);
  font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ink);
}

/* ---------- Форма ---------- */
.contact-head { margin-bottom: 44px; }
.contact-head h2 { margin-bottom: 18px; }
.contact-head p { font-size: 17px; line-height: 1.7; max-width: 66ch; white-space: normal; }
.form-card.panel { max-width: 1000px; margin: 0 auto; padding: 44px 44px 40px; }
.form-eyebrow { margin-bottom: 8px; font: 700 13px/1 var(--font); letter-spacing: .06em; color: var(--fuchsia); }
.field-row { padding: 18px 0; border-top: 0; }
.field-row:last-of-type { border-bottom: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-body label { display: block; margin-bottom: 9px; font: 700 13px/1.3 var(--font); color: var(--ink); }
.field-body label .req { color: var(--fuchsia); }
.field-body input, .field-body textarea {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--cream); color: var(--ink);
  border: 1px solid #dacfc3; border-radius: 5px;
  font: 15px var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.field-body textarea { height: auto; min-height: 110px; padding: 13px 14px; resize: vertical; }
.field-body input::placeholder, .field-body textarea::placeholder { color: var(--muted-2); }
.field-body input:focus, .field-body textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 3px 3px 0 var(--fuchsia); }
.field-body input:invalid:not(:placeholder-shown) { border-color: #b23b3b; }
.consent-check {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; cursor: pointer;
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.consent-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--fuchsia); cursor: pointer; }
.consent-check a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--fuchsia); text-underline-offset: 3px; }
.submit-btn { width: 100%; margin-top: 26px; justify-content: space-between; cursor: pointer; font-size: 15px; }
.submit-btn .arrow { transition: transform .25s; }
.submit-btn:hover .arrow { transform: translateX(5px); }
.form-success { text-align: center; padding: 28px 0; }
.form-success-icon {
  width: 60px; height: 60px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); border: 2px solid var(--ink); border-radius: var(--r-btn); box-shadow: var(--shadow);
}
.form-success-icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { max-width: 44ch; margin: 0 auto; font-size: 15px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--cream); border-top: 2px solid var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 44px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { font: 800 26px/1 var(--font); letter-spacing: -.04em; }
.footer-copyright { font-size: 13px; color: var(--muted-2); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-pill); box-shadow: 2px 3px 0 var(--ink);
  font: 700 13px/1 var(--font); transition: transform .25s, box-shadow .25s, background .25s;
}
.footer-social a:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); background: var(--lime-tint); }
.footer-social svg { width: 19px; height: 19px; flex-shrink: 0; }
.footer-social a.icon-only { padding: 9px; border-radius: 50%; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--muted-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s; }
.footer-links a:hover { color: var(--ink); text-decoration-color: var(--fuchsia); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-card-lg); box-shadow: var(--shadow-lg);
}
.cookie-banner p { flex: 1 1 260px; margin: 0; font-size: 13.5px; line-height: 1.55; }
.cookie-banner a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--fuchsia); text-underline-offset: 3px; }
.cookie-banner .actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  position: relative; z-index: 5; min-height: 44px; padding: 0 20px; cursor: pointer;
  color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-btn); box-shadow: 3px 3px 0 var(--ink);
  font: 700 13px/1 var(--font); transition: transform .25s, box-shadow .25s, background .25s;
}
.cookie-btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cookie-accept { background: var(--lime); }
.cookie-accept:hover { background: var(--lime-hover); }
.cookie-decline { background: var(--cream); }

/* ---------- Юридические страницы (privacy, cookies) ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 56px var(--gutter) 100px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -1.4px; margin: 0 0 12px; }
.legal .updated { display: inline-block; margin-bottom: 40px; padding: 5px 12px; background: var(--lime); border: 1.5px solid var(--ink); border-radius: var(--r-pill); font: 700 12px/1.3 var(--font); color: var(--ink); }
.legal h2 { font-size: 22px; letter-spacing: -.4px; line-height: 1.3; margin: 44px 0 12px; }
.legal p, .legal li, .legal td, .legal th { font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 22px; }
.legal a:not(.back) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--fuchsia); text-underline-offset: 3px; }
.legal .back {
  display: inline-flex; align-items: center; margin-bottom: 32px; padding: 9px 16px;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-btn); box-shadow: 3px 3px 0 var(--ink);
  font: 700 13px/1 var(--font); transition: transform .25s, box-shadow .25s;
}
.legal .back:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.legal .table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r-card-lg); box-shadow: var(--shadow); background: var(--card); margin: 16px 0 28px; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th { text-align: left; padding: 12px 14px; background: var(--sand); color: var(--ink); font-size: 13px; border-bottom: 2px solid var(--ink); }
.legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Анимации ---------- */
/* .reveal / .is-visible: JS на странице; без JS блок остаётся видимым */
.reveal { transition: opacity .7s ease, translate .7s cubic-bezier(.2, .65, .3, 1); }
.reveal:not(.is-visible) { opacity: 0; translate: 0 35px; }
@media (prefers-reduced-motion: reduce) { .reveal:not(.is-visible) { opacity: 1; translate: none; } }
.tag { animation: sticker-bob 5s ease-in-out infinite; }
@keyframes sticker-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.btn--fuchsia { color: var(--ink); }
.hero__cta .btn { min-height: 58px; padding-inline: 26px; font-size: 15px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav { gap: 16px; font-size: 13px; }
  .header-cta, .header .btn { padding-inline: 14px; }
  .pillar-row-center { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { column-gap: 40px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding-block: 44px 64px; }
  .hero__grid { display: flex; flex-direction: column; align-items: flex-start; }
  .hero__grid > * { order: 0; }
  .hero__grid h1 { order: 1; margin-bottom: 22px; }
  .hero__grid .tag { order: 2; margin-bottom: 28px; }
  .hero__lead { order: 3; margin-bottom: 32px; }
  .hero__cta { order: 4; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .form-card.panel { padding: 30px 24px 28px; }
  .team-card { flex-direction: column; }
  .team-card img { width: 100%; max-width: 260px; }
}
@media (max-width: 800px) {
  .header .btn { display: none; }
}
@media (max-width: 640px) {
  .field-pair { grid-template-columns: 1fr; gap: 18px; }
  .price-block.panel { padding: 22px 20px; }
  .price-list-row .dots { display: none; }
  .price-list-row .name { flex: 1 1 auto; min-width: 0; white-space: normal; font-size: 14px; line-height: 1.35; }
  .price-list-row { align-items: center; }
  .price-list-row .price { font-size: 15px; }
  .pillar-row-center { gap: 16px; }
  .pillar-row-center .pillar-card { padding: 18px 12px; }
  .pillar-row-center h3 { font-size: 16px; }
  .carousel-head { align-items: flex-start; }
  .carousel-arrow { width: 42px; height: 42px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-social { display: none; }   /* почту на телефоне не показываем */
  .footer-links { align-items: flex-start; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 480px) {
  h1 { font-size: 39px; letter-spacing: -1.5px; }
  h2 { font-size: 31px; letter-spacing: -1px; }
  .field-body input, .field-body textarea { font-size: 16px; }
  .logo { font-size: 24px; }
  .header-cta, .lang-switch { min-height: 40px; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tag { animation: none !important; }
}

/* ---------- Instagram у фото команды ---------- */
.team-instagram {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  font: 700 13px/1 var(--font); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--fuchsia); text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: color .2s;
}
.team-instagram:hover { color: var(--fuchsia); }
.team-instagram svg { flex-shrink: 0; }

/* ---------- Оговорка под кейсами ---------- */
.case-disclaimer { margin-top: 32px; max-width: 70ch; font-size: 13px; line-height: 1.6; color: var(--muted-2); }
