/* CeramicaDecor — landing styles, redesign 2026-05-04 night.
   Источник: mastera-remonta.moscow/l/mr-remont-ver-4-0
   Цель: пиксель-близкая адаптация структуры референса под bbq-керамику.
   Совместимость: все имена классов сохранены ради JS (calc.js, quiz2.js, main2.js).
*/

:root {
  --bg:           #f5f5f7;
  --surface:      #ffffff;
  --ink:          #1c1f26;
  --ink-2:        #3e4452;
  --muted:        #6b7280;
  --line:         #e5e7eb;
  --line-2:       #d1d5db;
  --accent:       #e63939;
  --accent-deep:  #c12930;
  --accent-soft:  #fde8e8;
  --whatsapp:     #0a8be6;
  --whatsapp-deep:#0673c1;
  --star:         #fdb413;
  --dark:         #1a1a1a;
  --dark-2:       #25241f;
  --dark-overlay: rgba(20,18,16,.78);
  --success:      #22c55e;

  --r-card:   14px;
  --r-pill:   999px;
  --r-input:  10px;
  --r-btn:    10px;

  --shadow-card: 0 10px 30px -8px rgba(15, 18, 28, .18), 0 2px 6px rgba(15, 18, 28, .06);
  --shadow-btn:  0 4px 14px -2px rgba(230, 57, 57, .35);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* ============== HEADER ============== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  height: 76px;
}
@media (min-width: 1024px) { .site-header__inner { gap: 28px; } }
@media (max-width: 720px) {
  .site-header__inner { gap: 10px; height: 64px; }
  .site-header__phone { font-size: 15px; gap: 4px; }
  .site-header__phone svg { width: 14px; height: 14px; }
  .site-header__phone-sub { display: none; }
  .brand__logo { height: 32px; }
  .burger { display: none; }
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { height: 38px; width: auto; }
.brand__sub {
  display: none;
  font-size: 11px; line-height: 1.3;
  color: var(--muted);
  font-weight: 500;
}
@media (min-width: 980px) { .brand__sub { display: block; max-width: 180px; } }

.site-nav { display: none; gap: 26px; flex: 1; justify-content: center; }
.site-nav a {
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .15s;
}
.site-nav a:hover { color: var(--accent); }
@media (min-width: 1024px) { .site-nav { display: flex; } }

.site-header__phoneblock {
  display: flex; flex-direction: column; align-items: flex-end;
  margin-left: auto;
  line-height: 1.1;
}
.site-header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.site-header__phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-header__phone-sub {
  font-size: 11px; color: var(--muted); font-weight: 500;
  margin-top: 4px;
}

.btn-callback {
  display: none;
  align-items: center;
  padding: 10px 18px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-btn);
  color: var(--accent);
  font-weight: 700; font-size: 14px;
  background: transparent;
  transition: background .15s, color .15s;
}
.btn-callback:hover { background: var(--accent); color: #fff; }
@media (min-width: 880px) { .btn-callback { display: inline-flex; margin-left: 18px; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-left: 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface);
}
.burger svg { width: 22px; height: 22px; color: var(--ink); }
@media (min-width: 1024px) { .burger { display: none; } }

/* ============== HERO (dark with photo) ============== */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 0;
  transition: opacity .45s ease-out;
}
.hero__photo.is-loaded { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--dark-overlay);
  z-index: -1;
}
.hero .container { padding-top: 56px; padding-bottom: 64px; }

.lp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
/* Desktop: two-column. Если lp-pitch разделён на --head/--body, head сверху pitch + calc, body снизу */
@media (min-width: 1024px) {
  .lp-grid { grid-template-columns: minmax(0, 1.05fr) minmax(380px, 460px); gap: 56px; }
  .lp-grid:has(.lp-pitch--head) {
    grid-template-areas:
      "head calc"
      "body calc";
    gap: 14px 56px;
  }
  .lp-pitch--head { grid-area: head; }
  .lp-calc--area  { grid-area: calc; }
  .lp-grid:has(.lp-pitch--head) > .lp-calc { grid-area: calc; }
  .lp-pitch--body { grid-area: body; }
}

.lp-pitch { color: #fff; max-width: 640px; position: relative; }
.lp-pitch--head { margin-bottom: 0; }
.lp-pitch--head .hero__title { margin-bottom: 16px; }
.lp-pitch--body { margin-top: 8px; }
.hero__lead {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
  margin: 0 0 6px;
}
.hero__lead b { color: #fff; font-weight: 800; }
.hero__cta-hint {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}
@media (min-width: 1024px) { .hero__cta-hint { display: none; } }
.hero__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 28px;
  font: 700 16px/1 'Manrope', sans-serif;
  letter-spacing: .01em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(208, 70, 38, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hero__cta-btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(208, 70, 38, .36); }
.hero__cta-btn:active { transform: translateY(0); }
.hero__cta-btn::after { content: '→'; font-size: 18px; line-height: 1; }
@media (max-width: 720px) { .hero__cta-btn { width: 100%; justify-content: center; padding: 18px 22px; } }
.hero__title {
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: #fff;
}
.hero__title em { font-style: normal; }

/* trust-bar (avatar + bullets + arrow) */
.trust-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 42px;
}
.trust-bar__avatar {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%; overflow: visible;
  border: 2px solid rgba(255,255,255,.25);
}
.trust-bar__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.trust-bar__avatar::after {
  content: ""; position: absolute;
  bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--dark);
}
.trust-bar__list { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.92); }
.trust-bar__list li { display: block; }
.trust-bar__list b { color: #fff; font-weight: 700; }
.trust-bar__arrow {
  display: none;
  width: 110px; height: 64px;
  color: rgba(255,255,255,.55);
}
@media (min-width: 1024px) { .trust-bar__arrow { display: block; } }

/* benefits with yellow stars */
.benefits-pro { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 22px; }
.benefits-pro li {
  display: grid; grid-template-columns: 28px 1fr; gap: 18px;
  align-items: start;
}
.benefits-pro__star {
  width: 22px; height: 22px;
  color: var(--star);
  flex-shrink: 0;
  margin-top: 4px;
}
.benefits-pro__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 6px;
  color: #fff;
}
.benefits-pro__text {
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  line-height: 1.55;
}
.benefits-pro__text b { color: #fff; font-weight: 700; }

/* bottom rating */
.lp-rating {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.lp-rating__logos { display: flex; gap: 6px; }
.lp-rating__logo {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--dark), 0 1px 3px rgba(0,0,0,.25);
}
.lp-rating__logo img { width: 22px; height: 22px; object-fit: contain; display: block; }
.lp-rating__score { font-weight: 800; font-size: 16px; color: #fff; }
.lp-rating__stars { color: var(--star); letter-spacing: 1px; font-size: 14px; }
.lp-rating__caption { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.72); flex: 1; }
.lp-rating__caption b { color: #fff; font-weight: 700; }

/* ============== CALC / QUIZ CARD (right column) ============== */
.lp-calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 18px;
  color: var(--ink);
  position: relative;
}
@media (min-width: 1024px) {
  .lp-calc { position: sticky; top: 92px; }
}

.calc__head { margin-bottom: 14px; }
.calc__title {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
}
.calc__title em { font-style: normal; }
.calc__title .calc__chip {
  display: inline-block;
  padding: 1px 8px;
  margin-left: 4px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}
.calc__hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.calc__field { margin-bottom: 12px; }
.calc__field:last-of-type { margin-bottom: 0; }

.calc__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.calc-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-input);
  background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 10px center;
  background-size: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s;
}
.calc-select:focus { outline: none; border-color: var(--accent); }

/* slider field */
.calc-range__top {
  display: flex; align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.calc-range__val {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.calc-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill,40%), var(--line) var(--fill,40%), var(--line) 100%);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.calc-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .12s;
}
.calc-range input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.08); }
.calc-range input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.calc-range input[type="range"]::-moz-range-track {
  height: 4px; background: transparent;
}

/* radio (placement, collection) */
.calc-radio {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.calc-radio--col {
  flex-direction: column;
}
.calc-radio__opt {
  display: inline-flex; align-items: center;
  padding: 9px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  text-align: left;
  flex: 1 1 auto;
  position: relative;
  transition: border-color .15s, background .15s, color .15s;
}
.calc-radio__opt::before {
  content: "";
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.calc-radio__opt.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.calc-radio__opt.is-on::before {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, #fff 5px 100%);
}
.calc-radio__opt--col {
  flex-direction: column; align-items: flex-start;
  padding: 12px 14px;
  width: 100%;
}
.calc-radio__opt--col::before { display: none; }
.calc-radio__opt--col b { font-size: 14px; font-weight: 700; }
.calc-radio__opt--col span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.calc-radio__opt--col.is-on span { color: var(--accent-deep); opacity: .85; }

/* checkboxes for modules (2-column grid) */
.calc-mods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
@media (max-width: 380px) { .calc-mods { grid-template-columns: 1fr; } }

.calc-mod {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px;
  border: none; background: transparent;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 6px;
  transition: background .12s;
}
.calc-mod:hover { background: rgba(0,0,0,.02); }
.calc-mod__check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s, background .15s;
}
.calc-mod.is-on .calc-mod__check {
  background: var(--accent);
  border-color: var(--accent);
}
.calc-mod.is-on .calc-mod__check::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.calc-mod__name { flex: 1; line-height: 1.3; }
.calc-mod__price { display: none; }
.calc-mod.is-on { color: var(--ink); font-weight: 600; }

/* CTA action buttons */
.calc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: none; border-radius: var(--r-btn);
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .01em;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--messenger {
  background: var(--whatsapp);
  color: #fff;
}
.btn--messenger:hover { background: var(--whatsapp-deep); }
.btn--phone {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--phone:hover { background: var(--accent-deep); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 18px; font-size: 15px; }

.calc__social-proof {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.calc__social-proof b { color: var(--ink); font-weight: 700; }
.calc__pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.calc__pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: .5;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.8); opacity: .55; }
  100% { transform: scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .calc__pulse::after { animation: none; }
  .hero__photo { transition: none; }
}

/* ============== QUIZ CARD (v1) — same shell as calc ============== */
.quiz-card {
  display: flex; flex-direction: column;
  gap: 14px;
}
.quiz-card__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.quiz-card__back {
  background: transparent; border: none;
  font-weight: 600; color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0;
}
.quiz-card__back:disabled { color: var(--line-2); cursor: not-allowed; }

.quiz-progress { display: flex; gap: 4px; height: 4px; }
.quiz-progress span {
  flex: 1; background: var(--line); border-radius: 2px;
  transition: background .25s;
}
.quiz-progress span.is-active, .quiz-progress span.is-done { background: var(--accent); }

.quiz-question {
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 2px;
}
.quiz-hint {
  font-size: 12px; color: var(--muted);
  margin-top: -8px;
  line-height: 1.4;
}

.quiz-options { display: flex; flex-direction: column; gap: 6px; }
.quiz-options--text { gap: 5px; }

.quiz-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.quiz-opt__check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  flex-shrink: 0; margin-top: 2px;
  position: relative;
  transition: border-color .15s, background .15s;
}
.quiz-opt.is-selected .quiz-opt__check {
  background: var(--accent);
  border-color: var(--accent);
}
.quiz-opt.is-selected .quiz-opt__check::after {
  content: ""; position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.quiz-opt__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.quiz-opt__label { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.quiz-opt__sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.quiz-opt.is-selected .quiz-opt__sub { color: var(--accent-deep); opacity: .85; }

.quiz-cta { margin-top: 8px; }

.quiz-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-input);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.quiz-input:focus { outline: none; border-color: var(--accent); }
.form-honey { position: absolute; left: -9999px; opacity: 0; }

.quiz-channel {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
}
.quiz-channel__label {
  display: block; width: 100%;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.quiz-channel__opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.quiz-channel__opt input { accent-color: var(--accent); }
.quiz-channel__opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.quiz-policy {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 0;
}

.quiz-final-text {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 10px;
}
.quiz-final-text b { color: var(--ink); font-weight: 700; }

.quiz-success { text-align: center; padding: 14px 0; }
.quiz-success__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.quiz-success__icon svg { width: 24px; height: 24px; fill: #fff; }
.quiz-success__title { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.quiz-success__text { color: var(--muted); font-size: 14px; line-height: 1.5; }

.form-status { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-status.error { color: var(--accent-deep); font-weight: 600; }

/* ============== Contact offer card (v1) ============== */
.contact-card {
  padding: 24px;
}
.contact-card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-card__title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}
.contact-card__lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.contact-form__textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .contact-card { padding: 20px; }
  .contact-card__title { font-size: 21px; }
}

/* ============== Real works map ============== */
.work-map {
  background: #fff;
}
.work-map__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}
.work-map__canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    linear-gradient(135deg, rgba(208,70,38,.08), transparent 38%),
    linear-gradient(45deg, #eef2f6, #f8fafc);
  box-shadow: var(--shadow-card);
}
.work-map__canvas.is-ready .work-map__loading {
  display: none;
}
.work-map__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.work-map__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 560px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.work-map__stat {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.work-map__stat b {
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.work-map__stat span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.work-map__search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.work-map__search input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-input);
  background: #fff;
  color: var(--ink);
  font: 600 14px/1.2 'Manrope', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.work-map__search input:focus {
  outline: none;
  border-color: var(--accent);
}
.work-map__list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}
.work-map__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.work-map__item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 18, 28, .08);
}
.work-map__item img,
.work-map__item-empty {
  display: block;
  width: 64px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--accent-soft);
}
.work-map__item b {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.work-map__item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.work-map__all,
.work-map-balloon__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.work-map__all:hover,
.work-map-balloon__link:hover {
  background: var(--accent-deep);
}
.work-map__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.work-map-balloon {
  max-width: 260px;
}
.work-map-balloon__title {
  max-width: 280px;
  font: 800 14px/1.3 'Manrope', sans-serif;
  color: var(--ink);
}
.work-map-balloon__img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 150px;
  margin-bottom: 10px;
  border-radius: 8px;
  object-fit: cover;
}
.work-map-balloon__desc,
.work-map-balloon__date {
  color: var(--muted);
  font: 500 12px/1.45 'Manrope', sans-serif;
}
.work-map-balloon__date b {
  color: var(--ink);
}
@media (max-width: 980px) {
  .work-map__shell {
    grid-template-columns: 1fr;
  }
  .work-map__canvas {
    min-height: 420px;
  }
  .work-map__panel {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .work-map__canvas {
    min-height: 360px;
    border-radius: 8px;
  }
  .work-map__panel {
    padding: 16px;
    border-radius: 8px;
  }
  .work-map__list {
    max-height: 340px;
  }
}

/* ============== Lead modal (calc CTA → popup) ============== */
.modal-lead {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 18, 28, .55);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-lead.is-open { display: flex; }
.modal-lead__frame {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px 24px 22px;
  max-width: 420px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-card);
}
.modal-lead__close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  border: none; background: transparent;
  font-size: 18px; color: var(--muted);
  border-radius: 50%;
}
.modal-lead__close:hover { background: var(--line); color: var(--ink); }
.modal-lead__title {
  font-size: 19px; font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--ink);
}
.modal-lead__sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.modal-lead__channels {
  display: flex; gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.modal-lead__chan {
  flex: 1 1 auto;
  padding: 8px 10px;
  font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: var(--r-btn);
}
.modal-lead__chan.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ============== SECTIONS (cases, videos) ============== */
.section { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.section__title {
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}
.section__title em { font-style: normal; }
.section__lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 600px;
}

.slider__nav { display: flex; gap: 8px; flex-shrink: 0; }
.slider {
  overflow: hidden;
}
.case-counter {
  display: inline-flex;
  align-items: center;
  min-width: 68px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.slider__btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background .15s, border-color .15s;
}
.slider__btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.slider__btn:disabled { opacity: .35; cursor: not-allowed; }
.slider__btn svg { width: 16px; height: 16px; }

.slider__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.slider__track::-webkit-scrollbar { display: none; }

.case {
  flex: 0 0 calc(50% - 9px);
  min-width: 320px;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (max-width: 720px) { .case { flex-basis: 88%; } }
.case__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
}
.case__img-btn img {
  transition: transform .22s ease;
}
.case__img-btn:hover img {
  transform: scale(1.035);
}
.case__photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 18, 28, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.case__body { padding: 16px 18px 18px; }
.case__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--ink);
}
.case__meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
.case__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.case__tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
}
.case--gallery .case__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.case--gallery .case__meta {
  min-height: 56px;
}
.case__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 14px 0;
  background: var(--surface);
}
.case__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.case__thumb:hover,
.case__thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(15, 18, 28, .12);
}
.case__thumb:hover {
  transform: translateY(-1px);
}
.case__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-slider .case__tags {
  margin-top: auto;
}
.project-gallery__error {
  margin: 0;
  color: var(--muted);
}

/* legacy grid kept for safety; new layout uses .slider in <section.videos> */
.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.video-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
/* When the video card sits inside a slider track, behave like .case slides */
.videos .slider__track .video-card {
  flex: 0 0 calc(50% - 9px);
  min-width: 320px;
  max-width: 520px;
  scroll-snap-align: start;
}
@media (max-width: 720px) {
  .videos .slider__track .video-card { flex-basis: 88%; min-width: 280px; }
}
.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-card__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.video-card__poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-card__play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
  pointer-events: none;
  z-index: 2;
}
.video-card__play svg { width: 24px; height: 24px; fill: var(--accent); }
.video-card:hover .video-card__play,
.video-card:focus-visible .video-card__play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.05);
}
.video-card:hover .video-card__play svg,
.video-card:focus-visible .video-card__play svg { fill: #fff; }
.video-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.video-card__media iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 3;
}
.video-card.is-playing { cursor: default; }
.video-card.is-playing .video-card__poster,
.video-card.is-playing .video-card__play { display: none !important; }
.video-card__caption { padding: 14px 18px 16px; }
.video-card__name { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); }
.video-card__role { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.slider__track.is-dragging { cursor: grabbing; user-select: none; }
.slider__track.is-dragging * { pointer-events: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  padding: 48px 18px 28px;
}
.lightbox.is-open { display: flex; }
.lightbox__frame {
  position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9;
}
.lightbox__frame iframe {
  width: 100%; height: 100%; border: none; border-radius: 8px;
}
.lightbox__close {
  position: absolute; top: -40px; right: -4px;
  background: transparent; border: none; color: #fff;
  font-size: 22px; line-height: 1;
}
.project-lightbox__frame {
  max-width: min(1120px, 94vw);
  aspect-ratio: auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}
.project-lightbox__frame img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
}
.project-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  transform: translateY(-50%);
}
.project-lightbox__arrow--prev { left: -62px; }
.project-lightbox__arrow--next { right: -62px; }
.project-lightbox__arrow svg {
  width: 20px;
  height: 20px;
}
.project-lightbox__caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.project-lightbox__caption small {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  white-space: nowrap;
}
.catalog-modal__frame {
  max-width: 460px;
}
.catalog-modal .quiz-input + .quiz-input {
  margin-top: 8px;
}
.catalog-modal .btn {
  margin-top: 10px;
}
@media (max-width: 1180px) {
  .project-lightbox__arrow--prev { left: 12px; }
  .project-lightbox__arrow--next { right: 12px; }
}
@media (max-width: 720px) {
  .section__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .case-counter {
    min-width: auto;
    margin-right: 4px;
  }
  .project-lightbox__caption {
    flex-direction: column;
    gap: 4px;
  }
  .project-lightbox__arrow {
    width: 40px;
    height: 40px;
  }
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 30px 0;
  font-size: 13px;
}
.site-footer__row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .calc-actions { grid-template-columns: 1fr; }
  .modal-lead__frame { padding: 24px 20px 18px; }
  .lp-rating { flex-wrap: wrap; }
  .lp-rating__caption { width: 100%; flex: 1 0 100%; }
  .hero .container { padding-top: 24px; padding-bottom: 32px; }
  .trust-bar { grid-template-columns: auto 1fr; }
  .trust-bar__arrow { display: none; }
  .benefits-pro li { gap: 12px; }
  /* Mobile fit для v3/v4 — компактный hero так, чтобы calc был в первом экране */
  .lp-grid:has(.lp-pitch--head) .hero__title {
    font-size: 21px;
    line-height: 1.18;
    margin-bottom: 6px;
  }
  .lp-grid:has(.lp-pitch--head) .hero__lead {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .lp-grid:has(.lp-pitch--head) .hero__cta-hint { display: none; }
  .lp-grid:has(.lp-pitch--head) { gap: 10px; }
  .lp-grid:has(.lp-pitch--head) .lp-calc {
    padding: 14px 14px 12px;
  }
  .lp-grid:has(.lp-pitch--head) .calc__field { margin-bottom: 8px; }
  .lp-grid:has(.lp-pitch--head) .calc__head { margin-bottom: 8px; }
  .lp-grid:has(.lp-pitch--head) .calc__title { font-size: 16px; line-height: 1.25; }
  .lp-grid:has(.lp-pitch--head) .calc__label { margin-bottom: 4px; font-size: 10px; }
  .lp-grid:has(.lp-pitch--head) .calc-radio__opt { padding: 7px 10px; font-size: 12.5px; }
  .lp-grid:has(.lp-pitch--head) .calc-mod { padding: 4px 4px; font-size: 12px; gap: 6px; }
  .lp-grid:has(.lp-pitch--head) .calc-mod__check { width: 16px; height: 16px; }
  .lp-grid:has(.lp-pitch--head) .calc-actions { grid-template-columns: 1fr 1fr; gap: 6px; }
  .lp-grid:has(.lp-pitch--head) .btn { padding: 10px 8px; font-size: 12.5px; gap: 6px; }
  .lp-grid:has(.lp-pitch--head) .btn svg { width: 16px; height: 16px; }
  .lp-grid:has(.lp-pitch--head) .calc__social-proof { display: none; }
  .lp-grid:has(.lp-pitch--head) .calc-select { padding: 8px 32px 8px 10px; font-size: 13px; }
  .lp-grid:has(.lp-pitch--head) .calc-range__top { font-size: 11px; }
  .lp-grid:has(.lp-pitch--head) .quiz-options { gap: 4px; }
  .lp-grid:has(.lp-pitch--head) .quiz-opt { padding: 7px 10px; font-size: 12.5px; gap: 8px; }
  .lp-grid:has(.lp-pitch--head) .quiz-opt__check { width: 16px; height: 16px; margin-top: 1px; }
  .lp-grid:has(.lp-pitch--head) .quiz-opt__sub { font-size: 11.5px; }
  .lp-pitch--body { margin-top: 18px; }
  .lp-pitch--body .trust-bar { margin-bottom: 22px; }
}

/* ============================================================
   R3 patch — 2026-05-05
   Carousels: cases (3/2/1.15) + videos (4/2/1.15), bigger arrows.
   ============================================================ */

/* — Slider arrows: bigger, rounder, more contrast — */
.section .slider__btn {
  width: 52px;
  height: 52px;
  border-width: 1.5px;
  border-color: var(--ink-2, #2c2c2c);
  background: #fff;
  color: var(--ink, #1a1a1a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.section .slider__btn:hover {
  background: var(--accent, #8a3a2a);
  border-color: var(--accent, #8a3a2a);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.section .slider__btn svg { width: 22px; height: 22px; stroke-width: 2.4; }
.section .slider__nav { gap: 12px; }

/* — Cases carousel: 3 desktop / 2 tablet / 1.15 mobile — */
.cases .slider__track { gap: 20px; }
.cases .slider__track .case {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  max-width: none;
}
@media (max-width: 1023px) {
  .cases .slider__track .case { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 720px) {
  .cases .slider__track { gap: 14px; }
  .cases .slider__track .case { flex-basis: 86%; min-width: 0; }
}

/* Tighter case typography so 3-up reads well */
.cases .case__title { font-size: 16px; line-height: 1.3; }
.cases .case__meta  { font-size: 12.5px; line-height: 1.45; }
.cases .case__body  { padding: 14px 16px 16px; }

/* — Videos carousel: 4 desktop / 2 tablet / 1.15 mobile — */
.videos .slider__track { gap: 20px; }
.videos .slider__track .video-card {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
  max-width: none;
}
@media (max-width: 1023px) {
  .videos .slider__track .video-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 720px) {
  .videos .slider__track { gap: 14px; }
  .videos .slider__track .video-card { flex-basis: 86%; min-width: 0; }
}

@media (max-width: 720px) {
  .burger { display: none !important; }
}

/* Force 16:9 landscape posters (donor thumbs are landscape) */
.videos .video-card__media { aspect-ratio: 16 / 9; }

/* Captions: name larger, role greyer */
.videos .video-card__caption { padding: 12px 14px 14px; }
.videos .video-card__name { font-size: 15px; line-height: 1.25; }
.videos .video-card__role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
