:root {
    --bg-page: #f7f5f0;
    --bg-page-soft: #f1efe6;
    --bg-header: rgba(247, 245, 240, 0.92);
    --bg-card: #ffffff;
    --bg-card-soft: #faf7f2;
    --accent: #4c7c3a;
    --accent-soft: #e0f2d8;
    --accent-strong: #86b94c;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 999px;
    --transition-fast: 0.2s ease-out;
    --transition-med: 0.3s ease-out;
    --max-width: 1120px;
    --nav-height: 74px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background:
        radial-gradient(circle at 0% 0%, rgba(180, 216, 162, 0.28), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(244, 211, 162, 0.28), transparent 55%),
        var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

p {
    margin: 0 0 1rem;
}

h1, h2, h3, h4 {
    margin: 0 0 0.7rem;
    font-weight: 600;
}

/* LAYOUT */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-soft {
    padding: 3.5rem 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 60%);
}

.section-title {
    font-size: clamp(1.9rem, 3vw, 2.3rem);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--accent);
}

.section-intro {
    max-width: 640px;
    color: var(--text-muted);
    margin-bottom: 2.1rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: var(--bg-header);
    border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.logo span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.main-nav a {
    position: relative;
    color: var(--text-muted);
    padding: 0.25rem 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: var(--radius-pill);
    transition: width var(--transition-med);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--text-main);
}

.nav-cta {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(130, 160, 110, 0.6);
    background: linear-gradient(135deg, #fefce8, #e0f2d8);
    color: #1a2e1a;
}

/* MOBILE NAV */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: var(--radius-pill);
}

/* HERO */

.hero {
    padding: 3.8rem 0 3.4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    color: var(--text-muted);
    max-width: 560px;
}

.hero-actions {
    margin: 1.8rem 0 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-contact {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.hero-contact li {
    margin-bottom: 0.25rem;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hero-illustration {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card-soft);
    border: 1px solid rgba(209, 213, 219, 0.9);
    padding: 0.75rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-illustration img {
    border-radius: calc(var(--radius-lg) - 0.6rem);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: 1.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(199, 213, 185, 0.9);
    color: #4b5563;
}

.hero-badge-top {
    top: 1.3rem;
}

.hero-badge-bottom {
    bottom: 1.3rem;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.hero-stat {
    padding: 0.9rem 0.9rem;
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.18);
}

.stat-number {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        border var(--transition-fast),
        color var(--transition-fast);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #f9fafb;
    box-shadow: 0 14px 32px rgba(76, 124, 58, 0.35);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(76, 124, 58, 0.42);
}

.btn.secondary {
    background: #ffffff;
    color: var(--text-main);
    border-color: rgba(163, 177, 151, 0.9);
}

.btn.secondary:hover {
    background: #f3f4f0;
}

.btn.outline {
    background: transparent;
    border-color: rgba(156, 163, 175, 0.8);
}

.btn.outline:hover {
    border-color: var(--accent);
}

.btn.full-width {
    width: 100%;
}

/* GRID HELPERS */

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.4rem;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
}

.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.7rem;
}

/* ABOUT SECTION */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.4rem;
}

.about-card {
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card-soft);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
}

/* GENERIC CARDS */

.info-card {
    padding: 1.6rem 1.6rem 1.7rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
    font-size: 0.96rem;
}

.info-card h2,
.info-card h3 {
    margin-bottom: 0.7rem;
}

.info-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--accent);
}

/* STEPS */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.step-item {
    position: relative;
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

/* VISIT / LOCATION */

.visit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.visit-card,
.highlight-box {
    padding: 1.6rem 1.5rem 1.7rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
}

/* LISTS */

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.simple-list li {
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.numbered-list {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* PAGE HERO */

.page-hero {
    padding: 3rem 0 2.3rem;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 720px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
}

.page-hero-visual img {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
}

.legal-hero {
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

/* TEAM */

.team-card {
    padding: 1.2rem 1.2rem 1.4rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.team-card img {
    border-radius: var(--radius-md);
    margin-bottom: 0.8rem;
}

/* PLANT CARDS */

.plant-card {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plant-card img {
    height: 210px;
    object-fit: cover;
}

.plant-card-body {
    padding: 1.3rem 1.4rem 1.5rem;
}

/* ARTICLE LIST */

.article-list {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    padding: 1.6rem 1.6rem 1.7rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
    font-size: 0.96rem;
}

.article-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

/* CONTACT PAGE */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.4rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.contact-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-details h2 {
    margin-bottom: 0.9rem;
}

.contact-form-card {
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.9rem 2rem;
    background: radial-gradient(circle at top right, #fefce8, #ffffff);
    border: 1px solid rgba(229, 231, 235, 1);
    box-shadow: 0 22px 50px rgba(148, 163, 184, 0.4);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-row label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-row input,
.form-row textarea {
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(209, 213, 219, 1);
    background: #ffffff;
    font: inherit;
    color: var(--text-main);
    outline: none;
    transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(130, 160, 110, 0.5);
    background: #fefdf8;
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row-inline {
    align-items: flex-start;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox input {
    margin-top: 0.15rem;
}

/* LEGAL */

.legal {
    font-size: 0.95rem;
}

.legal h2 {
    margin-top: 1.8rem;
}

/* FOOTER */

.site-footer {
    margin-top: 3rem;
    padding-top: 2.4rem;
    padding-bottom: 1.4rem;
    background: linear-gradient(to top, #e5e7eb, #f7f5f0);
    border-top: 1px solid rgba(209, 213, 219, 1);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.site-footer p {
    color: var(--text-muted);
}

.site-footer h3 {
    font-size: 0.94rem;
    margin-bottom: 0.6rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 1.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(209, 213, 219, 1);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .hero-grid,
    .about-grid,
    .page-hero-grid,
    .two-cols,
    .visit-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 3.1rem;
    }

    .cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        inset: var(--nav-height) 0 auto 0;
        background: #f9fafb;
        border-bottom: 1px solid rgba(209, 213, 219, 1);
        padding: 0.9rem 1.5rem 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .section,
    .section-soft {
        padding: 3.1rem 0;
    }

    .cards-3,
    .cards-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badge-top {
        left: 0.9rem;
        right: 0.9rem;
        text-align: center;
    }

    .hero-badge-bottom {
        left: 0.9rem;
        right: 0.9rem;
        text-align: center;
    }

    .hero-stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .steps {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto 1.2rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(209, 213, 219, 1);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.5);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1 1 auto;
}

.cookie-text a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    color: var(--accent);
}

.cookie-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.6rem;
}

.cookie-btn {
    font-size: 0.86rem;
    padding-inline: 1.1rem;
}

/* Адаптація банера для мобільних */
@media (max-width: 768px) {
    .cookie-banner-inner {
        margin-inline: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}
