/* === STYLE.CSS ===
   assets/css/style.css
   НАЗНАЧЕНИЕ: стили одностраничника. Эстетика Редакционное: Libre Baskerville + Source Serif 4,
               один фон на всех секциях, границы отступами и свечением, единственный шов перед подвалом.
   СВЯЗИ: index.php
   РАЗМЕР: ~420 строк */

:root {
    --bg:          oklch(98% 0.008 80);
    --ink:         oklch(22% 0.02 260);
    --ink-soft:    oklch(36% 0.02 260);
    --muted:       oklch(52% 0.015 260);
    --accent:      oklch(38% 0.11 255);
    --accent-ink:  oklch(98% 0.005 80);
    --accent-soft: oklch(94% 0.025 255);
    --line:        oklch(88% 0.012 80);
    --card:        oklch(99.3% 0.004 80);
    --ok:          oklch(45% 0.12 150);
    --err:         oklch(48% 0.16 25);

    --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

    --container: 1120px;
    --pad-section: clamp(72px, 10vw, 128px);
    --radius: 6px;
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    font-feature-settings: 'kern', 'liga', 'onum';
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .25s var(--ease-out-quart), transform .25s var(--ease-out-quart);
}
.btn:hover { background: oklch(32% 0.11 255); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn--small { padding: 9px 18px; font-size: 15px; }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in oklch, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
}
.site-header__row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__name { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.brand__role { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Секции ---------- */
.section { padding: var(--pad-section) 0; background: var(--bg); }
.section--glow {
    background:
        radial-gradient(ellipse 70% 55% at 50% 50%, oklch(96% 0.02 255 / .55), transparent 70%),
        var(--bg);
}
.section__title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.005em;
}
.section__subtitle {
    margin-top: 14px;
    font-size: 20px;
    color: var(--ink-soft);
    max-width: 60ch;
}

/* появление */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out-quart), transform .7s var(--ease-out-quart); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn { transition: none; }
}

/* ---------- Первый экран ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.hero__subtitle {
    margin-top: 20px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--accent);
    line-height: 1.35;
}
.hero__lead { margin-top: 24px; font-size: 19px; color: var(--ink-soft); max-width: 62ch; }
.facts { margin-top: 32px; display: grid; gap: 10px; }
.facts li {
    position: relative;
    padding-left: 22px;
    font-size: 17px;
    color: var(--ink-soft);
}
.facts li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.72em;
    width: 10px; height: 1px;
    background: var(--accent);
}
.hero .btn { margin-top: 36px; }
.hero__photo { position: sticky; top: 92px; }
.photo-placeholder {
    aspect-ratio: 3 / 4;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    background: oklch(93% 0.006 80);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 15px;
    letter-spacing: 0.08em;
}

/* ---------- Что я делаю ---------- */
.services {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}
.service {
    position: relative;
    padding: 28px 26px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.service__num {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.1em;
}
.service__name { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.25; }
.service__text { color: var(--ink-soft); font-size: 17px; }
.result {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 16.5px;
    color: var(--ink);
}
.result__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---------- Что получает собственник ---------- */
.outcome__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.questions { display: grid; gap: 14px; }
.questions li {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.3;
    padding-left: 28px;
    position: relative;
}
.questions li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.68em;
    width: 14px; height: 1px;
    background: var(--accent);
}
.outcome__main {
    margin-top: 40px;
    padding: 24px 26px;
    background: var(--accent-soft);
    border-radius: var(--radius);
    font-size: 19px;
    line-height: 1.5;
}

/* ---------- Как я работаю ---------- */
.steps {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    left: 24px; right: 24px; top: 21px;
    height: 1px;
    background: var(--line);
}
.step { position: relative; padding-top: 58px; }
.step__num {
    position: absolute;
    top: 0; left: 0;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 16px;
}
.step__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; }
.step__text { margin-top: 10px; font-size: 16.5px; color: var(--ink-soft); }

/* ---------- Форматы ---------- */
.formats {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 20px;
}
.format {
    padding: 28px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.format__name { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.25; }
.format__row { margin-top: 16px; font-size: 16.5px; color: var(--ink); }
.format__label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.format > .format__label { margin-top: 16px; }
.format__tasks { margin-top: 6px; display: grid; gap: 4px; font-size: 16.5px; color: var(--ink-soft); }
.format__tasks li { padding-left: 16px; position: relative; }
.format__tasks li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 7px; height: 1px; background: var(--accent); }

/* ---------- Обо мне ---------- */
.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.about__p { margin-top: 18px; font-size: 19px; line-height: 1.6; }
.about__p:first-of-type { margin-top: 24px; font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--accent); }
.about__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}
.about__tasks { margin: 12px 0 28px; display: grid; gap: 6px; font-size: 17px; color: var(--ink-soft); }
.about__tasks li { padding-left: 18px; position: relative; }
.about__tasks li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--accent); }
.about__principle { margin-top: 10px; font-family: var(--font-display); font-size: 21px; line-height: 1.4; }

/* ---------- Контакты ---------- */
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.contact__intro { margin-top: 22px; font-size: 18px; color: var(--ink-soft); }
.contact__questions { margin-top: 12px; display: grid; gap: 8px; counter-reset: q; }
.contact__questions li { position: relative; padding-left: 30px; font-size: 18px; counter-increment: q; }
.contact__questions li::before {
    content: counter(q);
    position: absolute; left: 0; top: 0;
    font-family: var(--font-display);
    color: var(--accent);
}
.contact__outro { margin-top: 22px; font-size: 17px; color: var(--muted); max-width: 48ch; }

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    padding: 30px 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 17px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease-out-quart);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 16px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }

/* ---------- Подвал: единственный намеренный шов ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    background: var(--bg);
    color: var(--muted);
    font-size: 15px;
}
.site-footer__row { display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer .brand__name { display: block; color: var(--ink); }
.site-footer .brand__role { display: block; }
.site-footer__contacts { display: grid; gap: 4px; margin-left: auto; }
.site-footer__year { align-self: flex-end; }

/* ---------- Мобильный ---------- */
@media (max-width: 960px) {
    .steps { grid-template-columns: 1fr; gap: 26px; }
    .steps::before { left: 21px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto; }
    .step { padding-top: 0; padding-left: 62px; }
    .hero__grid, .outcome__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
    .hero__photo { position: static; }
    .photo-placeholder { max-width: 300px; margin-left: 0; }
}
@media (max-width: 720px) {
    body { font-size: 17px; }
    .nav { display: none; }
    .brand__role { display: none; }
    .site-header__row { gap: 12px; }
    .btn--small { margin-left: auto; }
    .form { grid-template-columns: 1fr; padding: 24px 20px; }
    .site-footer__contacts { margin-left: 0; }
    .site-footer__row { flex-direction: column; gap: 18px; }
}
