:root {
    --cream: #F5F0E7;
    --sand: #E2D5C2;
    --sage: #7D8B72;
    --forest: #3F4A3A;
    --clay: #B87955;
    --dark: #2B2924;
    --muted: #665f55;
    --white: #fffaf2;
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--dark);
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    line-height: 1.65;
    font-size: 18px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.wrap {
    width: min(1120px, 92vw);
    margin: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 240, 231, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(63, 74, 58, .10);
    box-shadow: 0 8px 24px rgba(43, 41, 36, .10);
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-family: Lora, Georgia, serif;
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
    color: var(--forest);
    letter-spacing: .01em;
}

.navlinks {
    display: flex;
    gap: 24px;
    font-size: 15px;
    color: var(--forest);
}

.navlinks a {
    color: var(--forest);
    text-decoration: none;
}

.navlinks a:hover {
    color: var(--clay);
}

.hero {
    padding: 96px 0 72px;
    background: radial-gradient(circle at 78% 18%, rgba(125, 139, 114, .34), transparent 34%),
                linear-gradient(135deg, #2f392d 0%, var(--forest) 58%, #263024 100%);
    color: var(--white);
    box-shadow: 0 18px 45px rgba(43, 41, 36, .12);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 52px;
    align-items: center;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0 0 20px;
    font-family: Lora, Georgia, serif;
    line-height: 1.12;
}

h1 {
    font-size: clamp(48px, 8vw, 92px);
    color: var(--forest);
}

h2 {
    font-size: clamp(34px, 5vw, 58px);
    color: var(--forest);
}

h3 {
    font-size: 26px;
    color: var(--forest);
}

.lead {
    margin: 0 0 28px;
    color: #3b352e;
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.45;
}

.text {
    max-width: 760px;
    color: var(--muted);
}

.hero .eyebrow {
    color: #d9b296;
}

.hero h1 {
    color: var(--white);
}

.hero .lead {
    color: #f2eadf;
}

.hero .text {
    color: #ded5c8;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid var(--forest);
    border-radius: 999px;
    background: var(--forest);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

.btn:hover {
    background: var(--clay);
    border-color: var(--clay);
    transform: translateY(-1px);
}

.btn.secondary {
    background: transparent;
    color: var(--forest);
}

.btn.secondary:hover {
    background: var(--sand);
    border-color: var(--sand);
}

.hero .btn {
    background: var(--cream);
    color: var(--forest);
    border-color: var(--cream);
}

.hero .btn:hover {
    background: var(--clay);
    color: var(--white);
    border-color: var(--clay);
}

.hero .btn.secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 250, 242, .58);
}

.hero .btn.secondary:hover {
    background: rgba(255, 250, 242, .12);
    border-color: var(--white);
}

.photo-card {
    padding: 16px;
    border: 1px solid rgba(255, 250, 242, .22);
    border-radius: var(--radius);
    background: rgba(255, 250, 242, .15);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    transform: rotate(1deg);
}

.photo-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: calc(var(--radius) - 10px);
}

.section {
    padding: 74px 0;
}

.section.alt {
    background: #eee5d8;
}

.two-col {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: start;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card,
.cooperation-card {
    padding: 26px;
    border: 1px solid rgba(63, 74, 58, .12);
    border-radius: 24px;
    background: rgba(255, 250, 242, .76);
    box-shadow: 0 10px 30px rgba(43, 41, 36, .06);
}

.card p,
.cooperation-card p {
    margin: 0;
    color: var(--muted);
}

.list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
}

.list li {
    padding: 14px 16px;
    border: 1px solid rgba(63, 74, 58, .10);
    border-radius: 18px;
    background: rgba(255, 250, 242, .7);
}

.quote {
    margin: 0;
    padding: 42px;
    border-radius: var(--radius);
    background: var(--sand);
    color: var(--forest);
    font-family: Lora, Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.25;
}

.gallery {
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr;
    gap: 18px;
}

.gallery img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
}

.gallery img:first-child {
    grid-column: span 2;
    aspect-ratio: 1.4 / 1;
}

.timeline {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(63, 74, 58, .18);
}

.year {
    color: var(--clay);
    font-weight: 800;
}

.contact {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 56px;
    align-items: center;
    padding: 44px;
    border-radius: var(--radius);
    background: var(--forest);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact .text {
    color: #e8dfd2;
}

.contact-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    background: rgba(255, 255, 255, .08);
}

.section-cooperations {
    padding-top: 84px;
}

.cooperation-list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.cooperation-card {
    border-left: 4px solid var(--sage);
}

.cooperation-card h3 {
    margin-bottom: 10px;
    font-size: 23px;
}

.cooperation-card a {
    display: inline-block;
    margin-top: 12px;
    color: var(--forest);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer {
    padding: 34px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer a {
    margin-left: 14px;
}

@media (max-width: 820px) {
    body {
        font-size: 16px;
    }

    .nav {
        height: 64px;
    }

    .navlinks {
        display: none !important;
    }

    .brand {
        font-size: 23px;
    }

    .hero {
        padding: 56px 0 52px;
    }

    .hero-grid,
    .two-col,
    .contact {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cards,
    .list,
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img:first-child {
        grid-column: auto;
    }

    .item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .contact {
        padding: 28px;
    }

    .photo-card {
        transform: none;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 32px, 1120px);
    }

    .hero {
        padding: 46px 0 44px;
    }

    .section {
        padding: 56px 0;
    }

    .quote {
        padding: 28px;
    }

    .footer a {
        margin-left: 0;
        margin-right: 14px;
    }
}
