/* ============================================================
   01. Переменные и базовые стили
   ============================================================ */
:root {
    --ink: #18282a;
    --muted: #5a6968;
    --paper: #f7f6f1;
    --white: #ffffff;
    --line: #d9ded8;
    --accent: #d45d42;
    --blue: #dbe9ed;
    --peach: #f5e2d7;
    --yellow: #f1ebcd;
}

* {
    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: 16px;
    line-height: 1.6;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

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

a {
    color: inherit;
}

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

/* ============================================================
   02. Шапка и навигация
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 24px;
}

.brand-accent {
    color: var(--accent);
}

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

.site-nav a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

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

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    min-height: 560px;
}

.hero-copy {
    align-self: center;
    padding: 88px 48px 92px 0;
}

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

.hero h1 {
    margin-bottom: 28px;
    font-size: clamp(48px, 5.7vw, 82px);
    letter-spacing: -4px;
}

.hero h1 em {
    color: var(--accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

.hero-lead {
    max-width: 540px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 19px;
}

.button {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
}

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

.button-dark:hover {
    background: #324748;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 480px;
    background: #e4d9c7;
}

.art-circle {
    display: grid;
    place-items: center;
    width: min(340px, 76%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #c75f4b;
    color: #fff9ee;
    text-align: center;
    transform: rotate(-10deg);
}

.art-circle span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 0.96;
}

.stamp {
    position: absolute;
    z-index: 1;
    padding: 13px 18px;
    border: 2px solid var(--ink);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
}

.stamp small {
    font-size: 10px;
}

.stamp-one {
    top: 15%;
    left: 6%;
    transform: rotate(-13deg);
}

.stamp-two {
    right: 5%;
    bottom: 18%;
    transform: rotate(10deg);
}

.art-caption {
    position: absolute;
    right: 28px;
    top: 25px;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

/* ============================================================
   04. Общие секции и информация о проекте
   ============================================================ */
.section {
    padding: 100px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

h2 {
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: -2px;
}

.section-prose {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
}

.section-prose p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   05. Карточки историй
   ============================================================ */
.stories-section {
    background: var(--white);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    max-width: 310px;
    margin-bottom: 5px;
    color: var(--muted);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.story-card {
    display: flex;
    flex-direction: column;
    min-height: 370px;
    padding: 30px;
}

.card-blue {
    background: var(--blue);
}

.card-peach {
    background: var(--peach);
}

.card-yellow {
    background: var(--yellow);
}

.story-number {
    margin-bottom: 70px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 35px;
}

.story-location {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.story-card h3 {
    margin-bottom: 16px;
    font-size: 27px;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.story-card > p:not(.story-location) {
    color: #415052;
}

.story-date {
    margin-top: auto;
    padding-top: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* ============================================================
   06. Формат проекта
   ============================================================ */
.format-section {
    background: #e9ece6;
}

.format-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.format-steps {
    padding-top: 25px;
}

.format-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 15px;
    padding: 22px 0;
    border-bottom: 1px solid #bec8c0;
}

.format-step span {
    color: var(--accent);
    font-weight: 800;
}

.format-step p {
    margin: 0;
    font-size: 18px;
}

/* ============================================================
   07. Финальный блок и подвал
   ============================================================ */
.closing-section {
    padding: 110px 0;
    color: var(--white);
    background: var(--ink);
    text-align: center;
}

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

.closing-section h2 {
    margin-bottom: 22px;
}

.closing-section .eyebrow {
    color: #ef9e87;
}

.closing-section p:last-child {
    color: #c4d1ce;
    font-size: 18px;
}

.site-footer {
    background: #101d1f;
    color: #d5dddb;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    font-size: 13px;
}

.footer-brand {
    font-size: 17px;
    font-weight: 800;
}

/* ============================================================
   08. Планшеты и мобильные устройства
   ============================================================ */
@media (max-width: 900px) {
    .hero-grid,
    .split-layout,
    .format-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-copy {
        padding: 70px 0 35px;
    }

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

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 75px 0;
    }
}

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

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }

    .brand {
        font-size: 18px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-lead {
        font-size: 17px;
    }

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

    .art-circle {
        width: 240px;
    }

    .art-circle span {
        font-size: 48px;
    }

    .stamp {
        padding: 8px 10px;
        font-size: 11px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        min-height: 290px;
    }

    .story-number {
        margin-bottom: 32px;
    }

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