/* Основные настройки */

:root {
    color-scheme: dark;

    --bg: #0b1019;
    --surface: #111a27;
    --text: #f8f4ee;
    --muted: #b6bfce;
    --gold: #efbd73;
    --accent: #ed3657;
    --line: rgba(255, 255, 255, 0.12);

    --radius: 18px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.3rem;
}

em {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: 88px;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 38px;
}

.section-heading > p:last-child:not(.eyebrow) {
    max-width: 650px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.1rem;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Кнопки */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover {
    background: #fa4969;
    transform: translateY(-2px);
}

.button-secondary {
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Шапка */

.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 96px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1.35;
}

.brand strong {
    font-size: 1.15rem;
}

.brand span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav .nav-contact {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent);
}

.menu-toggle {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
}

/* Первый экран */

.hero {
    padding-block: 64px 80px;
    background:
        radial-gradient(
            ellipse at 85% 30%,
            rgba(180, 105, 40, 0.12),
            transparent 55%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    margin-bottom: 28px;
    font-size: clamp(3rem, 5.8vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-lead {
    max-width: 460px;
    margin-bottom: 16px;
    font-size: 1.3rem;
    line-height: 1.5;
}

.hero-description {
    max-width: 440px;
    margin-bottom: 30px;
    color: var(--muted);
}

.hero-signature {
    margin-top: 24px;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-style: italic;
}

.hero-portrait {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(239, 189, 115, 0.25);
    border-radius: 160px 160px 24px 24px;
    background: var(--surface);
}

.hero-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 69% center;
}

.hero-portrait figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 70px 28px 28px;
    background: linear-gradient(transparent, rgba(5, 9, 16, 0.95));
}

.hero-portrait figcaption strong {
    font-size: 1.25rem;
}

.hero-portrait figcaption span {
    color: #d4d8df;
    font-size: 0.9rem;
}

/* Поводы */

.occasions {
    border-top: 1px solid var(--line);
}

.occasion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.occasion-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    text-align: left;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.occasion-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.card-number {
    margin-bottom: 28px;
    color: var(--gold);
    font-size: 0.8rem;
}

.occasion-card h3 {
    margin-bottom: 14px;
}

.occasion-card p {
    margin-bottom: 28px;
    color: var(--muted);
}

.card-action {
    margin-top: auto;
    color: var(--gold);
    font-size: 0.85rem;
}

/* Примеры песен */

.examples {
    background: #0e1622;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.track-card {
    min-width: 0;
}

.track-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    aspect-ratio: 1;
    border-radius: var(--radius);
    object-fit: cover;
}

.track-card h3 {
    margin-bottom: 10px;
}

.track-card p {
    margin-bottom: 20px;
    color: var(--muted);
}

.track-card audio {
    width: 100%;
}

/* Процесс */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-grid li {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.step-number {
    display: block;
    margin-bottom: 28px;
    color: var(--gold);
    font-size: 1.5rem;
}

.process-grid h3 {
    margin-bottom: 16px;
}

.process-grid p {
    color: var(--muted);
}

/* Смысл и личная история */

.meaning {
    border-block: 1px solid var(--line);
    background:
        radial-gradient(
            ellipse at left center,
            rgba(239, 189, 115, 0.08),
            transparent 65%
        );
}

.meaning-grid,
.about-grid,
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 80px;
}

.meaning h2 {
    font-size: clamp(3.5rem, 7vw, 6rem);
}

.meaning-copy > p,
.about-copy > p,
.story-copy > p:not(.eyebrow) {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 1.1rem;
}

.meaning blockquote {
    margin: 32px 0 0;
    padding-left: 24px;
    border-left: 2px solid var(--gold);
    color: var(--text);
    font-size: 1.2rem;
}

/* О Дмитрии */

.about-subtitle {
    margin-top: 18px;
    color: var(--gold);
}

.text-link {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent);
    font-weight: 700;
}

.text-link:hover {
    color: var(--gold);
}

/* Подготовка рассказа */

.story {
    background: #111a27;
}

.story-copy h2 {
    margin-bottom: 28px;
}

.story-form {
    display: grid;
    gap: 22px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.field {
    display: grid;
    gap: 10px;
}

.field label {
    font-size: 0.95rem;
    font-weight: 700;
}

.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #394354;
    border-radius: 8px;
    background: #141e2c;
    color: var(--text);
}

.field textarea {
    min-height: 180px;
    resize: vertical;
}

.field textarea::placeholder {
    color: #9ba7b8;
}

.form-note,
.form-status {
    font-size: 0.875rem;
}

.form-note {
    color: var(--muted);
}

.form-status {
    color: var(--gold);
}

.form-status:empty {
    display: none;
}

/* Подвал */

.site-footer {
    padding-block: 32px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner > p {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.footer-inner small {
    color: var(--muted);
}

/* Планшеты */

@media (max-width: 1000px) {
    .main-nav {
        gap: 16px;
        font-size: 0.8rem;
    }

    .hero-grid {
        gap: 32px;
    }

    .occasion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meaning-grid,
    .about-grid,
    .story-grid {
        gap: 40px;
    }
}

/* Телефоны */

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .section {
        padding-block: 56px;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 18px;
        min-height: 82px;
        padding-block: 18px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand span {
        font-size: 0.75rem;
    }

    .main-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        font-size: 1rem;
    }

    .main-nav a {
        padding: 12px 0;
    }

    .main-nav .nav-contact {
        border-bottom: 0;
        color: var(--gold);
    }

    .menu-ready .main-nav {
        display: none;
    }

    .menu-ready .main-nav.is-open {
        display: flex;
    }

    .hero-grid,
    .meaning-grid,
    .about-grid,
    .story-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero h1 {
        font-size: clamp(2.8rem, 11vw, 4.5rem);
    }

    .hero-portrait {
        width: min(100%, 460px);
        margin-inline: auto;
        border-radius: 100px 100px 20px 20px;
    }

    .hero-portrait img {
        aspect-ratio: 1;
    }

    .track-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .track-card img {
        max-width: 380px;
    }

    .story-form {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .occasion-grid,
    .process-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .occasion-card {
        padding: 24px;
    }

    .card-number {
        margin-bottom: 18px;
    }

    .hero .button {
        width: 100%;
    }

    .story-form {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}