/* Сайт «Взял-Вернул»: те же цвета и шрифт, что CRM и макеты Claude Design. Сначала телефон. */
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FAF8F4; --surface: #FFFFFF; --soft: #F3EFE8; --line: #E6E1D8; --line-strong: #D9D3C8;
  --text: #1C1B19; --muted: #5F5B54; --accent: #C2410C; --accent-hover: #9A3412; --accent-soft: #FFF0E6;
  --ok: #2B6E35; --ok-soft: #EBFBEE; --warn-soft: #FFF4E0; --warn: #8F4700;
  --dark: #1C1B19; --on-dark: #FFFFFF; --on-dark-muted: #C9C4BB;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412; --surface: #1F1D1A; --soft: #262420; --line: #34312C; --line-strong: #46423B;
    --text: #F2EEE7; --muted: #ABA49A; --accent: #F07A3A; --accent-hover: #FF9A5E; --accent-soft: #3A2417;
    --ok: #8BD39A; --ok-soft: #1D2E21; --warn-soft: #33281A; --warn: #F2C27A;
    --dark: #0E0D0C; --on-dark: #F2EEE7; --on-dark-muted: #ABA49A;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand svg { width: 28px; height: 28px; flex: none; }
@media (prefers-color-scheme: dark) { .brand .logo-bg { fill: #3A3631; } }
.nav { display: none; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--soft); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-hover); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .btn.primary, .btn.primary:hover { color: #1C1B19; } }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--text); color: var(--text); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* первый экран */
.hero { padding: 28px 0 8px; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: 34px; font-weight: 700; max-width: 16ch; }
.hero .lead { font-size: 18px; color: var(--muted); margin-top: 14px; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.where { margin-top: 18px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }

.facts { display: none; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #3A3833; }
.facts li:first-child { border-top: 0; }
.facts span { color: var(--on-dark-muted); }
.facts b { color: var(--on-dark); font-weight: 600; text-align: right; }
@media (min-width: 960px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .facts { display: block; background: var(--dark); border-radius: 20px; padding: 14px 24px; }
}

/* разделы */
section.block { padding: 36px 0 8px; }
.block > .wrap > h2, .block h2.h { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.block .sub { color: var(--muted); margin: -8px 0 16px; max-width: 62ch; }
.grid { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--muted); margin-top: 6px; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.stack > * + * { margin-top: 8px; }
.note { margin-top: 10px; }
.steps .card { position: relative; padding-left: 64px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--dark); color: var(--on-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* позиции */
.tool h3 { font-size: 18px; }
.tool .for { color: var(--muted); margin-top: 6px; font-size: 15px; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }  /* 6 тарифов — 3 × 2 */
.prices div { background: var(--soft); border-radius: 12px; padding: 8px 8px; min-width: 0; }
.prices dt { font-size: 12px; color: var(--muted); white-space: nowrap; }
.prices dd { margin: 0; font-weight: 700; font-size: 15px; white-space: nowrap; }
.prices div.main { background: var(--accent-soft); }
.prices div.main dd { color: var(--accent); }
.dep { margin-top: 10px; font-size: 14px; color: var(--muted); }
.dep b { color: var(--text); font-weight: 600; }
.card.tool { display: flex; flex-direction: column; }
.tool .take { margin-top: auto; padding-top: 12px; }
table.price td.take { width: 1%; padding-top: 6px; padding-bottom: 6px; }
.more { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span, .chips a { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.chips a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

.dark { background: var(--dark); color: var(--on-dark); border-radius: 20px; padding: 22px 18px; }
.dark h2 { color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); margin-top: 10px; }
.dark p:first-of-type { color: var(--on-dark); }

.why .card { display: flex; gap: 12px; align-items: flex-start; }
.why svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 2px; }
.why h3 { font-size: 17px; }
.why p { margin-top: 2px; }

/* вопросы */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 16px; font-weight: 600; position: relative; min-height: 48px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

/* как найти */
.find dl { margin: 0; display: grid; gap: 12px; }
.find dt { font-size: 13px; color: var(--muted); }
.find dd { margin: 2px 0 0; font-weight: 600; }

/* прайс */
.page-head { padding: 28px 0 4px; }
.page-head h1 { font-size: 32px; }
.notes { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.notes li { padding-left: 18px; position: relative; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.group { margin-top: 32px; }
.group h2 { font-size: 24px; }
.group .gnote { color: var(--muted); margin-top: 6px; }
.group h3.cat { font-size: 15px; font-weight: 600; color: var(--muted); margin: 18px 0 8px; text-transform: none; }
table.price { width: 100%; border-collapse: collapse; }
table.price caption { text-align: left; }
table.price th { font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; padding: 8px 10px; white-space: nowrap; }
table.price th:first-child, table.price td:first-child { text-align: left; }
table.price td { padding: 12px 10px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
table.price td:first-child { white-space: normal; font-weight: 600; }
table.price td.day { font-weight: 700; color: var(--accent); }
.tablecard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 8px; margin-top: 8px; }

/* на телефоне таблица — карточками: подпись столбца из data-label */
@media (max-width: 719px) {
  table.price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.price, table.price tbody, table.price tr, table.price td { display: block; }
  table.price tr { padding: 12px 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
  table.price tbody tr:first-child { border-top: 0; }
  table.price td { border: 0; padding: 0; text-align: left; }
  table.price td:first-child { grid-column: 1 / -1; font-size: 16px; margin-bottom: 2px; }
  table.price td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
  table.price td.empty { display: none; }
  table.price td.take { grid-column: 1 / -1; width: auto; padding: 4px 0 0; }
  table.price td.take:empty { display: none; }
  table.price td.take .btn { width: 100%; }
}

/* подвал */
footer.foot { margin-top: 48px; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.foot .wrap { display: grid; gap: 10px; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.foot a { color: var(--muted); }

/* нижняя панель на телефоне */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.cta-bar .btn { flex: 1; }
body.has-bar { padding-bottom: 76px; }

.err { padding: 72px 0 24px; text-align: center; }
.err h1 { font-size: 40px; }
.err p { color: var(--muted); margin-top: 12px; }
.err .actions { justify-content: center; }

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .nav { display: flex; }
  .hero { padding: 56px 0 16px; }
  .hero h1 { font-size: 52px; }
  .hero .lead { font-size: 20px; }
  .block > .wrap > h2, .block h2.h { font-size: 32px; }
  .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps .card { padding: 64px 18px 18px; }
  .steps .card::before { top: 18px; }
  .dark { padding: 32px; }
  .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .cta-bar { display: none; }
  body.has-bar { padding-bottom: 0; }
  .find dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head h1 { font-size: 44px; }
}
@media (min-width: 1000px) {
  .grid.tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (max-width: 999px) {
  .grid.tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .top, .cta-bar, .actions { display: none; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 720px) { .mob { display: none; } }
