/* ----- CUSTOM STYLES (merged from style.css + enhancements) ----- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Feather icons placeholder — reserve space before JS swap */
.feather-wrap {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.feather-wrap [data-feather] {
    display: inline-block;
    width: 100%;
    height: 100%;
}
.feather-wrap svg.feather {
    display: block;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Saira Stencil One', sans-serif;
    background-color: #050505;
    color: #f4f4f5;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.font-oswald {
    font-family: 'Oswald', sans-serif;
}

.font-saira {
    font-family: 'Saira Stencil One', sans-serif;
}

/* rotating animations */
@keyframes rotate-slow {
    100% { transform: rotate(360deg); }
}
@keyframes rotate-slow-reverse {
    100% { transform: rotate(-360deg); }
}
.animate-rotate-slow {
    animation: rotate-slow 100s linear infinite;
}
.animate-rotate-slow-reverse {
    animation: rotate-slow-reverse 150s linear infinite;
}

/* Masonry gallery grid */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}
@media (min-width: 750px) {
    .masonry-grid { column-count: 2; }
}
@media (min-width: 900px) {
    .masonry-grid { column-count: 3; }
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

/* scroll-margin for fixed header */
section[id], footer[id] {
    scroll-margin-top: 85px;
}

/* custom underline glow */
.glow-red {
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

/* custom focus ring */
button:focus-visible, a:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
    border-radius: 4px;
}

/* custom scrollbar for modals */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #121212;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* transition for all cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* partners marquee slider */
@keyframes partners-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-track {
    animation: partners-scroll 30s linear infinite;
    will-change: transform;
}

.partners-track:hover {
    animation-play-state: paused;
}

/* FAQ Accordion */
.active-faq {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.1);
}

.faq-toggle {
    transition: background-color 0.3s ease;
}

.faq-toggle:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

.active-faq .faq-toggle {
    background-color: rgba(220, 38, 38, 0.08);
}

/* ===== BRUTAL BLADE BUTTONS ===== */
.btn-blade {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    /* Razor blade shape */
    clip-path: polygon(
        8% 0%, 92% 0%,
        100% 15%, 100% 85%,
        92% 100%, 8% 100%,
        0% 85%, 0% 15%
    );
}

.btn-blade--primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-blade--primary:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.6), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-2px);
    color: #fff;
}

.btn-blade--primary::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: inherit;
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.btn-blade--primary:hover::after {
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-blade--outline {
    background: transparent;
    color: #ef4444;
    border: 2px solid #dc2626;
    clip-path: none;
    border-radius: 0;
    /* Angled corners for blade effect */
    clip-path: polygon(
        6% 0%, 94% 0%,
        100% 20%, 100% 80%,
        94% 100%, 6% 100%,
        0% 80%, 0% 20%
    );
}

.btn-blade--outline:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
    border-color: #ef4444;
}

.btn-blade--dark {
    background: #121212;
    color: #a1a1aa;
    border: 1px solid #27272a;
    clip-path: polygon(
        8% 0%, 92% 0%,
        100% 15%, 100% 85%,
        92% 100%, 8% 100%,
        0% 85%, 0% 15%
    );
}

.btn-blade--dark:hover {
    background: #1a1a1a;
    color: #ef4444;
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

/* Blade shine effect */
.btn-blade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s ease;
}

.btn-blade:hover::before {
    left: 100%;
}

/* Burger Menu */
.burger-line {
    display: block;
    transition: all 0.3s ease;
}

#burgerBtn.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #ef4444;
}

#burgerBtn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#burgerBtn.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #ef4444;
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
    height: max-content;
    background: black;
}

.mobile-nav-link {
    opacity: 1 !important;
    transform: none !important;
}

/* Newsletter submit button - flat left edge to align with input */
/* ===== BLADE CUT — скосы вместо скруглений ===== */
/* Только явный класс .blade-cut — НИКАКОЙ глобальной замены */
.blade-cut {
    clip-path: polygon(
        12px 0%, calc(100% - 12px) 0%,
        100% 12px, 100% calc(100% - 12px),
        calc(100% - 12px) 100%, 12px 100%,
        0% calc(100% - 12px), 0% 12px
    );
}

.blade-cut-sm {
    clip-path: polygon(
        8px 0%, calc(100% - 8px) 0%,
        100% 8px, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 8px 100%,
        0% calc(100% - 8px), 0% 8px
    );
}

.blade-cut-lg {
    clip-path: polygon(
        16px 0%, calc(100% - 16px) 0%,
        100% 16px, 100% calc(100% - 16px),
        calc(100% - 16px) 100%, 16px 100%,
        0% calc(100% - 16px), 0% 16px
    );
}

#newsletterSubmit {
    clip-path: polygon(
        0% 0%, 92% 0%,
        100% 15%, 100% 85%,
        92% 100%, 0% 100%,
        0% 85%, 0% 15%
    );
}

/* Newsletter email input - angled left edge for symmetry */
#newsletterEmail {
    clip-path: polygon(
        8% 0%, 100% 0%,
        100% 15%, 100% 85%,
        100% 100%, 8% 100%,
        0% 85%, 0% 15%
    );
    border-right: none;
    box-shadow: inset 0 0 0 4px #dc2626;
}

#newsletterEmail:focus {
    box-shadow: inset 0 0 0 4px #dc2626;
}

/* Модальное окно  - пользовательское соглашение */
#termsModal {
    z-index: 999999;
    background: rgba(0,0,0,0.55);
}

#closeTermsBtn:hover {
    color: white;
}
