/* Бизнес Буфет — свой вид поверх заготовки. Значения — из tokens.css. */

body { padding-bottom: env(safe-area-inset-bottom); }
.skip { position: absolute; left: var(--sp-4); top: -100px; z-index: 100; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--ink); color: var(--bg); }
.skip:focus { top: var(--sp-2); color: var(--bg); }
.eyebrow-gold { color: var(--gold); }
.req { color: var(--accent); }

/* Кнопки */
.btn-sm { min-height: var(--tap); padding: var(--sp-2) var(--sp-5); font-size: var(--fs-14); }
.btn-lg { min-height: 52px; padding: var(--sp-4) var(--sp-8); font-size: var(--fs-16); }
.btn-ghost { background: var(--surface); }
.btn-light { align-self: flex-start; background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Шапка */
.header { transition: box-shadow var(--dur-fast) var(--ease); }
.header.is-scrolled { box-shadow: var(--shadow); }
.logo { gap: var(--sp-3); font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; }
.logo b { color: var(--accent); font-weight: 700; }
.logo-mark { flex-shrink: 0; color: var(--accent); }
.logo-sm { font-size: var(--fs-18); color: var(--ink); }
.nav { gap: var(--sp-1); }
.nav a.nav-phone { color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav .btn { margin-left: var(--sp-2); }
@media (max-width: 1020px) and (min-width: 901px) { .nav a.nav-phone { display: none; } }
@media (max-width: 900px) { .nav .btn { margin-left: 0; } }

/* Первый экран */
.hero { padding-block: clamp(32px, 6vw, 96px) var(--section); }
.hero h1 { max-width: 15ch; }
.hero h1 { text-wrap: balance; }
.hero-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.hero-tags li { padding: var(--sp-1) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-14); color: var(--ink-soft); background: var(--surface); }
.hero-pic { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; background: var(--surface-2); animation: hero-in 1.1s var(--ease) both; } /* шкала-ок */
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } }
.hero-note { position: absolute; left: clamp(-24px, -2vw, -8px); bottom: var(--sp-8); display: flex; align-items: center; gap: var(--sp-3); max-width: calc(100% - var(--sp-8)); padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-3); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-lift); animation: note-in .7s .5s var(--ease) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(12px); } }
.hero-note-ic { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); }
.hero-note b { display: block; font-size: var(--fs-14); }
.hero-note small { display: block; font-size: var(--fs-12); color: var(--ink-soft); }
@media (max-width: 860px) {
  .hero-in { gap: var(--sp-8); }
  .hero-img { aspect-ratio: 4 / 3; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 64px; } /* шкала-ок */
  .hero-note { left: var(--sp-3); bottom: var(--sp-3); }
}

/* Направления: бенто-сетка */
.bento { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "big a" "big b" "wide wide"; }
.svc { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.svc:nth-child(2) { grid-area: a; }
.svc:nth-child(3) { grid-area: b; }
.svc-big { grid-area: big; }
.svc-wide { grid-area: wide; flex-direction: row; }
.svc-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); transition: transform var(--dur) var(--ease); }
.svc:hover .svc-img { transform: scale(1.04); }
.svc-big .svc-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 280px; height: 0; }
.svc-wide .svc-img { width: 42%; aspect-ratio: auto; min-height: 240px; }
.svc-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); background: var(--surface); }
.svc-wide .svc-body { flex: 1; justify-content: center; padding: var(--sp-8); }
.svc-body p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "big" "a" "b" "wide"; }
  .svc-big .svc-img { flex: none; height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .svc-wide { flex-direction: column; }
  .svc-wide .svc-img { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .svc-wide .svc-body { padding: var(--sp-6); }
}

/* Как работаем — тёмный раздел */
.how { background: var(--night); color: var(--on-night); }
.how h2 { color: var(--on-night); }
.steps { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--line-night); }
.step-n { font-family: var(--font-head); font-size: var(--fs-num); font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.step h3 { color: var(--on-night); }
.step p { color: var(--on-night-soft); }

/* Заявка */
.order { display: grid; gap: var(--sp-12); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
.order-side { display: flex; flex-direction: column; gap: var(--sp-4); }
.order-pic { margin-top: var(--sp-4); max-width: 420px; }
.order-form { max-width: none; padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.form .field { max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { width: 100%; margin-bottom: var(--sp-2); padding: 0; font-size: var(--fs-14); font-weight: 600; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: var(--tap); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); font-size: var(--fs-14); font-weight: 600; color: var(--ink-soft); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.chip:hover span { border-color: var(--accent); color: var(--ink); }
.chip:active span { transform: scale(.97); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.input.is-bad { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
select.input { appearance: none; padding-right: var(--sp-10); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23554C42' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-size: var(--fs-14); font-weight: 600; }
.form-note { font-size: var(--fs-12); color: var(--ink-faint); }
.form-ok { flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding: 0; background: none; font-weight: 400; }
.form-ok b { font-family: var(--font-head); font-size: var(--fs-24); }
.form-ok p { color: var(--ink-soft); }
.ok-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); }
.form.is-sent > :not(.form-ok):not(.modal-x) { display: none; }
.form.is-sent .form-ok { display: flex; animation: z-in var(--t-slow) var(--ease-out) both; }
@media (max-width: 860px) {
  .order { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
  .order-pic { display: none; }
}

/* Лента фото */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2); padding: 0 max(var(--gutter), (100% - var(--maxw)) / 2) var(--sp-4); scrollbar-width: thin; }
.strip:focus-visible { outline-offset: -2px; }
.strip figure { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--sp-2); }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--surface); }
.strip figcaption { font-size: var(--fs-14); font-weight: 600; color: var(--ink-soft); }

/* Вопросы */
.faq-wrap { display: grid; gap: var(--sp-10); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq details > p { animation: z-fade var(--t-base) var(--ease-out); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }

/* Контакты */
.contacts { background: var(--night); color: var(--on-night); }
.contacts h2, .contacts h3 { color: var(--on-night); }
.contacts-in { display: grid; gap: var(--sp-10); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.contacts-main { display: flex; flex-direction: column; gap: var(--sp-5); }
.people { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.person { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); padding: var(--sp-4); border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--line-night); }
.person-ava { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.person-txt { flex: 1 1 140px; display: flex; flex-direction: column; }
.person-txt small { font-size: var(--fs-14); color: var(--on-night-soft); }
.person-tel { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-20); font-weight: 600; color: var(--on-night); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.person-tel:hover { color: var(--gold); }
.hours { color: var(--on-night-soft); }
.contacts-soc { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border-radius: var(--r-lg); border: 1px solid var(--line-night); }
.socials { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin: 0; padding: 0; list-style: none; }
.soc { display: flex; align-items: center; gap: var(--sp-3); min-height: 52px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r); background: var(--night-2); color: var(--on-night); text-decoration: none; font-weight: 600; transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.soc svg { flex-shrink: 0; }
.soc small { margin-left: auto; padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--night); font-size: var(--fs-12); font-weight: 600; color: var(--on-night-soft); }
.soc:not(.is-soon):hover { background: var(--accent); color: var(--accent-ink); }
.soc.is-soon { color: var(--on-night-soft); cursor: default; }
.soc-note { font-size: var(--fs-14); color: var(--on-night-soft); }
.contacts .btn:hover { box-shadow: none; }
@media (max-width: 860px) { .contacts-in { grid-template-columns: minmax(0, 1fr); } }

/* Подвал */
.footer { background: var(--night); color: var(--on-night-soft); border-top: 1px solid var(--line-night); }
.footer a { color: var(--on-night-soft); }
.footer a:hover { color: var(--on-night); }
.footer .logo-sm { color: var(--on-night); }
.footer .logo b { color: var(--gold); }

/* Панель связи на телефоне */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2) var(--gutter) calc(var(--sp-2) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform var(--dur-fast) var(--ease); }
  .mbar.is-on { transform: none; }
  .mbar .btn { padding-inline: var(--sp-3); }
  .footer { padding-bottom: calc(var(--sp-10) + 64px); }
}

/* Окно «Перезвоните мне» */
.modal { width: min(100% - 2 * var(--gutter), 480px); max-height: calc(100% - 2 * var(--gutter)); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); }
.modal::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
.modal[open] { animation: z-in var(--t-base) var(--ease-out) both; }
.modal[open]::backdrop { animation: z-fade var(--t-base) var(--ease-out) both; }
.modal-form { position: relative; max-width: none; padding: var(--sp-8) var(--sp-6) var(--sp-6); }
.modal-form h2 { padding-right: var(--sp-10); font-size: var(--fs-h3); }
.modal-form .field { max-width: none; }
.modal-form > .btn { align-self: stretch; }
.modal-x { position: absolute; top: var(--sp-3); right: var(--sp-3); display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.modal-x:hover { background: var(--line); }
html.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-note { animation: none; }
  .svc:hover, .svc:hover .svc-img { transform: none; }
}
