/* Ondyk — стили. Мобильный дизайн в первую очередь. */

/* Шрифт Manrope (переменный, 400–800) — свои файлы вместо Google Fonts: быстрее и без внешних запросов */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0a2540;
  --ink-2: #334e68;
  --muted: #627d98;
  --line: #dde5ee;
  --bg: #f5f8fb;
  --card: #ffffff;
  --sky: #0aa5c2;
  --sky-dark: #087f96;
  --sky-soft: #e3f6fa;
  --gold: #e3b341;
  --gold-soft: #fbf1d6;
  --green: #1f9d6a;
  --green-soft: #e1f5ec;
  --blue: #4a6fa5;
  --blue-soft: #e8eef8;
  --red: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,37,64,.06), 0 8px 24px rgba(10,37,64,.06);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* орнамент «қошқар мүйіз» — стилизованные бараньи рога */
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48' viewBox='0 0 96 48' fill='none' stroke='%23e3b341' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M48 44V22'/%3E%3Cpath d='M48 22c-6-10-18-10-20 0-1 6 6 8 8 3 1-3-2-5-4-3'/%3E%3Cpath d='M48 22c6-10 18-10 20 0 1 6-6 8-8 3-1-3 2-5 4-3'/%3E%3Cpath d='M0 44h96' stroke-opacity='.35'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.5; font-size: 16px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
b { font-weight: 700; }
small { font-size: .8em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-mobile { display: none !important; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-lead { color: var(--ink-2); font-size: 1.05rem; max-width: 760px; margin-bottom: 28px; }
.note-line { color: var(--ink-2); margin-top: 24px; }
.fineprint { color: var(--muted); font-size: .875rem; margin-top: 16px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #10345a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-btn { background: none; border: 0; color: var(--sky-dark); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* 1. Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.logo-mark { width: 36px; height: 36px; }
.logo-text { font-weight: 800; font-size: 1.2rem; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-weight: 600; color: var(--muted); font-size: .65rem; margin-top: 3px; display: none; }
.main-nav { display: none; gap: 22px; font-weight: 600; }
.main-nav a { color: var(--ink-2); white-space: nowrap; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { width: 40px; height: 40px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; cursor: pointer; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.main-nav.is-open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.main-nav.is-open a:last-child { border-bottom: 0; }

/* 2. Первый экран */
.hero { position: relative; background: linear-gradient(180deg, #ffffff 0%, #edf5f9 100%); padding: 48px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 90% 0%, rgba(10,165,194,.14), transparent 70%),
              radial-gradient(400px 260px at 0% 100%, rgba(227,179,65,.16), transparent 70%);
}
.hero .container { position: relative; }
.hero h1 { max-width: 820px; }
.hero-kicker { font-size: .95rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin: 18px -16px 14px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab.is-soon:hover { border-color: var(--sky); color: var(--ink); }
.soon { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--gold-soft); color: #8a6412; padding: 2px 7px; border-radius: 999px; }
.hero-sub { font-size: clamp(1.15rem, 3.5vw, 1.5rem); font-weight: 700; color: var(--ink); margin: 6px 0 8px; }
.hero-lead { color: var(--ink-2); max-width: 680px; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 24px; margin: 22px 0 6px; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: .8rem; }
.updated { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 auto; }

/* Орнамент-разделитель */
.ornament { height: 48px; background: var(--ornament) repeat-x center bottom; opacity: .9; }
.ornament-bottom { position: absolute; left: 0; right: 0; bottom: 0; }
.ornament-top { transform: scaleY(-1); opacity: .7; }

/* 3. Карточки */
.cards { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin-bottom: .6em; font-size: .95rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon { font-size: 1.6rem; margin-bottom: 8px; line-height: 1; }
.card-tall { display: flex; flex-direction: column; }
.card-tall .btn, .card-tall .btn-row { margin-top: auto; }
.card-tall p + .btn, .card-tall p + .btn-row { margin-top: 12px; }

/* 4. Фильтры */
.section-rating { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating-head { margin-bottom: 20px; }
.rating-dates { color: var(--muted); margin: 0; }
.filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; }
.filter-search { grid-column: 1 / -1; }
.filters input[type="search"], .filters select, .form input, .form select, .form textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: .95rem; color: var(--ink);
}
.filters input:focus, .filters select:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.filter-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.chip.is-on { background: var(--sky-soft); border-color: var(--sky); color: var(--sky-dark); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-left: auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: 0 0 auto; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked + .switch-track { background: var(--sky); }
.switch input:checked + .switch-track::after { left: 19px; }
.filter-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.found { font-weight: 700; }
.hint { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; margin: 0; }

/* Легенда уровней */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lvl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.lvl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lvl-leader { background: var(--gold-soft); color: #7a5a0f; }
.lvl-strong { background: var(--green-soft); color: var(--green); }
.lvl-reliable { background: var(--blue-soft); color: var(--blue); }

/* 5. Список студий */
.table-head { display: none; }
.studio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.studio {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: border-color .15s;
}
.studio:hover { border-color: #c5d2e0; }
.studio.is-open { border-color: var(--sky); }
.studio-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; align-items: center; padding: 14px 14px; width: 100%;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit;
}
.studio-rank { font-weight: 800; font-size: 1.15rem; color: var(--ink); grid-row: 1 / span 2; align-self: start; padding-top: 2px; }
.studio-name { font-weight: 800; font-size: 1.05rem; margin: 0; line-height: 1.3; letter-spacing: 0; }
.studio-meta { grid-column: 2; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.studio-meta span { white-space: nowrap; }
.studio-detail { display: none; padding: 0 14px 16px 14px; border-top: 1px dashed var(--line); margin-top: 0; }
.studio.is-open .studio-detail { display: block; }
.studio-detail .detail-label { margin: 14px 0 6px; font-size: .95rem; font-weight: 800; }
.studio-detail p { color: var(--ink-2); font-size: .95rem; }
.year-line { font-size: .875rem !important; color: var(--muted) !important; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.gap-warn { color: #9a5b00; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.tag.good { background: var(--green-soft); border-color: transparent; color: var(--green); }
.tag.weak { background: #f1f4f7; border-color: transparent; color: var(--muted); }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .9rem; font-weight: 600; }
.detail-fine { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
.detail-fine a { display: block; margin-top: 4px; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.more-wrap { text-align: center; margin-top: 18px; }
.more-wrap .btn { min-width: 240px; }

/* 6. Формы */
.section-match { background: linear-gradient(180deg, var(--bg), #e9f3f7); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field label input, .field label select, .field label textarea { margin-top: 6px; font-weight: 400; }
.field .opt { color: var(--muted); font-weight: 500; }
.field-row { display: grid; gap: 0 12px; }
.form textarea { resize: vertical; }
.form .btn { width: 100%; }
.consent { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
.error { display: none; color: var(--red); font-size: .85rem; margin: 6px 0 0; }
.field.has-error .error { display: block; }
.field.has-error input { border-color: var(--red); }
.success { background: var(--green-soft); color: var(--green); padding: 12px 14px; border-radius: 10px; font-weight: 700; margin: 14px 0 0; }
.form.is-sent > :not(.success) { display: none; }
.form.is-sent .success { display: block; margin-top: 0; }

/* 7. Значок */
.badge-preview { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--ink); font-weight: 700; font-size: .85rem; margin: 6px 0 14px; background: #fff; }
.badge-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.code { background: #0f1f2e; color: #d7e3f0; padding: 12px 14px; border-radius: 10px; font-size: .78rem; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0 0 12px; }

/* 8. Методика и список */
.section-method { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.list { padding-left: 20px; color: var(--ink-2); }
.list li { margin-bottom: 8px; }
.two-col { display: grid; gap: 16px; margin: 16px 0; }
.two-col p { color: var(--ink-2); }
.section-method h3 { margin-top: 24px; }

/* 9. FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; }

/* 10. Подвал */
.site-footer { background: var(--ink); color: #c9d6e3; margin-top: 0; }
.site-footer .ornament-top { opacity: .5; }
.footer-inner { display: grid; gap: 24px; padding: 32px 16px 24px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-muted { color: #8fa6bd; font-size: .9rem; margin: 0; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #e3ecf5; font-weight: 600; }
.site-footer a small { color: #8fa6bd; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px; color: #8fa6bd; font-size: .85rem; }

/* Модалка */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,37,64,.55); }
.modal-dialog { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 24px 18px 28px; box-shadow: 0 -8px 40px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: var(--bg); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.modal .form { border: 0; box-shadow: none; padding: 0; }
.modal .modal-title { padding-right: 36px; font-size: 1.125rem; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
body.modal-open { overflow: hidden; }

/* Планшет и шире */
@media (min-width: 640px) {
  .hide-mobile { display: inline-flex !important; }
  .logo-text small { display: block; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form .btn { width: auto; }
  .hero-actions .btn { flex: 0 0 auto; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .filter-search { grid-column: auto; }
  .modal { align-items: center; padding: 20px; }
  .modal-dialog { border-radius: 18px; padding: 28px 28px 32px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Десктоп */
@media (min-width: 960px) {
  .section { padding: 72px 0; }
  .main-nav { display: flex; }
  .burger { display: none; }
  .cards-5 { grid-template-columns: repeat(5, 1fr); }
  .hero { padding: 72px 0 96px; }
  .tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

  .table-head { display: grid; grid-template-columns: 56px 1fr 200px 90px 170px; gap: 12px; padding: 0 18px 8px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .studio-list { gap: 8px; }
  .studio-row { grid-template-columns: 56px 1fr 200px 90px 170px; gap: 12px; padding: 14px 18px; align-items: center; }
  .studio-rank { grid-row: auto; padding-top: 0; }
  .studio-meta { display: contents; }
  .studio-meta span { font-size: .95rem; color: var(--ink-2); white-space: normal; }
  .studio-meta .m-c1 { grid-column: 3; }
  .studio-meta .m-c2 { grid-column: 4; }
  .studio-meta .m-c3 { grid-column: 5; }
        .studio-detail { padding: 0 18px 20px 86px; }
}

/* ===== Ondyk: хаб, города, ниши, хлебные крошки ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.trust span b { color: var(--ink); }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.city-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: .9rem; text-decoration: none !important; }
.city-chips a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.city-chips a:hover { border-color: var(--sky); color: var(--ink); }
.city-chips a.is-active:hover { color: #fff; }
.niche-groups { display: grid; gap: 28px; }
.niche-group h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.niche-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.niche { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none !important; box-shadow: var(--shadow); transition: border-color .15s; }
.niche:hover { border-color: var(--sky); }
.niche small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; margin-top: 2px; }
.niche .soon { flex: 0 0 auto; }
.niche .live { flex: 0 0 auto; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--green-soft); color: var(--green); padding: 2px 7px; border-radius: 999px; }
.niche.is-live { border-color: var(--green); }
.hub-hero h1 { max-width: 900px; }
.featured { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.featured .btn-row { margin-top: 4px; }
.soon-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); }
.soon-box .list { margin: 0 0 18px; }
.top10-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.top10-head p { margin: 0; color: var(--muted); }
.rest-head { margin: 32px 0 14px; }
.rest-head h3 { margin: 0 0 6px; font-size: 1.25rem; }
.rest-head p { color: var(--muted); margin: 0; }
.logo-mark text { font: 800 15px/1 var(--font); }
@media (min-width: 640px) {
  .niche-grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .niche-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== v2: год в адресе, факты в карточке ===== */
.facts { font-size: .9rem !important; color: var(--ink-2) !important; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.muted { color: var(--muted); font-weight: 600; }
.archive-note { background: var(--gold-soft); color: #7a5a0f; border-radius: 10px; padding: 10px 14px; font-weight: 700; display: inline-block; margin: 0 0 12px; }
.year-chips { margin-top: 4px; }
.year-chips a { padding: 7px 12px; font-size: .85rem; }

/* ===== v3: стиль Airbnb для всего сайта ===== */
:root {
  --h-ink: #222; --h-mute: #6a6a6a; --h-line: #ebebeb; --h-soft: #f7f7f7;
  --h-accent: #087f96; --h-accent-2: #066b7e;
}
body { background: #fff; color: var(--h-ink); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; }
a { color: var(--h-accent); }

/* Шапка и кнопки */
.site-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--h-line); }
.logo { color: var(--h-ink); }
.main-nav { gap: 2px; }
.main-nav a { color: var(--h-ink); padding: 10px 14px; border-radius: 999px; }
.main-nav a:hover { background: var(--h-soft); }
.main-nav.is-open a { border-radius: 0; padding: 12px 0; }
.main-nav.is-open a:hover { background: none; }
.btn { border-radius: 999px; }
.btn-primary { background: var(--h-accent); }
.btn-primary:hover { background: var(--h-accent-2); }
.btn-ghost { border-color: #ddd; color: var(--h-ink); background: #fff; }
.btn-ghost:hover { border-color: var(--h-ink); background: var(--h-soft); }
.ornament { display: none; }

/* Шапка внутренних страниц */
.p-hero { padding: 24px 0 8px; }
.crumbs { color: var(--h-mute); font-weight: 500; }
.crumbs a { color: var(--h-ink); text-decoration: underline; text-underline-offset: 2px; }
.crumbs li + li::before { color: #bbb; }
.p-title { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.p-title h1 { margin: 0; font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.12; }
.p-hero > .container > h1 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.12; margin: 6px 0 12px; }
.p-ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--icon); display: flex; align-items: center; justify-content: center; }
.p-ico svg { width: 30px; height: 30px; }
.p-badge { display: inline-block; background: #fff6d9; color: #7a5300; font-weight: 700; font-size: .8rem; padding: 5px 11px; border-radius: 999px; margin: 4px 0 2px; }
.p-sub { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.p-lead { color: var(--h-mute); max-width: 46em; margin: 0 0 14px; }
.p-sec { padding: 24px 0 40px; }
.trust { gap: 6px 18px; margin: 4px 0 6px; }
.trust span { padding: 0; border: 0; background: none; border-radius: 0; font-weight: 500; font-size: .9rem; color: var(--h-mute); }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--h-accent); }
.trust span b { color: var(--h-ink); font-weight: 700; }
.city-chips { flex-wrap: nowrap; overflow-x: auto; margin: 18px -16px 4px; padding: 2px 16px 8px; scrollbar-width: none; }
.city-chips::-webkit-scrollbar { display: none; }
.city-chips a { flex: 0 0 auto; border: 1px solid #ddd; color: var(--h-ink); font-weight: 600; }
.city-chips a:hover { border-color: var(--h-ink); color: var(--h-ink); }
.city-chips a.is-active { background: var(--h-ink); border-color: var(--h-ink); color: #fff; }
.archive-note { border-radius: 12px; }

/* Список компаний: карточки */
.top10-head { margin-bottom: 16px; }
.top10-head h2 { margin: 0; font-size: clamp(1.35rem, 3.4vw, 1.75rem); }
.top10-head p { color: var(--h-mute); font-size: .9rem; }
.studio-list { gap: 12px; }
.studio { border: 1px solid var(--h-line); border-radius: 18px; box-shadow: none; transition: box-shadow .2s, border-color .2s; }
.studio:hover { border-color: #ddd; box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.studio.is-open { border-color: #ddd; box-shadow: 0 6px 24px rgba(0,0,0,.09); }
.studio-row { grid-template-columns: 44px minmax(0, 1fr) 14px; gap: 10px 12px; padding: 16px; }
.studio-row::after { content: ""; grid-column: 3; grid-row: 1; width: 8px; height: 8px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); justify-self: center; margin-top: -4px; transition: transform .2s; }
.studio.is-open .studio-row::after { transform: rotate(225deg); margin-top: 4px; }
.studio-rank { grid-row: 1; width: 44px; height: 44px; border-radius: 14px; background: var(--h-soft); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; padding: 0; color: var(--h-ink); }
.top1 .studio-rank { background: #f6c343; color: #3d2c00; }
.top2 .studio-rank { background: #e3e7ec; color: #2c3640; }
.top3 .studio-rank { background: #f1d3b3; color: #5c3410; }
.studio-name { font-size: 1.05rem; font-weight: 700; align-self: center; }
.studio-meta { grid-column: 1 / -1; display: grid; padding-top: 10px; border-top: 1px solid var(--h-line); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; color: var(--h-ink); font-size: .85rem; }
.studio-meta span { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.studio-meta small { display: block; color: var(--h-mute); font-size: .72rem; font-weight: 600; margin-bottom: 1px; }
.studio-detail { border-top: 1px solid var(--h-line); padding: 4px 16px 20px; }
.studio-detail .detail-label { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; }
.studio-detail p { color: #444; }
.facts, .year-line { background: var(--h-soft) !important; border-radius: 12px !important; padding: 12px 14px !important; }
.tag { border: 0; background: var(--h-soft); color: var(--h-ink); padding: 6px 12px; font-weight: 500; }
.tag.good { background: #e8f6ee; color: #1b6b3a; }
.tag.weak { background: #fdf0e3; color: #8a4b12; }
.detail-links { margin-top: 16px; }
.detail-links .btn { padding: 9px 16px; }
.fineprint { color: var(--h-mute); }

/* Карточки и формы */
.card { border: 1px solid var(--h-line); border-radius: 18px; box-shadow: none; padding: 24px; }
.card p { color: var(--h-mute); }
.cards { gap: 16px; }
.list { color: #444; }
.section-method h3 { margin-top: 26px; }
.section-method p { color: #444; }
.soon-box { border: 1px solid #ddd; border-radius: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.07); padding: 24px; }
.soon-box h3 { font-size: 1.2rem; }
.soon-box p { color: var(--h-mute); }
.soon-grid { display: grid; gap: 28px; }
.soon-grid h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--h-accent); }
.form { border: 0; box-shadow: none; padding: 0; background: none; }
.form input, .form select, .form textarea { border: 1px solid #bbb; border-radius: 12px; padding: 13px 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--h-ink); outline-offset: 0; border-color: var(--h-ink); }
.modal-backdrop { background: rgba(0,0,0,.5); }
.modal-dialog { border-radius: 24px 24px 0 0; }
.modal-close { background: var(--h-soft); color: var(--h-ink); }
.badge-preview { border-color: var(--h-ink); border-radius: 12px; }

/* Первый экран главной и поиск */
.h-hero { padding: 36px 0 24px; text-align: center; }
.h-hero h1 { font-size: clamp(1.85rem, 5.2vw, 3.25rem); line-height: 1.1; max-width: 20ch; margin: 0 auto 14px; }
.h-lead { color: var(--h-mute); font-size: 1.05rem; max-width: 34em; margin: 0 auto 28px; }
.h-search { display: flex; flex-direction: column; max-width: 780px; margin: 0 auto; text-align: left; background: #fff; border: 1px solid #ddd; border-radius: 24px; padding: 8px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.h-field { display: block; padding: 12px 18px; border-radius: 18px; cursor: pointer; transition: background .15s, box-shadow .15s; }
.h-field:hover { background: var(--h-soft); }
.h-field:focus-within { background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.h-field span { display: block; font-size: .78rem; font-weight: 800; }
.h-field select { -webkit-appearance: none; appearance: none; width: 100%; border: 0; background: transparent; outline: none; font: inherit; font-size: 1rem; color: var(--h-mute); padding: 2px 0 0; cursor: pointer; text-overflow: ellipsis; }
.h-sep { display: block; height: 1px; background: var(--h-line); margin: 0 18px; }
.h-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; border: 0; border-radius: 16px; padding: 14px 24px; cursor: pointer; background: var(--h-accent); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; }
.h-go:hover { background: var(--h-accent-2); }
.h-go svg { width: 20px; height: 20px; }
.h-facts { margin: 22px 0 0; color: var(--h-mute); font-size: .92rem; }
.h-facts b { color: var(--h-ink); }

/* Секции */
.h-sec { padding: 32px 0; }
.h-sec h2 { font-size: clamp(1.4rem, 3.4vw, 1.85rem); margin-bottom: 6px; }
.h-sub { color: var(--h-mute); margin: 0 0 22px; max-width: 46em; }
.h-line { border-top: 1px solid var(--h-line); }
.h-note { color: var(--h-mute); font-size: .92rem; margin: 26px 0 0; max-width: 46em; }

/* Как выбрать */
.choose { margin: 0; display: grid; gap: 14px; max-width: 52em; }
.choose > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--h-line); }
.choose > div:last-child { border-bottom: 0; padding-bottom: 0; }
.choose dt { font-weight: 700; color: var(--h-ink); }
.choose dd { margin: 0; color: var(--h-mute); }
.choose dd b { color: var(--h-ink); font-weight: 600; }
@media (min-width: 760px) { .choose > div { grid-template-columns: 13em 1fr; gap: 16px; } }

/* Карточки ниш */
.h-grid { display: grid; grid-template-columns: 1fr; gap: 30px 22px; }
.h-card { display: block; color: var(--h-ink); text-decoration: none !important; }
.h-cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--tint); margin-bottom: 12px; }
.h-cover::before, .h-cover::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); }
.h-cover::before { width: 70%; aspect-ratio: 1; right: -22%; top: -30%; }
.h-cover::after { width: 38%; aspect-ratio: 1; left: -10%; bottom: -16%; background: rgba(255,255,255,.3); }
.h-ico { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 28px; background: #fff; color: var(--icon); box-shadow: 0 10px 28px rgba(0,0,0,.08); transition: transform .3s ease; }
.h-ico svg { width: 46px; height: 46px; }
.h-card:hover .h-ico { transform: scale(1.07) rotate(-4deg); }
.h-pill { position: absolute; z-index: 2; top: 12px; left: 12px; background: #fff; color: var(--h-ink); border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.h-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; }
.h-meta { margin: 2px 0 0; color: var(--h-mute); font-size: .93rem; line-height: 1.4; }

/* Города */
.h-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.h-city { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 14px; color: var(--h-ink); text-decoration: none !important; }
.h-city:hover, .h-city.is-active { background: var(--h-soft); }
.h-city i { flex: 0 0 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--icon); font-style: normal; font-weight: 800; }
.h-city span { min-width: 0; }
.h-city b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-city small { color: var(--h-mute); font-size: .85rem; }

/* Доверие и «как оцениваем» */
.h-trust { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
.h-trust svg { width: 32px; height: 32px; color: var(--h-accent); margin-bottom: 12px; }
.h-trust h3 { font-size: 1.05rem; margin-bottom: 4px; }
.h-trust p { color: var(--h-mute); margin: 0; font-size: .95rem; }

/* Скоро */
.h-soon { display: flex; flex-wrap: wrap; gap: 8px; }
.h-soon a, .h-soon span { border: 1px solid #ddd; border-radius: 999px; padding: 8px 14px; font-size: .9rem; color: var(--h-ink); text-decoration: none !important; }
.h-soon a:hover { border-color: var(--h-ink); background: var(--h-soft); }

/* Для бизнеса */
.h-biz { position: relative; overflow: hidden; display: grid; gap: 20px; padding: 30px 24px; border-radius: 24px; background: var(--ink); color: #c9d6e3; }
.h-biz h2 { color: #fff; }
.h-biz p { margin: 0 0 22px; max-width: 34em; }
.h-btn-light { background: #fff; color: var(--h-ink); }
.h-btn-light:hover { background: #eef2f5; }
.h-btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.h-btn-line:hover { border-color: #fff; }
.h-biz-mark { display: none; }

/* Вопросы */
.faq details { background: none; border: 0; border-bottom: 1px solid var(--h-line); border-radius: 0; padding: 0; margin: 0; }
.faq summary { padding: 18px 32px 18px 0; }
.faq details p { color: var(--h-mute); }

/* Подвал */
.site-footer { background: var(--h-soft); color: var(--h-mute); border-top: 1px solid var(--h-line); margin-top: 32px; }
.footer-title { color: var(--h-ink); }
.footer-muted, .site-footer a small { color: var(--h-mute); }
.site-footer a { color: var(--h-ink); }
.footer-bottom { border-top-color: #ddd; color: var(--h-mute); }

@media (min-width: 560px) {
  .h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-cover { aspect-ratio: 4 / 3; }
}
@media (min-width: 640px) {
  .modal-dialog { border-radius: 24px; }
}
@media (min-width: 760px) {
  .h-hero { padding: 64px 0 36px; }
  .h-search { flex-direction: row; align-items: center; border-radius: 999px; padding: 8px; }
  .h-field { flex: 1 1 0; min-width: 0; border-radius: 999px; padding: 12px 28px; }
  .h-sep { width: 1px; height: 34px; margin: 0; }
  .h-go { margin: 0; border-radius: 999px; padding: 16px 26px; }
  .h-sec { padding: 44px 0; }
  .p-hero { padding: 32px 0 8px; }
  .h-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-biz { grid-template-columns: 1fr auto; align-items: center; padding: 48px 52px; }
  .h-biz-mark { display: block; font-size: 180px; font-weight: 800; line-height: .8; letter-spacing: -.06em; color: var(--gold); padding-right: 12px; }
  .city-chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .soon-grid { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 48px; }
}
@media (min-width: 960px) {
  .table-head { grid-template-columns: 64px minmax(0, 1fr) 200px 110px 170px 14px; gap: 16px; padding: 0 20px 8px; color: var(--h-mute); text-transform: none; letter-spacing: 0; font-weight: 600; }
  .studio-row { grid-template-columns: 64px minmax(0, 1fr) 200px 110px 170px 14px; gap: 16px; padding: 16px 20px; }
  .studio-row::after { grid-column: 6; }
  .studio-rank { grid-row: auto; width: 48px; height: 48px; }
  .studio-meta { display: contents; }
  .studio-meta small { display: none; }
  .studio-meta span { font-size: .95rem; color: var(--h-ink); }
  .studio-detail { padding: 4px 20px 22px 100px; }
}
@media (min-width: 980px) {
  .h-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-cover { aspect-ratio: 1 / 1; }
  .h-cities { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .h-trust { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

/* ===== Категории → подкатегории ===== */
.h-cats { display: flex; gap: 8px; overflow-x: auto; margin: 4px -16px 26px; padding: 2px 16px 10px; scrollbar-width: none; }
.h-cats::-webkit-scrollbar { display: none; }
.h-cats a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 11px; border: 1px solid #ddd; border-radius: 999px; color: var(--h-ink); font-weight: 600; font-size: .92rem; text-decoration: none !important; background: #fff; }
.h-cats a:hover { border-color: var(--h-ink); }
.h-cats a.is-soon { color: var(--h-mute); }
.h-cats svg { width: 20px; height: 20px; flex: none; }
.h-cat { padding: 26px 0 30px; border-top: 1px solid var(--h-line); scroll-margin-top: 84px; }
.h-cat:first-of-type { border-top: 0; padding-top: 4px; }
.h-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.h-cat-head h3 { margin: 0; font-size: 1.3rem; }
.h-cat-head small { margin-left: auto; color: var(--h-mute); font-size: .9rem; white-space: nowrap; }
.h-cat-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--h-soft); display: grid; place-items: center; flex: none; }
.h-cat-ico svg { width: 22px; height: 22px; }
.h-cat .h-grid + .h-soon { margin-top: 22px; }
.h-soon-label { align-self: center; color: var(--h-mute); font-weight: 600; font-size: .9rem; margin-right: 2px; }
@media (min-width: 760px) {
  .h-cats { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 759px) {
  .h-cat .h-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 14px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .h-cat .h-grid::-webkit-scrollbar { display: none; }
  .h-cat .h-grid > .h-card { flex: 0 0 72%; scroll-snap-align: start; }
}
.btn.is-off { opacity: .6; cursor: default; pointer-events: none; }
.badge-note { font-size: .8rem; color: var(--h-mute); margin: -8px 0 14px; }

/* Страница 404 */
.nf-search { max-width: 28em; margin-top: 18px; }
.nf-cols { display: grid; gap: 28px; }
.nf-cols h2 { font-size: 1.2rem; margin-bottom: 10px; }
.nf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.nf-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line, #d9e2ec); }
.nf-list a:hover { color: var(--gold-ink, #8a6500); }
.nf-empty { margin-top: 18px; color: var(--ink-2); }
@media (min-width: 900px) { .nf-cols { grid-template-columns: 1fr 2fr; } }
