/* GLOBAL STYLES & VARIABLES */
:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --white: #ffffff;
    --container: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn--outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.logo__icon {
    color: var(--accent);
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
}

.nav__link:hover {
    color: var(--accent);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* FOOTER */
.footer {
    background: var(--bg-alt);
    padding: 80px 0 30px;
    border-top: 1px solid #e2e8f0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__desc {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer__title {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer__contact i {
    color: var(--accent);
    width: 18px;
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav { display: none; }
    .burger { display: flex; }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .header__btn { display: none; }
}
/* HERO SECTION STYLES */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 50%);
    overflow: hidden;
}

.hero__bg-decor {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__title {
    font-size: clamp(2.0rem, 5vw, 4rem);
    margin-bottom: 24px;
    font-weight: 800;
}

.text-accent {
    color: var(--accent);
    position: relative;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn--link {
    gap: 8px;
    color: var(--primary);
}

.btn--link:hover {
    color: var(--accent);
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item__num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item__text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* VISUAL ELEMENT */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    width: 300px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.visual-card__header {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.line { height: 8px; background: #f1f5f9; border-radius: 4px; margin-bottom: 12px; }
.short { width: 40%; }
.long { width: 90%; }
.medium { width: 65%; }

.accent-block {
    margin-top: 30px;
    background: var(--primary);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accent-block__title { color: var(--white); font-size: 0.75rem; }
.accent-block__val { color: var(--accent); font-weight: 700; }

.floating-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    filter: blur(60px);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        order: 2;
    }
    .hero__visual {
        order: 1;
        margin-bottom: 40px;
    }
    .hero__subtitle, .hero__actions, .hero__stats {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__actions { justify-content: center; }
}
/* COMMON SECTION STYLES */
.expertise, .strategies {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 600px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* EXPERTISE GRID */
.expertise__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--accent);
}

.expertise-card__icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 25px;
    transition: var(--transition);
}

.expertise-card:hover .expertise-card__icon {
    background: var(--accent);
    color: var(--white);
}

.expertise-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.expertise-card__text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.expertise-card__link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* STRATEGIES SECTION */
.strategies {
    background: var(--bg-alt);
}

.strategies__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.strategy-steps {
    margin: 40px 0;
}

.step-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.step-item__num {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.step-item:hover .step-item__num {
    color: var(--accent);
}

.step-item__title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-item__text {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .strategies__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .strategies__image {
        max-width: 500px;
        margin: 0 auto;
    }
}
/* CASES SLIDER */
.cases { background: #fff; }

.cases-slider {
    padding-bottom: 60px;
    overflow: visible;
}

.case-slide {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background: var(--bg-alt);
    border-radius: 24px;
    overflow: hidden;
    height: auto;
    align-items: center;
}

.case-slide__image {
    position: relative;
    height: 400px;
}

.case-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-slide__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.case-slide__content {
    padding: 40px;
}

.case-slide__title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.case-slide__text {
    color: var(--text-light);
    margin-bottom: 25px;
}

.case-slide__stats {
    display: flex;
    gap: 30px;
}

.case-slide__stats strong {
    display: block;
    color: var(--primary);
    font-size: 1.2rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.swiper-button-next, .swiper-button-prev {
    position: static;
    width: 50px;
    height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: var(--primary) !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
}

/* INSIGHTS CIRCLES */
.insights { background: var(--primary); color: #fff; }
.insights .section-title { color: #fff; }
.insights .section-subtitle { color: #94a3b8; }

.insights__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
}

.insight-circle {
    width: 280px;
    height: 280px;
    perspective: 1000px;
}

.insight-circle__inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.insight-circle:hover .insight-circle__inner {
    background: var(--accent);
    transform: scale(1.1);
    border-radius: 20px; /* Превращается в квадрат со скруглением */
    border-color: var(--accent);
}

.insight-circle__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: 0.4s;
}

.insight-circle__preview i { width: 40px; height: 40px; }

.insight-circle__full {
    position: absolute;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.insight-circle:hover .insight-circle__preview {
    opacity: 0;
    transform: translateY(-20px);
}

.insight-circle:hover .insight-circle__full {
    opacity: 1;
    transform: translateY(0);
}

.insight-circle__full h4 { color: #fff; margin-bottom: 10px; }
.insight-circle__full p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 15px; }

.btn-mini {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .case-slide { grid-template-columns: 1fr; }
    .case-slide__image { height: 250px; }
    .insight-circle { width: 240px; height: 240px; }
}
/* MOBILE MENU OVERLAY */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: var(--transition);
    }
    .nav.active { right: 0; }
    .nav__list { flex-direction: column; gap: 25px; }
    .nav__link { color: #fff; font-size: 1.5rem; }
    
    .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .burger.active span { background: #fff; }
}

/* CONTACT FORM */
.contact { padding: 100px 0; background: var(--bg-alt); }
.contact__container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.contact__item { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.contact__icon { width: 50px; height: 50px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.form { background: var(--white); padding: 40px; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.form__group { margin-bottom: 20px; }
.form__input { width: 100%; padding: 14px 20px; border: 1px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form__input:focus { outline: none; border-color: var(--accent); background: #f8fafc; }

.form__captcha { margin: 20px 0; padding: 15px; background: var(--bg-alt); border-radius: 10px; display: flex; align-items: center; gap: 15px; }
.form__captcha label { font-size: 0.9rem; font-weight: 600; }
.form__captcha .form__input { width: 100px; padding: 8px; }

.form__checkbox { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 25px; }
.form__btn { width: 100%; justify-content: center; }

.form__status { margin-top: 20px; padding: 15px; border-radius: 10px; display: none; text-align: center; font-weight: 600; }
.form__status.success { display: block; background: #dcfce7; color: #166534; }
.form__status.error { display: block; background: #fee2e2; color: #991b1b; }

/* COOKIE POPUP */
.cookie-popup { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(150%); width: 90%; max-width: 500px; background: var(--primary); color: #fff; padding: 20px; border-radius: 16px; z-index: 9999; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.cookie-popup.active { transform: translateX(-50%) translateY(0); }
.cookie-popup__content { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.cookie-popup p { font-size: 0.85rem; line-height: 1.4; }
.cookie-popup a { text-decoration: underline; }
.btn--sm { padding: 8px 16px; font-size: 0.8rem; }

@media (max-width: 768px) {
    .contact__container { grid-template-columns: 1fr; }
    .cookie-popup__content { flex-direction: column; text-align: center; }
}
/* CASES STATIC GRID */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.case-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--accent);
}

.case-card__image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-card__image img {
    transform: scale(1.05);
}

.case-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.case-card__content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.case-card:hover .case-card__title {
    color: var(--accent);
}

.case-card__text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.case-card__stats {
    margin-top: auto;
    display: flex;
    gap: 40px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.case-card__stats .stat {
    display: flex;
    flex-direction: column;
}

.case-card__stats strong {
    font-size: 1.2rem;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.case-card__stats span {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Адаптив для мобилок */
@media (max-width: 992px) {
    .cases__grid {
        grid-template-columns: 1fr;
    }
    .case-card__image {
        height: 250px;
    }
}
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: #0f172a; /* Глубокий темный фон */
    overflow: hidden;
    color: #fff;
}

/* Светящиеся пятна на фоне */
.hero__glow-1, .hero__glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}
.hero__glow-1 { top: -100px; right: -100px; background: #3b82f6; }
.hero__glow-2 { bottom: 10%; left: -100px; background: #6366f1; }

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px #3b82f6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.hero__title {
    font-size: clamp(2.0rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 500px;
    margin-bottom: 40px;
}

.btn--glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}
.btn--glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Стеклянная статистика */
.hero__stats-grid {
    display: flex;
    gap: 20px;
}

.stat-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 30px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.stat-glass__num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.stat-glass__label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Визуал справа */
.main-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
}

.main-card__chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    margin-bottom: 20px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px;
    animation: grow 1.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__content { order: 2; }
    .hero__visual { order: 1; margin-bottom: 50px; display: flex; justify-content: center; }
    .hero__subtitle, .hero__actions, .hero__stats-grid { margin-left: auto; margin-right: auto; justify-content: center; }
}
/* Обновленный Header для темного фона */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

/* Текст и логотип белые, пока мы вверху (на темном Hero) */
.header .logo__text, 
.header .nav__link {
    color: #ffffff;
}

.header .logo__icon {
    color: var(--accent); /* Синяя иконка остается яркой */
}

/* Кнопка в хедере на темном фоне */
.header .btn--outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.header .btn--outline:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Стили при скролле (белая подложка — черный текст) */
.header--scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header--scrolled .logo__text,
.header--scrolled .nav__link {
    color: var(--primary); /* Возвращаем темный цвет текста */
}

.header--scrolled .btn--outline {
    border-color: var(--accent);
    color: var(--accent);
}

/* Бургер-меню (белое на темном фоне) */
.burger span {
    background: #ffffff;
}

.header--scrolled .burger span {
    background: var(--primary);
}
/* Принудительный белый цвет для Hero контента */
.hero__title {
    color: #ffffff !important;
}

.hero__subtitle {
    color: #94a3b8 !important; /* Светло-серый для читаемости */
}

.badge-text {
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* Стили для кнопок в Hero */
.btn--primary {
    background: var(--accent);
    color: #ffffff !important;
}

.btn--glass {
    color: #ffffff !important;
}
/* Гарантируем, что секции после Hero имеют свой фон */
.expertise {
    background: #ffffff;
    position: relative;
    z-index: 5; /* Чтобы она перекрывала вылетающие из Hero элементы при скролле */
}
/* STYLES FOR LEGAL PAGES (privacy.php, cookies.php, etc.) */
.pages {
    padding: 160px 0 100px;
    background: var(--bg-alt);
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Узкая колонка для удобства чтения текста */
    background: #ffffff;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.pages h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--primary);
}

.pages p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.pages ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.pages ul li {
    list-style: disc;
    margin-bottom: 10px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .pages { padding: 120px 0 60px; }
    .pages .container { padding: 30px; border-radius: 0; }
    .pages h1 { font-size: 1.6rem; }
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-card:hover {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.contact-card__icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.contact-card__icon svg {
    width: 32px;
    height: 32px;
}

.contact-card h2 {
    font-size: 1.25rem;
    margin-bottom: 15px !important; /* перебиваем общий стиль h2 в .pages */
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}
/* DISCLAIMER STYLES */
.legal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.legal-header h1 {
    margin-bottom: 0 !important; /* Убираем нижний отступ, чтобы выровнять с иконкой */
}

.warning-icon {
    color: #ef4444; /* Красный цвет для привлечения внимания */
    width: 36px;
    height: 36px;
}

.legal-block {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-block p {
    margin-bottom: 0 !important;
}

.legal-block strong {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    margin-bottom: 8px;
}

/* Выделенный блок с рисками */
.risk-warning {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
}

.risk-warning strong {
    color: #ef4444;
}

.agreement {
    background: var(--bg-alt);
    padding: 20px 25px;
    border-radius: 12px;
}
/* PRIVACY POLICY STYLES */
.terminology-list {
    margin-bottom: 30px;
    padding-left: 0 !important; /* Убираем стандартный отступ списка */
}

.terminology-list li {
    list-style: none !important;
    background: var(--bg-alt);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.terminology-list strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

/* Сетка для типов данных */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.data-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.data-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.data-item i {
    color: var(--accent);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.data-item strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.data-item span {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

/* Контакты в конце политики */
.contact-footer-policy {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.policy-mail {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
}

.policy-mail:hover {
    background: var(--accent);
    color: #ffffff;
}

@media (max-width: 768px) {
    .data-grid { grid-template-columns: 1fr; }
}
/* PRIVACY POLICY CUSTOM STYLES */
.policy-hero-card {
    background: linear-gradient(135deg, var(--bg-alt) 0%, #ffffff 100%);
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.policy-hero-card p {
    margin: 0 !important;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

.policy-notice {
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.policy-notice p { margin: 0 !important; }

.storage-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0 30px;
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.storage-item i {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.storage-item strong {
    color: var(--primary);
}

.data-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0 40px;
}

.data-box {
    background: var(--bg-alt);
    border: 1px solid transparent;
    padding: 30px;
    border-radius: 16px;
    transition: var(--transition);
}

.data-box:hover {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.data-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.data-box h3 i {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.data-box ul {
    padding-left: 0;
}

.data-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    list-style: none !important;
    color: var(--text-light);
}

.data-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.rights-block {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 20px;
    margin-top: 50px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.contact-btn {
    display: inline-block;
    background: var(--accent);
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}
/* REFUND POLICY STYLES */
.refund-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.refund-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.refund-card:hover {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.refund-card i {
    color: var(--accent);
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
}

.refund-card h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.refund-card p {
    font-size: 0.95rem;
    margin-bottom: 0 !important;
}

.procedure-block {
    background: var(--white);
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.steps-mini {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.step-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-alt);
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 500;
}

.step-mini span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-mini a {
    color: var(--accent);
    text-decoration: underline;
}

.warning-block {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 30px;
    border-radius: 0 16px 16px 0;
    margin: 40px 0;
}

.warning-block h2 {
    color: #ef4444 !important;
    margin-top: 0 !important;
}

.warning-block .legal-list li {
    color: #7f1d1d;
}
/* TERMS & CONDITIONS STYLES */
.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.property-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-alt);
    padding: 25px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.property-block i {
    color: var(--accent);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 5px;
}

.property-block p {
    margin: 0 !important;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

.terms-accent {
    border-color: var(--primary) !important; /* Делаем акцентную полосу строгой (темной) */
}