/* =========================================================
   СкотчПринт Саратов — logotipsaratov.ru
   Токены сняты с исходника (logo-tape-craft.lovable.app).
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f9fafb;
  --fg: #1b1b1c;
  --card: #ffffff;
  --primary: #1e68cf;
  --primary-hover: #2f74d4;
  --primary-fg: #ffffff;
  --primary-15: rgb(30 104 207 / 15%);
  --muted-fg: #6e7177;
  --accent: #e8f2ff;
  --accent-60: rgb(232 242 255 / 60%);
  --border: #d4d4d6;
  --input: #d4d4d6;
  --destructive: #e7000b;

  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 32px;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
  --shadow-soft-float: 0 20px 40px -10px rgb(0 0 0 / 5%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);

  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;

  --container: 1280px;
  --font: "Inter", -apple-system, "system-ui", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; cursor: pointer; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[id] { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.container--narrow { max-width: 768px; }
.section { padding-block: 96px; background: var(--bg); }
.section--surface { background: var(--surface); }
@media (min-width: 768px) { .section { padding-block: 128px; } }

.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon--20 { width: 20px; height: 20px; }
.icon--28 { width: 28px; height: 28px; }
.text-primary { color: var(--primary); }

/* ---------- Typography ---------- */
.h2 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: var(--tracking-tighter);
}
.h2--xl { max-width: 576px; }
.h2--2xl { max-width: 672px; }
.h2--3xl { max-width: 768px; }
.lead {
  margin-top: 16px;
  max-width: 672px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted-fg);
}
.lead--xl { max-width: 576px; }
.h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: var(--tracking-tighter);
}
@media (min-width: 768px) {
  .h2 { font-size: 48px; line-height: 1; }
  .h3 { font-size: 24px; line-height: 32px; }
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  padding: 4px 12px;
}
.pill--lg { padding: 6px 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), opacity 150ms var(--ease);
}
.btn .icon { pointer-events: none; }
.btn--primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { background: var(--bg); border: 1px solid var(--input); box-shadow: var(--shadow-sm); }
.btn--outline:hover { background: var(--accent); color: var(--primary); }
.btn--lg { height: 40px; padding: 0 32px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn--icon { width: 36px; height: 36px; padding: 0; }
.btn--block { width: 100%; }
.btn--block-sm { width: 100%; }
@media (min-width: 640px) { .btn--block-sm { width: auto; } }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Check list ---------- */
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; }
.checks .icon { margin-top: 2px; color: var(--primary); }
.checks--lg .icon { width: 20px; height: 20px; }

/* ---------- Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--card);
  padding: 28px;
  box-shadow: var(--shadow-soft-float);
}
@media (min-width: 768px) { .card { padding: 36px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 72%);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
}
@media (min-width: 768px) { .header-inner { padding-block: 16px; } }
.header-left { display: flex; min-width: 0; align-items: center; gap: 32px; }
.brand { display: flex; min-width: 0; align-items: center; gap: 8px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 14px;
  font-weight: 700;
}
.brand-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: var(--tracking-tighter);
}
.main-nav { display: none; align-items: center; gap: 24px; }
.main-nav a { font-size: 14px; line-height: 20px; color: var(--muted-fg); transition: color 150ms var(--ease); }
.main-nav a:hover { color: var(--fg); }
.header-right { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}
.header-phone .icon { color: var(--primary); }
@media (min-width: 1024px) {
  .main-nav, .header-phone { display: flex; }
  .lg-hidden { display: none !important; }
}

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 64px; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero h1 {
  margin-top: 24px;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: var(--tracking-tighter);
}
@media (min-width: 768px) { .hero h1 { font-size: 60px; } }
.hero-text { margin-top: 24px; max-width: 576px; font-size: 18px; line-height: 1.625; color: var(--muted-fg); }
.hero .checks { margin-top: 32px; }
.hero-cta { margin-top: 40px; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted-fg);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--primary); }
.hero-media { position: relative; }
.hero-photo { overflow: hidden; border-radius: var(--r-3xl); background: var(--surface); box-shadow: var(--shadow-soft-float); }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-price {
  position: absolute;
  bottom: -24px;
  left: 24px;
  right: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: rgb(255 255 255 / 90%);
  padding: 16px;
  box-shadow: var(--shadow-soft-float);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .hero-price { left: auto; right: 32px; width: 256px; } }
.hero-price__from { font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.025em; color: var(--muted-fg); }
.hero-price__value { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: var(--tracking-tighter); color: var(--primary); }
.hero-price__note { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted-fg); }

/* ---------- Grids ---------- */
.grid-2 { margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
}

/* ---------- Methods ---------- */
.method-card .pill { margin-top: 16px; }
.method-card .h3 { margin-top: 12px; }
.method-price { margin-top: 8px; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: var(--tracking-tighter); color: var(--primary); }
.method-card .checks { margin-top: 24px; }
.method-card .btn, .tier-card .btn { margin-top: 32px; }
.scheme {
  margin-top: 24px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--bg);
  padding: 16px;
}
.scheme figcaption {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--muted-fg);
}
.scheme-layers { overflow: hidden; border: 0.5px solid var(--border); border-radius: var(--r-xl); }
.scheme-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 16px;
}
.scheme-layer + .scheme-layer { border-top: 0.5px solid var(--border); }
.scheme-layer b { font-weight: 500; letter-spacing: var(--tracking-tight); }
.scheme-layer small { flex-shrink: 0; font-size: 11px; color: var(--muted-fg); }
.layer-ink { background: var(--primary-15); }
.layer-film { background: var(--surface); }
.layer-glue { background: var(--accent); }

/* ---------- Anatomy ---------- */
.anatomy-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 56px; }
@media (min-width: 768px) { .anatomy-grid { grid-template-columns: 1fr 1fr; } }
.anatomy-notes { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.anatomy-layers { display: flex; flex-direction: column; gap: 12px; }
.anatomy-layer {
  border-radius: var(--r-2xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft-float);
  opacity: 0.4;
  transform: translateY(-50px) rotate(var(--rot, 0deg));
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.34, 1.3, 0.64, 1);
}
.anatomy-layer:nth-child(1) { --rot: -5deg; background: var(--accent); color: var(--primary); }
.anatomy-layer:nth-child(2) { --rot: 0deg; background: var(--primary); color: var(--primary-fg); transition-delay: 100ms; }
.anatomy-layer:nth-child(3) { --rot: 5deg; background: var(--card); border: 1px solid var(--border); transition-delay: 200ms; }
.anatomy-layers.is-joined .anatomy-layer { opacity: 1; transform: none; }
.anatomy-layer p:first-child { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.anatomy-layer p + p { margin-top: 4px; font-size: 12px; line-height: 16px; opacity: 0.8; }

/* ---------- Tiers ---------- */
.tier-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: flex-start; gap: 16px; }
.tier-head .pill { margin-top: 16px; }
.tier-head .h3 { margin-top: 12px; }
.tier-price { flex-shrink: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: var(--tracking-tighter); color: var(--primary); }
.tier-desc { margin-top: 16px; font-size: 14px; line-height: 1.625; color: var(--muted-fg); }
.tier-card .checks { margin-top: 24px; }

/* ---------- Pricing table ---------- */
.price-table-wrap {
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  background: var(--card);
  box-shadow: var(--shadow-soft-float);
}
.price-table-scroll { overflow-x: auto; }
.price-table { width: 100%; min-width: 820px; font-size: 14px; line-height: 20px; }
.price-table th, .price-table td { padding: 16px 20px; white-space: nowrap; text-align: right; }
.price-table th { font-weight: 500; letter-spacing: var(--tracking-tight); }
.price-table th:first-child { position: sticky; left: 0; z-index: 1; padding-inline: 24px; text-align: left; }
/* Как в оригинале: заголовок первой колонки и строка «Лучшая цена» могут переноситься */
.price-table thead th:first-child,
.price-table tr.price-best-row th,
.price-table tr.price-best-row td { white-space: normal; }
.price-table thead tr, .price-table thead th:first-child { background: var(--surface); }
.price-table tbody tr:nth-child(odd), .price-table tbody tr:nth-child(odd) th { background: var(--card); }
.price-table tbody tr:nth-child(even), .price-table tbody tr:nth-child(even) th { background: #fbfcfc; }
.price-table td { font-variant-numeric: tabular-nums; }
.price-table .na { color: var(--muted-fg); }
.price-table .best { font-weight: 600; color: var(--primary); }
.price-table tr.price-best-row, .price-table tr.price-best-row th { background: var(--accent-60) !important; }
.price-table tr.price-best-row { border-top: 1px solid var(--border); }
.price-table tr.price-best-row th span { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); }
.price-table tr.price-best-row td { color: var(--muted-fg); }
.price-table tr.price-best-row td b { font-weight: 500; color: var(--fg); }
.price-table tr.price-best-row td strong { font-weight: 600; color: var(--primary); }
.price-note-box { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); padding: 24px; }
.price-note-box p:first-child { font-weight: 500; letter-spacing: var(--tracking-tight); }
.price-note-box p + p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.price-footnote { margin-top: 24px; max-width: 768px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }

/* ---------- Gallery ---------- */
.gallery-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  overflow: hidden;
  border: 0.5px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--bg);
  text-align: left;
  box-shadow: var(--shadow-soft-float);
  transition: transform 300ms var(--ease), opacity 600ms ease;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item span { display: block; padding: 12px 16px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.gallery .h2 { letter-spacing: -0.02em; }

/* ---------- Article (справочник) ---------- */
.guide-block { margin-top: 56px; }
.guide-block p { margin-top: 16px; line-height: 1.625; color: var(--muted-fg); }

/* ---------- Calc ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr; align-items: start; gap: 56px; }
@media (min-width: 768px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-intro .lead { max-width: none; }
.steps { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; }
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 14px;
  font-weight: 600;
}
.step dt { font-weight: 500; letter-spacing: var(--tracking-tight); }
.step dd { font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--card);
  padding: 24px;
  box-shadow: var(--shadow-soft-float);
}
@media (min-width: 768px) { .form-card { padding: 36px; } }

/* ---------- Form ---------- */
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-size: 14px; line-height: 1; font-weight: 500; }
.field > label { line-height: 16px; }
.field:has(> select) { padding-bottom: 8px; }
.field > label span { color: var(--primary); }
.input {
  display: flex;
  width: 100%;
  height: 36px;
  border: 1px solid var(--input);
  border-radius: var(--r-md);
  background: transparent;
  padding: 4px 12px;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
@media (min-width: 768px) { .input { font-size: 14px; } }
.input::placeholder { color: var(--muted-fg); }
.input:focus { outline: none; box-shadow: 0 0 0 1px var(--primary); }
textarea.input { height: auto; min-height: 60px; padding-block: 8px; line-height: 24px; resize: vertical; }
@media (min-width: 768px) { textarea.input { line-height: 20px; } }
select.input {
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  padding-right: 36px;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1b1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
.input.is-invalid { border-color: var(--destructive); }
.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--input);
  border-radius: var(--r-xl);
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.file-btn:hover, .file-btn.is-drag { background: var(--accent); color: var(--primary); }
.file-btn .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-hint { font-size: 12px; line-height: 16px; color: var(--muted-fg); }
.field-error { font-size: 13px; line-height: 18px; color: var(--destructive); }
.form-consent { text-align: center; font-size: 12px; line-height: 16px; color: var(--muted-fg); }
.form-consent a { text-decoration: underline; text-underline-offset: 2px; }
.hidden { display: none !important; }

/* Honeypot — поля-ловушки для ботов, людям не видны */
.hp-field {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}
.faq-q:hover { text-decoration: underline; }
.faq-q .icon { color: var(--muted-fg); transition: transform 200ms var(--ease); }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms ease-out; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 16px; font-size: 16px; line-height: 1.625; color: var(--muted-fg); }

/* ---------- Contacts / footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.contacts-list { display: flex; flex-direction: column; gap: 24px; }
.contacts-list > div { display: flex; gap: 16px; }
.contacts-list .icon { margin-top: 2px; width: 20px; height: 20px; color: var(--primary); }
.contacts-list dt { font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.contacts-list dd { font-weight: 500; letter-spacing: var(--tracking-tight); }
.contacts-legal { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.card--surface { background: var(--surface); }
.card--surface > p:first-child { font-weight: 500; letter-spacing: var(--tracking-tight); }
.card--surface > p + p { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.call-btn {
  margin-top: 24px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  padding: 10px 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--primary-fg);
  transition: opacity 150ms var(--ease);
}
.call-btn:hover { opacity: 0.9; }
.footer-bottom { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom p, .footer-bottom a { font-size: 12px; line-height: 16px; color: var(--muted-fg); }
.footer-bottom a { text-underline-offset: 4px; transition: color 150ms var(--ease); }
.footer-bottom a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- Overlay / dialogs ---------- */
body.is-locked { overflow: hidden; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(0 0 0 / 80%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 101;
  width: calc(100% - 0px);
  max-width: 512px;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 200ms ease, transform 200ms ease;
}
.modal.is-open .overlay { opacity: 1; }
.modal.is-open .dialog { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dialog-body { padding: 24px; }
.dialog-title { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: var(--tracking-tighter); padding-right: 24px; }
.dialog-desc { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.dialog-body .calc-form { margin-top: 8px; }
.dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 150ms var(--ease);
}
.dialog-close:hover { opacity: 1; }
.dialog-close .icon { width: 16px; height: 16px; }
@media (max-width: 639px) { .dialog-header { text-align: center; } }

/* Лайтбокс галереи */
.dialog--lightbox { padding: 0; }
.dialog--lightbox img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.dialog--lightbox p { padding: 16px 24px 20px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }

/* Окно «Заявка отправлена» */
.dialog--success { max-width: 420px; text-align: center; }
.success-icon {
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
}
.success-icon .icon { width: 28px; height: 28px; }
.dialog--success .dialog-title { padding-right: 0; }

/* Мобильное меню (выезжает справа) */
.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: 86vw;
  max-width: 384px;
  border-left: 1px solid var(--border);
  border-radius: var(--r-2xl) 0 0 var(--r-2xl);
  background: var(--bg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 400ms var(--ease);
}
.modal.is-open .sheet { transform: none; }
.sheet-title { font-size: 18px; line-height: 28px; font-weight: 600; }
.sheet-desc { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.sheet-nav { margin-top: 32px; display: grid; gap: 8px; }
.sheet-nav a {
  border-radius: var(--r-2xl);
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  transition: background-color 150ms var(--ease);
}
.sheet-nav a:hover { background: var(--surface); }
.sheet-actions { margin-top: auto; display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal--sm { transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Страница политики ---------- */
.simple-header { border-bottom: 1px solid var(--border); }
.simple-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.simple-header__logo { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.simple-header__back { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted-fg); transition: color 150ms var(--ease); }
.simple-header__back:hover { color: var(--fg); }
.legal { padding-block: 64px; }
@media (min-width: 768px) { .legal { padding-block: 96px; } }
.legal h1 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: var(--tracking-tighter); }
@media (min-width: 768px) { .legal h1 { font-size: 36px; line-height: 40px; } }
.legal-date { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.legal-body { margin-top: 40px; display: flex; flex-direction: column; gap: 40px; font-size: 15px; line-height: 1.625; color: rgb(27 27 28 / 90%); }
.legal-body h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--fg); }
.legal-body p, .legal-body ul { margin-top: 12px; }
.legal-body ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--primary); }
.legal-body a:hover { text-decoration: underline; }
