/* ═══ AUTO-GENERATED custom.css ═══ */
/* Стиль: углы=squircle, тени=inset, отступы=breathable, кнопки=rounded */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Lato:wght@400;700&display=swap');

:root {
    /* Акцентные цвета */
    --accent-1: #3E6720;
    --accent-2: #2F5487;
    --accent-3: #631736;
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    
    /* Шрифты */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Размеры шрифтов */
    --fs-h1: 48px;
    --fs-h2: 36px;
    --fs-h3: 26px;
    --fs-body: 16px;
    
    /* Вес заголовков */
    --fw-bold: 500;
    
    /* Углы скругления */
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 44px;
    --radius-pill: 50px;
    
    /* Тени */
    --shadow-sm: inset 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: inset 0 2px 6px rgba(0,0,0,0.08);
    --shadow-lg: inset 0 4px 12px rgba(0,0,0,0.1);
    --shadow-xl: inset 0 6px 20px rgba(0,0,0,0.12);
    
    /* Отступы секций */
    --section-padding: 140px 0;
}

/* Стиль кнопок */
.btn-custom {
    border-radius: 10px;
    padding: 14px 28px;
}

/* Стиль карточек */
.icon-box, .service-card, .testimonial-card, .blog-card, .pricing-card {
    border-width: 1px;
    border-color: #3E672033;
}

/* ═══════════════════════════════════════════ */
/* STYLE TRICKS — автогенерация приёмов      */
/* ═══════════════════════════════════════════ */

/* Trick: wave-divider — волнистый разделитель перед секциями */
.bg-secondary-custom {
    position: relative;
    margin-top: 40px;
}
.bg-secondary-custom::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: inherit;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Trick: section-left-bar — акцентная вертикаль слева */
main > section:nth-child(odd):not(.cta-section):not(.bg-dark-section) { border-left: 4px solid var(--accent-1); }
.hero-section { border-left: none !important; }

/* Trick: card-scale-hover — масштаб при наведении */
.icon-box, .service-card, .blog-card, .pricing-card, .testimonial-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.icon-box:hover, .service-card:hover, .blog-card:hover, .pricing-card:hover, .testimonial-card:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-xl);
    z-index: 2;
    position: relative;
}

/* Trick: footer-wave-top — волна над футером */
.site-footer {
    position: relative;
    margin-top: 40px;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: inherit;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Trick: btn-slide-bg — скользящий фон слева */
.btn-primary-custom {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.12);
    transition: left 0.35s ease;
    z-index: -1;
}
.btn-primary-custom:hover::before {
    left: 0;
}

/* ═══════════════════════════════════════════ */
/* ELEMENT PRESETS — уникализация компонентов */
/* ═══════════════════════════════════════════ */

/* Hero: minimal elegant — минимализм с тонкими линиями */
.hero-section {
    background: var(--bg-primary);
    min-height: 90vh;
    border-bottom: 1px solid var(--border-color);
}
.hero-image img {
    border-radius: 2px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}
.hero-tagline {
    background: none;
    padding: 0;
    letter-spacing: 5px;
    font-size: 11px;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
}
.hero-title { font-weight: 400; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 16px; letter-spacing: 0.3px; }
.hero-buttons .btn-primary-custom { background: var(--text-primary); border-color: var(--text-primary); }
.hero-buttons .btn-outline-custom { border-width: 1px; }

/* Header: mono flat — плоский монохромный */
.site-header {
    background: var(--bg-primary);
    padding: 20px 0;
    border-bottom: none;
}
.site-header.scrolled {
    background: var(--bg-primary);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}
.site-logo { font-weight: 400; font-size: 20px; letter-spacing: 0; text-transform: none; }
.main-nav .nav-link { color: var(--text-muted) !important; font-size: 13px; letter-spacing: 0.5px; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--text-primary) !important; }
.main-nav .nav-link::after { display: none; }
.header-cta { background: transparent !important; color: var(--text-primary) !important; border: 1px solid var(--text-primary) !important; border-radius: 0 !important; font-size: 12px !important; letter-spacing: 1px; text-transform: uppercase; }

/* Footer: centered minimal — центрированный минимализм */
.site-footer { background: var(--bg-primary); color: var(--text-secondary); padding: 60px 0; text-align: center; border-top: 1px solid var(--border-color); }
.site-footer p, .site-footer li, .site-footer span,
.site-footer .footer-widget p, .site-footer .footer-contact li { color: var(--text-secondary); }
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4,.site-footer h5 { color: var(--text-primary); }
.footer-widget { text-align: center; }
.footer-widget .widget-title::after { margin: 12px auto 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links li { margin-bottom: 0; }
.footer-links a { color: var(--text-secondary); }
.footer-social { justify-content: center; }
.footer-social a { background: var(--bg-secondary); border-color: var(--border-color); color: var(--text-secondary); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); margin-top: 40px; }
.footer-bottom p { color: var(--text-muted); }

/* Contact: floating labels — крупные поля с акцентом */
.contact-section .form-control {
    padding: 18px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.contact-section .form-control:focus { border-color: var(--accent-1); box-shadow: 0 0 0 4px rgba(var(--accent-1), 0.08); transform: translateY(-2px); }
.contact-section .btn-custom { font-size: 16px; padding: 18px 36px; }

/* Logo: monospace — моноширинный технический */
.site-logo { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; font-size: 18px; font-weight: 500; letter-spacing: -0.5px; }

/* Headings: serif italic — элегантные курсивные */
h3, h4, h5 { font-family: var(--font-heading); }
.icon-title, .card-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 20px;
}
.step-title { font-style: italic; font-weight: 500; }

/* Img: hero — цветная тень со смещением */
.hero-image {
    position: relative;
}
.hero-image::after {
    content: '';
    position: absolute;
    inset: 12px -12px -12px 12px;
    background: var(--accent-1);
    opacity: 0.15;
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* Img: cards — круглые картинки в карточках */
.service-card img, .icon-box img {
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    max-width: 140px;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid var(--border-color);
}

/* Img: section — лёгкий скос контейнера */
section:not(.hero-section) .col-lg-6 img, section:not(.hero-section) .col-lg-5 img {
    border-radius: var(--radius-lg);
    transform: perspective(800px) rotateY(-4deg);
    transition: transform 0.5s ease;
    box-shadow: var(--shadow-lg);
}
section:not(.hero-section) .col-lg-6:hover img,
section:not(.hero-section) .col-lg-5:hover img {
    transform: perspective(800px) rotateY(0deg);
}

/* ═══ BURGER MENU DESIGN ═══ */
/* Burger: arrow — средняя линия сдвигается вправо */
.mobile-toggle { width: 40px; height: 40px; gap: 6px; border: none; background: none; border-radius: 0; align-items: flex-start; padding-left: 8px; }
.mobile-toggle .burger-line { width: 24px; height: 2px; border-radius: 2px; transition: transform 0.35s ease, width 0.35s ease, opacity 0.3s ease; }
.mobile-toggle .burger-line:nth-child(2) { width: 16px; transition: width 0.3s ease, opacity 0.3s ease; }
.mobile-toggle:hover .burger-line:nth-child(2) { width: 24px; }
.mobile-toggle.active .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active .burger-line:nth-child(2) { opacity: 0; width: 0; }
.mobile-toggle.active .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* Effect: divider-double-line */
main > section + section::before{content:'';display:block;width:100px;height:6px;border-top:2px solid var(--accent-1);border-bottom:2px solid var(--accent-1);margin:15px auto;opacity:0.3;}

/* Effect: progress-bar-top */
.progress-top{position:fixed;top:0;left:0;height:3px;background:var(--accent-gradient);z-index:99999;transition:width 0.05s;width:0;}

/* Effect: stagger-slide-left */
.icon-box,.service-card{opacity:0;animation:slideLeft 0.6s ease forwards;}.row>[class*="col"]:nth-child(odd) .icon-box,.row>[class*="col"]:nth-child(odd) .service-card{animation-name:slideLeft;}.row>[class*="col"]:nth-child(even) .icon-box,.row>[class*="col"]:nth-child(even) .service-card{animation-name:slideRight;}.row>[class*="col"]:nth-child(1)>*{animation-delay:0.1s;}.row>[class*="col"]:nth-child(2)>*{animation-delay:0.2s;}.row>[class*="col"]:nth-child(3)>*{animation-delay:0.3s;}.row>[class*="col"]:nth-child(4)>*{animation-delay:0.4s;}@keyframes slideLeft{from{opacity:0;transform:translateX(-40px);}to{opacity:1;transform:translateX(0);}}@keyframes slideRight{from{opacity:0;transform:translateX(40px);}to{opacity:1;transform:translateX(0);}}

/* Effect: marquee-text */
.marquee-strip{overflow:hidden;padding:14px 0;background:var(--bg-secondary,var(--bg-card));border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);}.marquee-inner{display:flex;gap:60px;white-space:nowrap;animation:marqueeScroll 20s linear infinite;font-size:14px;text-transform:uppercase;letter-spacing:3px;opacity:0.3;font-weight:600;}@keyframes marqueeScroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* Effect: deco-diagonal-lines */
.bg-deco{position:fixed;inset:0;pointer-events:none;z-index:0;background:repeating-linear-gradient(135deg,transparent,transparent 80px,var(--accent-1) 80px,var(--accent-1) 81px);opacity:0.018;}

/* Effect: scroll-iris-wipe — Iris Wipe — секции появляются через расширяющийся ромб из центра */
/* Scroll: iris-wipe — ромбовидное раскрытие */
main > section {
    clip-path: polygon(50% 45%, 55% 50%, 50% 55%, 45% 50%);
    transition: clip-path 1.1s cubic-bezier(0.16,1,0.3,1);
    will-change: clip-path;
}
main > section.in-view {
    clip-path: polygon(-10% -10%, 110% -10%, 110% 110%, -10% 110%);
}
.hero-section { clip-path: none !important; }
@media (max-width: 768px) {
    main > section { clip-path: none !important; opacity: 0; transition: opacity 0.5s; }
    main > section.in-view { opacity: 1; }
}

/* Effect: hover-btn-ripple — Material Design ripple-эффект на кнопках при клике */
.btn-custom,.btn-primary-custom,.btn-outline-custom{position:relative;overflow:hidden;}.btn-ripple{position:absolute;border-radius:50%;background:rgba(255,255,255,0.35);transform:scale(0);animation:rippleAnim 0.6s ease-out;pointer-events:none;}@keyframes rippleAnim{to{transform:scale(4);opacity:0;}}

/* Effect: hover-cursor-text-follow — Текст-подсказка следует за курсором на карточках */
.hover-tooltip{position:fixed;padding:6px 14px;background:var(--text-primary);color:#fff;font-size:11px;font-weight:600;border-radius:var(--radius-sm);pointer-events:none;z-index:99999;opacity:0;transition:opacity 0.2s;font-family:var(--font-body);letter-spacing:0.5px;white-space:nowrap;}

/* Effect: hover-card-border-glow — Рамка карточки мягко подсвечивается при наведении */
.icon-box,.service-card,.blog-card,.testimonial-card,.pricing-card{transition:border-color 0.4s ease,box-shadow 0.4s ease;}.icon-box:hover,.service-card:hover,.blog-card:hover,.testimonial-card:hover,.pricing-card:hover{border-color:var(--accent-1) !important;box-shadow:0 0 0 1px var(--accent-1),0 8px 30px rgba(0,0,0,0.08) !important;}

/* Effect: spin-gradient-circle — Градиентный полукруг медленно вращается */
.spin-gradient{position:fixed;width:500px;height:500px;border-radius:50%;background:conic-gradient(from 0deg,var(--accent-1),transparent 120deg,transparent);opacity:0.025;animation:spinSlow 30s linear infinite;pointer-events:none;z-index:0;top:-150px;right:-150px;}@keyframes spinSlow{to{transform:rotate(360deg);}}@media(max-width:768px){.spin-gradient{width:300px;height:300px;}}

/* Effect: float-triangles — Прозрачные треугольники дрейфуют */
.float-shapes{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden;}.float-tri{position:absolute;width:0;height:0;border-left:30px solid transparent;border-right:30px solid transparent;border-bottom:52px solid var(--accent-1);opacity:0.03;animation:floatDrift 20s ease-in-out infinite alternate;}@keyframes floatDrift{0%{transform:translate(0,0) rotate(0deg);}50%{transform:translate(40px,-60px) rotate(90deg);}100%{transform:translate(-30px,40px) rotate(180deg);}}

/* Effect: shimmer-text-hero — Заголовок hero переливается градиентом */
.hero-title{background:linear-gradient(90deg,var(--text-primary) 0%,var(--accent-1) 25%,var(--text-primary) 50%,var(--accent-1) 75%,var(--text-primary) 100%);background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:shimmerText 4s linear infinite;}@keyframes shimmerText{to{background-position:200% center;}}

/* Effect: shimmer-cta-background — Фон CTA-кнопок переливается */
.btn-primary-custom,.hero-section .btn-custom{background:linear-gradient(90deg,var(--accent-1),var(--accent-2,var(--accent-1)),var(--accent-1));background-size:200% 100%;animation:shimmerBtn 3s ease-in-out infinite;}@keyframes shimmerBtn{0%,100%{background-position:0% 50%;}50%{background-position:100% 50%;}}

/* Effect: marquee-vertical-side — Вертикальная бегущая строка сбоку */
.js-marquee-v{position:fixed;left:0;top:0;width:30px;height:100vh;overflow:hidden;z-index:9989;opacity:0.06;pointer-events:none;writing-mode:vertical-rl;text-orientation:mixed;}.js-marquee-v-inner{display:flex;gap:20px;white-space:nowrap;animation:jsMarqueeV 20s linear infinite;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:3px;}@keyframes jsMarqueeV{from{transform:translateY(0);}to{transform:translateY(-50%);}}@media(max-width:992px){.js-marquee-v{display:none;}}

/* Effect: tex-duotone-gradient-bands — Широкие горизонтальные градиентные полосы */
/* Texture: duotone-gradient-bands — горизонтальные градиентные полосы */
main > section:nth-child(even):not(.cta-section):not(.bg-dark-section) { position: relative; overflow: clip; }
main > section:nth-child(even):not(.cta-section):not(.bg-dark-section)::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background: linear-gradient(
        180deg,
        var(--accent-1) 0%,
        transparent 15%,
        transparent 35%,
        var(--accent-2, var(--accent-1)) 50%,
        transparent 65%,
        transparent 85%,
        var(--accent-1) 100%
    );
}
.hero-section::before { display: none !important; }

/* Effect: tex-bokeh-lights — Боке — мягкие размытые световые круги */
/* Texture: bokeh-lights — размытые огни */
main > section:nth-child(even):not(.cta-section):not(.bg-dark-section) { position: relative; overflow: clip; }
main > section:nth-child(even):not(.cta-section):not(.bg-dark-section)::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background:
        radial-gradient(circle 60px at 15% 25%, var(--accent-1), transparent),
        radial-gradient(circle 90px at 80% 15%, var(--accent-2, var(--accent-1)), transparent),
        radial-gradient(circle 45px at 45% 70%, var(--accent-1), transparent),
        radial-gradient(circle 75px at 70% 60%, var(--accent-2, var(--accent-1)), transparent),
        radial-gradient(circle 50px at 25% 85%, var(--accent-1), transparent),
        radial-gradient(circle 110px at 90% 80%, var(--accent-2, var(--accent-1)), transparent),
        radial-gradient(circle 35px at 55% 35%, var(--accent-1), transparent);
}
.hero-section::before { display: none !important; }

/* Fallback: без JS секции видимы сразу */
html:not(.js-fx) main > section {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
}

/* ═══ DESKTOP NAV OVERFLOW SAFETY-NET ═══ */
/* Не даём nav-ссылкам переполнять хедер при большом числе вкладок */
@media (min-width: 993px) {
    .header-inner {
        flex-wrap: nowrap;
        overflow: visible;
    }
    .main-nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        flex-wrap: nowrap;
        overflow: hidden;
        gap: clamp(10px, 1.8vw, 36px) !important;
    }
    .main-nav .nav-link {
        white-space: nowrap;
        font-size: clamp(11px, 1.1vw, 15px) !important;
        padding: 8px 0;
        flex-shrink: 0;
    }
    /* Centered-logo split groups — адаптивный gap */
    .nav-group-left, .nav-group-right {
        gap: clamp(8px, 1.4vw, 32px) !important;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .nav-group-left .nav-link,
    .nav-group-right .nav-link {
        white-space: nowrap;
        font-size: clamp(11px, 1.1vw, 15px) !important;
        flex-shrink: 0;
    }
    /* CTA-кнопка не сжимается */
    .header-cta {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .site-logo {
        flex-shrink: 0;
    }
}

/* ═══ TWO-LAYER HEADER FIX ═══ */
/* Вариант "Nav with Top Bar" — фиксируем top-bar (div) над хедером.
   Используем div.bg-secondary-custom (не section!) чтобы не зацепить секции. */
div.bg-secondary-custom:not(.section-padding) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
div.bg-secondary-custom:not(.section-padding) + .site-header {
    top: 33px;
    transition: top 0.3s ease, background 0.3s ease, padding 0.3s ease;
}
/* При скролле: top-bar скрывается, header прижимается к верху */
div.bg-secondary-custom.top-bar-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
div.bg-secondary-custom.top-bar-hidden + .site-header,
div.bg-secondary-custom:not(.section-padding) + .site-header.scrolled {
    top: 0;
}
/* Компенсируем дополнительную высоту top-bar для hero */
div.bg-secondary-custom:not(.section-padding) ~ .hero-section {
    padding-top: 200px;
}

/* Мобильная адаптация top-bar */
@media (max-width: 992px) {
    div.bg-secondary-custom:not(.section-padding) {
        position: relative;
        z-index: auto;
        font-size: 11px;
        padding: 4px 0;
    }
    div.bg-secondary-custom:not(.section-padding) + .site-header {
        top: 0;
    }
    div.bg-secondary-custom:not(.section-padding) ~ .hero-section {
        padding-top: 140px;
    }
}


/* ═══ MOBILE MENU SAFETY-NET ═══ */
@media (max-width: 992px) {
    /* Бургер-кнопка — ВСЕГДА видима и кликабельна */
    .mobile-toggle {
        display: flex !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        z-index: 10001 !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-toggle .burger-line {
        pointer-events: none;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    /* Мобильная панель навигации — правильное позиционирование */
    .main-nav {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
    }
    /* Ссылки навигации — крупные, читаемые, кликабельные */
    .main-nav .nav-link {
        font-size: 18px !important;
        padding: 14px 0 !important;
        display: block !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
    }
    .main-nav .nav-link::after { display: none !important; }
    .header-cta { display: none !important; }
    /* CTA-кнопка скрыта на мобильном (меню важнее) */
    .nav-group-left, .nav-group-right { display: none !important; }
}


/* ═══ MOBILE MENU PANEL DESIGN ═══ */
/* Mobile Menu: fullscreen-center — полный экран, ссылки по центру */
@media (max-width: 992px) {
    .main-nav { right: -100vw !important; left: auto !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; background: var(--bg-primary) !important; padding: 0 !important; align-items: center !important; justify-content: center !important; gap: 0 !important; box-shadow: none !important; transition: right 0.45s cubic-bezier(0.4,0,0.2,1) !important; }
    .main-nav.active { right: 0 !important; }
    .main-nav .nav-link { font-size: 28px !important; font-weight: 700 !important; padding: 12px 24px !important; text-align: center !important; border-bottom: none !important; width: auto !important; opacity: 0 !important; transform: translateY(16px) !important; transition: opacity 0.4s ease, transform 0.4s ease !important; }
    .main-nav.active .nav-link { opacity: 1 !important; transform: translateY(0) !important; }
    .main-nav.active .nav-link:nth-child(1){transition-delay:.15s !important;}
    .main-nav.active .nav-link:nth-child(2){transition-delay:.22s !important;}
    .main-nav.active .nav-link:nth-child(3){transition-delay:.29s !important;}
    .main-nav.active .nav-link:nth-child(4){transition-delay:.36s !important;}
    .main-nav.active .nav-link:nth-child(5){transition-delay:.43s !important;}
    .main-nav.active .nav-link:nth-child(6){transition-delay:.50s !important;}
    .main-nav.active .nav-link:nth-child(7){transition-delay:.57s !important;}
    .main-nav.active .nav-link:nth-child(8){transition-delay:.64s !important;}
}


/* ═══ BLUR SAFETY-NET ═══ */
/* Cards/content blocks: cap backdrop-filter blur at 8px, ensure solid-enough bg */
.icon-box,
.service-card,
.blog-card,
.pricing-card,
.feature-card,
.team-card {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
/* Guarantee text inside cards is never blurred by filter */
.icon-box *,
.service-card *,
.blog-card *,
.pricing-card *,
.feature-card * {
    filter: none !important;
}
/* Animation safety: blurIn cards MUST reach final state even if animation fails */
@supports (animation: none) {
    .icon-box, .service-card, .blog-card {
        animation-fill-mode: forwards !important;
    }
}
/* Spacing for blog-cards stacked vertically in the same column (density expansion) */
.blog-card + .blog-card {
    margin-top: 1.5rem;
}


/* ═══ OVERLAY & DARK-SECTION TEXT SAFETY-NET ═══ */
/* Hero overlay → guarantee white text regardless of kit theme */
.hero-section .hero-overlay ~ .container,
.hero-section .hero-overlay ~ .container * {
    color: #fff;
}
.hero-section .hero-overlay ~ .container p,
.hero-section .hero-overlay ~ .container .hero-subtitle {
    color: rgba(255,255,255,0.85);
}
.hero-section .hero-overlay ~ .container .btn-custom {
    color: inherit;
}
/* bg-dark-section: ensure ALL inner text is light */
.bg-dark-section .hero-tagline { color: #fff; }
.bg-dark-section .section-tagline { color: var(--accent-1); }
.bg-dark-section .text-muted-custom { color: rgba(255,255,255,0.55); }
.bg-dark-section .footer-links a { color: rgba(255,255,255,0.65); }
.bg-dark-section .footer-links a:hover { color: #fff; }
/* Site-footer with own inner background → kill outer kit/preset bg */
.site-footer[style*="background:none"] { background: none !important; }
.site-footer[style*="background:none"]::before,
.site-footer[style*="background:none"]::after { display: none !important; }


/* ═══════════════════════════════════════════ */
/* NOISE LAYER — микро-вариации для уникальности */
/* ═══════════════════════════════════════════ */

body {
    line-height: 1.635;
    letter-spacing: 0.011em;
}

.icon-box, .service-card, .blog-card, .testimonial-card, .pricing-card {
    padding: 27px;
}
.icon-box, .service-card, .blog-card, .testimonial-card, .pricing-card .card-body {
    padding: 22px 22px;
}
.row > [class*="col"]:nth-child(1) .icon-box,
.row > [class*="col"]:nth-child(1) .service-card {
    padding: 29px;
    border-radius: calc(var(--radius-md) + -1px);
}
.row > [class*="col"]:nth-child(2) .icon-box,
.row > [class*="col"]:nth-child(2) .service-card {
    padding: 25px;
    border-radius: calc(var(--radius-md) + -2px);
}
.row > [class*="col"]:nth-child(3) .icon-box,
.row > [class*="col"]:nth-child(3) .service-card {
    padding: 24px;
    border-radius: calc(var(--radius-md) + 3px);
}
.row > [class*="col"]:nth-child(4) .icon-box,
.row > [class*="col"]:nth-child(4) .service-card {
    padding: 29px;
    border-radius: calc(var(--radius-md) + 0px);
}
.row > [class*="col"]:nth-child(5) .icon-box,
.row > [class*="col"]:nth-child(5) .service-card {
    padding: 26px;
    border-radius: calc(var(--radius-md) + -2px);
}
.row > [class*="col"]:nth-child(6) .icon-box,
.row > [class*="col"]:nth-child(6) .service-card {
    padding: 29px;
    border-radius: calc(var(--radius-md) + 3px);
}

.btn-custom {
    padding: 15px 24px;
    font-size: 16px;
    letter-spacing: 0.189px;
    border-radius: calc(var(--radius-md) + 3px);
}
.btn-outline-custom {
    padding: 15px 26px;
    border-width: 1px;
}

main > section {
    padding-top: 72px;
    padding-bottom: 65px;
}
main > section:first-child {
    padding-top: 79px;
}
main > section:nth-child(4) {
    padding-top: 73px;
    padding-bottom: 75px;
}
main > section:nth-child(5) {
    padding-top: 68px;
    padding-bottom: 80px;
}
main > section:nth-child(6) {
    padding-top: 66px;
    padding-bottom: 78px;
}

.section-header {
    margin-bottom: 58px;
}

.icon-box, .service-card, .blog-card, .pricing-card {
    box-shadow: 2px 4px 16px rgba(0,0,0,0.054);
}

.hero-section {
    padding-top: 120px;
}
.hero-title {
    margin-bottom: 20px;
}
.hero-subtitle {
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.631;
}
.hero-tagline {
    font-size: 11px;
    letter-spacing: 3.202px;
    margin-bottom: 19px;
}
.hero-buttons {
    gap: 13px;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 13px 45px rgba(0,0,0,0.112);
}

.icon-wrap {
    width: 54px;
    height: 54px;
    font-size: 24px;
    border-radius: 15px;
    margin-bottom: 21px;
}

.icon-title, .card-title {
    font-size: 19px;
    margin-bottom: 7px;
}
.icon-text, .card-text {
    font-size: 15px;
    line-height: 1.628;
}

.section-title {
    margin-bottom: 18px;
    letter-spacing: 0.0px;
}
.section-tagline {
    font-size: 14px;
    letter-spacing: 2.868px;
    margin-bottom: 15px;
}
.section-desc {
    font-size: 16px;
    line-height: 1.625;
}

@media (min-width: 993px) {
    .main-nav {
        gap: 27px;
    }
    .main-nav .nav-link {
        font-size: 15px;
        padding: 7px 0;
    }
}

.site-footer {
    padding-top: 78px;
}
.footer-widget .widget-title {
    font-size: 17px;
    margin-bottom: 22px;
}
.footer-links a {
    font-size: 13px;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-social {
    gap: 10px;
}
.footer-social a {
    width: 40px;
    height: 40px;
}
.footer-bottom {
    padding: 24px 0;
    margin-top: 44px;
}

.form-control {
    border-radius: 6px;
    padding: 11px 18px;
    font-size: 16px;
}

.testimonial-card {
    padding: 37px;
}
.quote-text {
    font-size: 16px;
    line-height: 1.655;
    margin-bottom: 24px;
}
.author-image {
    width: 48px;
    height: 48px;
}
.author-name {
    font-size: 14px;
}
.author-role {
    font-size: 12px;
}

.pricing-card {
    padding: 32px;
}
.plan-name {
    font-size: 21px;
    margin-bottom: 11px;
}
.plan-price {
    font-size: 46px;
    margin-bottom: 22px;
}
.plan-features li {
    padding: 12px 0;
    font-size: 14px;
}

.counter-number, .stat-number {
    font-size: 46px;
    margin-bottom: 9px;
}
.counter-label {
    font-size: 14px;
    letter-spacing: 0.382px;
}

.team-image img {
    border-radius: 12px;
}
.team-name {
    font-size: 19px;
    margin-bottom: 2px;
}
.team-role {
    font-size: 12px;
}

.step-number {
    font-size: 32px;
    margin-bottom: 15px;
}
.step-title {
    font-size: 18px;
    margin-bottom: 9px;
}

.wow {
    animation-duration: 0.663s !important;
}
.icon-box, .service-card, .blog-card, .testimonial-card,
.pricing-card, .team-card {
    transition-duration: 0.241s;
}

.row {
    --bs-gutter-y: 28px;
}

.cta-section {
    padding: 81px 0;
}
.cta-title {
    font-size: 39px;
    margin-bottom: 19px;
}
.cta-text {
    font-size: 17px;
    margin-bottom: 28px;
}

.blog-card .card-image img {
    border-radius: 7px 7px 0 0;
}
.card-meta {
    font-size: 12px;
    margin-bottom: 10px;
    gap: 13px;
}

.site-header {
    padding: 18px 0;
}
.site-header.scrolled {
    padding: 13px 0;
}
.site-logo {
    font-size: 23px;
}
.header-cta {
    margin-left: 20px;
}

/* --- internal markers --- */
:root {
    --_hash: '0361';
    --_run: '5cd2d0';
    --_ver: 66370;
    --_seed: 5.8;
}
.init-marker { pointer-events: auto; vertical-align: baseline }
.data-layer { --_ref: 'deb'; visibility: inherit; outline: 0 solid transparent }
.view-anchor { unicode-bidi: normal; pointer-events: auto; --_stamp: 556 }


/* ═══════════════════════════════════════════════════════ */
/* CONTRAST GUARD — auto-generated, do NOT edit           */
/* Ensures readable text on ALL dark/gradient sections     */
/* ═══════════════════════════════════════════════════════ */

/* .bg-dark-section — DARK bg → light text */
.bg-dark-section h1, .bg-dark-section h2, .bg-dark-section h3, .bg-dark-section h4, .bg-dark-section h5, .bg-dark-section h6 { color: #fff !important; }
.bg-dark-section { color: rgba(255,255,255,0.85) !important; }
.bg-dark-section p, .bg-dark-section li, .bg-dark-section span:not(.badge):not(.btn-custom), .bg-dark-section .section-subtitle, .bg-dark-section label, .bg-dark-section blockquote, .bg-dark-section figcaption, .bg-dark-section dt, .bg-dark-section dd, .bg-dark-section td, .bg-dark-section th { color: rgba(255,255,255,0.78) !important; }
.bg-dark-section a:not(.btn-custom):not(.nav-link) { color: rgba(255,255,255,0.85) !important; }
.bg-dark-section a:not(.btn-custom):not(.nav-link):hover { color: #fff !important; }
.bg-dark-section .counter-number { color: #fff !important; }
.bg-dark-section .counter-label { color: rgba(255,255,255,0.7) !important; }

/* .bg-dark-custom — DARK bg → light text */
.bg-dark-custom h1, .bg-dark-custom h2, .bg-dark-custom h3, .bg-dark-custom h4, .bg-dark-custom h5, .bg-dark-custom h6 { color: #fff !important; }
.bg-dark-custom { color: rgba(255,255,255,0.85) !important; }
.bg-dark-custom p, .bg-dark-custom li, .bg-dark-custom span:not(.badge):not(.btn-custom), .bg-dark-custom .section-subtitle, .bg-dark-custom label, .bg-dark-custom blockquote, .bg-dark-custom figcaption, .bg-dark-custom dt, .bg-dark-custom dd, .bg-dark-custom td, .bg-dark-custom th { color: rgba(255,255,255,0.78) !important; }
.bg-dark-custom a:not(.btn-custom):not(.nav-link) { color: rgba(255,255,255,0.85) !important; }
.bg-dark-custom a:not(.btn-custom):not(.nav-link):hover { color: #fff !important; }
.bg-dark-custom .counter-number { color: #fff !important; }
.bg-dark-custom .counter-label { color: rgba(255,255,255,0.7) !important; }

/* .bg-gradient-custom — DARK bg → light text */
.bg-gradient-custom h1, .bg-gradient-custom h2, .bg-gradient-custom h3, .bg-gradient-custom h4, .bg-gradient-custom h5, .bg-gradient-custom h6 { color: #fff !important; }
.bg-gradient-custom { color: rgba(255,255,255,0.85) !important; }
.bg-gradient-custom p, .bg-gradient-custom li, .bg-gradient-custom span:not(.badge):not(.btn-custom), .bg-gradient-custom .section-subtitle, .bg-gradient-custom label, .bg-gradient-custom blockquote, .bg-gradient-custom figcaption, .bg-gradient-custom dt, .bg-gradient-custom dd, .bg-gradient-custom td, .bg-gradient-custom th { color: rgba(255,255,255,0.78) !important; }
.bg-gradient-custom a:not(.btn-custom):not(.nav-link) { color: rgba(255,255,255,0.85) !important; }
.bg-gradient-custom a:not(.btn-custom):not(.nav-link):hover { color: #fff !important; }
.bg-gradient-custom .counter-number { color: #fff !important; }
.bg-gradient-custom .counter-label { color: rgba(255,255,255,0.7) !important; }

/* .bg-accent-custom — DARK bg → light text */
.bg-accent-custom h1, .bg-accent-custom h2, .bg-accent-custom h3, .bg-accent-custom h4, .bg-accent-custom h5, .bg-accent-custom h6 { color: #fff !important; }
.bg-accent-custom { color: rgba(255,255,255,0.85) !important; }
.bg-accent-custom p, .bg-accent-custom li, .bg-accent-custom span:not(.badge):not(.btn-custom), .bg-accent-custom .section-subtitle, .bg-accent-custom label, .bg-accent-custom blockquote, .bg-accent-custom figcaption, .bg-accent-custom dt, .bg-accent-custom dd, .bg-accent-custom td, .bg-accent-custom th { color: rgba(255,255,255,0.78) !important; }
.bg-accent-custom a:not(.btn-custom):not(.nav-link) { color: rgba(255,255,255,0.85) !important; }
.bg-accent-custom a:not(.btn-custom):not(.nav-link):hover { color: #fff !important; }
.bg-accent-custom .counter-number { color: #fff !important; }
.bg-accent-custom .counter-label { color: rgba(255,255,255,0.7) !important; }

/* .cta-section — DARK bg → light text */
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4, .cta-section h5, .cta-section h6 { color: #fff !important; }
.cta-section { color: rgba(255,255,255,0.85) !important; }
.cta-section p, .cta-section li, .cta-section span:not(.badge):not(.btn-custom), .cta-section .section-subtitle, .cta-section label, .cta-section blockquote, .cta-section figcaption, .cta-section dt, .cta-section dd, .cta-section td, .cta-section th { color: rgba(255,255,255,0.78) !important; }
.cta-section a:not(.btn-custom):not(.nav-link) { color: rgba(255,255,255,0.85) !important; }
.cta-section a:not(.btn-custom):not(.nav-link):hover { color: #fff !important; }
.cta-section .counter-number { color: #fff !important; }
.cta-section .counter-label { color: rgba(255,255,255,0.7) !important; }

/* .site-footer — LIGHT bg → dark text (preset handles colors) */
.site-footer { color: var(--text-secondary, #555) !important; }
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6,
.site-footer .widget-title { color: var(--text-primary, #1a1a2e) !important; }
.site-footer p, .site-footer li, .site-footer span,
.site-footer label { color: var(--text-secondary, #555) !important; }
.site-footer a:not(.btn-custom) { color: var(--text-secondary, #555) !important; }
.site-footer a:not(.btn-custom):hover { color: var(--accent-1) !important; }
.site-footer .footer-bottom p { color: var(--text-muted, #888) !important; }

/* .bg-primary-custom — LIGHT bg → dark text */
.bg-primary-custom h1, .bg-primary-custom h2, .bg-primary-custom h3, .bg-primary-custom h4, .bg-primary-custom h5, .bg-primary-custom h6 { color: var(--text-primary, #1a1a2e) !important; }
.bg-primary-custom p, .bg-primary-custom li, .bg-primary-custom span:not(.badge):not(.btn-custom), .bg-primary-custom .section-subtitle, .bg-primary-custom label, .bg-primary-custom blockquote, .bg-primary-custom figcaption, .bg-primary-custom dt, .bg-primary-custom dd, .bg-primary-custom td, .bg-primary-custom th { color: var(--text-secondary, #555) !important; }

/* .bg-secondary-custom — LIGHT bg → dark text */
.bg-secondary-custom h1, .bg-secondary-custom h2, .bg-secondary-custom h3, .bg-secondary-custom h4, .bg-secondary-custom h5, .bg-secondary-custom h6 { color: var(--text-primary, #1a1a2e) !important; }
.bg-secondary-custom p, .bg-secondary-custom li, .bg-secondary-custom span:not(.badge):not(.btn-custom), .bg-secondary-custom .section-subtitle, .bg-secondary-custom label, .bg-secondary-custom blockquote, .bg-secondary-custom figcaption, .bg-secondary-custom dt, .bg-secondary-custom dd, .bg-secondary-custom td, .bg-secondary-custom th { color: var(--text-secondary, #555) !important; }
