/* =========================================================
   TOPWWW Modern — main.css
   Палитра: #556B2F (olive), акценты, современные тени
   ========================================================= */

:root {
    --olive:        #556B2F;
    --olive-dark:   #3f5021;
    --olive-light:  #6e8a3d;
    --olive-soft:   #eef2e6;

    --ink:          #1c2118;
    --ink-2:        #4a5340;
    --muted:        #7a8570;
    --line:         #e3e8da;
    --bg:           #ffffff;
    --bg-soft:      #f7f9f2;

    --radius:       18px;
    --radius-sm:    12px;
    --shadow-sm:    0 2px 8px rgba(85, 107, 47, .08);
    --shadow-md:    0 10px 30px rgba(85, 107, 47, .12);
    --shadow-lg:    0 24px 60px rgba(28, 33, 24, .14);
    --transition:   .35s cubic-bezier(.22, 1, .36, 1);

    --tg:           #229ED9;
    --tg-dark:      #1b8cc0;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--olive-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                background var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--olive); color: #fff; box-shadow: 0 8px 20px rgba(85, 107, 47, .3); }
.btn-primary:hover { background: var(--olive-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(85, 107, 47, .4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--olive); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn-light:hover { background: var(--olive-soft); color: var(--olive-dark); transform: translateY(-2px); }
.btn-tg { background: var(--tg); color: #fff; box-shadow: 0 8px 20px rgba(34, 158, 217, .3); }
.btn-tg:hover { background: var(--tg-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34, 158, 217, .4); }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.site-logo .logo-svg,
.footer-brand .logo-svg {
    height: 46px;
    width: auto;
    display: block;
}

.site-logo .logo-svg circle,
.footer-brand .logo-svg circle {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.site-logo:hover .logo-svg circle:nth-of-type(1),
.footer-brand:hover .logo-svg circle:nth-of-type(1) { transform: scale(1.5); }
.site-logo:hover .logo-svg circle:nth-of-type(2),
.footer-brand:hover .logo-svg circle:nth-of-type(2) { transform: scale(1.5); transition-delay: .08s; }
.site-logo:hover .logo-svg circle:nth-of-type(3),
.footer-brand:hover .logo-svg circle:nth-of-type(3) { transform: scale(1.5); transition-delay: .16s; }

@media (max-width: 560px) {
    .site-logo .logo-svg { height: 38px; }
}
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--olive); color: #fff; font-size: 14px; font-weight: 800;
}
.logo-text span { color: var(--olive); }

.main-nav .nav-list { display: flex; gap: 32px; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; position: relative; }
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--olive);
    transition: width var(--transition);
}
.main-nav a:hover { color: var(--olive); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    background: var(--olive-soft); /* Светло-зеленый фон */
    color: var(--olive-dark);      /* Темно-зеленая иконка */
    transition: transform var(--transition), background var(--transition), color var(--transition);
}
.header-phone-btn:hover { 
    background: var(--olive); 
    color: #fff; 
    transform: scale(1.08); 
}
.header-tg {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--tg); color: #fff;
    transition: transform var(--transition), background var(--transition);
}
.header-tg:hover { background: var(--tg-dark); transform: scale(1.08); color: #fff; }

.menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none;
    cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.blob-1 { width: 420px; height: 420px; background: #c9d6a3; top: -120px; right: -80px; }
.blob-2 { width: 320px; height: 320px; background: #a9bd7c; bottom: -100px; left: -60px; opacity: .4; }
.blob-3 { width: 200px; height: 200px; background: #dfe8c8; top: 40%; left: 45%; }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-badge {
    display: inline-block; padding: 8px 18px; border-radius: 999px;
    background: var(--olive-soft); color: var(--olive-dark);
    font-weight: 600; font-size: 14px; margin-bottom: 24px;
}
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 24px; }
.hero-title .accent { color: var(--olive); position: relative; white-space: nowrap; }
.hero-title .accent::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: .08em;
    height: .18em; background: rgba(110, 138, 61, .25); border-radius: 4px; z-index: -1;
}
.hero-subtitle { font-size: 20px; color: var(--ink-2); max-width: 680px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }
.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    max-width: 820px; margin: 0 auto; padding-top: 40px; border-top: 1px solid var(--line);
}
.stat-num { font-size: 40px; font-weight: 800; color: var(--olive); letter-spacing: -.03em; }
.stat-label { font-size: 15px; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
    display: inline-block; font-size: 14px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--ink-2); font-size: 17px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--olive-light); }
.feature-icon { font-size: 30px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; margin-bottom: 6px; }
.feature-card p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
    position: relative; background: #fff; border-radius: var(--radius);
    padding: 36px 28px 30px; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--olive), var(--olive-light));
    transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { display: block; font-size: 14px; font-weight: 700; color: var(--olive); letter-spacing: .1em; margin-bottom: 18px; }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.service-link { font-weight: 600; font-size: 15px; color: var(--olive); }
.service-link:hover { color: var(--olive-dark); }
.section-cta { text-align: center; margin-top: 56px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.process-step {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--olive-soft); color: var(--olive-dark); font-weight: 800; margin-bottom: 16px;
}
.process-step h4 { font-size: 19px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--bg-soft); }
.section-subtitle {
    font-size: 17px;
    color: var(--muted);
    max-width: 620px;
    margin: 14px auto 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    will-change: transform;
}
.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--olive-light);
}

/* Обложка с реальным скриншотом */
.portfolio-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--olive-soft);
}
.portfolio-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
    filter: saturate(1.02);
}
.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

/* Мягкая затемняющая подложка снизу — чтобы читались теги */
.portfolio-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 33, 24, 0) 45%, rgba(28, 33, 24, .55) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: .85;
    transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-thumb::before { opacity: 1; }

/* Блик при наведении */
.portfolio-thumb::after {
    content: '';
    position: absolute;
    top: -60%; left: -30%;
    width: 60%; height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: rotate(20deg);
    transition: left .8s cubic-bezier(.22, 1, .36, 1);
    z-index: 2;
    pointer-events: none;
}
.portfolio-item:hover .portfolio-thumb::after { left: 130%; }

.portfolio-thumb-num {
    position: absolute;
    top: 18px; left: 20px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    z-index: 3;
}
.portfolio-thumb-tag {
    position: absolute;
    bottom: 18px; left: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3;
}
.portfolio-thumb-go {
    position: absolute;
    top: 14px; right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--olive-dark);
    z-index: 3;
    transform: translate(6px, -6px) scale(.9);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}
.portfolio-item:hover .portfolio-thumb-go {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

.portfolio-meta { padding: 24px 24px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.portfolio-meta-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.portfolio-meta h4 {
    font-size: 20px;
    margin: 0;
    color: var(--ink);
    letter-spacing: -.01em;
}
.portfolio-cat {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--olive);
    white-space: nowrap;
}
.portfolio-meta p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;
}
.portfolio-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--olive);
    transition: color var(--transition);
}
.portfolio-item:hover .portfolio-link { color: var(--olive-dark); }

@media (max-width: 560px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-meta-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- Testimonials ---------- */
.testimonials { background: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.review-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--olive-light); }
.review-stars { color: #f5b301; font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.review-text { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; flex-grow: 1; margin-bottom: 22px; }
.review-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--olive-soft); color: var(--olive-dark);
    font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.review-role { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%); padding: 80px 0; color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 520px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-line {
    display: flex; align-items: center; gap: 14px;
    font-size: 18px; font-weight: 500; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 16px 20px; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
}
a.contact-line:hover { transform: translateX(4px); box-shadow: var(--shadow-md); color: var(--olive); }
.contact-ico { font-size: 20px; display: inline-flex; }
.contact-line-tg { border-color: rgba(34, 158, 217, .3); }
.contact-line-tg .contact-ico { color: var(--tg); }
.contact-line-tg:hover { color: var(--tg); border-color: var(--tg); }

.contact-form {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px; box-shadow: var(--shadow-md);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 15px; background: var(--bg-soft);
    transition: border-color var(--transition), background var(--transition);
    margin-bottom: 16px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--olive); background: #fff; }
.contact-form input[type="submit"], .contact-form button[type="submit"] {
    background: var(--olive); color: #fff; border: none;
    padding: 15px 30px; border-radius: 999px;
    font-weight: 600; font-size: 16px; cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.contact-form input[type="submit"]:hover, .contact-form button[type="submit"]:hover {
    background: var(--olive-dark); transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9cfc0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-brand .logo-mark { background: var(--olive); }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--olive-light); }
.footer-brand p { margin-top: 16px; color: #9aa392; font-size: 15px; }
.footer-menu { display: flex; flex-direction: column; gap: 12px; }
.footer-menu a { color: #c9cfc0; }
.footer-menu a:hover { color: #fff; }
.footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-contacts a { color: #fff; font-weight: 600; }
.footer-contacts a:hover { color: var(--olive-light); }
.footer-contacts .footer-tg { color: var(--tg) !important; }
.footer-contacts .footer-tg:hover { color: #4ab8e8 !important; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 14px; color: #9aa392; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #c9cfc0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Модальное окно ---------- */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(28, 33, 24, .6); backdrop-filter: blur(4px); }
.modal-box {
    position: relative; background: #fff; border-radius: var(--radius);
    padding: 40px 34px; max-width: 520px; width: 100%;
    max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(.98);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.modal.is-open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 30px; line-height: 1;
    color: var(--muted); cursor: pointer;
    transition: color var(--transition), transform var(--transition);
}
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }
.modal-title { font-size: 24px; margin-bottom: 12px; }
.modal-tg-hint { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.modal-tg-hint a { color: var(--tg); font-weight: 600; }

.quick-lead-form input, .quick-lead-form textarea {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 15px; background: var(--bg-soft);
    transition: border-color var(--transition), background var(--transition);
    margin-bottom: 14px;
}
.quick-lead-form input:focus, .quick-lead-form textarea:focus { outline: none; border-color: var(--olive); background: #fff; }
.quick-lead-form button { width: 100%; }

.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14.5px; }
.form-msg-ok  { background: #e8f5e9; color: #1b5e20; }
.form-msg-err { background: #fdecea; color: #b71c1c; }

/* ---------- Reveal-анимация ---------- */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed; top: 74px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 16px 24px; transform: translateY(-120%);
        transition: transform var(--transition); box-shadow: var(--shadow-md);
    }
    .nav-open .main-nav { transform: translateY(0); }
    .main-nav .nav-list { flex-direction: column; gap: 0; }
    .main-nav .nav-list li { border-bottom: 1px solid var(--line); }
    .main-nav .nav-list li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: 14px 0; }
    .main-nav a::after { display: none; }

    .menu-toggle { display: flex; }

    .hero { padding: 80px 0 60px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 72px 0; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .process-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; }
}






/* =========================================================
   HERO VARIANT 1 — Grid + Glow + Particles
   ========================================================= */
.hero--grid {
    background: radial-gradient(ellipse at 20% 20%, #3a4a1f 0%, #1c2118 55%, #10140d 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
}
.hero--grid .hero-badge {
    background: rgba(110, 138, 61, .18);
    color: #c9d6a3;
    border: 1px solid rgba(110, 138, 61, .4);
    backdrop-filter: blur(6px);
}
.hero--grid .hero-title { color: #fff; }
.hero--grid .hero-title .accent {
    color: #b6d17a;
    background: linear-gradient(90deg, #b6d17a, #e0f0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero--grid .hero-title .accent::after { display: none; }
.hero--grid .hero-subtitle { color: rgba(255, 255, 255, .75); }
.hero--grid .hero-stats { border-top-color: rgba(255, 255, 255, .12); }
.hero--grid .stat-num { color: #b6d17a; }
.hero--grid .stat-label { color: rgba(255, 255, 255, .55); }
.hero--grid .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero--grid .btn-ghost:hover { border-color: #b6d17a; color: #b6d17a; }

/* Сетка */
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Свечение */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    animation: floatGlow 12s ease-in-out infinite;
}
.glow-1 { width: 480px; height: 480px; background: #6e8a3d; top: -160px; right: -80px; }
.glow-2 { width: 380px; height: 380px; background: #b6d17a; bottom: -140px; left: -80px; opacity: .35; animation-delay: -4s; }
.glow-3 { width: 220px; height: 220px; background: #556B2F; top: 45%; left: 48%; opacity: .5; animation-delay: -8s; }
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -40px) scale(1.08); }
}

/* Частицы */
.hero-particles { position: absolute; inset: 0; }
.hero-particles span {
    position: absolute;
    width: 3px; height: 3px;
    background: #b6d17a;
    border-radius: 50%;
    box-shadow: 0 0 10px #b6d17a;
    opacity: 0;
    animation: particleRise 8s linear infinite;
}
.hero-particles span:nth-child(1)  { left: 8%;  animation-delay: 0s;   }
.hero-particles span:nth-child(2)  { left: 18%; animation-delay: 1.2s; }
.hero-particles span:nth-child(3)  { left: 27%; animation-delay: 2.4s; }
.hero-particles span:nth-child(4)  { left: 36%; animation-delay: .6s;  }
.hero-particles span:nth-child(5)  { left: 45%; animation-delay: 3.5s; }
.hero-particles span:nth-child(6)  { left: 54%; animation-delay: 1.8s; }
.hero-particles span:nth-child(7)  { left: 63%; animation-delay: 4.2s; }
.hero-particles span:nth-child(8)  { left: 72%; animation-delay: .9s;  }
.hero-particles span:nth-child(9)  { left: 81%; animation-delay: 2.7s; }
.hero-particles span:nth-child(10) { left: 89%; animation-delay: 3.9s; }
.hero-particles span:nth-child(11) { left: 14%; animation-delay: 5.1s; }
.hero-particles span:nth-child(12) { left: 67%; animation-delay: 5.8s; }
@keyframes particleRise {
    0%   { transform: translateY(100vh) scale(.5); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}





/* Защита от прилипания футера к краям */
.site-footer {
    width: 100%;
    padding: 0 !important; /* Убираем возможные старые отступы */
}

/* Гарантируем, что контейнеры внутри футера имеют отступы по бокам */
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Делаем сетку футера ровной */
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 48px;
    /* Боковые отступы (padding-left / padding-right) 
       не трогаем, они наследуются от .container */
}

/* На мобилках перестраиваем сетку в колонку */
@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 32px;
    }
}

/* Низ футера (копирайт) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    font-size: 14px;
    color: #9aa392;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}


.grecaptcha-badge { 
    visibility: hidden; 
}