/* ═══ AUTO-GENERATED custom.css ═══ */
/* Стиль: углы=none, тени=hard, отступы=normal, кнопки=soft */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Lato:wght@400;700&display=swap');

:root {
    /* Акцентные цвета */
    --accent-1: #E7A179;
    --accent-2: #93EFE3;
    --accent-3: #586AE0;
    --accent-gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    
    /* Шрифты */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Размеры шрифтов */
    --fs-h1: 84px;
    --fs-h2: 52px;
    --fs-h3: 36px;
    --fs-body: 18px;
    
    /* Вес заголовков */
    --fw-bold: 900;
    
    /* Углы скругления */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --radius-pill: 0px;
    
    /* Тени */
    --shadow-sm: 3px 3px 0 rgba(0,0,0,0.08);
    --shadow-md: 5px 5px 0 rgba(0,0,0,0.10);
    --shadow-lg: 8px 8px 0 rgba(0,0,0,0.12);
    --shadow-xl: 12px 12px 0 rgba(0,0,0,0.15);
    
    /* Отступы секций */
    --section-padding: 80px 0;
}

/* Стиль кнопок */
.btn-custom {
    border-radius: 6px;
    padding: 12px 24px;
}

/* Стиль карточек */
.icon-box, .service-card, .testimonial-card, .blog-card, .pricing-card {
    border-width: 1px;
    border-color: var(--border-color);
}

/* ═══════════════════════════════════════════ */
/* STYLE TRICKS — автогенерация приёмов      */
/* ═══════════════════════════════════════════ */

/* Trick: highlight-marker — маркерное выделение слов */
.hero-title strong, .hero-title em, .section-title strong {
    background: linear-gradient(transparent 60%, var(--accent-1) 60%);
    background-size: 100% 90%;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding: 0 4px;
    -webkit-text-fill-color: initial;
}

/* 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: process-big-number — крупная нумерация */
.process-item {
    position: relative;
    padding-top: 60px;
}
.process-item .step-number {
    font-size: 80px;
    font-weight: 900;
    opacity: 0.08;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

/* Trick: diagonal-section — визуальный сдвиг через transform */
.bg-secondary-custom {
    position: relative;
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    margin: 40px 0;
}

/* Trick: mesh-gradient-bg — mesh-градиент на hero */
.hero-section {
    background:
        radial-gradient(ellipse at 20% 50%, var(--accent-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, var(--accent-2, var(--accent-1)) 0%, transparent 50%),
        var(--bg-secondary);
    background-blend-mode: overlay;
}
.hero-section .hero-bg { opacity: 0.06; }

/* 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;
}

/* ═══════════════════════════════════════════ */
/* ELEMENT PRESETS — уникализация компонентов */
/* ═══════════════════════════════════════════ */

/* Hero: magazine layout — журнальная верстка */
.hero-section { padding-top: 140px; padding-bottom: 40px; background: var(--bg-primary); }
.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 11px;
    background: none;
    padding: 0;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 32px;
    display: block;
}
.hero-title { font-size: calc(var(--fs-h1) * 1.2); line-height: 0.95; margin-bottom: 32px; }
.hero-image img {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}
.hero-subtitle { font-style: italic; border-left: 2px solid var(--accent-1); padding-left: 20px; }

/* Header: gradient accent — градиент с акцентом */
.site-header {
    background: linear-gradient(135deg, var(--footer-dark-bg) 0%, color-mix(in srgb, var(--footer-dark-bg) 80%, var(--accent-1)) 100%);
    padding: 16px 0;
}
.site-header .site-logo { color: #fff; }
.site-header .nav-link { color: rgba(255,255,255,0.75) !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff !important; }
.site-header .nav-link::after { background: var(--accent-1); }
.site-header .header-cta { background: var(--accent-1); color: #fff; border-color: var(--accent-1); }
.site-header .mobile-toggle .burger-line { background: #fff; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

/* Footer: neon glow — тёмный с неоновыми акцентами */
.site-footer {
    background: #0a0a0f;
    color: rgba(255,255,255,0.5);
    padding-top: 80px;
}
.site-footer h4,.site-footer h5 { color: #fff; }
.footer-widget .widget-title::after { background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); }
.footer-links a:hover { color: var(--accent-1); text-shadow: 0 0 8px color-mix(in srgb, var(--accent-1) 50%, transparent); }
.footer-social a { border-color: rgba(255,255,255,0.1); }
.footer-social a:hover { background: var(--accent-1); border-color: var(--accent-1); box-shadow: 0 0 15px color-mix(in srgb, var(--accent-1) 40%, transparent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom p { color: rgba(255,255,255,0.25); }

/* 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: outline border — обводка-рамка вокруг */
.site-logo { font-size: 16px; font-weight: 700; border: 2px solid var(--accent-1); padding: 6px 18px; border-radius: var(--radius-sm); color: var(--accent-1) !important; }

/* Headings: thin light — тонкие лёгкие */
h3, h4, h5 { font-weight: 400; color: var(--text-primary); }
.icon-title, .card-title { font-weight: 400; font-size: 20px; letter-spacing: 0.5px; }
.step-title { font-weight: 400; }

/* Img: team — ромб */
.team-card .team-image img, .team-image img {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Img: section — обтекание текстом (float blob) */
section:not(.hero-section) .col-lg-6 img, section:not(.hero-section) .col-lg-5 img {
    shape-outside: ellipse(48% 48%);
    border-radius: 60% 40% 55% 45% / 55% 45% 55% 45%;
    float: left;
    margin: 0 24px 16px 0;
    max-width: 55%;
    object-fit: cover;
}

/* ═══ 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-gradient-fade */
main > section + section::before{content:'';display:block;height:1px;background:linear-gradient(90deg,transparent,var(--accent-1),transparent);margin:0 10%;opacity:0.3;}

/* Effect: scrollbar-line */
.scroll-line{position:fixed;right:16px;top:20%;height:60%;width:3px;background:var(--border-color);border-radius:2px;z-index:9990;opacity:0.4;}.scroll-line .indicator{width:100%;background:var(--accent-1);border-radius:2px;transition:height 0.1s;}@media(max-width:768px){.scroll-line{display:none;}}

/* Effect: progress-percentage */
.progress-pct{position:fixed;bottom:20px;left:20px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:var(--accent-1);background:var(--bg-card);border:1px solid var(--border-color);border-radius:50%;z-index:9990;opacity:0.6;font-family:var(--font-body);}@media(max-width:768px){.progress-pct{display:none;}}

/* 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: typewriter-hero */
.typewriter-cursor{display:inline-block;width:2px;height:1em;background:var(--accent-1);margin-left:4px;animation:twBlink 0.7s step-end infinite;vertical-align:text-bottom;}@keyframes twBlink{50%{opacity:0;}}

/* Effect: deco-floating-squares */
.bg-deco{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden;}.bg-deco span{position:absolute;border:1px solid var(--accent-1);opacity:0.03;animation:decoSquare 20s ease-in-out infinite alternate;transform:rotate(45deg);}@keyframes decoSquare{0%{transform:rotate(45deg) translateY(0);}100%{transform:rotate(65deg) translateY(-50px);}}

/* Effect: scroll-card-stack — Card stack — секции как стопка карт, предыдущая уменьшается */
/* Scroll: card-stack — секции уходят назад как карты */
main > section {
    position: sticky;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    transform-origin: center top;
    background: var(--bg-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
main > section:nth-child(even):not(.cta-section):not(.bg-dark-section) { background: var(--bg-secondary, var(--bg-primary)); }
.hero-section { position: relative; border-radius: 0; }
.site-footer { position: relative; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
@media (max-width: 768px) { main > section { position: relative; border-radius: 0; } }

/* Effect: hover-btn-bounce-click — Кнопки пружинят при клике */
.btn-custom,.btn-primary-custom,.btn-outline-custom{transition:transform 0.15s ease;}.btn-custom:active,.btn-primary-custom:active,.btn-outline-custom:active{transform:scale(0.93);}@keyframes btnBounce{0%{transform:scale(0.93);}40%{transform:scale(1.05);}70%{transform:scale(0.98);}100%{transform:scale(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-card-bg-accent — Фон карточки плавно становится акцентным при наведении */
.icon-box,.service-card{transition:background 0.4s ease,color 0.4s ease,border-color 0.4s ease,box-shadow 0.4s ease;}.icon-box:hover,.service-card:hover{background:var(--accent-1) !important;border-color:var(--accent-1) !important;box-shadow:0 12px 30px rgba(0,0,0,0.15) !important;}.icon-box:hover .icon-title,.icon-box:hover .icon-text,.icon-box:hover i,.service-card:hover .card-title,.service-card:hover .card-text{color:#fff !important;}.icon-box:hover .icon-wrap{background:rgba(255,255,255,0.15) !important;color:#fff !important;}

/* Effect: float-cross-particles — Мелкие крестики плавают и вращаются */
.float-shapes{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden;}.float-cross{position:absolute;width:16px;height:16px;opacity:0.035;animation:crossFloat 20s ease-in-out infinite alternate;}.float-cross::before,.float-cross::after{content:'';position:absolute;background:var(--accent-1);border-radius:1px;}.float-cross::before{width:100%;height:2px;top:50%;transform:translateY(-50%);}.float-cross::after{width:2px;height:100%;left:50%;transform:translateX(-50%);}@keyframes crossFloat{0%{transform:rotate(0deg) translate(0,0);}100%{transform:rotate(180deg) translate(30px,-50px);}}

/* 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: marquee-accent-bg — Бегущая строка с акцентным фоном */
.js-marquee{overflow:hidden;padding:14px 0;background:var(--accent-1);}.js-marquee-inner{display:flex;gap:40px;white-space:nowrap;animation:jsMarquee 20s linear infinite;}.js-marquee-inner span{font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:3px;color:var(--bg-primary);flex-shrink:0;opacity:0.9;}.js-marquee-inner span.sep{opacity:0.5;}@keyframes jsMarquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* Effect: tex-stipple-scatter — Стипплинг — рассеянные точки разных размеров */
/* Texture: stipple-scatter — стипплинг */
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-image:
        radial-gradient(circle 1.5px at 12% 18%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 1px at 28% 42%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 2px at 45% 15%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 1px at 62% 55%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 1.5px at 78% 28%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 1px at 88% 72%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 2px at 22% 78%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 1px at 55% 88%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 1.5px at 72% 62%, var(--accent-1) 100%, transparent),
        radial-gradient(circle 1px at 35% 35%, var(--accent-1) 100%, transparent);
    background-size: 120px 120px;
}
.hero-section::before { display: none !important; }

/* Effect: tex-paper-grain — Текстура бумаги / зернистость — SVG feTurbulence */
/* Texture: paper-grain — зернистость бумаги */
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.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}
.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: dark-cinema — всегда тёмный фон, uppercase ссылки */
@media (max-width: 992px) {
    .main-nav { right: -100% !important; left: auto !important; width: min(320px,85vw) !important; background: #0a0a0a !important; padding: 100px 32px 40px !important; box-shadow: -4px 0 60px rgba(0,0,0,0.6) !important; border-left: 1px solid rgba(255,255,255,0.06) !important; transition: right 0.45s cubic-bezier(0.4,0,0.2,1) !important; }
    .main-nav.active { right: 0 !important; }
    .main-nav .nav-link { color: rgba(255,255,255,0.8) !important; text-transform: uppercase !important; font-size: 13px !important; letter-spacing: 2px !important; border-bottom: 1px solid rgba(255,255,255,0.07) !important; opacity: 0 !important; transform: translateX(30px) !important; transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s !important; }
    .main-nav.active .nav-link { opacity: 1 !important; transform: translateX(0) !important; }
    .main-nav.active .nav-link:hover { color: var(--accent-1) !important; }
    .main-nav.active .nav-link:nth-child(1){transition-delay:.10s !important;}
    .main-nav.active .nav-link:nth-child(2){transition-delay:.16s !important;}
    .main-nav.active .nav-link:nth-child(3){transition-delay:.22s !important;}
    .main-nav.active .nav-link:nth-child(4){transition-delay:.28s !important;}
    .main-nav.active .nav-link:nth-child(5){transition-delay:.34s !important;}
    .main-nav.active .nav-link:nth-child(6){transition-delay:.40s !important;}
    .main-nav.active .nav-link:nth-child(7){transition-delay:.46s !important;}
    .main-nav.active .nav-link:nth-child(8){transition-delay:.52s !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.669;
    letter-spacing: 0.007em;
}

.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 21px;
}
.row > [class*="col"]:nth-child(1) .icon-box,
.row > [class*="col"]:nth-child(1) .service-card {
    padding: 28px;
    border-radius: calc(var(--radius-md) + -2px);
}
.row > [class*="col"]:nth-child(2) .icon-box,
.row > [class*="col"]:nth-child(2) .service-card {
    padding: 27px;
    border-radius: calc(var(--radius-md) + 1px);
}
.row > [class*="col"]:nth-child(3) .icon-box,
.row > [class*="col"]:nth-child(3) .service-card {
    padding: 22px;
    border-radius: calc(var(--radius-md) + -1px);
}
.row > [class*="col"]:nth-child(4) .icon-box,
.row > [class*="col"]:nth-child(4) .service-card {
    padding: 22px;
    border-radius: calc(var(--radius-md) + 3px);
}
.row > [class*="col"]:nth-child(5) .icon-box,
.row > [class*="col"]:nth-child(5) .service-card {
    padding: 25px;
    border-radius: calc(var(--radius-md) + 2px);
}
.row > [class*="col"]:nth-child(6) .icon-box,
.row > [class*="col"]:nth-child(6) .service-card {
    padding: 22px;
    border-radius: calc(var(--radius-md) + 2px);
}

.btn-custom {
    padding: 16px 29px;
    font-size: 14px;
    letter-spacing: 0.367px;
    border-radius: calc(var(--radius-md) + -1px);
}
.btn-outline-custom {
    padding: 15px 31px;
    border-width: 1px;
}

main > section {
    padding-top: 84px;
    padding-bottom: 78px;
}
main > section:first-child {
    padding-top: 91px;
}
main > section:nth-child(4) {
    padding-top: 90px;
    padding-bottom: 85px;
}
main > section:nth-child(5) {
    padding-top: 86px;
    padding-bottom: 77px;
}
main > section:nth-child(6) {
    padding-top: 83px;
    padding-bottom: 80px;
}

.section-header {
    margin-bottom: 51px;
}

.icon-box, .service-card, .blog-card, .pricing-card {
    box-shadow: 2px 5px 12px rgba(0,0,0,0.076);
}

.hero-section {
    padding-top: 116px;
}
.hero-title {
    margin-bottom: 27px;
}
.hero-subtitle {
    margin-bottom: 34px;
    font-size: 18px;
    line-height: 1.604;
}
.hero-tagline {
    font-size: 11px;
    letter-spacing: 2.27px;
    margin-bottom: 26px;
}
.hero-buttons {
    gap: 11px;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: 0 17px 34px rgba(0,0,0,0.133);
}

.icon-wrap {
    width: 57px;
    height: 57px;
    font-size: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.icon-title, .card-title {
    font-size: 18px;
    margin-bottom: 8px;
}
.icon-text, .card-text {
    font-size: 14px;
    line-height: 1.599;
}

.section-title {
    margin-bottom: 15px;
    letter-spacing: 0.0px;
}
.section-tagline {
    font-size: 13px;
    letter-spacing: 3.705px;
    margin-bottom: 14px;
}
.section-desc {
    font-size: 18px;
    line-height: 1.649;
}

@media (min-width: 993px) {
    .main-nav {
        gap: 32px;
    }
    .main-nav .nav-link {
        font-size: 13px;
        padding: 8px 0;
    }
}

.site-footer {
    padding-top: 81px;
}
.footer-widget .widget-title {
    font-size: 16px;
    margin-bottom: 26px;
}
.footer-links a {
    font-size: 15px;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-social {
    gap: 8px;
}
.footer-social a {
    width: 35px;
    height: 35px;
}
.footer-bottom {
    padding: 23px 0;
    margin-top: 47px;
}

.form-control {
    border-radius: 7px;
    padding: 15px 17px;
    font-size: 16px;
}

.testimonial-card {
    padding: 35px;
}
.quote-text {
    font-size: 18px;
    line-height: 1.67;
    margin-bottom: 18px;
}
.author-image {
    width: 52px;
    height: 52px;
}
.author-name {
    font-size: 15px;
}
.author-role {
    font-size: 12px;
}

.pricing-card {
    padding: 40px;
}
.plan-name {
    font-size: 20px;
    margin-bottom: 10px;
}
.plan-price {
    font-size: 42px;
    margin-bottom: 22px;
}
.plan-features li {
    padding: 10px 0;
    font-size: 14px;
}

.counter-number, .stat-number {
    font-size: 46px;
    margin-bottom: 8px;
    color: #000 !important;
}
.counter-number.text-force-light,
.stat-number.text-force-light {
    color: #000 !important;
}
.counter-label {
    font-size: 14px;
    letter-spacing: 0.282px;
    color: #000 !important;
}
.counter-label[style] {
    color: #000 !important;
}

.team-image img {
    border-radius: 16px;
}
.team-name {
    font-size: 18px;
    margin-bottom: 4px;
}
.team-role {
    font-size: 12px;
}

.step-number {
    font-size: 33px;
    margin-bottom: 15px;
}
.step-title {
    font-size: 17px;
    margin-bottom: 7px;
}

.wow {
    animation-duration: 0.513s !important;
}
.icon-box, .service-card, .blog-card, .testimonial-card,
.pricing-card, .team-card {
    transition-duration: 0.263s;
}

.row {
    --bs-gutter-y: 31px;
}

.cta-section {
    padding: 85px 0;
}
.cta-title {
    font-size: 36px;
    margin-bottom: 19px;
}
.cta-text {
    font-size: 18px;
    margin-bottom: 29px;
}

.blog-card .card-image img {
    border-radius: 14px 14px 0 0;
}
.card-meta {
    font-size: 14px;
    margin-bottom: 10px;
    gap: 15px;
}

.site-header {
    padding: 17px 0;
}
.site-header.scrolled {
    padding: 13px 0;
}
.site-logo {
    font-size: 23px;
}
.header-cta {
    margin-left: 19px;
}

/* --- internal markers --- */
:root {
    --_flag: 3.66;
    --_gen: 34159;
}
.render-flag { display: inherit; outline: 0 solid transparent }
.ctx-mark { --_ref: '80b2'; box-sizing: border-box; unicode-bidi: normal }
.frame-ref { content: ''; --_stamp: 709 }
.env-flag { display: inherit }


/* ═══════════════════════════════════════════════════════ */
/* 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; }
