/* =========================================
   01. Цвета и базовые настройки
   ========================================= */
:root {
    --ink: #302824;
    --muted: #675f58;
    --paper: #fffdf8;
    --cream: #f5eee2;
    --accent: #8d343e;
    --accent-dark: #65222e;
    --line: #e3d9cc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

a {
    color: inherit;
}

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

.narrow {
    max-width: 810px;
}

/* =========================================
   02. Заголовки и кнопки
   ========================================= */
h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 400;
    letter-spacing: -0.035em;
}

h3 {
    font-size: 25px;
}

.eyebrow {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #efc8c5;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-small {
    padding: 12px 19px;
}

.button-dark {
    color: white;
    background: var(--accent);
}

.button-dark:hover {
    background: var(--accent-dark);
}

.button-light {
    color: var(--accent-dark);
    background: white;
}

.button-light:hover {
    background: #f8e9e2;
}

.text-link {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

/* =========================================
   03. Шапка
   ========================================= */
.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
}

.brand-name em {
    color: var(--accent);
    font-style: normal;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    font-size: 14px;
    text-decoration: none;
}

.header-nav a:hover {
    color: var(--accent);
}

/* =========================================
   04. Главный экран
   ========================================= */
.hero {
    overflow: hidden;
}

.hero-grid {
    display: grid;
    min-height: 540px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
    padding-block: 70px;
}

.hero h1 {
    margin-bottom: 25px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(64px, 8vw, 115px);
    font-weight: 400;
    letter-spacing: -0.075em;
}

.hero-period {
    color: var(--accent);
}

.hero-lead {
    max-width: 540px;
    margin-bottom: 28px;
    font-size: 21px;
}

.hero-art {
    position: relative;
    display: flex;
    min-height: 370px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 48% 48% 10px 10px;
    color: white;
    background: #b75d57;
}

.hero-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.hero-circle-one {
    width: 390px;
    height: 390px;
}

.hero-circle-two {
    width: 270px;
    height: 270px;
}

.hero-art-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-art-top,
.hero-art-bottom {
    font-size: 13px;
    letter-spacing: 0.1em;
}

.hero-art-word {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(65px, 8vw, 115px);
    line-height: 1.5;
}

/* =========================================
   05. Основные разделы
   ========================================= */
.section {
    padding-block: 100px;
}

.section p {
    max-width: 790px;
}

.section-lead {
    font-size: 21px;
    line-height: 1.6;
}

.section-cream {
    background: var(--cream);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 45px;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.principle {
    padding: 30px 0;
    border-top: 2px solid var(--accent);
}

.principle-number {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.principle h3 {
    margin: 25px 0 14px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

.principle p {
    color: var(--muted);
}

/* =========================================
   06. Госуслуги
   ========================================= */
.service-section {
    padding-block: 72px;
    color: white;
    background: var(--accent-dark);
}

.service-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.service-inner > div {
    max-width: 670px;
}

.service-inner h2 {
    font-size: clamp(30px, 3.5vw, 45px);
}

.service-inner p:last-child {
    margin-bottom: 0;
    color: #f1d9d8;
}

.service-inner .button {
    flex-shrink: 0;
}

/* =========================================
   07. История конкурса
   ========================================= */
.stories-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 65px;
}

.stories-copy p {
    color: var(--muted);
}

.stories-copy .section-lead {
    color: var(--ink);
}

.history-note {
    padding: 15px 20px;
    border-left: 3px solid var(--accent);
    background: var(--cream);
    font-size: 14px;
}

/* =========================================
   08. Завершающий блок и подвал
   ========================================= */
.closing {
    padding-block: 85px;
    background: var(--cream);
    text-align: center;
}

.closing-inner {
    max-width: 760px;
}

.closing-label {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.closing p:last-child {
    color: var(--muted);
}

.site-footer {
    padding-block: 30px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}

/* =========================================
   09. Адаптация для планшетов и телефонов
   ========================================= */
@media (max-width: 900px) {
    .header-nav {
        display: none;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-art {
        min-height: 300px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .header-inner {
        min-height: 75px;
    }

    .brand-name {
        font-size: 21px;
    }

    .hero-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding-block: 48px;
    }

    .hero-art {
        min-height: 300px;
    }

    .section {
        padding-block: 65px;
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        gap: 4px;
    }
}
