/* =====================================================
   САЙТ САТЫБАЛОВОЙ — ПРЕМИАЛЬНЫЙ ОДНОСТРАНИЧНИК
   ===================================================== */

/* ============== ТОКЕНЫ ============== */
:root {
    /* Семейства шрифтов */
    --font-serif: 'IBM Plex Serif', Georgia, serif;
    --font-sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Палитра */
    --bg-cream:       #FAF6EF;
    --bg-beige:       #EDE3D2;
    --bg-warm:        #F5EFE6;
    --surface:        #FFFFFF;
    --text-graphite:  #1F1C1B;
    --text-soft:      #4A4441;
    --text-muted:     #7A716C;
    --accent:         #7E2A2A;
    --accent-hover:   #5E1E1E;
    --border:         #D9CFBE;

    /* Геометрия */
    --container:   1100px;
    --section-pad: 88px;
    --radius:      2px;
    --shadow:      0 1px 3px rgba(31, 28, 27, 0.06);
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* ============== БАЗОВАЯ ТИПОГРАФИКА ============== */
body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-graphite);
    background: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cormorant — ТОЛЬКО h1, h2, имя в about, лого */
h1, h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-graphite);
    letter-spacing: 0;
}
h1 { font-size: 48px; line-height: 1.15; }
h2 { font-size: 36px; line-height: 1.2; margin-bottom: 36px; }

/* Inter — для всего остального */
h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.3;
    color: var(--text-graphite);
}
h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
p { color: var(--text-soft); }

/* ============== УТИЛИТАРНЫЕ КЛАССЫ ============== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

section { padding: var(--section-pad) 0; }

/* T-eyebrow / лейблы / номера / подзаголовки подгрупп */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

/* В hero eyebrow увеличен и с воздухом до h1 */
.hero .eyebrow {
    font-size: 19px;
    margin-bottom: 48px;
}

/* Eyebrow как заголовок секции (когда H2 снят — двойные заголовки убраны) */
.audience > .container > .eyebrow,
.services > .container > .eyebrow,
.about > .container > .eyebrow,
.contacts-intro > .eyebrow {
    font-size: 15px;
    margin-bottom: 36px;
}

/* CTA-кнопка — единственное место акцента (помимо ссылок контактов) */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-beige);
    padding: 15px 34px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover {
    background: var(--accent-hover);
    color: var(--bg-beige);
    transform: translateY(-1px);
}

/* Универсальный фрейм для фото (hero + about — одинаковая трактовка) */
.media-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 560px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-warm);
}
.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Состояния фокуса для всех интерактивных элементов */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============== NAV ============== */
.nav {
    position: sticky;
    top: 0;
    background: rgba(250, 246, 239, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.nav-logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
    color: var(--text-graphite);
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-graphite);
}
.nav-links a:hover { color: var(--accent); }

/* ============== HERO ============== */
.hero { background: var(--bg-beige); }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 60ch;
}
.hero-lead {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-graphite);
    margin-bottom: 36px;
    max-width: 60ch;
}
.hero-text .btn {
    margin-top: auto;
}

/* ============== ДЛЯ КОГО ============== */
.audience { background: var(--bg-cream); }
.audience-list {
    border-top: 1px solid var(--border);
}
.audience-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 36px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}
.audience-row-icon {
    width: 64px;
    height: 64px;
    color: var(--text-graphite);
}
.audience-row-icon svg {
    width: 100%;
    height: 100%;
}
.audience-row-body h3 {
    font-size: 19px;
    margin-bottom: 10px;
}
.audience-row-body p {
    font-size: 15px;
    line-height: 1.6;
    max-width: none;
}

/* ============== УСЛУГИ ============== */
.services { background: var(--bg-warm); }
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 30px;
}
.service-card-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.service-card-num {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.service-card-title h3 {
    margin-bottom: 8px;
}
.service-card-title p {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-soft);
}

/* Подробнее (<details>) */
.service-details { margin: 0; }
.service-details-toggle {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 2px 0;
    transition: color 0.2s;
    user-select: none;
}
.service-details-toggle::-webkit-details-marker { display: none; }
.service-details-toggle::after {
    content: '+';
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1;
}
.service-details[open] .service-details-toggle::after { content: '−'; }
.service-details-toggle:hover { color: var(--text-graphite); }
.service-details-toggle:hover::after { color: var(--text-graphite); }
.service-details[open] > .service-subitems,
.service-details[open] > .service-subgroups { margin-top: 12px; }

.service-subitems {
    display: flex;
    flex-direction: column;
}
.service-subitem {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
}
.service-subitem:last-child { border-bottom: 0; }
.service-subitem-name {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-graphite);
}
.service-subitem-price {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.service-subgroups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.service-subgroup-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--text-graphite);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
}

/* Курсивная подпись под основной фразой карточки услуги */
.service-card-caption {
    margin-top: 6px;
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-soft);
}

/* ============== ОБО МНЕ ============== */
.about { background: var(--bg-cream); }
.about-name { margin-bottom: 36px; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}
.about-text-paragraphs p {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 16px;
    max-width: 60ch;
}
.about-text-paragraphs p:last-child { margin-bottom: 0; }
.about-credentials {
    padding: 22px 24px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.about-credentials-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.about-credentials-row:first-child { padding-top: 0; }
.about-credentials-row:last-child { padding-bottom: 0; border-bottom: 0; }
.about-credentials-label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.about-credentials-value {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-graphite);
}

/* ============== КОНТАКТЫ ============== */
.contacts { background: var(--bg-beige); }
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.contacts-intro h2 { margin-bottom: 20px; }
.contacts-lead {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 60ch;
}
.contacts-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contacts-list li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: baseline;
    font-size: 15px;
}
.contacts-list-label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.contacts-list a {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-graphite);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
}
.contacts-list a:hover { color: var(--accent); }

/* Форма */
.form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
}
.form-field { margin-bottom: 16px; }
.form-field label {
    display: block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-soft);
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-graphite);
    transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}
.form-field textarea {
    min-height: 80px;
    resize: vertical;
}
.form-submit {
    width: 100%;
    margin-top: auto;
}

/* ============== FOOTER ============== */
.footer {
    background: var(--text-graphite);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 28px 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
}

/* ============== АДАПТИВ ============== */
@media (max-width: 980px) {
    :root { --section-pad: 56px; }
    h1 { font-size: 40px; }
    h2 { font-size: 30px; margin-bottom: 28px; }

    .hero-grid,
    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .media-frame {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        position: sticky;
        top: 0;
        padding: 12px 0;
    }
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .nav-logo {
        font-size: 20px;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px 18px;
    }
    .nav-links a {
        font-size: 14px;
    }

    .service-subitem {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .about-credentials-row,
    .contacts-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .audience-row {
        grid-template-columns: 56px 1fr;
        gap: 24px;
    }
    .audience-row-icon {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 600px) {
    .container,
    .nav-inner { padding: 0 20px; }
    h1 { font-size: 32px; }
    h2,
    .about-name { font-size: 26px; }
    body { font-size: 15px; }
    .audience-row-body p,
    .about-text p,
    .contacts-lead { font-size: 15px; }
    .audience-row-body h3,
    .service-card-title h3 { font-size: 17px; }
    .form { padding: 24px; }
}
