/* BOSS SHOP — чёрно-белый прайс. Без внешних шрифтов и CDN. */
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/GolosText.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --fg: #000;
  --bg: #fff;
  --muted: #555;          /* 7.4:1 на белом */
  --rule: #b3b3b3;
  --rule-strong: #000;
  --wrap: 1120px;
  --pad: 32px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
.hero-price, .row-price, .offer-price, .menu-price, .page-from { font-variant-numeric: tabular-nums; }
a { color: inherit; }
a:hover { opacity: .65; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 20px; text-align: center;
  border-radius: var(--radius); text-decoration: none;
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn-solid { background: var(--fg); color: var(--bg); border: 2px solid var(--fg); }
.btn-line { border: 2px solid var(--fg); background: transparent; color: var(--fg); }
.btn-inv { background: var(--bg); color: var(--fg); border: 2px solid var(--bg); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 18px; }
.more, .link-cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.block-side .more { display: flex; width: fit-content; margin-top: 8px; }
.works .more { margin-top: 16px; }

/* ---------- шапка ---------- */
.site-header { border-bottom: 1px solid var(--rule); position: relative; z-index: 20; background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; padding-bottom: 20px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; flex: 1 1 320px; font-size: 16px; }
.main-nav > a { text-decoration: none; padding: 10px 0; }
.price-menu summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--fg); border-radius: var(--radius); font-weight: 600; cursor: pointer; list-style: none;
}
.price-menu summary::-webkit-details-marker { display: none; }
.price-menu[open] summary { background: var(--fg); color: var(--bg); }
.price-menu[open] summary svg { transform: rotate(180deg); }
.price-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 2px solid var(--fg);
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.price-menu-cols { display: flex; flex-wrap: wrap; gap: 24px 40px; padding-top: 24px; padding-bottom: 28px; }
.menu-col { flex: 1 1 230px; min-width: 0; }
.menu-col-title { display: block; padding: 8px 0; font-size: 19px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--fg); }
.menu-col ul { margin: 6px 0 0; padding: 0; list-style: none; }
.menu-col li a { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; text-decoration: none; font-size: 15px; }
.menu-col li a .leader { display: none; }
.menu-price { white-space: nowrap; color: var(--muted); }

/* пунктир между названием и ценой */
.leader { flex: 1; min-width: 16px; border-bottom: 1px dotted currentColor; opacity: .5; }
.leader-2 { border-bottom-width: 2px; opacity: .45; }

/* ---------- первый экран ---------- */
.hero { padding: 72px 0 56px; }
.hero h1, .page-hero h1 { font-size: clamp(36px, 6.2vw, 76px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 700; max-width: 17ch; }
.hero-text { margin-top: 24px; font-size: 20px; max-width: 46ch; color: var(--muted); }
.hero-list { margin-top: 56px; border-bottom: 2px solid var(--fg); }
.hero-row { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.hero-row:first-child { border-top: 2px solid var(--fg); }
.hero-name { font-size: clamp(21px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; }
.hero-price { font-size: clamp(16px, 2.2vw, 24px); font-weight: 500; white-space: nowrap; }
.hero-row-sm { padding: 14px 0; }
.hero-row-sm .hero-name { font-size: 20px; }
.hero-row-sm .hero-price { font-size: 17px; }
.block-list > .hero-row-sm:first-child { border-top: 1px solid var(--rule); }

.page-hero { padding: 40px 0 32px; }
.page-text { margin-top: 18px; font-size: 19px; max-width: 60ch; color: var(--muted); }
.page-from { margin-top: 18px; font-size: 20px; font-weight: 700; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 15px; color: var(--muted); }
.crumbs a { padding: 6px 0; }
.crumbs span { padding: 6px 0; }

/* ---------- разделы прайса ---------- */
.block { padding: 56px 0; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.block-side { flex: 1 1 260px; }
.block-title { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.block-title a { text-decoration: none; }
.block-intro { margin: 14px 0 24px; color: var(--muted); max-width: 34ch; }
.block-intro.wide { max-width: 56ch; margin-bottom: 32px; }
.block-list { flex: 3 1 520px; min-width: 0; border-bottom: 1px solid var(--rule); }

.block-inv {
  margin: 32px calc(-1 * clamp(0px, 3vw, 24px));
  padding: clamp(28px, 5vw, 56px);
  background: var(--fg); color: var(--bg); border-radius: 12px; border-top: 0 !important;
  --muted: #c8c8c8; --rule: #6f6f6f;
}
.block-inv + .block { border-top: 0; }
.block-inv :focus-visible { outline-color: var(--bg); }

.row { padding: 20px 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.row-head { display: flex; align-items: baseline; gap: 12px; }
.row-name { font-size: 20px; font-weight: 600; }
.row-price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.row-desc { margin-top: 6px; font-size: 15px; color: var(--muted); max-width: 62ch; }
.extra-title { padding: 28px 0 10px; font-size: 15px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--rule); }
.extra-title + .row { border-top: 0; }
.empty { padding: 24px 0; color: var(--muted); }

.offer { padding: 24px 0 28px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.offer-name { font-size: 22px; font-weight: 700; }
.offer-price { font-size: 22px; font-weight: 700; white-space: nowrap; }
.offer-lead { margin: 8px 0 14px; font-size: 17px; max-width: 60ch; }
.dash-list { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--muted); max-width: 62ch; }
.dash-list li { padding-left: 22px; position: relative; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; border-top: 2px solid currentColor; }

.faq { padding: 8px 0 24px; border-top: 1px solid var(--rule); }
.faq-title { display: block; padding: 20px 0 6px; font-size: 20px; font-weight: 700; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 16px; color: var(--muted); max-width: 62ch; }
.block-list > .faq:first-child { border-top: 0; padding-top: 0; }

/* ---------- работы и шаги ---------- */
.works, .how { padding: 56px 0; border-top: 1px solid var(--rule); }
.page-hero + .works { border-top: 0; padding-top: 0; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: 28px; }
.works .block-intro + .works-grid { margin-top: 0; }
.work { min-width: 0; }
.work-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--rule); border-radius: 8px; }
.work-img-empty { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; background: #f2f2f2; }
.work-title { margin-top: 18px; font-size: 22px; font-weight: 700; }
.work-desc { margin: 6px 0 4px; font-size: 16px; color: var(--muted); }
.work-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.work-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.steps { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 32px; }
.steps li { flex: 1 1 220px; }
.step-n { display: block; font-size: 44px; font-weight: 900; line-height: 1; }
.steps p { margin-top: 12px; }
.steps-tight { margin: 20px 0 28px; }

/* ---------- подвал ---------- */
.site-footer { background: var(--fg); color: var(--bg); margin-top: 32px; --muted: #c8c8c8; }
.site-footer :focus-visible { outline-color: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.footer-title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; max-width: 16ch; }
.footer-text { margin-top: 12px; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-link { padding: 10px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 15px; color: var(--muted); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

.mobile-cta { display: none; }

/* ---------- DARK: плашка на главной, меню, подвал ---------- */

.dark-tile {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  margin-top: 20px; padding: 28px 32px;
  background: #000; color: #fff; border-radius: 14px; text-decoration: none;
}
.dark-tile:hover { opacity: 1; }
.dark-tile:focus-visible { outline-color: #000; outline-offset: 4px; }
.dark-tile-word {
  position: relative; font-size: clamp(44px, 7vw, 88px); line-height: .9; font-weight: 900; letter-spacing: -0.03em;
}
.dark-tile-echo {
  position: absolute; left: .06em; top: .06em; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .45);
}
.dark-tile-text { flex: 1 1 220px; color: #bdbdbd; font-size: 17px; max-width: 34ch; }
.dark-tile-go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border: 2px solid #fff; border-radius: 999px; font-weight: 700; font-size: 17px; margin-left: auto;
}
.dark-tile:hover .dark-tile-go, .dark-tile:focus-visible .dark-tile-go { background: #fff; color: #000; }

.menu-dark {
  flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; background: #000; color: #fff; border-radius: 12px; text-decoration: none; align-self: flex-start;
}
.menu-dark-name { font-size: 26px; line-height: 1; font-weight: 900; letter-spacing: -0.02em; }
.menu-dark-text { font-size: 14px; color: #bdbdbd; }
.footer-nav-dark { font-weight: 900; color: var(--bg); letter-spacing: .02em; }

/* ---------- DARK: отдельная страница ---------- */
body.page-dark { --fg: #fff; --bg: #000; --muted: #a8a8a8; --rule: #333; }
.page-dark .site-footer { background: #000; color: #fff; border-top: 1px solid var(--rule); margin-top: 0; }
.page-dark .site-footer .btn-inv { background: #fff; color: #000; border-color: #fff; }
.page-dark .footer-nav-dark { color: #fff; }

.dk { padding: 40px 0 96px; }
.dk-word {
  position: relative; margin: 0;
  font-size: min(29vw, 380px); line-height: .82; font-weight: 900; letter-spacing: -0.055em;
}
.dk-word-main { position: relative; display: block; }
.dk-word-echo {
  position: absolute; left: .045em; top: .045em; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35);
}
.dk-row { margin-top: 48px; }
.dk-copy { flex: 1 1 300px; }
.dk-lead { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.dk-text { margin-top: 14px; color: var(--muted); max-width: 40ch; font-size: 18px; }
.dk-btn { margin-top: 24px; min-height: 60px; padding: 0 40px; font-size: 19px; background: #fff; color: #000; border: 2px solid #fff; border-radius: 999px; }
.dk-btn:hover { opacity: 1; background: #000; color: #fff; }
.dk-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.dk-word-main, .dk-word-echo { animation: dk-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.dk-word-echo { animation-delay: .12s; }
@keyframes dk-rise { from { opacity: 0; transform: translateY(.12em); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .dk-word-main, .dk-word-echo { animation: none; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  :root { --pad: 18px; }
  body { font-size: 16px; padding-bottom: 76px; }
  .header-cta { display: none; }
  .header-row { padding-top: 14px; padding-bottom: 14px; }
  .main-nav { flex-basis: 100%; gap: 4px 18px; }
  .hero { padding: 40px 0 40px; }
  .hero-list { margin-top: 36px; }
  .hero-row, .row-head { flex-wrap: wrap; }
  .hero-row .leader, .row-head .leader { display: none; }
  .hero-row { justify-content: space-between; row-gap: 2px; }
  .hero-price, .row-price, .offer-price { flex-basis: 100%; }
  .block { padding: 40px 0; gap: 20px; }
  .block-title { font-size: 28px; }
  .works-grid { grid-template-columns: minmax(0, 1fr); }
  .block-inv { margin-left: 0; margin-right: 0; }
  .mobile-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    min-height: 52px; border-radius: 10px; background: var(--fg); color: var(--bg);
    font-weight: 700; text-decoration: none; box-shadow: 0 0 0 2px var(--bg);
  }
  .mobile-cta:hover { opacity: 1; }
  .dark-tile { padding: 22px 20px; }
  .dark-tile-go { width: 100%; justify-content: center; }
  .dk { padding: 24px 0 56px; }
  .dk-row { margin-top: 32px; }
  .dk-btn { width: 100%; }
}
}
