/* ═══ AUTO-GENERATED custom.css ═══ */
/* Стиль: углы=extra-round, тени=subtle, отступы=spacious, кнопки=asymmetric */

@import url('https://fonts.googleapis.com/css2?family=Young+Serif:wght@400&family=Inter:wght@400;500&display=swap');

:root {
    /* Акцентные цвета */
    --accent-1: #6F1BC4;
    --accent-2: #DF44B8;
    --accent-3: #2759CD;
    --accent-gradient: linear-gradient(to bottom right, var(--accent-1), var(--accent-2));
    
    /* Шрифты */
    --font-heading: 'Young Serif', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Размеры шрифтов */
    --fs-h1: 34px;
    --fs-h2: 24px;
    --fs-h3: 18px;
    --fs-body: 14px;
    
    /* Вес заголовков */
    --fw-bold: 800;
    
    /* Углы скругления */
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-pill: 50px;
    
    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-xl: 0 8px 24px rgba(0,0,0,0.1);
    
    /* Отступы секций */
    --section-padding: 100px 0;
}

/* Стиль кнопок */
.btn-custom {
    border-radius: 20px 4px 20px 4px;
    padding: 14px 32px;
}

/* Фильтр-элементы портфолио */
.ix-hidden {
    display: none;
}

/* Стиль карточек */
.icon-box, .service-card, .testimonial-card, .blog-card, .pricing-card {
    border-width: 2px;
    border-color: var(--border-color);
}

/* ═══════════════════════════════════════════ */
/* STYLE TRICKS — автогенерация приёмов      */
/* ═══════════════════════════════════════════ */

/* 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;
}

/* Trick: image-tilt — наклон картинки */
.hero-image img, .about-image img {
    transform: rotate(2deg) scale(1.02);
    transition: transform 0.5s ease;
}
.hero-image:hover img, .about-image:hover img {
    transform: rotate(0deg) scale(1);
}

/* Trick: dot-pattern-bg — точечный фон */
.bg-secondary-custom {
    background-image: radial-gradient(circle, var(--accent-1) 1px, transparent 1px);
    background-size: 24px 24px;
    background-blend-mode: overlay;
}

/* Trick: card-bottom-gradient — градиентная полоса снизу */
.icon-box, .service-card, .blog-card, .pricing-card, .testimonial-card {
    position: relative;
    overflow: hidden;
}
.icon-box::after, .service-card::after, .blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

/* Trick: striped-section-bg — диагональные полосы */
.bg-secondary-custom {
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 40px,
        var(--accent-1) 40px,
        var(--accent-1) 41px
    );
    background-blend-mode: overlay;
}

/* ═══════════════════════════════════════════ */
/* ELEMENT PRESETS — уникализация компонентов */
/* ═══════════════════════════════════════════ */

/* Hero: side image bleed — картинка выходит за границы */
.hero-section { overflow: visible; padding-bottom: 80px; }
.hero-image {
    margin-right: -60px;
    position: relative;
}
.hero-image img {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -10px 10px 40px rgba(0,0,0,0.12);
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}
.hero-title span, .hero-title strong { color: var(--accent-1); }
.hero-tagline { background: none; padding: 0; font-weight: 700; letter-spacing: 5px; }

/* Header: split accent — акцентная CTA-кнопка выделена */
.site-header { background: var(--bg-primary); padding: 0; }
.site-header .header-inner { padding: 16px 0; }
.header-cta {
    background: var(--accent-1) !important;
    color: #fff !important;
    padding: 12px 28px !important;
    border-radius: var(--radius-sm) !important;
    margin-left: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.main-nav { gap: 28px; }
.main-nav .nav-link { font-size: 14px; }

/* Footer: accent full — полностью акцентный фон */
.site-footer {
    background: var(--accent-1);
    color: rgba(255,255,255,0.8);
    padding-top: 80px;
}
.site-footer h4,.site-footer h5 { color: #fff; }
.footer-widget .widget-title::after { background: #fff; width: 40px; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: #fff; }
.footer-contact li { color: rgba(255,255,255,0.8); }
.footer-contact li i { color: #fff; }
.footer-social a { border-color: rgba(255,255,255,0.3); color: #fff; }
.footer-social a:hover { background: #fff; color: var(--accent-1); border-color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); }
.footer-bottom p { color: rgba(255,255,255,0.5); }
.footer-policy a { color: rgba(255,255,255,0.6) !important; }
.footer-policy a:hover { color: #fff !important; }

/* Contact: brutalist — грубая форма */
.contact-section .form-custom {
    border: 3px solid var(--text-primary);
    padding: 36px;
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--text-primary);
}
.contact-section .form-control {
    border: 2px solid var(--text-primary);
    border-radius: 0;
    padding: 14px 16px;
    font-weight: 600;
}
.contact-section .form-control:focus { border-color: var(--accent-1); box-shadow: 4px 4px 0 var(--accent-1); }
.contact-section .btn-custom { border-radius: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; box-shadow: 4px 4px 0 var(--text-primary); }

/* Logo: bold clean — чистый жирный */
.site-logo { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }

/* Headings: default — стандартные */
h3, h4, h5 { font-weight: var(--fw-bold); color: var(--text-primary); }
.icon-title, .card-title, .step-title { font-weight: 600; }

/* Img: hero — арка сверху */
.hero-image img {
    border-radius: 50% 50% var(--radius-sm) var(--radius-sm);
    object-fit: cover;
}

/* Img: cards — duotone при наведении */
.service-card img, .icon-box img, .blog-card img, .portfolio-item img {
    transition: filter 0.4s ease;
}
.service-card:hover img, .blog-card:hover img, .portfolio-item:hover img {
    filter: grayscale(0);
}
.service-card img, .icon-box img, .blog-card img, .portfolio-item img {
    filter: grayscale(0.7);
}

/* Img: team — яркая тень */
.team-card .team-image img, .team-image img {
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(var(--accent-1-rgb, 99,102,241), 0.25);
    transition: box-shadow 0.3s ease;
}
.team-card:hover .team-image img {
    box-shadow: 0 12px 40px rgba(var(--accent-1-rgb, 99,102,241), 0.4);
}

/* ═══ BURGER MENU DESIGN ═══ */
/* Burger: thin wide — тонкие широкие линии */
.mobile-toggle { width: 44px; height: 40px; gap: 7px; border: none; background: none; border-radius: 0; }
.mobile-toggle .burger-line { width: 30px; height: 1.5px; border-radius: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.mobile-toggle.active .burger-line:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-toggle.active .burger-line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .burger-line:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }


/* Effect: divider-chevron */
main > section + section::before{content:'\276F';display:block;text-align:center;transform:rotate(90deg);color:var(--accent-1);opacity:0.3;font-size:20px;padding:10px 0;}

/* Effect: scrollbar-dots */
.scroll-dots{position:fixed;right:20px;top:50%;transform:translateY(-50%);z-index:9990;display:flex;flex-direction:column;gap:12px;}.scroll-dots .dot{width:10px;height:10px;border-radius:50%;border:2px solid var(--accent-1);opacity:0.4;cursor:pointer;transition:all 0.3s;}.scroll-dots .dot.active{background:var(--accent-1);opacity:1;transform:scale(1.3);}@media(max-width:768px){.scroll-dots{display:none;}}

/* Effect: progress-header-line */
.progress-header{position:fixed;top:0;left:0;height:2px;z-index:100000;background:var(--accent-1);width:0;opacity:0.8;}

/* 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: deco-gradient-blobs */
.bg-deco{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden;}.bg-deco span{position:absolute;border-radius:50%;filter:blur(60px);opacity:0.03;animation:decoBlob 22s ease-in-out infinite alternate;}@keyframes decoBlob{0%{transform:translate(0,0) scale(1);}50%{transform:translate(30px,-40px) scale(1.15);}100%{transform:translate(-20px,30px) scale(0.9);}}

/* Effect: hover-card-lift-shadow — Карточки взлетают вверх с глубокой тенью */
.icon-box,.service-card,.blog-card,.testimonial-card,.pricing-card{transition:transform 0.35s ease,box-shadow 0.35s ease;}.icon-box:hover,.service-card:hover,.blog-card:hover,.testimonial-card:hover,.pricing-card:hover{transform:translateY(-10px);box-shadow:0 20px 50px rgba(0,0,0,0.12) !important;}

/* 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: 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: pulse-scroll-hint — Анимированная стрелка «скролль вниз» в hero */
.scroll-hint{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;opacity:0.5;animation:scrollHintBounce 2s ease-in-out infinite;z-index:10;}.scroll-hint span{display:block;width:24px;height:24px;border-right:2px solid var(--text-primary);border-bottom:2px solid var(--text-primary);transform:rotate(45deg);}@keyframes scrollHintBounce{0%,100%{transform:translateX(-50%) translateY(0);opacity:0.5;}50%{transform:translateX(-50%) translateY(12px);opacity:1;}}

/* 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-accent-sections — Фон чётных секций переливается */
main>section:nth-child(even):not(.cta-section):not(.bg-dark-section){background:linear-gradient(135deg,var(--bg-primary),var(--bg-secondary,var(--bg-primary)),var(--bg-primary));background-size:400% 400%;animation:shimmerBg 12s ease infinite;}@keyframes shimmerBg{0%,100%{background-position:0% 50%;}50%{background-position:100% 50%;}}

/* 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: text-reveal-clip — Заголовки секций раскрываются снизу */
.section-title{overflow:hidden;}.section-title-inner{display:inline-block;transform:translateY(100%);opacity:0;transition:transform 0.8s cubic-bezier(0.16,1,0.3,1),opacity 0.8s ease;}.in-view .section-title-inner,.wow.animated .section-title-inner{transform:translateY(0);opacity:1;}

/* Effect: marquee-reverse-double — Двойная лента — вторая в обратном направлении */
.js-marquee-wrap{overflow:hidden;padding:20px 0;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);display:flex;flex-direction:column;gap:8px;}.js-mq-row{display:flex;gap:40px;white-space:nowrap;font-size:clamp(20px,3vw,38px);font-weight:var(--fw-bold);text-transform:uppercase;letter-spacing:0.02em;opacity:0.12;}.js-mq-row span{flex-shrink:0;}.js-mq-row.fwd{animation:jsMarquee 30s linear infinite;}.js-mq-row.rev{animation:jsMarqueeRev 30s linear infinite;}@keyframes jsMarquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}@keyframes jsMarqueeRev{from{transform:translateX(-50%);}to{transform:translateX(0);}}

/* Effect: asym-skewed-sections — Секции с наклонёнными гранями через clip-path */
/* Asymmetry: skewed-sections — наклонные грани секций */
main > section:nth-child(odd):not(:first-child) {
    -webkit-clip-path: polygon(0 0, 100% 20px, 100% calc(100% - 20px), 0 100%);
    clip-path: polygon(0 0, 100% 20px, 100% calc(100% - 20px), 0 100%);
}
main > section:nth-child(even):not(.cta-section):not(.bg-dark-section) {
    -webkit-clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 calc(100% - 20px));
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 calc(100% - 20px));
}
.hero-section { clip-path: none !important; -webkit-clip-path: none !important; }
@media (max-width: 768px) {
    main > section:nth-child(odd):not(:first-child),
    main > section:nth-child(even):not(.cta-section):not(.bg-dark-section) { clip-path: none; -webkit-clip-path: none; }
}

/* Effect: tex-glitch-bands — Глитч-полосы — горизонтальные сдвинутые полосы */
/* Texture: glitch-bands — горизонтальные глитч-полосы */
main > section:nth-child(3n):not(.cta-section):not(.bg-dark-section) { position: relative; overflow: clip; }
main > section:nth-child(3n):not(.cta-section):not(.bg-dark-section)::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background:
        linear-gradient(180deg,
            transparent 0%, transparent 18%,
            var(--accent-1) 18%, var(--accent-1) 18.5%,
            transparent 18.5%, transparent 42%,
            var(--accent-2, var(--accent-1)) 42%, var(--accent-2, var(--accent-1)) 42.8%,
            transparent 42.8%, transparent 67%,
            var(--accent-1) 67%, var(--accent-1) 67.3%,
            transparent 67.3%, transparent 88%,
            var(--accent-2, var(--accent-1)) 88%, var(--accent-2, var(--accent-1)) 88.6%,
            transparent 88.6%
        );
}
.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: glass-panel — матовое стекло, backdrop-filter */
@media (max-width: 992px) {
    .main-nav { right: -100% !important; left: auto !important; width: min(320px,85vw) !important; background: rgba(var(--bg-card-rgb,255,255,255),0.65) !important; backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important; border-left: 1px solid rgba(255,255,255,0.2) !important; padding: 100px 32px 40px !important; box-shadow: -4px 0 30px rgba(0,0,0,0.15) !important; transition: right 0.4s cubic-bezier(0.4,0,0.2,1) !important; }
    .main-nav.active { right: 0 !important; }
    .main-nav .nav-link { opacity: 0 !important; transform: translateX(16px) scale(0.96) !important; transition: opacity 0.35s ease, transform 0.35s ease !important; border-bottom: 1px solid rgba(255,255,255,0.15) !important; }
    .main-nav.active .nav-link { opacity: 1 !important; transform: translateX(0) scale(1) !important; }
    .main-nav.active .nav-link:nth-child(1){transition-delay:.08s !important;}
    .main-nav.active .nav-link:nth-child(2){transition-delay:.14s !important;}
    .main-nav.active .nav-link:nth-child(3){transition-delay:.20s !important;}
    .main-nav.active .nav-link:nth-child(4){transition-delay:.26s !important;}
    .main-nav.active .nav-link:nth-child(5){transition-delay:.32s !important;}
    .main-nav.active .nav-link:nth-child(6){transition-delay:.38s !important;}
    .main-nav.active .nav-link:nth-child(7){transition-delay:.44s !important;}
    .main-nav.active .nav-link:nth-child(8){transition-delay:.50s !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.685;
    letter-spacing: 0.0em;
}

.icon-box, .service-card, .blog-card, .testimonial-card, .pricing-card {
    padding: 25px;
}
.icon-box, .service-card, .blog-card, .testimonial-card, .pricing-card .card-body {
    padding: 26px 19px;
}
.row > [class*="col"]:nth-child(1) .icon-box,
.row > [class*="col"]:nth-child(1) .service-card {
    padding: 28px;
    border-radius: calc(var(--radius-md) + -1px);
}
.row > [class*="col"]:nth-child(2) .icon-box,
.row > [class*="col"]:nth-child(2) .service-card {
    padding: 23px;
    border-radius: calc(var(--radius-md) + 3px);
}
.row > [class*="col"]:nth-child(3) .icon-box,
.row > [class*="col"]:nth-child(3) .service-card {
    padding: 26px;
    border-radius: calc(var(--radius-md) + 1px);
}
.row > [class*="col"]:nth-child(4) .icon-box,
.row > [class*="col"]:nth-child(4) .service-card {
    padding: 27px;
    border-radius: calc(var(--radius-md) + -1px);
}
.row > [class*="col"]:nth-child(5) .icon-box,
.row > [class*="col"]:nth-child(5) .service-card {
    padding: 28px;
    border-radius: calc(var(--radius-md) + 3px);
}
.row > [class*="col"]:nth-child(6) .icon-box,
.row > [class*="col"]:nth-child(6) .service-card {
    padding: 25px;
    border-radius: calc(var(--radius-md) + 1px);
}

.btn-custom {
    padding: 14px 25px;
    font-size: 15px;
    letter-spacing: 0.206px;
    border-radius: calc(var(--radius-md) + -1px);
}
.btn-outline-custom {
    padding: 13px 27px;
    border-width: 1px;
}

main > section {
    padding-top: 89px;
    padding-bottom: 81px;
}
main > section:first-child {
    padding-top: 100px;
}
main > section:nth-child(4) {
    padding-top: 85px;
    padding-bottom: 84px;
}

.section-header {
    margin-bottom: 56px;
}

.icon-box, .service-card, .blog-card, .pricing-card {
    box-shadow: 2px 6px 15px rgba(0,0,0,0.05);
}

.hero-section {
    padding-top: 120px;
}
.hero-title {
    margin-bottom: 23px;
}
.hero-subtitle {
    margin-bottom: 33px;
    font-size: 20px;
    line-height: 1.634;
}
.hero-tagline {
    font-size: 12px;
    letter-spacing: 2.882px;
    margin-bottom: 21px;
}
.hero-buttons {
    gap: 17px;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: 0 11px 36px rgba(0,0,0,0.097);
}

.icon-wrap {
    width: 54px;
    height: 54px;
    font-size: 22px;
    border-radius: 16px;
    margin-bottom: 17px;
}

.icon-title, .card-title {
    font-size: 18px;
    margin-bottom: 12px;
}
.icon-text, .card-text {
    font-size: 14px;
    line-height: 1.607;
}

.section-title {
    margin-bottom: 15px;
    letter-spacing: 0.0px;
}
.section-tagline {
    font-size: 12px;
    letter-spacing: 3.792px;
    margin-bottom: 17px;
}
.section-desc {
    font-size: 17px;
    line-height: 1.663;
}

@media (min-width: 993px) {
    .main-nav {
        gap: 28px;
    }
    .main-nav .nav-link {
        font-size: 14px;
        padding: 7px 0;
    }
}

.site-footer {
    padding-top: 63px;
}
.footer-widget .widget-title {
    font-size: 16px;
    margin-bottom: 22px;
}
.footer-links a {
    font-size: 13px;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-social {
    gap: 11px;
}
.footer-social a {
    width: 39px;
    height: 39px;
}
.footer-bottom {
    padding: 23px 0;
    margin-top: 44px;
}

.form-control {
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 14px;
}

.testimonial-card {
    padding: 31px;
}
.quote-text {
    font-size: 16px;
    line-height: 1.681;
    margin-bottom: 18px;
}
.author-image {
    width: 46px;
    height: 46px;
}
.author-name {
    font-size: 16px;
}
.author-role {
    font-size: 14px;
}

.pricing-card {
    padding: 36px;
}
.plan-name {
    font-size: 18px;
    margin-bottom: 6px;
}
.plan-price {
    font-size: 47px;
    margin-bottom: 16px;
}
.plan-features li {
    padding: 8px 0;
    font-size: 15px;
}

.counter-number, .stat-number {
    font-size: 44px;
    margin-bottom: 6px;
}
.counter-label {
    font-size: 13px;
    letter-spacing: 0.445px;
}

.team-image img {
    border-radius: 7px;
}
.team-name {
    font-size: 18px;
    margin-bottom: 2px;
}
.team-role {
    font-size: 14px;
}

.step-number {
    font-size: 33px;
    margin-bottom: 11px;
}
.step-title {
    font-size: 17px;
    margin-bottom: 10px;
}

.wow {
    animation-duration: 0.694s !important;
}
.icon-box, .service-card, .blog-card, .testimonial-card,
.pricing-card, .team-card {
    transition-duration: 0.357s;
}

.row {
    --bs-gutter-y: 28px;
}

.cta-section {
    padding: 72px 0;
}
.cta-title {
    font-size: 33px;
    margin-bottom: 13px;
}
.cta-text {
    font-size: 16px;
    margin-bottom: 23px;
}

.blog-card .card-image img {
    border-radius: 6px 6px 0 0;
}
.card-meta {
    font-size: 14px;
    margin-bottom: 10px;
    gap: 11px;
}

.site-header {
    padding: 18px 0;
}
.site-header.scrolled {
    padding: 15px 0;
}
.site-logo {
    font-size: 21px;
}
.header-cta {
    margin-left: 18px;
}

/* --- internal markers --- */
:root {
    --_ref: 7.77;
    --_hash: 6.60;
    --_env: 'c4ce94';
    --_rev: 31617;
}
.view-anchor { visibility: inherit }
.event-hook { --_stamp: 784 }
.ui-ghost { vertical-align: baseline; box-sizing: border-box; visibility: inherit }
.dom-hook { outline: 0 solid transparent; --_stamp: 705; --_ref: '2537' }
.sr-only-fx { content: ''; font-style: inherit; box-sizing: border-box }


/* ═══════════════════════════════════════════════════════ */
/* 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 — DARK bg → light text */
.site-footer { color: rgba(255,255,255,0.65) !important; }
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6,
.site-footer .widget-title { color: #fff !important; }
.site-footer p, .site-footer li, .site-footer span,
.site-footer label { color: rgba(255,255,255,0.6) !important; }
.site-footer a:not(.btn-custom) { color: rgba(255,255,255,0.65) !important; }
.site-footer a:not(.btn-custom):hover { color: #fff !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; }
