/* =========================================================
   VARIABLES
========================================================= */

:root {
    --cream: #f7f5ed;
    --cream-dark: #ece9dc;

    --sage: #a8bba1;
    --sage-dark: #71876d;
    --sage-deep: #4c6550;

    --green: #294a3b;
    --green-light: #3f6652;

    --olive: #d7ddc5;

    --white: #ffffff;

    --text: #26362d;
    --text-light: #69746d;

    --border: rgba(41, 74, 59, 0.13);

    --radius: 28px;

    --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);

    font-family: "DM Sans", sans-serif;

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   GENERAL
========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}

.section {
    padding: 130px 0;
}

.section-label {
    color: var(--sage-dark);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;

    margin-bottom: 25px;
}

.section-label.light {
    color: #b8cdb5;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

h2 {
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.05;
}

p {
    color: var(--text-light);
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;
}

.nav {
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: "Playfair Display", serif;
    font-size: 27px;

    color: var(--green);
}

.logo-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green);
    color: #e6efce;

    font-size: 17px;
}

.menu {
    display: flex;
    gap: 38px;

    font-size: 14px;
    font-weight: 500;

    color: #526057;
}

.menu a {
    transition: color 0.25s ease;
}

.menu a:hover {
    color: var(--green);
}

.nav-button {
    padding: 13px 21px;

    border: 1px solid var(--green);
    border-radius: 100px;

    color: var(--green);

    font-size: 13px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.nav-button:hover {
    background: var(--green);
    color: white;
}

.mobile-menu {
    display: none;

    border: 0;
    background: none;

    font-size: 25px;
    color: var(--green);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 850px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 20%,
            #e0e7d0 0,
            transparent 35%
        ),
        var(--cream);

    display: flex;
    flex-direction: column;
}

.hero-grid {
    flex: 1;

    display: grid;
    grid-template-columns: 1fr 0.85fr;

    align-items: center;

    gap: 70px;

    padding-top: 130px;
    padding-bottom: 100px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 24px;

    color: var(--sage-dark);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow span {
    width: 28px;
    height: 1px;

    background: var(--sage-dark);
}

.hero h1 {
    max-width: 700px;

    font-size: clamp(58px, 7vw, 100px);
    line-height: 0.98;

    letter-spacing: -3px;

    color: var(--green);
}

.hero h1 em {
    color: var(--sage-dark);
    font-style: normal;
}

.hero-text {
    max-width: 550px;

    margin-top: 35px;

    font-size: 18px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 30px;

    margin-top: 40px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    padding: 16px 24px;

    border-radius: 100px;

    border: 0;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

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

.button-primary {
    background: var(--green);
    color: white;

    box-shadow: 0 12px 30px rgba(41, 74, 59, 0.15);
}

.button-primary span {
    font-size: 18px;
}

.button-link {
    padding-left: 0;

    background: transparent;

    color: var(--green);
}

.button-link span {
    font-size: 18px;
}


/* HERO VISUAL */

.hero-visual {
    position: relative;

    height: 540px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    position: relative;

    width: 440px;
    height: 500px;

    overflow: hidden;

    /* мягкое скругление карточки */
    border-radius: 32px;

    background:
        radial-gradient(
            circle at 72% 25%,
            #e9e6c7 0 13%,
            transparent 13.5%
        ),
        linear-gradient(
            145deg,
            #dce6cf 0%,
            #b5c8ad 55%,
            #94ab91 100%
        );

    box-shadow:
        0 30px 70px rgba(63, 88, 65, 0.14);

    transform: rotate(1deg);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-5px);

    box-shadow:
        0 40px 90px rgba(63, 88, 65, 0.18);
}


/* декоративный круг справа сверху */

.hero-card::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -80px;
    top: -80px;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.3);
}


/* декоративное кольцо снизу */

.hero-card::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    left: -170px;
    bottom: -160px;

    border-radius: 50%;

    border: 45px solid rgba(76, 101, 80, 0.12);
}

.sun {
    position: absolute;

    width: 190px;
    height: 190px;

    top: 65px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #e9e4bf;
}

.sun::after {
    content: "";

    position: absolute;

    inset: 18px;

    border-radius: 50%;

    border: 1px solid rgba(76, 101, 80, 0.2);
}
.sun {
    display: none;
}

.hero-quote {
    position: absolute;

    left: 35px;
    right: 35px;
    bottom: 35px;

    padding: 27px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.62);

    backdrop-filter: blur(14px);

    color: var(--green);

    box-shadow:
        0 15px 35px rgba(41, 74, 59, 0.08);

    z-index: 3;
}

.quote-mark {
    display: block;

    font-family: Georgia, serif;

    font-size: 45px;
    line-height: 20px;

    color: var(--sage-dark);
}

.hero-quote p {
    margin: 12px 0 7px;

    color: var(--green);

    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.25;
}

.hero-quote small {
    color: #64766a;
}


/* DECORATIVE LEAVES */

.leaf {
    position: absolute;

    width: 100px;
    height: 170px;

    border-radius: 100% 0 100% 0;

    background: rgba(67, 100, 72, 0.25);

    transform-origin: bottom center;
}

.leaf-1 {
    left: 20px;
    bottom: 120px;

    transform: rotate(-35deg);
}

.leaf-2 {
    right: 5px;
    top: 170px;

    transform: rotate(135deg);
}

.leaf-3 {
    left: 80px;
    top: 210px;

    width: 60px;
    height: 110px;

    transform: rotate(-55deg);
}

.floating-note {
    position: absolute;

    right: -25px;
    bottom: 40px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 20px;

    border-radius: 16px;

    background: white;

    box-shadow: 0 20px 50px rgba(38, 54, 45, 0.12);
}

.note-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e2ead8;

    color: var(--green);
}

.floating-note strong,
.floating-note small {
    display: block;
}

.floating-note strong {
    font-size: 13px;
}

.floating-note small {
    color: var(--text-light);
    font-size: 11px;
}


/* HERO BOTTOM */

.hero-bottom {
    border-top: 1px solid var(--border);
}

.hero-bottom-inner {
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #78847b;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background: #fffdf8;
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.about h2 {
    max-width: 500px;

    color: var(--green);
}

.about-text {
    max-width: 570px;
}

.about-text .lead {
    color: var(--green);

    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.45;

    margin-bottom: 25px;
}

.about-text p:not(.lead) {
    font-size: 16px;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    margin-top: 35px;

    color: var(--green);

    font-weight: 600;

    border-bottom: 1px solid var(--sage);

    padding-bottom: 8px;
}


/* =========================================================
   SERVICES
========================================================= */

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

.services-heading {
    display: grid;

    grid-template-columns: 1fr 0.7fr;

    gap: 100px;

    align-items: end;

    margin-bottom: 65px;
}

.services-heading h2 {
    max-width: 650px;

    color: var(--green);
}

.services-heading > p {
    font-size: 16px;
    line-height: 1.8;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.service-card {
    position: relative;

    min-height: 360px;

    padding: 42px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.5);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 25px 60px rgba(41, 74, 59, 0.09);
}

.service-card.featured {
    background: var(--sage);

    border-color: transparent;
}

.service-number {
    position: absolute;

    top: 35px;
    right: 38px;

    font-size: 11px;
    font-weight: 700;

    color: #8c9d91;
}

.featured .service-number {
    color: rgba(255,255,255,0.7);
}

.service-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 50px;

    border-radius: 50%;

    background: #e4eadb;

    color: var(--green);

    font-size: 22px;
}

.featured .service-icon {
    background: rgba(255,255,255,0.35);
}

.service-card h3 {
    margin-bottom: 15px;

    font-size: 32px;

    color: var(--green);
}

.service-card p {
    max-width: 430px;

    font-size: 14px;
    line-height: 1.7;
}

.service-card a {
    position: absolute;

    bottom: 38px;
    left: 42px;

    color: var(--green);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   STORY
========================================================= */

.story {
    background: #fffdf8;
}

.story-grid {
    display: grid;

    grid-template-columns: 0.9fr 1fr;

    gap: 110px;

    align-items: center;
}

.story-image {
    position: relative;

    padding: 35px;
}

.image-shape {
    position: relative;

    height: 600px;

    overflow: hidden;

    /* скругление изображения */
    border-radius: 32px;

    background: #d5dfc9;

    box-shadow:
        0 25px 60px rgba(41, 74, 59, 0.10);

    transform: rotate(-1deg);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.image-shape:hover {
    transform: rotate(0deg) translateY(-5px);

    box-shadow:
        0 35px 75px rgba(41, 74, 59, 0.15);
}

.fake-image {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 70% 25%,
            rgba(236, 232, 202, 0.9) 0 11%,
            transparent 11.5%
        ),
        radial-gradient(
            circle at 25% 75%,
            rgba(255,255,255,0.16) 0 17%,
            transparent 17.5%
        ),
        linear-gradient(
            140deg,
            #bdccb5,
            #91a88f
        );
}


/* декоративные элементы внутри изображения */

.fake-image::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.35);

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

.fake-image::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    border-radius: 40% 60% 60% 40%;

    background: rgba(64, 91, 68, 0.18);

    right: -30px;
    bottom: 60px;

    transform: rotate(35deg);
}

.fake-image span {
    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.35);

    color: white;

    font-size: 35px;
}

.story-badge {
    position: absolute;

    right: 0;
    bottom: 55px;

    display: flex;
    flex-direction: column;

    padding: 25px;

    border-radius: 18px;

    background: var(--green);

    color: white;

    box-shadow: 0 20px 40px rgba(41, 74, 59, 0.2);
}

.story-badge strong {
    font-family: "Playfair Display", serif;

    font-size: 40px;
    line-height: 1;
}

.story-badge span {
    margin-top: 7px;

    color: #bdcdbf;

    font-size: 11px;
}

.story-content h2 {
    max-width: 550px;

    color: var(--green);

    margin-bottom: 30px;
}

.story-content > p {
    max-width: 550px;

    margin-bottom: 18px;

    line-height: 1.8;
}

.signature {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 45px;
}

.signature-line {
    width: 50px;
    height: 1px;

    background: var(--sage-dark);
}

.signature strong,
.signature small {
    display: block;
}

.signature strong {
    color: var(--green);

    font-family: "Playfair Display", serif;
    font-size: 18px;
}

.signature small {
    color: var(--text-light);
    font-size: 11px;
}


/* =========================================================
   VALUES
========================================================= */

.values {
    padding: 120px 0;

    background: var(--green);

    color: white;
}

.values-inner {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;
}

.values h2 {
    max-width: 480px;
}

.values-list {
    border-top: 1px solid rgba(255,255,255,0.15);
}

.value {
    display: grid;

    grid-template-columns: 50px 180px 1fr;

    gap: 20px;

    padding: 30px 0;

    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.value > span {
    color: #91aa91;

    font-size: 11px;
}

.value strong {
    font-family: "Playfair Display", serif;

    font-size: 22px;
    font-weight: 500;
}

.value p {
    color: #aebeb2;

    font-size: 13px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: #fffdf8;
}

.contact-grid {
    display: grid;

    grid-template-columns: 0.75fr 1.25fr;

    gap: 120px;
}

.contact-info h2 {
    color: var(--green);

    margin-bottom: 25px;
}

.contact-info > p {
    max-width: 400px;

    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;

    gap: 25px;

    margin-top: 50px;
}

.contact-details a {
    display: flex;
    flex-direction: column;

    color: var(--green);

    font-size: 17px;
}

.contact-details span {
    margin-bottom: 5px;

    color: var(--sage-dark);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.contact-form {
    padding: 45px;

    border-radius: var(--radius);

    background: #edf1e7;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.contact-form label {
    display: block;

    margin-bottom: 24px;

    color: var(--green);

    font-size: 12px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;

    margin-top: 9px;

    padding: 16px 18px;

    border: 1px solid rgba(41, 74, 59, 0.15);
    border-radius: 12px;

    outline: none;

    background: rgba(255,255,255,0.75);

    color: var(--text);

    font-size: 14px;

    transition: border 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--sage-dark);
}

.contact-form textarea {
    resize: vertical;
}

.checkbox {
    display: flex !important;
    align-items: center;

    gap: 10px;

    color: var(--text-light) !important;

    font-size: 11px !important;
    font-weight: 400 !important;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.contact-form .button {
    margin-top: 5px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 70px 0 25px;

    background: #e9e8dc;
}

.footer-top {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 50px;

    align-items: center;

    padding-bottom: 60px;

    border-bottom: 1px solid var(--border);
}

.footer-logo {
    font-size: 30px;
}

.footer-top > p {
    max-width: 270px;

    font-family: "Playfair Display", serif;

    font-size: 19px;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    justify-content: flex-end;

    gap: 30px;

    font-size: 13px;
}

.footer-links a:hover {
    color: var(--sage-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    padding-top: 25px;

    color: #7c857e;

    font-size: 10px;
}


/* =========================================================
   DECORATIONS
========================================================= */

.hero-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.decoration-one {
    width: 500px;
    height: 500px;

    right: -300px;
    top: 180px;

    border: 1px solid rgba(113, 135, 109, 0.13);
}

.decoration-two {
    width: 750px;
    height: 750px;

    left: -650px;
    bottom: -400px;

    border: 1px solid rgba(113, 135, 109, 0.1);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .menu,
    .nav-button {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        padding-top: 160px;
    }

    .hero-content {
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero h1,
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .about-grid,
    .story-grid,
    .contact-grid,
    .values-inner {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .services-heading {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .story-image {
        max-width: 550px;

        margin: auto;
    }

    .values-list {
        margin-top: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}


@media (max-width: 650px) {

    .container {
        width: min(
            calc(100% - 32px),
            var(--container)
        );
    }

    .section {
        padding: 90px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .hero h1 {
        font-size: 56px;

        letter-spacing: -2px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        gap: 15px;
    }

    .hero-card {
        width: 310px;
        height: 400px;
    }

    .hero-visual {
        height: 450px;
    }

    .hero-quote {
        left: 25px;
        right: 25px;
        bottom: 30px;
    }

    .hero-quote p {
        font-size: 21px;
    }

    .floating-note {
        right: 0;
    }

    .hero-bottom-inner {
        flex-wrap: wrap;

        gap: 20px;

        padding: 25px 0;
    }

    .about-grid {
        gap: 40px;
    }

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

    .service-card {
        min-height: 330px;
    }

    .story-image {
        padding: 15px;
    }

    .image-shape {
        height: 470px;
    }

    .value {
        grid-template-columns: 40px 1fr;

        gap: 12px;
    }

    .value p {
        grid-column: 2;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }
}



/* =========================================================
   ICONS (вместо знаков вопроса)
========================================================= */

.icon {
    width: 1em;
    height: 1em;

    flex-shrink: 0;

    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-mark .icon {
    width: 19px;
    height: 19px;
}

.mobile-menu .icon {
    width: 28px;
    height: 28px;
}

.note-icon .icon {
    width: 18px;
    height: 18px;
}

.service-icon .icon {
    width: 24px;
    height: 24px;
}

.fake-image span .icon {
    width: 44px;
    height: 44px;
}

.button span,
.text-link span {
    transition: transform 0.25s ease;
}

.button:hover span,
.text-link:hover span {
    transform: translateX(4px);
}

.menu a.active {
    color: var(--green);
}


/* =========================================================
   MOBILE MENU (открытое состояние)
========================================================= */

.mobile-menu {
    cursor: pointer;
    position: relative;
    z-index: 120;
}

@media (max-width: 1000px) {

    .header.menu-open .menu {
        position: fixed;
        inset: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;

        background: var(--cream);

        font-family: "Playfair Display", serif;
        font-size: 30px;

        z-index: 110;
    }

    body.no-scroll {
        overflow: hidden;
    }
}


/* =========================================================
   FORM: ошибки, состояние отправки
========================================================= */

.contact-form .field-error input,
.contact-form .field-error textarea,
.contact-form .field-error select {
    border-color: #b45a4a;
}

.contact-form .error-text {
    display: block;

    margin-top: 7px;

    color: #a14c3e;

    font-size: 11px;
    font-weight: 500;
}

.checkbox.field-error {
    color: #a14c3e !important;
}

.checkbox .error-text {
    margin-top: 0 !important;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;

    width: 1px;
    height: 1px;

    overflow: hidden;
}

.button[disabled] {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.spinner {
    width: 16px;
    height: 16px;

    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* TOAST — уведомление клиента */

.toast-wrap {
    position: fixed;

    right: 24px;
    bottom: 24px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    z-index: 500;

    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    width: min(380px, calc(100vw - 32px));

    padding: 18px 20px;

    border-radius: 18px;

    background: white;

    box-shadow: 0 25px 60px rgba(38, 54, 45, 0.18);

    pointer-events: auto;

    opacity: 0;
    transform: translateY(16px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #e2ead8;
    color: var(--green);
}

.toast-icon .icon {
    width: 18px;
    height: 18px;
}

.toast.error .toast-icon {
    background: #f3e1dc;
    color: #a14c3e;
}

.toast strong {
    display: block;

    color: var(--green);

    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.toast.error strong {
    color: #8e3f33;
}

.toast p {
    margin-top: 3px;

    font-size: 13px;
    line-height: 1.5;
}

.toast-close {
    margin-left: auto;

    border: 0;
    background: none;

    color: var(--text-light);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

@media (max-width: 650px) {
    .toast-wrap {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        width: 100%;
    }
}


/* =========================================================
   PAGE HERO (подстраницы)
========================================================= */

.page-hero {
    position: relative;

    overflow: hidden;

    padding: 190px 0 90px;

    background:
        radial-gradient(
            circle at 80% 10%,
            #e0e7d0 0,
            transparent 38%
        ),
        var(--cream);

    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    max-width: 820px;

    color: var(--green);

    font-size: clamp(50px, 6.5vw, 92px);
    line-height: 1;
    letter-spacing: -2.5px;
}

.page-hero h1 em {
    color: var(--sage-dark);
    font-style: normal;
}

.page-hero .hero-text {
    max-width: 560px;
    margin-top: 28px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-bottom: 30px;

    color: var(--text-light);

    font-size: 13px;
}

.breadcrumbs a:hover {
    color: var(--green);
}

.breadcrumbs .sep {
    color: var(--sage);
}


/* =========================================================
   BLOG — список статей
========================================================= */

.blog {
    background: #fffdf8;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 55px;
}

.filter-chip {
    padding: 10px 18px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: transparent;

    color: var(--text);

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--sage-dark);
}

.filter-chip.active {
    background: var(--green);
    border-color: var(--green);

    color: white;
}

/* обложка статьи (заглушка в стиле сайта; можно вставить <img>) */

.post-cover {
    position: relative;

    display: block;

    overflow: hidden;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 72% 28%,
            rgba(236, 232, 202, 0.95) 0 12%,
            transparent 12.5%
        ),
        linear-gradient(140deg, #cfdcc4, #94ab91);
}

.post-cover::before {
    content: "";

    position: absolute;

    width: 70%;
    aspect-ratio: 1;

    left: -20%;
    bottom: -40%;

    border-radius: 50%;

    border: 34px solid rgba(76, 101, 80, 0.12);
}

.post-cover::after {
    content: "";

    position: absolute;

    width: 22%;
    aspect-ratio: 0.6;

    right: 14%;
    bottom: -6%;

    border-radius: 100% 0 100% 0;

    background: rgba(67, 100, 72, 0.22);

    transform: rotate(-30deg);
}

.post-cover.tone-2 {
    background:
        radial-gradient(circle at 25% 30%, rgba(255,255,255,0.35) 0 14%, transparent 14.5%),
        linear-gradient(150deg, #e4e3c9, #b6c39e);
}

.post-cover.tone-3 {
    background:
        radial-gradient(circle at 70% 30%, rgba(236, 232, 202, 0.7) 0 12%, transparent 12.5%),
        linear-gradient(130deg, #8ea58d, #4c6550);
}

.post-cover.tone-4 {
    background:
        radial-gradient(circle at 30% 25%, rgba(236, 232, 202, 0.9) 0 10%, transparent 10.5%),
        linear-gradient(160deg, #d7ddc5, #a8bba1);
}

.post-cover.tone-5 {
    background:
        radial-gradient(circle at 78% 22%, rgba(255,255,255,0.3) 0 13%, transparent 13.5%),
        linear-gradient(140deg, #bdccb5, #71876d);
}

.post-cover img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;

    color: var(--text-light);

    font-size: 12px;
}

.post-meta .dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--sage-dark);
}

.post-category {
    display: inline-block;

    padding: 5px 12px;

    border-radius: 100px;

    background: #e4eadb;

    color: var(--sage-deep);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}

/* главная (выделенная) статья */

.post-featured {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;

    align-items: center;

    margin-bottom: 80px;
}

.post-featured .post-cover {
    height: 460px;

    border-radius: 32px;

    box-shadow: 0 25px 60px rgba(41, 74, 59, 0.10);

    transition: transform 0.4s ease;
}

.post-featured:hover .post-cover {
    transform: translateY(-5px);
}

.post-featured h2 {
    margin: 22px 0 20px;

    color: var(--green);

    font-size: clamp(34px, 3.6vw, 50px);
    line-height: 1.1;
}

.post-featured h2 a:hover {
    color: var(--green-light);
}

.post-featured p:not(.post-meta) {
    margin-bottom: 10px;

    font-size: 16px;
    line-height: 1.8;
}

/* сетка статей */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 28px;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card .post-cover {
    height: 250px;

    margin-bottom: 25px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.post-card:hover .post-cover {
    transform: translateY(-6px);

    box-shadow: 0 25px 50px rgba(41, 74, 59, 0.12);
}

.post-card .post-category {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 2;

    background: rgba(255,255,255,0.78);

    backdrop-filter: blur(8px);
}

.post-card h3 {
    margin: 14px 0 12px;

    color: var(--green);

    font-size: 26px;
    line-height: 1.2;
}

.post-card p {
    font-size: 14px;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 18px;

    color: var(--green);

    font-size: 13px;
    font-weight: 700;
}

.read-more span {
    transition: transform 0.25s ease;
}

.post-card:hover .read-more span,
.read-more:hover span {
    transform: translateX(4px);
}

.is-hidden {
    display: none !important;
}

.posts-empty {
    display: none;

    padding: 50px 0;

    text-align: center;
}

.posts-empty.show {
    display: block;
}

/* пагинация */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 80px;
}

.pagination a,
.pagination span {
    min-width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: 100px;

    color: var(--green);

    font-size: 14px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--sage-dark);
}

.pagination .current {
    background: var(--green);
    border-color: var(--green);

    color: white;
}


/* CTA блок */

.cta {
    padding: 110px 0;

    background: var(--green);

    color: white;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;

    align-items: end;
}

.cta h2 {
    max-width: 600px;
}

.cta p {
    margin-bottom: 30px;

    color: #aebeb2;

    line-height: 1.8;
}

.cta .button-primary {
    background: #e6efce;

    color: var(--green);

    box-shadow: none;
}


/* =========================================================
   ARTICLE — отдельная статья
========================================================= */

.article-hero {
    padding-bottom: 0;

    border-bottom: 0;
}

.article-hero .post-meta {
    margin-top: 32px;

    font-size: 13px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-right: 10px;
}

.avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green);

    color: #e6efce;

    font-family: "Playfair Display", serif;
    font-size: 16px;
}

.article-author strong {
    display: block;

    color: var(--green);

    font-size: 14px;
}

.article-cover {
    height: 520px;

    margin-top: 60px;

    border-radius: 32px;

    box-shadow: 0 30px 70px rgba(63, 88, 65, 0.12);
}

.article-section {
    padding: 100px 0 120px;

    background: var(--cream);
}

.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px);
    justify-content: space-between;
    gap: 80px;
}

.article-aside {
    position: sticky;
    top: 40px;

    align-self: start;
}

.toc-title {
    margin-bottom: 18px;

    color: var(--sage-dark);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding-left: 16px;

    border-left: 1px solid var(--border);

    font-size: 13px;
    line-height: 1.45;
}

.toc a {
    color: var(--text-light);

    transition: color 0.2s ease;
}

.toc a:hover,
.toc a.active {
    color: var(--green);
}

.share {
    display: flex;
    gap: 10px;

    margin-top: 40px;
}

.share a,
.share button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: transparent;

    color: var(--green);

    cursor: pointer;

    transition: all 0.2s ease;
}

.share a:hover,
.share button:hover {
    background: var(--green);
    border-color: var(--green);

    color: white;
}

.share .icon {
    width: 16px;
    height: 16px;
}

/* типографика статьи */

.article-body {
    color: var(--text);

    font-size: 18px;
    line-height: 1.85;
}

.article-body > * + * {
    margin-top: 26px;
}

.article-body p {
    color: #45534a;
}

.article-body .lead {
    color: var(--green);

    font-family: "Playfair Display", serif;
    font-size: 26px;
    line-height: 1.5;
}

.article-body h2 {
    margin-top: 60px;

    color: var(--green);

    font-size: 38px;
    line-height: 1.15;

    scroll-margin-top: 30px;
}

.article-body h3 {
    margin-top: 40px;

    color: var(--green);

    font-size: 26px;
}

.article-body ul,
.article-body ol {
    padding-left: 0;

    list-style: none;

    color: #45534a;
}

.article-body li {
    position: relative;

    padding-left: 34px;
}

.article-body li + li {
    margin-top: 12px;
}

.article-body ul li::before {
    content: "";

    position: absolute;

    left: 6px;
    top: 0.7em;

    width: 10px;
    height: 10px;

    border-radius: 100% 0 100% 0;

    background: var(--sage);
}

.article-body ol {
    counter-reset: item;
}

.article-body ol li::before {
    counter-increment: item;
    content: counter(item, decimal-leading-zero);

    position: absolute;

    left: 0;
    top: 0.3em;

    color: var(--sage-dark);

    font-size: 12px;
    font-weight: 700;
}

.article-body blockquote {
    position: relative;

    margin: 50px 0;

    padding: 40px 45px;

    border-radius: 24px;

    background: #e4eadb;

    color: var(--green);

    font-family: "Playfair Display", serif;
    font-size: 26px;
    line-height: 1.4;
}

.article-body blockquote::before {
    content: "\201C";

    display: block;

    margin-bottom: 8px;

    color: var(--sage-dark);

    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 0.6;
}

.article-body blockquote cite {
    display: block;

    margin-top: 16px;

    color: var(--sage-dark);

    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-style: normal;
}

.article-body a {
    color: var(--green);

    border-bottom: 1px solid var(--sage);
}

.article-note {
    display: flex;
    gap: 18px;

    padding: 28px 30px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: rgba(255,255,255,0.6);
}

.article-note .note-icon {
    flex-shrink: 0;
}

.article-note p {
    font-size: 16px;
    line-height: 1.7;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 60px;
    padding-top: 35px;

    border-top: 1px solid var(--border);
}

.article-tags a {
    padding: 7px 15px;

    border: 1px solid var(--border) !important;
    border-radius: 100px;

    color: var(--text-light);

    font-size: 12px;

    transition: all 0.2s ease;
}

.article-tags a:hover {
    border-color: var(--sage-dark) !important;

    color: var(--green);
}

.author-box {
    display: flex;
    gap: 24px;

    margin-top: 45px;
    padding: 35px;

    border-radius: var(--radius);

    background: var(--green);
}

.author-box .avatar {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    background: #e6efce;

    color: var(--green);

    font-size: 24px;
}

.author-box strong {
    display: block;

    margin-bottom: 6px;

    color: white;

    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 500;
}

.author-box p {
    color: #aebeb2;

    font-size: 14px;
    line-height: 1.7;
}

.related {
    background: #fffdf8;
}

.related-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 55px;
}

.related-heading h2 {
    color: var(--green);
}

.related-heading .text-link {
    margin-top: 0;

    white-space: nowrap;
}


/* =========================================================
   RESPONSIVE — блог и статья
========================================================= */

@media (max-width: 1000px) {

    .post-featured,
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-featured .post-cover {
        height: 380px;
    }

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

    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-aside {
        position: static;
        order: 2;
    }

    .toc-wrap {
        display: none;
    }

    .share {
        margin-top: 0;
    }

    .article-cover {
        height: 420px;
    }
}

@media (max-width: 650px) {

    .page-hero {
        padding: 140px 0 70px;
    }

    .article-hero {
        padding-bottom: 0;
    }

    .page-hero h1 {
        letter-spacing: -1.5px;
    }

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

    .post-featured .post-cover {
        height: 280px;
    }

    .article-cover {
        height: 280px;
        margin-top: 45px;

        border-radius: 22px;
    }

    .article-section {
        padding: 60px 0 90px;
    }

    .article-body {
        font-size: 17px;
    }

    .article-body .lead {
        font-size: 22px;
    }

    .article-body h2 {
        font-size: 30px;
    }

    .article-body blockquote {
        padding: 30px 26px;

        font-size: 22px;
    }

    .author-box {
        flex-direction: column;

        padding: 28px;
    }

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

    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
    }
}
