
/* =========================
   HUMANORA — цветовая палитра
   ========================= */

:root {
    --color-black: #080808;
    --color-charcoal: #171717;
    --color-cream: #E8DCCB;
    --color-amber: #9A6545;
    --color-white: #FFFFFF;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Manrope', Arial, sans-serif;
}

/* Локальный шрифт для заголовков */

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/cinzel_regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* =========================
   Сброс стилей
   ========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-color: var(--color-black);
    color: var(--color-cream);

    font-family: var(--font-body);
    line-height: 1.7;
}

/* =========================
   Шапка
   ========================= */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;

    padding: 24px 20px;

    background-color: var(--color-black);
}

.logo {
    display: block;
    max-width: 100%;
}

.logo img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

/* Навигация */

header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

header nav a {
    color: var(--color-cream);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;

    border-bottom: 1px solid transparent;
    padding-bottom: 4px;

    transition:
        opacity 0.3s ease,
        border-color 0.3s ease;
}

header nav a:hover {
    opacity: 0.8;
    border-bottom-color: var(--color-cream);
}

header nav a:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--color-amber);
    outline-offset: 5px;
}

/* =========================
   Основное содержимое
   ========================= */

main {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 60px 24px;
    background-color: var(--color-black);
}

/* Секция: изображение + текст */

.double-section {
    display: flex;
    flex-direction: row;
    align-items: center;

    width: 100%;
    max-width: 1000px;
    gap: 50px;
}

/* Изображение */

.double-section .image {
    flex: 0 0 40%;
    min-width: 0;
    min-height: 400px;

    background-color: var(--color-charcoal);
    background-image: url('../img/05ebfe9579427e4f16f9762518327f36.png');
    background-size: cover;
    background-position: 15% center;
    background-repeat: no-repeat;

    border-radius: 10px;
}

/* Текстовая часть */

.double-section .info {
    flex: 1;
    min-width: 0;
}

.eyebrow {
    margin-bottom: 12px;

    color: var(--color-amber);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.double-section .info h1 {
    margin-bottom: 24px;

    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 2px;
}

.double-section .info p:not(.eyebrow) {
    margin-bottom: 18px;

    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}

.double-section .info p:last-child {
    margin-bottom: 0;
}

/* =========================
   Подвал
   ========================= */

footer {
    padding: 24px 20px;

    background-color: var(--color-black);
    border-top: 1px solid rgba(232, 220, 203, 0.12);

    text-align: center;
}

footer p:first-child {
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 3px;
}

footer .copyright {
    margin-top: 8px;

    color: rgba(232, 220, 203, 0.55);
    font-family: var(--font-body);
    font-size: 11px;
}

/* =========================
   Планшеты
   ========================= */

@media (max-width: 900px) {
    main {
        padding: 40px 24px;
    }

    .double-section {
        gap: 30px;
    }

    .double-section .image {
        flex-basis: 38%;
        min-height: 350px;
    }

    .double-section .info p:not(.eyebrow) {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* =========================
   Мобильные устройства
   ========================= */

@media (max-width: 600px) {
    header {
        padding: 20px 16px;
        gap: 16px;
    }

    .logo img {
        max-width: 220px;
    }

    header nav {
        gap: 28px;
    }

    main {
        padding: 30px 20px 40px;
    }

    .double-section {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .double-section .image {
        flex: none;
        width: 100%;
        min-height: 0;
        height: 320px;

        background-position: center;
    }

    .double-section .info {
        width: 100%;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .double-section .info h1 {
        margin-bottom: 20px;
        font-size: 32px;
    }

    .double-section .info p:not(.eyebrow) {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.85;
    }

    footer {
        padding: 20px 16px;
    }
}

/* Уменьшение анимаций по настройке устройства */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
