/* ===================================
   Durantis — editorial wellness (full redesign)
   Warm paper, forest accent, refined typography
   =================================== */
:root {
    --bg-page: #f4f0e8;
    --bg-elevated: #fffcf7;
    --bg-muted: #ebe6dc;
    --bg-deep: #1a2820;
    --bg-deep-soft: #243529;

    --text-primary: #141a16;
    --text-secondary: #4a524c;
    --text-muted: #6b736d;

    --accent: #1f5c3f;
    --accent-hover: #164730;
    --accent-soft: rgba(31, 92, 63, 0.12);
    --accent-warm: #c45c26;
    --accent-warm-soft: rgba(196, 92, 38, 0.14);

    --border: rgba(26, 40, 32, 0.1);
    --border-strong: rgba(26, 40, 32, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;

    --shadow-sm: 0 1px 2px rgba(20, 26, 22, 0.06);
    --shadow-md: 0 8px 30px rgba(20, 26, 22, 0.08);
    --shadow-lg: 0 20px 50px rgba(20, 26, 22, 0.12);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.6);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.75rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 7rem;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s var(--ease);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-page);
    background-image:
        radial-gradient(ellipse 120% 80% at 100% -20%, rgba(196, 92, 38, 0.07), transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 50%, rgba(31, 92, 63, 0.06), transparent 45%);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(255, 252, 247, 0.78);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    font-variation-settings: "SOFT" 50, "WONK" 0;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.nav {
    display: flex;
    gap: var(--space-xs);
}

.nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.mobile-menu-checkbox {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm) 0 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle ~ .mobile-nav {
    display: flex;
    max-height: 220px;
}

.mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.65rem 0;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(88px + var(--space-lg)) 0 var(--space-xl);
    overflow: hidden;
    background-color: var(--bg-page);
    background-image:
        linear-gradient(
            rgba(247, 244, 239, 0.82) 0%,
            rgba(247, 244, 239, 0.72) 100%
        ),
        url("../images/fon.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text {
    max-width: 44rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.hero-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-variation-settings: "SOFT" 40;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 38em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.stats-img,
.product-img,
.product-img-small,
.contact-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.stats-img {
    max-width: 400px;
    object-fit: contain;
    box-shadow: var(--shadow-md);
}

.product-img {
    max-width: 300px;
    margin-bottom: var(--space-md);
    object-fit: contain;
}

.product-img-small {
    width: 240px;
    max-width: 100%;
    object-fit: contain;
}

.contact-img {
    aspect-ratio: 1;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.85rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #2d7a54 100%);
    color: #fff;
    box-shadow: var(--shadow-md), 0 2px 0 rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 2px 0 rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, var(--accent-hover) 0%, #246847 100%);
}

.btn-full {
    width: 100%;
}

/* Sections */
section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-warm);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.foods > .container > .section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.foods-eyebrow {
    text-align: center;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    section {
        padding: var(--space-lg) 0;
    }
}

/* Features */
.features {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.feature-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Foods */
.foods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.food-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.food-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.food-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.food-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: var(--space-md);
    color: var(--text-primary);
}

.food-description {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Stats */
.stats {
    background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-page) 100%);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-lg);
    align-items: center;
}

.stats-image {
    display: flex;
    justify-content: center;
}

.stats-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.25;
}

.stats-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.75;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

@media (max-width: 992px) {
    .stats-content {
        grid-template-columns: 1fr;
    }

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

/* Info split */
.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
}

.info-block {
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    align-items: center;
}

.info-block-dark {
    background: var(--bg-deep);
    color: #f5f2eb;
}

.info-block-dark .info-title,
.info-block-dark .info-text {
    color: inherit;
}

.info-block-dark .info-title {
    color: #fff;
}

.info-block-dark .info-text {
    color: rgba(245, 242, 235, 0.85);
}

.info-block-image {
    background: var(--bg-deep-soft);
    position: relative;
    overflow: hidden;
}

.info-block-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1200&h=800&fit=crop");
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    mix-blend-mode: luminosity;
}

.info-block-image .info-content {
    position: relative;
    z-index: 1;
}

.info-block-image .info-title {
    color: #fff;
}

.info-block-image .info-text {
    color: rgba(255, 255, 255, 0.9);
}

.info-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.25;
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.02rem;
}

@media (max-width: 992px) {
    .info-split {
        grid-template-columns: 1fr;
    }
}

/* Product */
.product {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.product-subtitle {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.35;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.product-image-small {
    display: none;
    margin-top: var(--space-md);
}

.product-image {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.product-image .product-img {
    margin-left: auto;
    margin-right: auto;
}

.product-description-alt {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.9375rem;
}

@media (max-width: 992px) {
    .product-content {
        grid-template-columns: 1fr;
    }

    .product-image-small {
        display: block;
    }
}

/* FAQ */
.faq {
    background: var(--bg-page);
}

.faq-content {
    max-width: 760px;
    margin: 0 auto;
}

.faq-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-align: center;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-checkbox {
    display: none;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--bg-muted);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    transition: transform 0.3s var(--ease);
}

.faq-checkbox:checked + .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 var(--space-md) var(--space-md);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.9375rem;
    padding-top: var(--space-xs);
}

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-deep) 0%, #0f1812 100%);
    color: #f5f2eb;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 92, 38, 0.15) 0%, transparent 55%);
    pointer-events: none;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: #fff;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(245, 242, 235, 0.88);
    max-width: 52rem;
    margin: 0 auto;
    line-height: 1.75;
}

/* Contact */
.contact-form {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.contact-text {
    color: var(--text-secondary);
    line-height: 1.75;
}

.contact-email {
    font-weight: 600;
    font-size: 1rem;
    margin-top: var(--space-xs);
}

.contact-email a {
    color: var(--accent);
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    padding: 0.9rem 1.1rem;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.82);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-link {
    color: #a8d4b8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link:hover {
    color: #c8e8d4;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-nav-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
}

.footer-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: var(--space-sm);
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--bg-deep);
    color: #fff;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 9999;
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
