@font-face {
    font-family: 'Futura Orto';
    src: url('fonts/a_futuraortotitullnln-regular.woff2') format('woff2'),
         url('fonts/a_futuraortotitullnln-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark-primary: #0D0D1A; --bg-dark-secondary: #161629; --primary-accent: #8A4FFF;
    --primary-accent-hover: #7a3ee6; --text-light: #F0F0F8; --text-secondary: #a0a0b8;
    --card-border: rgba(138, 79, 255, 0.2); --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --header-height-offset: 88px;
}

/* ===== БАЗОВЫЕ СБРОСЫ ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%;
    overflow-x: hidden; /* Убирает горизонтальный скролл и мигание в Chrome */
    scroll-behavior: smooth;
}
section[id], footer[id] {
    scroll-margin-top: 96px;
}
body {
    font-family: var(--font-family);
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
body.nav-open,
body.modal-open {
    overflow: hidden;
}

h1, h2, h3 { font-weight: 600; }
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; margin-bottom: 2rem; text-align: center; }
p { color: var(--text-secondary); line-height: 1.6; }
a { text-decoration: none; color: var(--primary-accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
#gallery { padding-bottom: 0; }
.homepage-main { display: flex; flex-direction: column; width: 100%; }
.homepage-block { width: 100%; }

/* ===== ШАПКА (HEADER) ===== */
.header {
    position: fixed; top: 0; width: 100%;
    background-color: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px); padding: 15px 0;
    z-index: 100; border-bottom: 1px solid var(--card-border);
}

@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        top: 0;
        padding-top: calc(15px + env(safe-area-inset-top));
    }
}

/* Принудительно горизонтальное выравнивание */
.header .container, .header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    flex-wrap: nowrap;
}

.logo {
    font-family: 'Futura Orto', sans-serif;
    font-size: 1.7rem; font-weight: normal;
    letter-spacing: 1.5px; color: var(--text-light);
    z-index: 101; flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 40px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    max-width: 220px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.35s ease, max-width 0.35s ease;
    align-self: center;
}

body:not(.logo-state-ready) .logo,
body.hero-title-visible .logo {
    opacity: 0;
    transform: translateX(-12px);
    max-width: 0;
    pointer-events: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 48px;
    transition: margin-left 0.35s ease;
}

body:not(.logo-state-ready) .nav-links,
body.hero-title-visible .nav-links {
    margin-left: 0;
}
.nav-links a {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-light);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.header-phone {
    margin-left: auto;
    display: flex; align-items: center; gap: 0.5rem;
    height: 40px;
    color: var(--text-secondary); text-decoration: none;
    font-weight: 500; white-space: nowrap;
    transition: color 0.3s; flex-shrink: 0;
    align-self: center;
}
.header-phone:hover { color: var(--text-light); }
.header-phone i { font-size: 1.1rem; color: var(--primary-accent); }
.phone-text { display: inline; }

.burger-menu {
    display: none;
    cursor: pointer; z-index: 130;
    flex-shrink: 0; margin-left: 20px; padding: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    border: none;
    background: transparent;
    align-self: center;
}
.burger-menu .bar {
    position: absolute;
    display: block;
    width: 26px;
    height: 3px;
    margin: 0;
    background-color: var(--text-light);
    transition: transform 0.28s ease, opacity 0.2s ease;
    transform-origin: center;
    border-radius: 2px;
}
.burger-menu .bar:nth-child(1) { transform: translateY(-8px); }
.burger-menu .bar:nth-child(2) { transform: translateY(0); }
.burger-menu .bar:nth-child(3) { transform: translateY(8px); }
.burger-menu.active .bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger-menu.active .bar:nth-child(2) { opacity: 0; transform: translateY(0) scaleX(0.6); }
.burger-menu.active .bar:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 98;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }


/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('/photos/port.jpg') no-repeat center center/cover;
    background-color: #333; background-blend-mode: overlay;
    padding-top: var(--header-height-offset);
}
@supports (height: 100dvh) {
    #hero {
        height: 100dvh;
        min-height: 100dvh;
    }
}
#bg-video { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
#hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 13, 26, 0.6); z-index: 2; }
#hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg-dark-primary), transparent 70%); z-index: 2; }
#intro-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.hero-content { position: relative; z-index: 3; text-align: center; padding: 0 20px; }
.hero-content h1 { font-family: 'Futura Orto', sans-serif; font-size: 4.5rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.hero-slogan { font-size: 1.5rem; font-weight: 400; color: var(--text-light); max-width: 800px; margin: 0.5rem auto 2rem auto; line-height: 1.4; }
.hero-actions { display: flex; justify-content: center; margin-bottom: 2rem; }
.cta-button { background: var(--primary-accent); color: var(--text-light); padding: 15px 35px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: background-color 0.3s; display: inline-block; }
.cta-button:hover { background-color: var(--primary-accent-hover); }
.scroll-down-indicator {
    position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
    font-size: 2.5rem; color: rgba(255, 255, 255, 0.5); animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}


/* ===== SERVICES ===== */
#services {
    position: relative;
    background: linear-gradient(rgba(22, 22, 41, 0.85), rgba(22, 22, 41, 0.85)),
                url(/photos/block.jpg) no-repeat center center;
    background-size: cover;
}
.services-container { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 250px; }
.services-container h2 { font-family: var(--font-family); font-size: 3.5rem; letter-spacing: 1.5px; margin-bottom: 0.5rem; color: var(--text-light); }
.services-container h3 { font-size: 2rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 1rem; display: inline-flex; align-items: center; min-height: 2.4rem; }
.services-container p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2.5rem; }
.typing-cursor { display: inline-block; width: 3px; height: 2rem; background-color: var(--primary-accent); margin-left: 8px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }


/* ===== GRID & CARDS ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background-color: var(--bg-dark-secondary); padding: 30px; border-radius: 15px; border: 1px solid var(--card-border); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(138, 79, 255, 0.1); }
.card-icon { font-size: 2.5rem; color: var(--primary-accent); margin-bottom: 1rem; line-height: 1; }
.card h3 { margin: 0 0 0.5rem 0; font-size: 1.25rem; }
#why-us { background-color: var(--bg-dark-secondary); position: relative; overflow: hidden; }
#beam-show-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
#why-us .container { position: relative; z-index: 1; }
.why-us-grid { grid-template-columns: repeat(3, 1fr); }
#about, #contact { background-color: var(--bg-dark-secondary); }
#about .container { max-width: 800px; text-align: center; }


/* ===== FOOTER ===== */
footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--card-border); }
footer { background-color: var(--bg-dark-secondary); padding: 60px 0; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.footer-contacts { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-contacts a {
    color: var(--text-secondary); text-decoration: none; font-size: 1.1rem;
    display: inline-flex; align-items: center; gap: 10px; transition: color 0.3s;
}
.footer-contacts a:hover { color: var(--text-light); }
.footer-contacts a i { font-size: 1.5rem; color: var(--primary-accent); }

.max-link { color: var(--text-secondary); text-decoration: none; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; transition: color 0.3s; }
.max-link:hover { color: var(--text-light); }
.max-link i { font-size: 1.5rem; color: var(--primary-accent); }

.copyright { font-size: 0.9rem; color: var(--text-secondary); opacity: 0.7; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(13, 13, 26, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.cookie-banner a {
    color: var(--primary-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-accept-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--primary-accent);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.cookie-accept-btn:hover {
    background-color: var(--primary-accent-hover);
}


/* ===== GALLERY ===== */
.sliders-container { width: 100%; overflow: hidden; margin-bottom: 60px; }
.gallery-slider { width: 100%; height: 250px; margin-bottom: 20px; }
.gallery-slider .swiper-slide {
    width: clamp(180px, 22vw, 320px);
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}
.gallery-slider .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.gallery-slider .swiper-slide:hover img { transform: scale(1.1); }

/* ===== CASES ===== */
#cases {
    background:
        radial-gradient(1200px 420px at 10% -8%, rgba(138, 79, 255, 0.22), transparent 60%),
        radial-gradient(900px 360px at 92% 108%, rgba(93, 145, 255, 0.14), transparent 62%),
        linear-gradient(180deg, #0d0f25 0%, #11132e 52%, #0d1027 100%);
    position: relative;
    overflow: hidden;
}
#cases::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0%, transparent 38%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.025) 0%, transparent 34%);
    pointer-events: none;
}
.cases-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}
.cases-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(197, 166, 255, 0.9);
    font-weight: 600;
}
.cases-head h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 3vw, 2.4rem);
}
.cases-subtitle {
    font-size: 1.04rem;
    color: #a8aac4;
    margin: 0;
    line-height: 1.5;
}
.cases-wrap {
    position: relative;
    margin: 0 auto;
    max-width: 1240px;
    padding: 0 54px;
    z-index: 1;
}
#cases-slider {
    overflow: hidden;
    padding: 8px 0 18px;
}
#cases-slider .swiper-wrapper {
    align-items: stretch;
}
#cases-slider .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}
.case-card {
    --case-bg-image: none;
    --case-cover-height: 244px;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(160, 122, 255, 0.28);
    border-radius: 24px;
    background: linear-gradient(168deg, rgba(17, 20, 48, 0.95), rgba(10, 13, 34, 0.92));
    position: relative;
    padding: 0;
    box-shadow: 0 12px 24px rgba(4, 5, 17, 0.34);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}
.case-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--case-cover-height);
    background:
        linear-gradient(180deg, rgba(4, 6, 18, 0.28) 0%, rgba(4, 6, 18, 0.74) 62%, rgba(15, 17, 41, 0.98) 100%),
        var(--case-bg-image);
    background-size: cover, cover;
    background-position: center center, center center;
    filter: saturate(1.06) contrast(1.06);
    z-index: 0;
}
.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(138, 79, 255, 0.035) 68%, rgba(138, 79, 255, 0.085) 100%);
    pointer-events: none;
    z-index: 0;
}
.case-card > * {
    position: relative;
    z-index: 1;
}
.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(177, 138, 255, 0.52);
    box-shadow: 0 16px 30px rgba(8, 10, 26, 0.42), 0 0 0 1px rgba(138, 79, 255, 0.28);
}
.case-cover {
    min-height: var(--case-cover-height);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 22px;
}
.case-cover-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
}
.case-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(205, 180, 255, 0.46);
    background: rgba(18, 19, 45, 0.72);
    color: #ead8ff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}
.case-badge i { color: #a772ff; font-size: 0.88em; }
.case-card h3 {
    margin: 0;
    margin-top: auto;
    font-size: clamp(1.36rem, 1.55vw, 1.62rem);
    line-height: 1.18;
    max-width: 94%;
    color: #f6f5ff;
    text-shadow: 0 7px 22px rgba(4, 6, 17, 0.72);
}
.case-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.case-details {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(138, 79, 255, 0.24);
    border-radius: 0;
    background: linear-gradient(165deg, rgba(16, 19, 48, 0.9), rgba(9, 12, 34, 0.92));
    overflow: hidden;
    padding-bottom: 60px;
    box-shadow: none;
}
.case-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}
.case-row + .case-row {
    margin-top: 0;
    border-top: 1px solid rgba(138, 79, 255, 0.22);
}
.case-row-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b987ff;
    line-height: 0;
    margin-top: 0;
}
.case-row-icon-svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0.98;
}
.case-row-copy {
    min-width: 0;
}
.case-row-copy h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ece9ff;
    line-height: 1.2;
}
.case-row-copy p {
    margin: 0;
    color: #d7dcef;
    font-size: 0.95rem;
    line-height: 1.4;
    min-width: 0;
}
@media (min-width: 769px) {
    .case-details {
        max-width: 100%;
        margin: 0;
    }

    .case-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
        padding: 18px 20px;
    }

    .case-row-copy p {
        max-width: 46ch;
        min-width: 0;
    }
}
.case-chips {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.case-chips-cover {
    margin-left: auto;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: nowrap;
    width: auto;
    max-width: min(100%, 240px);
    gap: 6px;
}
.case-chips-cover span {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-chips-footer {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    width: auto;
    margin-top: 0;
    justify-content: center;
    gap: 9px;
    z-index: 2;
}
.case-chips span {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    width: auto;
    flex: 0 1 auto;
    border-radius: 999px;
    border: 1px solid rgba(173, 182, 206, 0.28);
    background: linear-gradient(145deg, rgba(57, 63, 82, 0.72), rgba(35, 40, 57, 0.76));
    color: #dde3f3;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 11px;
    white-space: nowrap;
    line-height: 1.22;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.case-chips span i {
    color: #cdd5ee;
    font-size: 0.96em;
    flex: 0 0 auto;
}
.case-chip--location {
    border-color: rgba(168, 177, 201, 0.34);
}
.case-chip--service {
    border-color: rgba(150, 168, 205, 0.36);
}
.cases-nav-prev,
.cases-nav-next {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(138, 79, 255, 0.46) !important;
    background: rgba(8, 10, 24, 0.74) !important;
    color: transparent !important;
    margin-top: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.32) !important;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
}
.cases-nav-prev::after,
.cases-nav-next::after {
    content: '' !important;
    width: 13px !important;
    height: 13px !important;
    border-top: 2.5px solid rgba(171, 121, 255, 0.95) !important;
    border-right: 2.5px solid rgba(171, 121, 255, 0.95) !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 1px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
}
.cases-nav-prev::after {
    transform: translate(calc(-50% + 2px), -50%) rotate(-135deg) !important;
}
.cases-nav-next::after {
    transform: translate(calc(-50% - 2px), -50%) rotate(45deg) !important;
}
.cases-nav-prev:hover,
.cases-nav-next:hover {
    border-color: rgba(163, 111, 255, 0.75) !important;
    background: rgba(18, 20, 42, 0.92) !important;
    transform: translateY(-50%) scale(1.04);
}
.cases-nav-prev.swiper-button-disabled,
.cases-nav-next.swiper-button-disabled {
    opacity: 0.28 !important;
}
.cases-nav-prev { left: 4px !important; }
.cases-nav-next { right: 4px !important; }
@media (min-width: 900px) {
    .cases-nav-prev { left: -18px !important; }
    .cases-nav-next { right: -18px !important; }
}
.cases-pagination {
    position: static !important;
    margin-top: 16px;
}
.cases-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.45);
    opacity: 1;
}
.cases-pagination .swiper-pagination-bullet-active {
    background: var(--primary-accent);
}

/* ===== WORKFLOW ===== */
#workflow {
    background:
        radial-gradient(820px 320px at 50% -10%, rgba(138, 79, 255, 0.17), transparent 68%),
        linear-gradient(180deg, rgba(13, 15, 37, 0.98) 0%, rgba(16, 18, 42, 1) 100%);
    position: relative;
    overflow: hidden;
}
#workflow::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 28%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.02), transparent 32%);
    pointer-events: none;
}
.workflow-head {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}
.workflow-head h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3vw, 2.4rem);
    letter-spacing: 0;
}
.workflow-subtitle {
    margin: 0;
    color: #a7aac4;
    font-size: 1rem;
    line-height: 1.5;
}
.workflow-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.workflow-card {
    position: relative;
    border: 1px solid rgba(160, 122, 255, 0.3);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(17, 20, 48, 0.92), rgba(10, 13, 34, 0.9));
    box-shadow: 0 18px 36px rgba(6, 8, 22, 0.45);
    padding: 16px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.workflow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(160px 70px at 85% 105%, rgba(138, 79, 255, 0.14), transparent 80%);
    pointer-events: none;
}
.workflow-card:hover {
    transform: translateY(-3px);
    border-color: rgba(177, 138, 255, 0.5);
    box-shadow: 0 22px 42px rgba(8, 10, 26, 0.5), 0 0 0 1px rgba(138, 79, 255, 0.24);
}
.workflow-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.workflow-step {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(205, 180, 255, 0.46);
    background: rgba(18, 19, 45, 0.7);
    color: #ead8ff;
    font-size: 0.9rem;
    letter-spacing: 0;
    font-weight: 700;
}
.workflow-card h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.24;
    color: #f4f3ff;
}
.workflow-card p {
    margin: 0;
    color: #d5d8eb;
    font-size: 0.95rem;
    line-height: 1.45;
}
/* ===== TESTIMONIALS ===== */
#reviews {
    background: linear-gradient(180deg, rgba(13,13,26,0.96), rgba(22,22,41,1));
    position: relative;
    overflow: hidden;
}
.testimonials-head {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 34px;
    position: relative;
}
.testimonials-head h2 {
    margin-bottom: 10px;
    font-size: 2.25rem;
}
.testimonials-subtitle {
    font-size: 1.05rem;
    color: #9a9cb7;
    margin-bottom: 6px;
}
.testimonial-public-link {
    border: 0;
    background: transparent;
    color: rgba(199, 176, 255, 0.98);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.98rem;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease;
    opacity: 0.92;
}
.testimonial-public-link:hover {
    color: var(--text-light);
    opacity: 1;
}
.testimonials-wrap {
    position: relative;
    margin: 0 auto;
    max-width: 1420px;
    padding: 0 72px;
}
#testimonials-slider {
    overflow: hidden;
    padding: 8px 0 34px;
}
.testimonial-card {
    height: 320px;
    border: 1px solid rgba(138, 79, 255, 0.24);
    border-radius: 18px;
    background:
        radial-gradient(circle at 16% 4%, rgba(138,79,255,0.12), transparent 52%),
        linear-gradient(160deg, rgba(24,24,46,0.98), rgba(17,17,36,0.98));
    padding: 22px 24px 18px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.testimonial-headline {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 14px;
}
.testimonial-card:hover {
    transform: none;
    border-color: rgba(138, 79, 255, 0.42);
    box-shadow: 0 10px 30px rgba(138, 79, 255, 0.1);
}
.testimonial-quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: rgba(156, 101, 255, 0.98);
    font-size: 52px;
    line-height: 1;
    transform: translateY(-3px);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -2px;
}
.testimonial-author {
    display: block;
    color: #efe7ff;
    font-family: 'Bad Script', 'Segoe Script', cursive;
    font-size: 1.16rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.7;
    transform: translateY(-17px);
    max-width: calc(100% - 72px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.testimonial-quote {
    color: #f5f4ff;
    font-size: 1.08rem;
    line-height: 1.5;
    margin: -10px 0 10px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}
.testimonial-toggle-btn {
    display: none;
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: rgba(173, 133, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    margin: 0 0 14px;
    cursor: pointer;
}
.testimonial-card.has-toggle .testimonial-toggle-btn {
    display: inline-flex;
}
.testimonial-card.is-expanded .testimonial-quote {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: auto;
    max-height: 172px;
    padding-right: 4px;
}
.testimonial-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #a6a5c0;
    font-size: 1rem;
    border-top: 1px solid rgba(138, 79, 255, 0.24);
    padding-top: 14px;
    margin-top: auto;
}
.testimonial-meta span:first-child::before {
    content: '\f133';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-accent);
    margin-right: 10px;
    font-size: 0.9em;
}
.testimonial-meta span:first-child::after {
    content: '|';
    margin-left: 14px;
    color: rgba(138,79,255,0.55);
}
.testimonials-nav-prev,
.testimonials-nav-next {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(138, 79, 255, 0.42) !important;
    background: rgba(8, 10, 24, 0.62) !important;
    color: transparent !important;
    margin-top: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.24) !important;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 168px !important;
}
.testimonials-nav-prev::after,
.testimonials-nav-next::after {
    content: '' !important;
    width: 13px !important;
    height: 13px !important;
    border-top: 2.5px solid rgba(171, 121, 255, 0.95) !important;
    border-right: 2.5px solid rgba(171, 121, 255, 0.95) !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 1px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
}
.testimonials-nav-prev::after {
    transform: translate(calc(-50% + 2px), -50%) rotate(-135deg) !important;
}
.testimonials-nav-next::after {
    transform: translate(calc(-50% - 2px), -50%) rotate(45deg) !important;
}
.testimonials-nav-prev:hover,
.testimonials-nav-next:hover {
    border-color: rgba(163, 111, 255, 0.75) !important;
    background: rgba(18, 20, 42, 0.86) !important;
    transform: translateY(-1px);
}
.testimonials-nav-prev.swiper-button-disabled,
.testimonials-nav-next.swiper-button-disabled {
    opacity: 0.28 !important;
}
.testimonials-nav-prev { left: 8px !important; }
.testimonials-nav-next { right: 8px !important; }
.testimonials-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}
.testimonials-pagination {
    position: static !important;
    margin: 0 !important;
    text-align: left;
    width: auto !important;
}
.testimonials-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.45);
    opacity: 1;
}
.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--primary-accent);
}
.reviews-cta-block {
    margin: 56px auto 6px;
    max-width: 1160px;
    border: 1px solid rgba(138, 79, 255, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(18, 21, 46, 0.74), rgba(13, 16, 35, 0.7)),
        radial-gradient(circle at 14% -28%, rgba(138, 79, 255, 0.11), rgba(138, 79, 255, 0) 62%);
    box-shadow:
        0 8px 18px rgba(4, 6, 18, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.018);
    padding: 24px 24px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}
.reviews-cta-block::before {
    display: none;
}
.reviews-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.reviews-cta-copy {
    text-align: left;
    max-width: 500px;
}
.reviews-cta-block h3 {
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
.reviews-cta-copy p {
    color: #a2a3b8;
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}
.reviews-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.reviews-cta-actions .cta-button {
    min-width: 238px;
    padding: 13px 26px;
    font-size: 0.96rem;
}
.cta-link-button {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: rgba(199, 176, 255, 0.98);
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.92;
    padding: 8px 6px;
    font-weight: 500;
    font-size: 0.96rem;
    cursor: pointer;
    transition: opacity 0.25s ease;
}
.cta-link-button:hover {
    opacity: 1;
}

/* ===== FAQ ===== */
#faq {
    background-color: var(--bg-dark-secondary);
    padding-top: 74px;
}
.faq-head {
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
}
.faq-head h2 {
    margin-bottom: 12px;
}
.faq-subtitle {
    margin: 0;
    color: #a9a8c0;
    font-size: 1rem;
    line-height: 1.5;
}
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
}
.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 8px;
    transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-question {
    color: var(--text-light);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.38;
}
.faq-item summary:hover .faq-question {
    color: #ffffff;
}
.faq-marker {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-marker::before,
.faq-marker::after {
    content: '';
    position: absolute;
    background: rgba(182, 146, 255, 0.95);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-marker::before {
    width: 14px;
    height: 2px;
}
.faq-marker::after {
    width: 2px;
    height: 14px;
}
.faq-item[open] .faq-marker {
    transform: none;
}
.faq-item[open] .faq-marker::after {
    opacity: 0;
    transform: scaleY(0.35);
}
.faq-answer {
    padding: 0 8px 18px;
}
.faq-answer p {
    margin: 0;
    color: #b5b6ca;
    line-height: 1.58;
    font-size: 1rem;
}

/* ===== STORIES ===== */
.vertical-videos-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1000px; margin: 0 auto; padding: 0 20px; margin-bottom: 80px; }
.story-video { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; border: 2px solid var(--card-border); transition: transform 0.3s ease; }
.story-video:hover { transform: scale(1.05); }
.story-video video { width: 100%; height: 100%; object-fit: cover; }
.play-icon-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 13, 26, 0.3); justify-content: center; align-items: center; font-size: 3rem; color: rgba(255, 255, 255, 0.9); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); cursor: pointer; transition: opacity 0.3s ease; pointer-events: none; }
.play-icon-overlay.hidden { opacity: 0; }

.stories-component { position: relative; max-width: 1075px; margin: 0 auto 80px auto; }
#stories-slider { width: 100%; overflow: hidden; }
.stories-nav-prev, .stories-nav-next { background: none; position: absolute; z-index: 10; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.7); transition: opacity 0.3s ease, color 0.3s ease; }
.stories-nav-prev:hover, .stories-nav-next:hover { color: white; }
.stories-nav-prev::after, .stories-nav-next::after { font-size: 1.8rem; font-weight: bold; }
.stories-nav-prev { left: -60px !important; }
.stories-nav-next { right: -60px !important; }
.swiper-button-disabled { opacity: 0 !important; pointer-events: none; }


/* ===== QUIZ ===== */
#quiz-placeholder { max-width: 800px; margin: 0 auto; background: var(--bg-dark-secondary); border: 2px dashed var(--card-border); padding: 50px; border-radius: 15px; text-align: center; color: var(--text-secondary); }
#quiz-placeholder iframe { width: 100%; height: 500px; border: none; }

#contact {
    background-color: var(--bg-dark-secondary);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
#contact::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 180px;
    background: linear-gradient(
        180deg,
        rgba(22, 22, 41, 0) 0%,
        rgba(18, 18, 36, 0.78) 56%,
        rgba(13, 13, 26, 0.96) 100%
    );
    pointer-events: none;
}
#contact .container {
    position: relative;
    z-index: 1;
}
#quiz-container { max-width: 800px; margin: 0 auto; text-align: center; }
.quiz-step { display: none; animation: fadeIn 0.5s; }
.quiz-step.active { display: flex; flex-direction: column; align-items: center; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.quiz-step h3 { font-size: 1.8rem; margin-bottom: 2.5rem; }
.quiz-step p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2.5rem; }
.quiz-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 3rem; }
.quiz-options label { display: flex; align-items: center; padding: 15px 25px; border: 2px solid var(--card-border); border-radius: 50px; cursor: pointer; transition: background-color 0.3s, border-color 0.3s; }
.quiz-options label:hover { border-color: var(--primary-accent); }
.quiz-options input[type="radio"], .quiz-options input[type="checkbox"] { display: none; }

.quiz-options input[type="radio"]:checked + span, .quiz-options input[type="checkbox"]:checked + span { color: var(--text-light); }
.quiz-options label:has(input:checked) { background-color: var(--primary-accent); border-color: var(--primary-accent); color: var(--text-light); }
.quiz-options label:has(input:checked) span { color: var(--text-light); }

.quiz-options label.has-input { display: flex; align-items: center; gap: 10px; }
.quiz-options label.has-input input[type="text"] { background: transparent; border: none; border-bottom: 2px solid var(--card-border); color: var(--text-light); font-size: 1rem; width: 100px; padding: 5px; }
.quiz-options label.has-input:has(input:checked) input[type="text"] { border-bottom-color: var(--text-light); }
.quiz-options label.has-input input[type="text"]:focus { outline: none; border-bottom-color: var(--primary-accent); }

.quiz-options-column { width: 100%; display: flex; flex-direction: column; gap: 20px; margin-bottom: 3rem; position: relative; }
.quiz-soft-note { font-size: 0.95rem; color: var(--text-secondary); margin: -10px 0 16px; max-width: 760px; }
.quiz-map-picker {
    width: 100%;
    height: 260px;
    border-radius: 12px;
    border: 1px solid rgba(138, 79, 255, 0.35);
    overflow: hidden;
    background: #101025;
}
.quiz-map-hint {
    width: 100%;
    margin-top: -8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
}
.quiz-map-find-btn {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
}
.quiz-map-open-secondary {
    margin-top: -8px;
    background: rgba(138, 79, 255, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(138, 79, 255, 0.35);
}
.quiz-map-open-secondary:hover {
    background: rgba(138, 79, 255, 0.25);
    color: var(--text-light);
}
.quiz-geocode-suggest {
    position: relative;
    z-index: 1200;
    width: 100%;
    background: #131328;
    border: 1px solid rgba(138, 79, 255, 0.35);
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: -10px;
    display: none;
}
.quiz-geocode-suggest.visible { display: block; }
.quiz-geocode-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--text-light);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.35;
}
.quiz-geocode-item:hover { background: rgba(138, 79, 255, 0.18); }
.quiz-options-column.is-hidden { display: none; }
.quiz-input { background: transparent; border: 2px solid var(--card-border); border-radius: 10px; color: var(--text-light); font-size: 1.1rem; padding: 15px; }
.quiz-input:focus { outline: none; border-color: var(--primary-accent); }
.quiz-input.input-invalid { border-color: #ff7b7b; }
.quiz-date-input { color-scheme: dark; }
.quiz-date-input,
.quiz-date-input::-webkit-datetime-edit,
.quiz-date-input::-webkit-date-and-time-value {
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.quiz-date-input::-webkit-calendar-picker-indicator { filter: invert(0.85); cursor: pointer; }
.quiz-date-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quiz-date-placeholder {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.3;
}
.quiz-date-placeholder.is-hidden {
    display: none;
}
.quiz-checkbox-spacing { margin-bottom: 14px; }
.quiz-button { background: var(--primary-accent); color: var(--text-light); padding: 15px 45px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: background-color 0.3s; border: none; cursor: pointer; }
.quiz-button:hover { background-color: var(--primary-accent-hover); }
.form-error {
    display: none;
    width: 100%;
    color: #ff9a9a;
    font-size: 0.95rem;
    text-align: center;
    margin-top: -6px;
}
.form-error.visible {
    display: block;
}

.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }


/* ===== TOOLTIPS ===== */
.tooltip-trigger {
    position: relative;
    cursor: pointer;
}
.tooltip-trigger.tooltip-visible::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 280px;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background-color: #2a2a4a;
    color: var(--text-light);
    font-size: 0.86rem;
    line-height: 1.35;
    z-index: 20;
    white-space: normal;
    text-align: left;
}
.tooltip-trigger.tooltip-visible::before {
    content: '';
    position: absolute;
    top: calc(125% - 6px);
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #2a2a4a;
    border-left: 1px solid var(--card-border);
    border-top: 1px solid var(--card-border);
    z-index: 21;
}


/* ===== MODAL ===== */
.open-modal-btn { background: var(--primary-accent); color: var(--text-light); padding: 15px 35px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: background-color 0.3s; display: inline-block; border: none; cursor: pointer; font-family: var(--font-family); }
.open-modal-btn:hover { background-color: var(--primary-accent-hover); }
.cta-link-button.open-modal-btn {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: rgba(199, 176, 255, 0.98);
    padding: 8px 6px;
    font-weight: 500;
}
.cta-link-button.open-modal-btn:hover {
    background: transparent;
    color: var(--text-light);
}

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(13, 13, 26, 0.7); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.modal-content { background-color: var(--bg-dark-secondary); margin: 15% auto; padding: 40px; border: 1px solid var(--card-border); border-radius: 15px; max-width: 500px; width: 90%; position: relative; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.modal-content-wide { max-width: 620px; }
#review-modal .modal-content {
    margin: 6vh auto 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close-modal-btn { color: var(--text-secondary); position: absolute; top: 15px; right: 25px; font-size: 32px; font-weight: bold; line-height: 1; cursor: pointer; transition: color 0.3s; }
.close-modal-btn:hover, .close-modal-btn:focus { color: var(--text-light); }
.modal-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.modal-content p { margin-bottom: 2rem; color: var(--text-secondary); }
.modal-form { display: flex; flex-direction: column; gap: 20px; }
.modal-checkbox-label { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; cursor: pointer; padding: 10px 0; }
.modal-checkbox-label input[type="checkbox"] { display:none; }
.modal-checkbox-label span { position: relative; padding-left: 30px; text-align: left; }
.modal-checkbox-label span::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 2px solid var(--card-border); background-color: var(--bg-dark-primary); border-radius: 4px; transition: background-color 0.3s, border-color 0.3s; }
.modal-checkbox-label span::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 4px; top: 50%; transform: translateY(-50%) scale(0); font-size: 14px; color: var(--text-light); transition: transform 0.3s; }
.modal-checkbox-label input[type="checkbox"]:checked + span::before { background-color: var(--primary-accent); border-color: var(--primary-accent); }
.modal-checkbox-label input[type="checkbox"]:checked + span::after { transform: translateY(-50%) scale(1); }
.modal-checkbox-label a { color: var(--primary-accent); text-decoration: none; border-bottom: 1px dotted var(--primary-accent); }
.modal-checkbox-label a:hover { color: var(--text-light); border-bottom-color: var(--text-light); }
.review-textarea {
    min-height: 130px;
    resize: vertical;
}
.review-file-label {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.review-file-label input[type="file"] {
    width: 100%;
    border: 1px dashed rgba(138, 79, 255, 0.5);
    border-radius: 10px;
    padding: 10px;
    color: var(--text-secondary);
    background: rgba(13, 13, 26, 0.5);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1279px) {
    .stories-component { max-width: 100%; }
    #stories-slider { overflow: visible; }
    .stories-nav-prev, .stories-nav-next { display: none; }
    .testimonials-wrap { padding: 0 16px; }
    #testimonials-slider { padding-inline: 0; }
    .testimonials-nav-prev, .testimonials-nav-next { display: none; }
}

@media (max-width: 1180px) {
    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(45vw, 400px);
        max-width: 100vw;
        height: 100vh;
        margin-left: 0;
        background-color: var(--bg-dark-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 120;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        will-change: transform;
        backface-visibility: hidden;
    }
    @supports (padding-top: env(safe-area-inset-top)) {
        .nav-links {
            padding-top: env(safe-area-inset-top);
            height: 100dvh;
        }
    }
    .nav-links.active { transform: translate3d(0, 0, 0); }
    .nav-links a {
        font-size: 1.4rem;
        text-align: center;
        width: 100%;
        padding: 8px 0;
    }
    .nav-links a::after {
        left: 50%;
        bottom: 0;
        width: 60%;
        transform: translateX(-50%) scaleX(0);
    }
    .nav-links a:hover::after,
    .nav-links a:focus-visible::after {
        transform: translateX(-50%) scaleX(1);
    }
    .burger-menu { display: flex; }
    .nav-links.active ~ .logo,
    body.nav-open .logo {
        opacity: 0;
        pointer-events: none;
    }

    body.mobile-controls-enabled .mobile-floating-controls {
        position: fixed;
        right: 16px;
        top: 14px;
        top: calc(env(safe-area-inset-top) + 14px);
        bottom: auto;
        display: flex;
        gap: 8px;
        z-index: 200;
    }

    body.mobile-controls-enabled .header-phone,
    body.mobile-controls-enabled .burger-menu {
        position: fixed;
        bottom: auto;
        top: auto;
        z-index: 201;
        margin: 0;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(13, 13, 26, 0.92);
        border: 1px solid var(--card-border);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(8px);
    }

    body.mobile-controls-enabled .header-phone,
    body.mobile-controls-enabled .burger-menu { position: static; }

    body.mobile-controls-enabled .header-phone .phone-text {
        display: none;
    }

    body.mobile-controls-enabled .header-phone i {
        font-size: 1.3rem;
    }

    body.mobile-controls-enabled .header {
        position: relative;
        top: auto;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.mobile-controls-enabled #hero {
        padding-top: 24px;
    }
}

@media (max-width: 1024px) and (pointer: coarse) {
    .play-icon-overlay { display: flex; }
}

@media (max-width: 768px) {
    .services-container h2 { font-size: 2.5rem; }
    .services-container h3 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-slogan { font-size: 1.2rem; }
    h2 { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr; }
    .footer-contacts { flex-direction: column; gap: 25px; }
    .vertical-videos-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .phone-text { display: none; }
    .header-phone { padding: 0.3rem; }
    .header-inner { min-height: 44px; align-items: center; }
    .logo { height: 44px; }
    .nav-links { width: 85vw; }
    .hero-actions { margin-bottom: 1.6rem; }
    :root { --header-height-offset: 96px; }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cookie-accept-btn {
        width: 100%;
    }

    .workflow-head {
        margin-bottom: 20px;
    }
    .workflow-head h2 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    .workflow-subtitle {
        font-size: 0.95rem;
    }
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .workflow-card {
        min-height: 0;
        padding: 14px;
        border-radius: 16px;
    }
    .workflow-card h3 {
        font-size: 1.04rem;
    }
    .workflow-card p {
        font-size: 0.9rem;
    }
    .cases-wrap { padding: 0 8px; }
    #cases-slider { padding-inline: 0; padding-bottom: 20px; }
    .case-card { min-height: 540px; border-radius: 20px; }
    .case-card::before { height: 210px; }
    .case-cover { min-height: 210px; padding: 14px 14px 18px; }
    .case-cover-top { gap: 8px; }
    .case-card h3 { font-size: 1.24rem; max-width: 100%; }
    .case-body { padding: 0; gap: 0; max-width: 100%; }
    .case-row { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .case-row-icon { width: 34px; height: 34px; margin-top: 0; }
    .case-row-icon-svg { width: 29px; height: 29px; stroke-width: 1.75; }
    .case-row-copy h4 { font-size: 0.98rem; margin-bottom: 5px; }
    .case-row-copy p { font-size: 0.88rem; line-height: 1.36; max-width: 100%; }
    .case-chips { gap: 6px; }
    .case-chips-cover { width: 100%; justify-content: flex-start; margin-left: 0; max-width: 100%; }
    .case-cover-top { flex-wrap: wrap; }
    .case-chips span { min-width: 0; font-size: 0.82rem; padding: 8px 9px; line-height: 1.15; white-space: nowrap; }
    .case-details { padding-bottom: 56px; }
    .case-chips-footer {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
    }
    .cases-nav-prev, .cases-nav-next { display: none !important; }

    .testimonial-card { height: 280px; padding: 16px; }
    .testimonial-headline { margin-bottom: 10px; gap: 10px; align-items: center; }
    .testimonial-quote-icon { font-size: 42px; transform: translateY(-2px); }
    .testimonial-author { font-size: 1.02rem; line-height: 1.45; transform: translateY(-10px); max-width: calc(100% - 60px); }
    .testimonial-quote { font-size: 1rem; line-height: 1.46; }
    .reviews-cta-content { flex-direction: column; align-items: flex-start; }
    .reviews-cta-copy { max-width: 100%; }
    .reviews-cta-block h3 { font-size: 1.4rem; }
    .reviews-cta-actions { width: 100%; }
    .reviews-cta-actions .cta-button { width: 100%; min-width: 0; }
    .testimonials-bottom-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .testimonials-pagination {
        width: 100% !important;
        text-align: center;
    }
    .testimonial-public-link { align-self: center; }
    .testimonial-public-link { font-size: 0.94rem; }
    .reviews-cta-actions .cta-link-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .reviews-cta-copy p { font-size: 0.95rem; }
    #faq { padding-top: 64px; }
    .faq-subtitle { font-size: 0.93rem; }
    .faq-item summary { padding: 14px 2px; }
    .faq-question { font-size: 0.97rem; }
    .faq-answer { padding: 0 2px 14px; }
    .faq-answer p { font-size: 0.91rem; }
    .testimonials-nav-prev, .testimonials-nav-next { display: none !important; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-slogan { font-size: 1rem; }
    .gallery-slider { height: 200px; }
    .why-us-grid { grid-template-columns: 1fr; }
    .header .container, .header-inner { padding: 0 15px; }
    :root { --header-height-offset: 102px; }
    #review-modal .modal-content {
        margin-top: 3vh;
        max-height: calc(100vh - 24px);
    }
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ ГЕРОЯ ===== */
.hero-offer {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 1rem auto;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.hero-offer i {
    color: var(--primary-accent);
    margin: 0 4px;
}

.hero-offer .divider {
    color: var(--primary-accent);
    opacity: 0.7;
    font-weight: 300;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 auto 2rem auto;
    max-width: 800px;
    text-align: center;
}

.about-subtitle strong {
    color: var(--text-light);
}

/* Адаптив для оффера */
@media (max-width: 768px) {
    .hero-offer {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    .hero-offer .divider {
        display: none;
    }
}


#about .container {
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
}
.about-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 50px;
    width: 100%;
    margin: 30px auto 0;
}
.about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.about-item i {
    font-size: 1.6rem;
    color: var(--primary-accent);
    margin-bottom: 4px;
}
.about-item h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 6px;
}
.about-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--primary-accent);
    transition: transform 0.3s ease;
}
.about-item h3:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.about-item p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    width: 100%;
    max-width: 100%;
}
@media (max-width: 768px) {
    .about-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.about-svg-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-accent);
    margin-bottom: 6px;
    display: inline-block;
}
