:root {
    /* Цвета */
    --c-cream:       #FDF8F0;
    --c-cream-dark:  #F5EEE4;
    --c-green:       #2A7A5B;
    --c-green-dark:  #1E5C44;
    --c-green-light: #E8F5ED;
    --c-green-pale:  #F0FAF5;
    --c-white:       #FFFFFF;
    --c-text:        #2D2D2D;
    --c-text-light:  #6B6B6B;
    --c-text-muted:  #9a9a9a;
    --c-border:      #E8E2D8;
    --c-danger:      #E74C3C;

    /* Типографика */
    --ff-heading: 'Lora', Georgia, serif;
    --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Размеры */
    --container: 1140px;
    --radius:    16px;
    --radius-sm: 10px;

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,.07);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.10);

    /* Анимации */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --duration: .3s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    color: var(--c-green);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
a:hover {
    color: var(--c-green-dark);
}

h1, h2, h3, h4 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--c-text);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Animations ───────────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.animate-on-scroll:nth-child(4) { transition-delay: .3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-green) 40%, transparent); }
    50%      { box-shadow: 0 0 0 12px color-mix(in srgb, var(--c-green) 0%, transparent); }
}

/* ── Header ───────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--c-cream) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--duration) var(--ease);
    padding: 16px 0;
}

.header.is-scrolled {
    padding: 10px 0;
    background: color-mix(in srgb, var(--c-cream) 95%, transparent);
    border-bottom-color: var(--c-border);
    box-shadow: var(--shadow-sm);
}

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

.header-logo {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-green);
    letter-spacing: -.01em;
}
.header-logo span {
    color: var(--c-text-light);
    font-weight: 400;
    font-size: .85rem;
    margin-left: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--c-text);
    font-size: .9rem;
    font-weight: 500;
    position: relative;
    padding: 7px 10px;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-green);
    transition: width var(--duration) var(--ease);
}
.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--c-green);
    color: var(--c-white) !important;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}
.nav-cta:hover {
    background: var(--c-green-dark);
    color: var(--c-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(42, 122, 91, .3);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--c-cream-dark);
    color: var(--c-text) !important;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    transition: all var(--duration) var(--ease);
}
.lang-switch:hover {
    background: var(--c-green-light);
    color: var(--c-green) !important;
}
.lang-switch::after {
    display: none !important;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}
.burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,122,91,.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp .8s var(--ease);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--c-green-light);
    color: var(--c-green);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 24px;
}
.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-green);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.hero h1 .accent {
    color: var(--c-green);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--c-text-light);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-image {
    position: relative;
    animation: fadeInUp .8s var(--ease) .2s both;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--c-green);
    border-radius: 24px;
    opacity: .15;
    z-index: -1;
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--ff-body);
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.btn-primary {
    background: var(--c-green);
    color: var(--c-white);
    box-shadow: 0 4px 16px rgba(42, 122, 91, .25);
}
.btn-primary:hover {
    background: var(--c-green-dark);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(42, 122, 91, .35);
}

.btn-outline {
    background: transparent;
    color: var(--c-green);
    border: 2px solid var(--c-green);
}
.btn-outline:hover {
    background: var(--c-green);
    color: var(--c-white);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
/* ── No-Image Mode (CMS toggle) ──────────────────────────── */
.hero .container.no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
    text-align: center;
}
.hero .container.no-image .hero-text {
    margin: 0 auto 36px;
}
.hero .container.no-image .hero-buttons {
    justify-content: center;
}
.hero .container.no-image .hero-badge {
    margin-left: auto;
    margin-right: auto;
}

.about-grid.no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-grid.no-image .about-principle {
    text-align: left;
}

/* ── Section Common ───────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--c-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--c-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--c-green-light);
    color: var(--c-green);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

/* ── PROBLEMS (Запросы) ───────────────────────────────────── */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--c-white);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--c-border);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--c-green);
    transition: height var(--duration) var(--ease);
}

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

.problem-card:hover::before {
    height: 100%;
}

.problem-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--c-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all var(--duration) var(--ease);
}

.problem-card:hover .problem-icon {
    background: var(--c-green);
    color: var(--c-white);
    transform: scale(1.05);
}

.problem-card h3 {
    font-family: var(--ff-body);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.problem-card p {
    color: var(--c-text-light);
    font-size: .95rem;
    line-height: 1.7;
}

/* ── METHODS (Инструменты) ────────────────────────────────── */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.method-card {
    background: var(--c-cream);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--c-border);
    transition: all var(--duration) var(--ease);
    position: relative;
}

.method-card:hover {
    background: var(--c-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.method-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-green);
    color: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--ff-heading);
}

.method-card h3 {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.method-subtitle {
    font-size: .8rem;
    color: var(--c-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.method-card p {
    color: var(--c-text-light);
    font-size: .9rem;
    line-height: 1.75;
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--c-green);
    border-radius: 20px;
    opacity: .12;
    z-index: -1;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 24px;
}

.about-text {
    color: var(--c-text-light);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-principle {
    margin-top: 28px;
    padding: 24px 28px;
    background: var(--c-green-pale);
    border-radius: var(--radius);
    border-left: 4px solid var(--c-green);
}

.about-principle p {
    color: var(--c-green-dark);
    font-size: .95rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.7;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--c-white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.faq-item:hover {
    border-color: rgba(42, 122, 91, .3);
}

.faq-item.is-open {
    border-color: var(--c-green);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    font-size: 1.02rem;
    font-weight: 600;
    font-family: var(--ff-body);
    color: var(--c-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color var(--duration) var(--ease);
}

.faq-question:hover {
    color: var(--c-green);
}

.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-green-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 0v12M0 6h12' stroke='%232A7A5B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all var(--duration) var(--ease);
}

.faq-item.is-open .faq-question::after {
    transform: rotate(45deg);
    background-color: var(--c-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 0v12M0 6h12' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}

.faq-answer-inner {
    padding: 0 28px 24px;
    font-size: .95rem;
    color: var(--c-text-light);
    line-height: 1.8;
}

/* ── CONTACT (CTA + Форма) ────────────────────────────────── */
.contact-section {
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-dark) 100%);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    color: var(--c-white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.contact-info p {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,.85);
    font-size: .95rem;
}

.contact-details li svg {
    flex-shrink: 0;
    opacity: .7;
}

.contact-form-card {
    background: var(--c-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .95rem;
    color: var(--c-text);
    background: var(--c-cream);
    transition: all var(--duration) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-green);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(42, 122, 91, .1);
}

.form-group input.has-error,
.form-group textarea.has-error {
    border-color: var(--c-danger);
}

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

.field-error {
    display: block;
    color: var(--c-danger);
    font-size: .8rem;
    margin-top: 6px;
    animation: fadeInUp .3s var(--ease);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--c-green);
    color: var(--c-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--ff-body);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.form-submit-btn:hover {
    background: var(--c-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(42, 122, 91, .3);
}

.form-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.form-notification {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    margin-top: 14px;
    animation: fadeInUp .3s var(--ease);
}

.form-notification.is-visible {
    display: block;
}

.form-notification.is-success {
    background: var(--c-green-light);
    color: var(--c-green-dark);
}

.form-notification.is-error {
    background: #fef0f0;
    color: var(--c-danger);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
    background: #1a2a23;
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand h4 {
    color: var(--c-white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
}

.footer h5 {
    color: var(--c-white);
    font-family: var(--ff-body);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: all var(--duration) var(--ease);
}

.footer-links a:hover {
    color: var(--c-white);
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
}

.footer-bottom a {
    color: rgba(255,255,255,.5);
}

.footer-bottom a:hover {
    color: var(--c-white);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-image { order: 0; max-width: 400px; margin: 0 auto; }
    .hero-text { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }

    .methods-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .about-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }

    /* Burger nav */
    .burger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--c-white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 32px 32px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--duration) var(--ease);
        z-index: 1000;
    }
    .nav-menu.is-open {
        transform: translateX(0);
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--c-border);
    }
    .nav-cta {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

    .problem-card {
        padding: 24px 20px;
    }

    .contact-form-card {
        padding: 28px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
