/* Сайт-визитка. Только раскладка: цвета, шрифты, кнопки и поля берутся из tokens.css и app.css. */
.site { background: var(--paper); color: var(--ink); min-height: 100vh; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.site section { padding-block: clamp(64px, 9vw, 104px); }
.site section + section { border-top: 1px solid var(--line-2); }
.site section.first { padding-block-start: clamp(40px, 6vw, 72px); }
.site h2 { font: 800 clamp(28px, 3.2vw, 38px)/1.15 var(--f-display); letter-spacing: -.01em; margin: 0 0 32px; }

/* шапка */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.logo img { height: 46px; width: auto; display: block; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--deep); color: var(--accent); display: grid; place-items: center; font: 800 18px/1 var(--f-display); }
.logo b { font: 800 17px/1.1 var(--f-display); display: block; }
.logo small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.logo:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: background var(--t-fast), color var(--t-fast); }
.site-nav a:hover { background: var(--sunken); color: var(--ink); }
.site-nav a:active { background: var(--line-2); }
.site-nav a:focus-visible { outline: none; box-shadow: var(--focus); }

/* первый экран: слева обещание, справа пример ответа бота */
.s-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.s-hero h1 { font: 800 clamp(41px, 5vw, 56px)/1.06 var(--f-display); letter-spacing: -.02em; margin: 0; max-width: 13em; }
.s-hero .lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--ink-2); margin: 24px 0 0; max-width: 36em; }
.s-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.chat { margin: 0; background: var(--sunken); border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); }
.chat-top .ava { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.chat-top small { color: var(--muted); font-size: var(--fs-xs); }
.msg { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: var(--fs-s); line-height: 1.45; }
.msg.out { align-self: flex-end; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; gap: 8px; border-end-end-radius: 4px; }
.msg.out .photo { width: 32px; height: 42px; border-radius: 4px; background: var(--surface); flex: none; box-shadow: inset 0 -10px 0 var(--line-2), inset 0 -16px 0 var(--surface), inset 0 -20px 0 var(--line-2); }
.msg.in { align-self: flex-start; background: var(--surface); box-shadow: var(--sh-1); border-end-start-radius: 4px; }
.msg.in dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; margin: 8px 0; }
.msg.in dt { color: var(--muted); }
.msg.in dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.msg .sent { font-size: var(--fs-xs); color: var(--ok); font-weight: 600; }
.chat figcaption { font-size: var(--fs-xs); color: var(--muted); padding-inline: 4px; }

/* как это работает: нумерованные шаги в строку, без карточек */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 15px/1 var(--f-display); color: var(--brand); margin-bottom: 14px; }
.steps h3 { font: 700 18px/1.3 var(--f-display); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-2); line-height: 1.55; }

/* услуги: как прайс-лист, строка на услугу */
.services { margin: 0; }
.services div { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.services div:first-child { border-top: 1px solid var(--line); }
.services dt { font: 700 19px/1.35 var(--f-display); }
.services dd { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 46em; }

/* контакты */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact h2 { margin-bottom: 12px; }
.contact .sub { color: var(--ink-2); margin: 0 0 28px; font-size: 17px; line-height: 1.55; }
.card-co { margin: 0; border-top: 1px solid var(--line); }
.card-co div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.card-co dt { color: var(--muted); font-size: var(--fs-s); }
.card-co dd { margin: 0; font-weight: 600; }
.form { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form .note { font-size: var(--fs-s); color: var(--muted); margin: 0; }
.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: none; }
.form[data-state="sent"] > :not(.done) { display: none; }
.form[data-state="sent"] .done { display: flex; }
.site .notice[hidden] { display: none; }

.site-foot { padding-block: 28px; color: var(--muted); font-size: var(--fs-s); border-top: 1px solid var(--line-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-foot a { color: var(--ink-2); }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .s-hero, .contact { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .site-head .head-cta { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .services div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .s-hero .cta .btn { flex: 1 1 100%; }
  .msg { max-width: 94%; }
}

html:has(body.site), body.site { height: auto; }
