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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
}

/* ===== Сторінка ===== */

.about-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 64px) 24px 96px;
}

/* ===== Шапка ===== */

.about-header {
    max-width: 680px;
    margin: 0 auto 64px;
    text-align: center;
}

.about-header__label,
.booking__label {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-header__title {
    margin: 0 0 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.05;
}

.about-header__text {
    margin: 0;
    color: #b4b9c4;
    font-size: 17px;
    line-height: 1.6;
}

/* ===== Розділи «Про автора» (з адмінки): Текст, Цифри, Список, Цитата ===== */

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 96px;
    margin-bottom: 96px;
}

.about-section__label {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-section__title {
    margin: 0 0 24px;
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 600;
    line-height: 1.1;
}

.about-section__head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.about-section__head .about-section__text {
    color: var(--text-soft, #d1d5db);
}

/* --- Текст --- */

.about-section--text {
    max-width: 720px;
    margin: 0 auto;
}

.about-section--text.about-section--with-image {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
    max-width: none;
}

.about-section__media {
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface, #181b22);
}

/* Лёгкий лавандовый отсвет поверх фото — в тон акценту */
.about-section__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(165, 180, 252, 0.12));
    pointer-events: none;
}

.about-section__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-section--with-image .about-section__body {
    padding-top: 8px;
}

/* --- Цифри --- */

.about-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-facts__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

.about-facts__value {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 5vw, 60px);
    font-weight: 600;
    line-height: 1;
}

.about-facts__caption {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

/* --- Список --- */

.about-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.about-list__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface, #181b22);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-list__item:hover {
    border-color: rgba(165, 180, 252, 0.45);
    transform: translateY(-2px);
}

.about-list__num {
    flex-shrink: 0;
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.about-list__text {
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
}

.about-section__note {
    max-width: 720px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: 16px;
    text-align: center;
}

/* --- Цитата --- */

.about-section--quote {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.about-quote {
    position: relative;
    margin: 0;
    padding: 56px 56px 48px;
    border: 1px solid rgba(165, 180, 252, 0.25);
    border-radius: 24px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(165, 180, 252, 0.12), transparent 70%),
        var(--surface, #181b22);
}

.about-quote::before {
    content: "“";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 120px;
    line-height: 1;
    opacity: 0.5;
}

.about-quote__text {
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2.6vw, 30px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
}

.about-quote__text p {
    margin: 0 0 18px;
}

.about-quote__text p:last-child {
    margin-bottom: 0;
}

.about-quote__text strong {
    color: var(--accent);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .about-list__item {
        transition: none;
    }

    .about-list__item:hover {
        transform: none;
    }
}

/* ===== Запис ===== */

.booking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 48px;
    background:
            radial-gradient(600px 300px at 0% 0%, rgba(165, 180, 252, 0.10), transparent 70%),
            #14171d;
    border: 1px solid #2a2f3a;
    border-radius: 28px;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.booking__title {
    margin: 0 0 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.1;
}

.booking__title em {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.booking__text {
    margin: 0 0 32px;
    color: #c7cad1;
    font-size: 17px;
    line-height: 1.65;
}

.booking__steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.booking__steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d1d5db;
    font-size: 16px;
}

.booking__step-num {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(165, 180, 252, 0.5);
    border-radius: 50%;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

/* ===== Картка форми ===== */

.booking__card {
    padding: 32px;
    background: #181b22;
    border: 1px solid #2f3542;
    border-radius: 20px;
}

.booking__error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font-size: 14px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
}

.field__optional {
    margin-left: 6px;
    color: #8b909a;
    font-size: 12px;
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    background: #12141a;
    border: 1px solid #2f3542;
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6b7280;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(165, 180, 252, 0.15);
}

.field .is-invalid {
    border-color: #fca5a5;
}

.field__error {
    margin: 8px 0 0;
    color: #fca5a5;
    font-size: 13px;
}

.booking__submit {
    width: 100%;
    margin-top: 6px;
    padding: 16px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #111827;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(165, 180, 252, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(165, 180, 252, 0.45);
}

.booking__consent {
    margin: 14px 0 0;
    color: #8b909a;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.booking__consent a,
.booking__link {
    color: var(--accent);
}

.booking__submit:focus-visible,
.booking a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ===== Успіх ===== */

.booking__success {
    padding: 16px 0;
    text-align: center;
}

.booking__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(165, 180, 252, 0.15);
    color: var(--accent);
    font-size: 30px;
    font-weight: 700;
}

.booking__success h3 {
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 600;
}

.booking__success p {
    margin: 0 0 22px;
    color: #c7cad1;
    line-height: 1.6;
}

.booking__link {
    font-weight: 600;
    text-decoration: none;
}

/* ===== Мобільний ===== */

@media (max-width: 860px) {
    .about-section--text.about-section--with-image {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 720px;
        margin: 0 auto;
    }

    .about-section__media {
        max-width: 420px;
    }

    .about-list {
        grid-template-columns: 1fr;
    }

    .booking {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .booking__card {
        padding: 24px 18px;
    }
}

@media (max-width: 600px) {
    .about-page {
        padding: calc(var(--nav-height) + 40px) 16px 64px;
    }

    .about-header {
        margin-bottom: 40px;
        text-align: left;
    }

    .about-sections {
        gap: 64px;
        margin-bottom: 64px;
    }

    .about-section__head {
        margin-bottom: 28px;
        text-align: left;
    }

    .about-section__note {
        text-align: left;
    }

    .about-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .about-facts__item {
        padding: 20px 14px;
    }

    .about-facts__value {
        font-size: 36px;
    }

    .about-quote {
        padding: 48px 22px 32px;
        border-radius: 20px;
    }

    .about-section--quote {
        text-align: left;
    }

    .about-header__text,
    .booking__text {
        font-size: 16px;
    }
}