/* Техник Ремонт - Современный дизайн */

/* Accessibility - Screen Reader Only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ===== 2025 RESPONSIVE SYSTEM (GOLD STANDARD) ===== */
:root {
    --bg-dark: #0f1419;
    --bg-blue-dark: #1a2332;
    --bg-blue: #2a3f5f;
    --accent-blue: #2563eb;
    --accent-blue-light: #3b82f6;
    --accent-gold: #d4af37;
    --text-silver: #c0c5ce;
    --text-white: #ffffff;
    --text-gray: #8b92a0;
    --text-dark: #1e293b;
    
    /* ===== FLUID DESIGN SYSTEM ===== */
    /* Mobile First + Fluid всё */
    
    /* Fluid Typography (auto-scales) */
    --fs-xs: clamp(0.75rem, 1vw + 0.5rem, 0.875rem);
    --fs-sm: clamp(0.875rem, 1vw + 0.6rem, 1rem);
    --fs-base: clamp(1rem, 1vw + 0.75rem, 1.125rem);
    --fs-lg: clamp(1.125rem, 1vw + 0.875rem, 1.5rem);
    --fs-xl: clamp(1.25rem, 1.5vw + 1rem, 2rem);
    --fs-2xl: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    --fs-3xl: clamp(2.25rem, 3vw + 1rem, 3.5rem);
    --fs-4xl: clamp(2.75rem, 4vw + 1rem, 5rem);
    
    /* Fluid Spacing (perfect for any screen) */
    --space-3xs: clamp(0.25rem, 0.25vw + 0.125rem, 0.375rem);
    --space-2xs: clamp(0.5rem, 0.5vw + 0.25rem, 0.75rem);
    --space-xs: clamp(0.75rem, 0.75vw + 0.375rem, 1.125rem);
    --space-sm: clamp(1rem, 1vw + 0.5rem, 1.5rem);
    --space-md: clamp(1.5rem, 1.5vw + 0.75rem, 2.25rem);
    --space-lg: clamp(2rem, 2vw + 1rem, 3rem);
    --space-xl: clamp(3rem, 3vw + 1.5rem, 4.5rem);
    --space-2xl: clamp(4rem, 4vw + 2rem, 6rem);
    
    /* Container = fluid by default */
    --container-width: min(100% - 2rem, 1200px);
    --container-width-wide: min(100% - 2rem, 1400px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-blue-dark) 50%, var(--bg-blue) 100%);
    background-attachment: fixed;
    color: var(--text-silver);
    line-height: 1.6;
    min-height: 100vh;
}

/* Контейнер */
/* 2025 ЗОЛОТОЙ СТАНДАРТ ДЛЯ ПК */
.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
}


/* ===== 2025 BREAKPOINT SYSTEM ===== */
/* Mobile First + Container Queries + Touch/Hover Detection */

/* Mobile = до 768px */
/* Tablet+ = 768px+ (используют desktop layout) */
/* Desktop = 1024px+ */

/* ===== TOUCH vs HOVER DETECTION ===== */
/* На тач-устройствах упрощаем интеракцию */
@media (hover: hover) and (pointer: fine) {
    /* Только для десктопов с мышью */
    .logo:hover {
        transform: translateY(-2px);
    }
    
    .logo:hover .logo__avatar img {
        border-color: var(--accent-gold);
        box-shadow: 0 4px 16px rgba(234, 179, 8, 0.4);
    }
    
    .nav__list a:hover {
        color: var(--text-white);
    }
    
    .nav__list a:hover::after {
        width: 100%;
    }
    
    .hero__cta-image:hover img {
        transform: translateY(-5px);
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
    }
}

@media (hover: none) {
    /* На тач-устройствах убираем все hover эффекты */
    .logo:hover {
        transform: none;
    }
    
    .hero__cta-image:hover img {
        transform: none;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    }
}

/* Container Queries для компонентов */
@container (min-width: 500px) {
    .card {
        grid-template-columns: auto 1fr;
        gap: var(--space-lg);
    }
}

@container (min-width: 768px) {
    .nav__list {
        gap: var(--space-lg);
    }
}

/* Header */
.header {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding-top: max(var(--space-sm), env(safe-area-inset-top));
    padding-left: max(var(--space-sm), env(safe-area-inset-left));
    padding-right: max(var(--space-sm), env(safe-area-inset-right));
}

.header .container {
    padding-left: 0;
    padding-right: 1rem;
    max-width: none;
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1vw, 20px);
}

.header__left {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 36px);
    flex: 0 0 auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 48px);
    flex-wrap: nowrap;
}

.header__right {
    display: none;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: clamp(8px, 2vw, 16px);
    margin: 0;
    padding: 0;
}

.social-links__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    transition: transform 0.2s ease;
    width: clamp(40px, 9vw, 64px);
    height: clamp(40px, 9vw, 64px);
}

.social-links__link img {
    display: block;
    width: 100%;
    height: 100%;
}

.social-links__link:hover {
    transform: scale(1.05);
}

.smartcaptcha-container {
    margin: var(--space-sm) 0;
}

.honeypot-wrapper {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.honeypot-field {
    position: absolute !important;
    left: -10000px !important;
    opacity: 0 !important;
    height: 1px !important;
    width: 1px !important;
    pointer-events: none !important;
}

.header-social-bar {
    padding: var(--space-sm) 0;
}

.header-social-bar__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 32px);
    padding: 0 clamp(16px, 4vw, 48px);
    flex-wrap: wrap;
}

.header-social-bar__label {
    font-size: var(--fs-sm);
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-social-bar__links {
    display: flex;
    align-items: center;
}

.header-social-bar__list {
    gap: clamp(8px, 2vw, 18px);
    width: 100%;
}

@media (max-width: 768px) {
    .header-social-bar__label {
        width: 100%;
        text-align: center;
    }
    
    .header-social-bar__container {
        flex-direction: column;
    }
}

.header__controls {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

.header__call {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.5));
    box-shadow: 0 6px 14px rgba(30, 64, 175, 0.35);
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header__call:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.45);
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-lg);
    font-weight: 900;
    color: var(--text-silver);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.logo__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    display: block;
}

.logo__text span {
    color: var(--accent-blue);
}

.nav {
    flex-shrink: 0;
    margin-left: clamp(24px, 5vw, 80px);
}

.nav__list {
    display: flex;
    flex-direction: row;
    gap: clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav__list a {
    color: var(--text-silver);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(12px, 1.2vw, 15px);
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.1vw, 0.8px);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue-light), var(--accent-gold));
    transition: width 0.3s ease;
}

.nav__list a:hover {
    color: var(--text-white);
}

.nav__list a:hover::after {
    width: 100%;
}

.burger-menu {
    flex-shrink: 0;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.burger-menu span {
    width: 22px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.burger-menu span:nth-child(1) {
    margin-top: -8px;
}

.burger-menu span:nth-child(3) {
    margin-top: 8px;
}

.burger-menu.active span:nth-child(1) {
    margin-top: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    margin-top: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.header__phone {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.phone-link:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
}

.phone-number {
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .header__left {
        padding-left: 2rem;
        gap: clamp(12px, 1.5vw, 24px);
    }
    
    .phone-link {
        padding: 14px 24px;
        font-size: 17px;
    }
    
    .header .container {
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .header__left {
        padding-left: 1.5rem;
        gap: clamp(10px, 1.2vw, 20px);
    }
    
    .phone-link {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .header .container {
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header__right {
        display: block;
    }

    .floating-phone {
        display: none;
    }
    
    .burger-menu {
        display: none;
    }
    
    .nav {
        margin-left: clamp(32px, 6vw, 120px);
    }
}

@media (max-width: 1023px) {
    .header__right {
        display: none;
    }

    .header__controls {
        display: flex;
    }
    
    .floating-phone {
        display: block;
    }
    
    .floating-phone__button {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
    
    .burger-menu {
        display: inline-flex;
    }

    .header__call {
        display: inline-flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        margin-left: 0;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-md);
        text-align: center;
        width: 100%;
    }
    
    .header {
        padding: var(--space-xs) 0;
    }
    
    .logo a {
        font-size: var(--fs-base);
        letter-spacing: 1px;
        gap: var(--space-2xs);
    }
    
    .logo__avatar img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .phone-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .floating-phone {
        bottom: 16px;
        right: 16px;
    }
}

/* FLOATING КНОПКА ЗВОНКА */
.floating-phone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: block; /* По умолчанию видна */
}

.floating-phone__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-phone__button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    color: white;
}

.floating-phone__icon {
    color: currentColor;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4), 0 0 0 10px rgba(40, 167, 69, 0.1);
    }
    100% {
        box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    }
}

/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНА */

@media (min-width: 1024px) {
    .floating-phone {
        display: none;
    }
}

@media (max-width: 1023px) {
    .floating-phone {
        display: block;
    }
    
    .floating-phone__button {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .phone-link {
        padding-right: 12px;
    }
    
    .floating-phone {
        bottom: 16px;
        right: 16px;
    }
}


/* Навигация */
.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

/* ТИПОГРАФИКА ПОД БОЛЬШИЕ ЭКРАНЫ */
.nav__list a {
    color: var(--text-silver);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(12px, 1.2vw, 15px);
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.1vw, 0.8px);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

/* Hero Section */
.hero {
    min-height: clamp(460px, 40vw, 900px);
    position: relative;
    overflow: hidden;
    background-image: url('../images/hero/hero-desktop.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    padding: 0;
    background-color: #0b111d;
}

.hero .container {
    position: relative;
    width: 100%;
    min-height: clamp(460px, 40vw, 900px);
    z-index: 50;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* ===== RESPONSIVE HERO CONTENT ===== */
.hero__content {
    position: absolute;
    bottom: clamp(50px, 4vw, 130px);
    left: clamp(80px, 15vw, 360px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
    z-index: 100;
}

.hero__cta-image {
    cursor: pointer;
    max-width: clamp(220px, 24vw, 380px);
    width: 100%;
    position: relative;
    z-index: 150;
    display: block;
}

.hero__cta-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
    transition: all 0.3s ease;
    display: block;
}


/* Флюидные стили заменяют все конкретные брейкпоинты */
/* clamp() автоматически масштабирует */

/* Mobile Hero - мобильные стили */
@media (max-width: 768px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        /* overflow-x: hidden; - REMOVED: breaks sticky positioning */
    }
    
    .main {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .hero {
        background-image: url('../images/hero/hero-mobile.webp');
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        height: 80vh;
        min-height: 450px;
        max-height: 600px;
    }
    

    .hero .container {
        position: relative;
        width: 100%;
        height: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
        z-index: 2;
    }

    .hero__content {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: min(90%, 340px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    .hero__cta-image {
        max-width: clamp(240px, 68vw, 320px);
        margin: 0 auto;
        display: block;
    }
    
    .hero__cta-image img {
        width: 100%;
        margin: 0 auto;
        display: block;
    }
}


/* Кнопки */
/* ===== RESPONSIVE BUTTON SYSTEM ===== */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    background: var(--accent-blue);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: var(--fs-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    min-width: fit-content;
}

/* Responsive button sizing */
@media (max-width: 768px) {
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--fs-sm);
    }
}

.btn:hover {
    background: var(--accent-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
}


/* Grid Layouts */
.services__grid,
.cities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: var(--space-xl) 0;
}


.page-header + .services {
    padding-top: clamp(20px, 3vw, 40px);
}

.page-header + .services .services__grid {
    margin-top: clamp(16px, 2vw, 32px);
}

/* Workflow Section */
/* ===== WORKFLOW - ОХУЕННЫЙ СТИЛЬ ===== */
.workflow {
    padding: clamp(60px, 8vw, 120px) 0;
    position: relative;
}




.workflow__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.workflow__header h2 {
    font-size: clamp(28px, 5vw, 48px);
    color: var(--text-white);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.workflow__header p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-silver);
    margin: 0;
    line-height: 1.6;
}

.workflow__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3vw, 40px);
    position: relative;
}

/* Соединительные линии между карточками */
.workflow__steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.3) 20%, 
        rgba(212, 175, 55, 0.6) 50%, 
        rgba(212, 175, 55, 0.3) 80%, 
        transparent 100%);
    z-index: 0;
    animation: flow 3s ease-in-out infinite;
}

@keyframes flow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.workflow-card {
    background: linear-gradient(145deg, 
        rgba(26, 35, 50, 0.9) 0%, 
        rgba(42, 63, 95, 0.8) 50%,
        rgba(26, 35, 50, 0.9) 100%) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    border-radius: 24px !important;
    padding: clamp(28px, 4vw, 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(20px, 3vw, 28px) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 280px !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.workflow-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.8) 0%,
        rgba(37, 99, 235, 0.6) 50%,
        rgba(212, 175, 55, 0.8) 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.workflow-card::after {
    content: attr(data-step);
    position: absolute;
    top: clamp(16px, 2vw, 24px);
    right: clamp(20px, 3vw, 32px);
    font-size: clamp(60px, 10vw, 90px);
    font-weight: 900;
    color: rgba(212, 175, 55, 0.08);
    letter-spacing: -0.02em;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 0;
}

.workflow-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.workflow-card:hover::before {
    opacity: 1;
}

.workflow-card:hover::after {
    color: rgba(212, 175, 55, 0.15);
    transform: scale(1.1) translateY(-4px);
}

.workflow-card > * {
    position: relative;
    z-index: 2;
}

.workflow-card__icon {
    width: clamp(80px, 10vw, 100px);
    height: clamp(80px, 10vw, 100px);
    border-radius: 24px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.workflow-card:hover .workflow-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(212, 175, 55, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.workflow-card__icon svg,
.workflow-card__icon img {
    width: clamp(40px, 6vw, 56px);
    height: clamp(40px, 6vw, 56px);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.workflow-card:hover .workflow-card__icon svg,
.workflow-card:hover .workflow-card__icon img {
    transform: scale(1.1);
}

.workflow-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    flex: 1;
}

.workflow-card__step {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin: 0;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.2), 
        rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    white-space: nowrap;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.workflow-card h3 {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 24px);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-break: normal;
    hyphens: manual;
    overflow-wrap: normal;
    word-wrap: normal;
}

.workflow-card__text {
    margin: 0;
    color: var(--text-silver);
    line-height: 1.6;
    font-size: clamp(14px, 1.8vw, 16px);
    opacity: 0.9;
    word-break: normal;
    hyphens: manual;
    overflow-wrap: normal;
    word-wrap: normal;
}

/* Планшеты - 2x2 сетка */
@media (max-width: 768px) {
    .workflow {
        padding: clamp(48px, 7vw, 80px) 0;
    }
    
    .workflow__steps::before {
        display: none;
    }
    
    .workflow__steps {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: clamp(20px, 4vw, 32px);
    }
    
    .workflow-card {
        min-height: 240px;
        padding: clamp(24px, 4vw, 32px);
    }
    
    .workflow-card__icon {
        width: clamp(72px, 9vw, 88px);
        height: clamp(72px, 9vw, 88px);
    }
    
    .workflow-card__icon svg,
    .workflow-card__icon img {
        width: clamp(36px, 5vw, 44px);
        height: clamp(36px, 5vw, 44px);
    }
    
    .workflow-card h3 {
        font-size: clamp(16px, 2.5vw, 22px);
    }
    
    .workflow-card__text {
        font-size: clamp(13px, 2vw, 15px);
    }
}

/* Мобильные - 1 колонка с охуенным дизайном */
@media (max-width: 480px) {
    .workflow {
        padding: clamp(40px, 8vw, 60px) 0;
        background: linear-gradient(180deg, 
            rgba(15, 20, 25, 0.98) 0%, 
            rgba(26, 35, 50, 0.95) 50%,
            rgba(15, 20, 25, 0.98) 100%);
    }
    
    .workflow::before {
        background: 
            radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.15), transparent 60%),
            radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.1), transparent 50%);
    }
    
    .workflow__header {
        margin-bottom: clamp(32px, 6vw, 48px);
    }
    
    .workflow__eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.25em;
    }
    
    .workflow__header h2 {
        font-size: clamp(22px, 6vw, 32px);
    }
    
    .workflow__header p {
        font-size: clamp(14px, 3vw, 18px);
    }
    
    .workflow__steps {
        grid-template-columns: 1fr;
        gap: clamp(16px, 4vw, 24px);
        max-width: 350px;
        margin: 0 auto;
    }
    
    .workflow-card {
        min-height: 200px;
        padding: clamp(20px, 5vw, 28px);
        border-radius: 20px;
        gap: clamp(16px, 4vw, 20px);
        position: relative;
    }
    
    .workflow-card::after {
        font-size: clamp(40px, 12vw, 60px);
        top: 12px;
        right: 16px;
        color: rgba(212, 175, 55, 0.1);
    }
    
    .workflow-card:hover::after {
        color: rgba(212, 175, 55, 0.2);
    }
    
    .workflow-card__icon {
        width: clamp(88px, 18vw, 110px);
        height: clamp(88px, 18vw, 110px);
        border-radius: 24px;
        margin-bottom: 8px;
    }
    
    .workflow-card__icon svg,
    .workflow-card__icon img {
        width: clamp(48px, 10vw, 60px);
        height: clamp(48px, 10vw, 60px);
    }
    
    .workflow-card__step {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        padding: 6px 12px;
    }
    
    .workflow-card h3 {
        font-size: clamp(16px, 4vw, 20px);
        line-height: 1.25;
    }
    
    .workflow-card__text {
        font-size: clamp(12px, 3.5vw, 14px);
        line-height: 1.5;
        opacity: 0.95;
    }
    
    /* Специальный эффект для мобильных */
    .workflow-card:hover {
        transform: translateY(-4px);
    }
    
    .workflow-card:hover .workflow-card__icon {
        transform: scale(1.05) rotate(3deg);
    }
}



/* ===== BLOG CARDS - Desktop Grid / Mobile Stacking ===== */
.stack-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: clamp(22px, 3vw, 42px);
    align-items: stretch;
    justify-items: center;
}

.stack-cards__item {
    position: relative;
}


.blog-card {
    --blog-card-padding: 12px 12px 14px;
    background: #1c263d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(3, 6, 18, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 355px;
    width: 100%;
    max-width: 360px;
    color: #fff;
}

.blog-card--has-media {
    min-height: 355px;
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card__image {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    aspect-ratio: 16 / 9;
}

.blog-card__content {
    padding: var(--blog-card-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
    background: linear-gradient(180deg, rgba(28, 36, 59, 0.96), rgba(13, 19, 33, 0.98));
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}



.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(3, 6, 18, 0.45);
    border-color: rgba(37, 99, 235, 0.35);
}

@media (min-width: 769px) and (max-width: 1023px) {
    .stack-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .stack-cards {
        grid-template-columns: repeat(4, minmax(360px, 1fr));
        justify-items: center;
        gap: clamp(20px, 2.5vw, 32px);
    }
}

/* Mobile layout for cards */
@media (max-width: 768px) {
    .stack-cards {
        grid-template-columns: 1fr;
        gap: clamp(20px, 6vw, 32px);
        padding: 0 clamp(14px, 6vw, 24px);
    }

    .stack-cards__item {
        width: 100%;
        max-width: 100%;
    }

    .stack-cards__item .blog-card,
    .stack-cards__item.stack-cards__item--page .blog-card {
        border-radius: 28px;
        box-shadow: 0 12px 28px rgba(3, 6, 18, 0.35);
    }

    .stack-cards__item .blog-card__image,
    .stack-cards__item.stack-cards__item--page .blog-card__image {
        height: clamp(180px, 34vh, 260px);
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
    }

    .stack-cards__item .blog-card__content,
    .stack-cards__item.stack-cards__item--page .blog-card__content {
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
        padding: clamp(12px, 4vw, 18px);
        gap: clamp(8px, 3vw, 14px);
    }

    .stack-cards__item .blog-card__excerpt,
    .stack-cards__item.stack-cards__item--page .blog-card__excerpt {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

@media (min-width: 769px) {
    .blog-card--has-media {
        height: 355px;
    }

}



/* Service Card */
.service-card,
.city-card {
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-gold) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 15px;
    margin-bottom: 20px;
    opacity: 0;
    clip-path: inset(0% 0% 0% 0%);
    display: block;
}

.service-card.is-visible img {
    animation: reveal-image 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Задержки для изображений в зависимости от номера карточки */
.service-card:nth-child(1).is-visible img {
    animation-delay: 0.1s;
}

.service-card:nth-child(2).is-visible img {
    animation-delay: 0.15s;
}

.service-card:nth-child(3).is-visible img {
    animation-delay: 0.2s;
}

.service-card:nth-child(4).is-visible img {
    animation-delay: 0.25s;
}

.service-card:nth-child(5).is-visible img {
    animation-delay: 0.3s;
}

.service-card:nth-child(6).is-visible img {
    animation-delay: 0.7s;
}

.service-card h3 {
    font-size: clamp(18px, 1vw + 12px, 24px);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.3;
    word-break: normal;
    hyphens: manual;
    overflow-wrap: normal;
    word-wrap: normal;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 18px;
    line-height: 1.5;
    font-size: clamp(14px, 0.8vw + 12px, 16px);
    word-break: normal;
    hyphens: manual;
    overflow-wrap: normal;
    word-wrap: normal;
}

.price {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: var(--fs-lg);
    margin-bottom: 15px;
}

/* Blog Preview Section */
.blog-preview {
    padding: var(--space-2xl) 0;
}

.blog-preview .container,
.city-breakdowns .container {
    max-width: 1800px !important;
}

.blog-preview h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-white);
}

.blog-preview .btn {
    display: block;
    width: fit-content;
    margin: 50px auto 0;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-preview .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.blog-preview__bottom {
    text-align: center;
}

.blog-preview .stack-cards {
    --stack-cards-offset: clamp(48px, 6vw, 96px);
}

.blog-preview .blog-card {
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(42, 63, 95, 0.9) 0%, rgba(26, 35, 50, 0.9) 100%);
    backdrop-filter: blur(20px);
    /* Removed transform properties to maintain sticky positioning */
}

/* Blog card author and content styles remain below */

.blog-card__author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.blog-card__author-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.blog-card__author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.blog-card__author-avatar--placeholder {
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.blog-card__author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.1;
}

.blog-card__author-name {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.blog-card__stats {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0;
}

.blog-card h2 {
    margin: 0 0 4px 0;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-white);
    text-transform: none;
    letter-spacing: normal;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--accent-blue-light);
}

.blog-card__excerpt {
    margin: 0;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.blog-card .btn {
    display: none;
}

/* Scroll-Driven Animations */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-scale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes reveal-fade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-slide-left {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reveal-slide-right {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image Reveal - "Открывающаяся занавеска" */
@keyframes reveal-image {
    from {
        opacity: 0;
        clip-path: inset(45% 20% 45% 20%);
    }
    to {
        opacity: 1;
        clip-path: inset(0% 0% 0% 0%);
    }
}

/* Элементы с анимацией при скролле */
.reveal,
.reveal-scale,
.reveal-fade,
.reveal-slide-left,
.reveal-slide-right {
    opacity: 0;
}

/* Исключение для cities-section - показываем сразу */
.cities-section .reveal,
.cities-section .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
}

.reveal.is-visible {
    animation: reveal-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-scale.is-visible {
    animation: reveal-scale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-fade.is-visible {
    animation: reveal-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-slide-left.is-visible {
    animation: reveal-slide-left 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-slide-right.is-visible {
    animation: reveal-slide-right 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Задержки для stagger эффекта */
.reveal:nth-child(1).is-visible,
.reveal-scale:nth-child(1).is-visible {
    animation-delay: 0s;
}

.reveal:nth-child(2).is-visible,
.reveal-scale:nth-child(2).is-visible {
    animation-delay: 0.05s;
}

.reveal:nth-child(3).is-visible,
.reveal-scale:nth-child(3).is-visible {
    animation-delay: 0.1s;
}

.reveal:nth-child(4).is-visible,
.reveal-scale:nth-child(4).is-visible {
    animation-delay: 0.15s;
}

.reveal:nth-child(5).is-visible,
.reveal-scale:nth-child(5).is-visible {
    animation-delay: 0.2s;
}

.reveal:nth-child(6).is-visible,
.reveal-scale:nth-child(6).is-visible {
    animation-delay: 0.25s;
}

/* Оптимизация для мобильных */
@media (max-width: 768px) {
    .reveal.is-visible,
    .reveal-scale.is-visible {
        animation-duration: 0.7s;
    }

    .reveal-fade.is-visible {
        animation-duration: 0.5s;
    }

    /* Уменьшаем задержки для мобильных */
    .reveal:nth-child(2).is-visible,
    .reveal-scale:nth-child(2).is-visible {
        animation-delay: 0.08s;
    }

    .reveal:nth-child(3).is-visible,
    .reveal-scale:nth-child(3).is-visible {
        animation-delay: 0.16s;
    }

    .reveal:nth-child(4).is-visible,
    .reveal-scale:nth-child(4).is-visible {
        animation-delay: 0.24s;
    }

    .reveal:nth-child(5).is-visible,
    .reveal-scale:nth-child(5).is-visible {
        animation-delay: 0.32s;
    }

    .reveal:nth-child(6).is-visible,
    .reveal-scale:nth-child(6).is-visible {
        animation-delay: 0.4s;
    }

    /* Уменьшаем дистанцию анимаций на мобильных */
    @keyframes reveal-up {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes reveal-scale {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(15px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}

/* Section Titles */
section h2 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-silver);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-align: center;
}

section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-gold) 100%);
    margin: 20px auto;
}

/* Убираем полоску у заголовков в карточках блога */
.blog-card h2::after {
    display: none;
}

/* Добавляем полоску в низ карточки */
.blog-card__content::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-gold) 100%);
    margin-top: auto;
    margin-bottom: 6px;
    margin-left: auto;
    margin-right: auto;
}


/* Footer */
.footer {
    background: rgba(15, 20, 25, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__section h3 {
    color: var(--text-white);
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__section p,
.footer__section ul,
.footer__section a {
    color: var(--text-gray);
    font-size: 14px;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 10px;
}

.footer__section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section a:hover {
    color: var(--accent-gold);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__developer a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer__developer a:hover {
    color: var(--accent-blue-light);
}

/* Page Header */
.page-header {
    padding: clamp(24px, 4vw, 60px) 0 clamp(12px, 3vw, 30px);
    text-align: center;
    background: rgba(26, 35, 50, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(8px, 2vw, 18px);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(234, 179, 8, 0.05) 0%, transparent 50%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(24px, 6vw, 48px);
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 3px);
    margin-bottom: clamp(8px, 1.5vw, 18px);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.page-header p {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--text-gray);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Blog Section */
.blog {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 35, 50, 0.95) 100%);
}

.breadcrumb {
    color: var(--text-gray);
    font-size: clamp(12px, 2.5vw, 14px);
    margin-top: clamp(8px, 2vw, 15px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.4;
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb span {
    white-space: nowrap;
}

/* Принудительно горизонтальная навигация для ПК */
@media (min-width: 769px) {
    .nav {
        flex-grow: 1 !important;
        display: flex !important;
        justify-content: center !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: none !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .nav__list {
        flex-direction: row !important;
        padding: 0 !important;
        gap: var(--space-lg) !important;
        text-align: left !important;
    }
    
}
/* General responsive styles */
@media (max-width: 768px) {
    section h2 {
        font-size: 32px;
    }
}

/* ГЛОБАЛЬНАЯ ЗАЩИТА ОТ ВЫХОДА ЗА ЭКРАН */
* {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

/* Только для мобилок - одна колонка */
@media (max-width: 600px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .service-card img {
        height: 320px;
    }
    
    
    .education {
        padding: 15px 0;
    }
    
    /* Страница статьи обучения */
    .education-detail {
        padding: 20px 0 !important;
    }
    
    .education-detail h1 {
        font-size: clamp(20px, 6vw, 32px) !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .education__meta {
        gap: 10px !important;
        margin: 15px 0 !important;
        flex-wrap: wrap !important;
    }
    
    .education__content {
        font-size: 16px !important;
        line-height: 1.6 !important;
        padding: 0 !important;
    }
    
    .education__content h2 {
        font-size: clamp(18px, 4vw, 24px) !important;
        margin: 1em 0 0.5em 0 !important;
    }
    
    .education__content h3 {
        font-size: clamp(16px, 3.5vw, 20px) !important;
    }
    
    .education__content p {
        margin: 0.8em 0 !important;
    }
    
    .education__video {
        margin: 20px 0 !important;
    }
    
    /* ДОПОЛНИТЕЛЬНЫЕ МОБИЛЬНЫЕ СТИЛИ */
    .page-header {
        padding: clamp(15px, 4vw, 25px) 0;
        margin-bottom: 10px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.blog-card {
    animation: fadeIn 0.6s ease-out;
}


/* CTA Section */
.cta {
    padding: 80px 0 60px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(234, 179, 8, 0.1) 0%, transparent 50%);
    opacity: 1;
}

.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.cta .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--text-silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    font-size: var(--fs-lg);
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    padding: 18px 50px;
    font-size: var(--fs-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--text-white);
    border: 2px solid rgba(37, 99, 235, 0.5);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cta .btn:hover::before {
    left: 100%;
}

.cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
    border-color: var(--accent-blue-light);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
    margin: clamp(30px, 6vw, 60px) 0;
    padding: clamp(20px, 4vw, 30px) 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 20px);
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(12px, 2.5vw, 14px);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pagination a:hover::before {
    opacity: 1;
}

.pagination a:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.pagination a span {
    position: relative;
    z-index: 2;
}

.pagination .current {
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 20px);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: clamp(12px, 2.5vw, 14px);
    background: rgba(234, 179, 8, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    backdrop-filter: blur(10px);
}

/* Form Validation */

form label {
    display: block;
    color: var(--text-silver);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

form input.error,
form textarea.error,
form select.error {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.05);
}


/* Blog Post Detail */
.blog-post {
    padding: 30px 0;
}

.blog-post__header {
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Блок автора */
.blog-post__author-block {
    margin-bottom: 30px;
}

.blog-post__author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-post__author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.blog-post__author-avatar--placeholder {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--fs-lg);
}

.blog-post__author-details {
    flex: 1;
}

.blog-post__author-name {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.blog-post__publish-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.blog-post__separator {
    opacity: 0.5;
}

.blog-post__read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-post__icon {
    opacity: 0.7;
}

/* Заголовок */
.blog-post__title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 20px;
}

/* Excerpt */
.blog-post__excerpt {
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.blog-post__image {
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
}

.blog-post__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.blog-post__content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-silver);
}

.blog-post__content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 50px 0 25px;
    color: var(--text-white);
    line-height: 1.3;
}

.blog-post__content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-white);
    line-height: 1.4;
}

.blog-post__content h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-white);
}

.blog-post__content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.blog-post__content a {
    color: var(--accent-blue-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-post__content a:hover {
    color: var(--accent-gold);
}

.blog-post__content ul,
.blog-post__content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.blog-post__content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.blog-post__content blockquote {
    background: rgba(26, 35, 50, 0.6);
    border-left: 4px solid var(--accent-blue);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-gray);
    border-radius: 8px;
}

.blog-post__content code {
    background: rgba(26, 35, 50, 0.8);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--accent-gold);
}

.blog-post__content pre {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.blog-post__content pre code {
    background: none;
    padding: 0;
    color: var(--text-silver);
}

.blog-post__content img {
    max-width: 450px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 30px auto !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blog-post__content p {
    margin: 0 0 20px 0;
    line-height: 1.7;
    color: var(--text-silver);
}

.blog-post__content p:has(img) {
    margin: 30px 0;
    text-align: center;
}

.blog-post__content img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.blog-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.blog-post__content th,
.blog-post__content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post__content th {
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
    color: var(--text-white);
}

.blog-post__content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 40px 0;
}

@media (max-width: 768px) {
    .blog-post__title {
        font-size: 28px;
    }

    .blog-post__excerpt {
        font-size: var(--fs-base);
    }

    .blog-post__author-avatar {
        width: 40px;
        height: 40px;
    }

    .blog-post__author-name {
        font-size: 14px;
    }

    .blog-post__publish-info {
        font-size: var(--fs-sm);
        flex-wrap: wrap;
    }

    .blog-post__content {
        font-size: var(--fs-base);
    }

    .blog-post__content h2 {
        font-size: 26px;
    }

    .blog-post__content h3 {
        font-size: var(--fs-xl);
    }

    .blog-post__content img {
        max-width: 100% !important;
        margin: 20px 0 !important;
    }
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox__close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    line-height: 1;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox__close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox__caption {
    color: white;
    margin-top: 20px;
    font-size: var(--fs-base);
    text-align: center;
    max-width: 800px;
}

@media (max-width: 768px) {
    .lightbox__close {
        top: 15px;
        right: 15px;
        font-size: 36px;
        width: 50px;
        height: 50px;
    }

    .lightbox__image {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox__caption {
        font-size: 14px;
        margin-top: 15px;
    }
}



.service__wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.service__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.service__image-card {
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.service__image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.service__price-card {
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.price-card__label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.price-card__value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.service__order-btn {
    width: 100%;
    padding: 15px 25px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    color: var(--accent-gold);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service__order-btn:hover {
    background: var(--accent-gold);
    color: #1a2332;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Main Content */
.service__main {
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.service__description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-silver);
}

.service__description h2,
.service__description h3 {
    color: var(--text-white);
    margin-top: 30px;
    margin-bottom: 15px;
}

.service__description ul,
.service__description ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.service__description li {
    margin-bottom: 10px;
    color: var(--text-silver);
}

/* Responsive */
@media (max-width: 968px) {
    .service__wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service__sidebar {
        position: static;
    }

    .service__main {
        padding: 30px;
    }
}


/* Breakdown Detail */

.breakdown__content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breakdown__section {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}

.breakdown__section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.breakdown__section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-blue-light);
}

.breakdown__price {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.breakdown__cta {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px 0;
}

.breakdown__cta .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    min-width: 200px;
}


/* Education */
.education {
    padding: 20px 0;
}



.badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: var(--fs-sm);
    font-weight: 600;
}



/* Education Detail - Matching Blog Post Design */
.education-detail {
    padding: 30px 0;
}

.education-detail__header {
    max-width: 900px;
    margin: 0 auto 40px;
}

.education-detail h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 20px;
}

.education__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.education__meta .badge {
    background: var(--accent-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--fs-sm);
    font-weight: 500;
}

.education__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.education__meta .education__separator {
    opacity: 0.5;
}

.education-detail__image {
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
}

.education-detail__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.education__video {
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    position: relative;
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Responsive aspect ratio */
    aspect-ratio: 16/9;
}

.education__video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.education__content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-silver);
}

.education__content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 50px 0 25px;
    color: var(--text-white);
    line-height: 1.3;
}

.education__content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-white);
    line-height: 1.4;
}

.education__content h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-white);
}

.education__content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.education__content a {
    color: var(--accent-blue-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.education__content a:hover {
    color: var(--accent-gold);
}

.education__content ul,
.education__content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.education__content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.education__content blockquote {
    background: rgba(26, 35, 50, 0.6);
    border-left: 4px solid var(--accent-blue);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-gray);
    border-radius: 8px;
}

.education__content code {
    background: rgba(26, 35, 50, 0.8);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--accent-gold);
}

.education__content pre {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.education__content pre code {
    background: none;
    padding: 0;
    color: var(--text-silver);
}

.education__content img {
    max-width: 450px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 30px auto !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.education__content img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.education__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.education__content th,
.education__content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.education__content th {
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
    color: var(--text-white);
}

.education__content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 40px 0;
}

@media (max-width: 768px) {
    .education-detail h1 {
        font-size: 28px;
    }
    
    .education__meta {
        font-size: var(--fs-sm);
        flex-wrap: wrap;
    }
    
    .education__content {
        font-size: var(--fs-base);
    }
    
    .education__content h2 {
        font-size: 26px;
    }
    
    .education__content h3 {
        font-size: var(--fs-xl);
    }
    
    .education__content img {
        max-width: 100% !important;
        margin: 20px 0 !important;
    }
    
    .education__video {
        margin: 20px auto;
    }
    
    .education__video iframe {
        width: 100%;
        height: 100%;
    }
}

/* Contacts */
.contacts {
    padding: 30px 0;
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.contact-card p {
    margin-bottom: 12px;
}

.contact-card a {
    color: var(--accent-blue-light);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    margin: 60px auto;
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* 404 Page */
.error-page {
    padding: var(--space-2xl) 0 var(--space-2xl);
}

.error-hero {
    background: rgba(26, 35, 50, 0.85);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.error-hero__code {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 900;
    color: var(--accent-blue-light);
    margin-bottom: var(--space-xs);
}

.error-hero__text {
    color: var(--text-gray);
    margin: var(--space-sm) auto var(--space-md);
    max-width: 520px;
}

.error-hero__text span {
    color: var(--text-white);
}

.error-cards {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.error-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 18px;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.error-card h2 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-white);
}

.error-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.error-list a {
    color: var(--text-silver);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.error-list a::after {
    content: '→';
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.4);
}

.error-list a:hover {
    color: var(--accent-blue-light);
    border-color: rgba(59, 130, 246, 0.4);
}

.error-list__empty {
    color: var(--text-gray);
    font-size: var(--fs-sm);
}

.error-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.error-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    text-decoration: none;
    font-size: var(--fs-sm);
}

.error-chip:hover {
    border-color: var(--accent-blue-light);
    color: var(--accent-blue-light);
}

/* Cities Section */
.cities-section {
    padding: 30px 0;
}

.cities-section h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-white);
}

.cities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.city-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(26, 35, 50, 0.8) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    min-height: 200px;
    text-align: left;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-gold) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.city-card:hover::before {
    opacity: 1;
}

.city-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(26, 35, 50, 0.9) 100%);
}

.city-card h3 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
    letter-spacing: -0.02em;
}

.city-card__badge {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-white);
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 12px;
}

.city-card__info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.city-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue-light);
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.15);
}

.city-card__icon svg {
    width: 28px;
    height: 28px;
    color: currentColor;
}

.city-card__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin: 0 0 6px;
}

.city-card__description {
    color: var(--text-gray);
    font-size: var(--fs-sm);
    line-height: 1.5;
    margin: 0;
    min-height: 48px;
}

.city-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.city-card:hover .city-card__btn {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, var(--accent-blue-light) 0%, var(--accent-blue) 100%);
}

@media (min-width: 768px) {
    .city-card {
        min-height: 240px;
    }
    
    .city-card__btn {
        width: auto;
        align-self: flex-start;
        padding-inline: 32px;
    }
}

@media (max-width: 767px) {
    .cities-section {
        padding: clamp(32px, 7vw, 56px) 0;
    }
    
    .cities-section h2 {
        font-size: clamp(24px, 6.5vw, 32px);
        margin-bottom: 20px;
    }
    
    .cities__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 0;
    }
    
    .city-card {
        min-width: 0;
        padding: 20px 18px;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        border-radius: 22px;
        background: rgba(26, 35, 50, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
    
    .city-card__info {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    
    .city-card__icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
    
    .city-card__description {
        display: block;
    }
    
    .city-card__btn {
        width: 100%;
        padding: 12px 0;
        border-radius: 14px;
        font-size: 14px;
        letter-spacing: 0.08em;
    }
}

/* City Home */
.city-hero {
    padding: clamp(40px, 5vw, 60px) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-blue-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(234, 179, 8, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.city-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.city-hero .container {
    position: relative;
    z-index: 2;
}

.city-hero h1 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    margin-bottom: clamp(8px, 1vw, 12px);
    line-height: 1.3;
    color: var(--text-white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.city-hero .hero__subtitle {
    font-size: clamp(11px, 1.5vw, 13px);
    color: var(--text-silver);
    margin-bottom: clamp(20px, 2vw, 24px);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.8;
}

.city-hero__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.city-hero__intro {
    text-align: center;
    width: 100%;
}

.city__contacts {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 40px);
    margin: 0 auto;
    max-width: min(500px, 90vw);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: left;
}

.city__contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    border-radius: 24px 24px 0 0;
}

.city__contacts h3 {
    font-size: clamp(14px, 1.8vw, 16px);
    margin-bottom: clamp(10px, 1.5vw, 12px);
    color: var(--accent-gold);
    font-weight: 600;
    text-align: center;
}

.city__contacts p {
    font-size: clamp(11px, 1.5vw, 13px);
    margin: clamp(4px, 0.8vw, 6px) 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-silver);
}

.city__contacts strong {
    min-width: 70px;
    display: inline-block;
    font-weight: 500;
}

.city__contacts a {
    color: var(--accent-blue-light);
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
    font-weight: 600;
}

.city__contacts a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.city__contacts .btn {
    margin: clamp(12px, 2vw, 16px) auto 0;
    padding: clamp(6px, 1vw, 10px) clamp(12px, 2vw, 18px);
    font-size: clamp(11px, 1.5vw, 13px);
    border-radius: 6px;
    font-weight: 600;
    display: block;
    text-align: center;
    max-width: 150px;
}

@media (min-width: 1024px) {
    .city-hero {
        text-align: left;
    }
    
    .city-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
        gap: clamp(32px, 5vw, 80px);
        align-items: center;
    }
    
    .city-hero__intro {
        text-align: left;
        max-width: 640px;
        justify-self: flex-start;
    }
    
    .city-hero h1,
    .city-hero .hero__subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    
    .city__contacts {
        margin: 0;
        max-width: 420px;
        width: 100%;
    }
    
    .city__contacts h3 {
        text-align: left;
    }
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 1200px) {
    /* City Hero на больших экранах */
    .city-hero {
        padding: 80px 0 110px;
    }

    .city-hero__grid {
        grid-template-columns: minmax(0, 520px) minmax(340px, 460px);
    }
    
    .city-hero h1 {
        font-size: 48px;
        margin-bottom: 24px;
    }
    
    .city-hero .hero__subtitle {
        font-size: 18px;
        margin-bottom: 36px;
    }
    
    .city__contacts {
        max-width: 420px;
        padding: 40px 48px;
        margin: 0;
        border-radius: 24px;
    }
    
    .city__contacts h3 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .city__contacts p {
        font-size: 16px;
        margin: 12px 0;
    }
    
    .city__contacts strong {
        min-width: 90px;
    }
    
    /* Services grid на desktop */
    .services .container {
        max-width: none;
        padding-inline: clamp(20px, 5vw, 60px);
    }
    
    .services__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 32px;
    }
    
    .service-card img {
        height: 240px;
    }
    
    /* Pagination на desktop */
    .pagination {
        gap: 20px;
        margin: 80px 0;
        padding: 40px 0;
    }
    
    .pagination a {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 14px;
    }
    
    .pagination .current {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 14px;
    }
}


@media (min-width: 1600px) {
    /* XL экраны */
    .services__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 48px;
    }
    
    .service-card img {
        height: 260px;
    }
    
    .city-hero {
        padding: 100px 0 140px;
    }

    .city-hero__grid {
        grid-template-columns: minmax(0, 620px) minmax(360px, 520px);
    }
    
    .city-hero h1 {
        font-size: 56px;
        margin-bottom: 28px;
    }
    
    .city-hero .hero__subtitle {
        font-size: 20px;
        margin-bottom: 44px;
        max-width: 720px;
    }
    
    .city__contacts {
        max-width: 500px;
        padding: 56px 60px;
        margin: 0;
    }
    
    .city__contacts h3 {
        font-size: 26px;
    }
    
    .city__contacts p {
        font-size: 17px;
        margin: 14px 0;
    }
    
    /* Extra large typography */
    .page-header h1 {
        font-size: 48px;
    }
    
    .services h2,
    .blog h1, .blog h2 {
        font-size: 44px;
        margin-bottom: 56px;
    }
    
    .cta h2 {
        font-size: 48px;
    }
    
    /* Увеличенные отступы */
    .page-header {
        padding: 80px 0;
        margin-bottom: 60px;
    }
    
    .services, .blog {
        padding: 90px 0;
    }
    
    .cta {
        padding: 120px 0 110px;
    }
    
    .pagination {
        margin: 80px 0;
    }
    
    .pagination a, .pagination span {
        padding: 16px 24px;
        font-size: 16px;
        min-width: 60px;
    }
    
    .page-header h1 {
        font-size: 56px;
        margin-bottom: 20px;
        letter-spacing: -0.01em;
    }
    
    .service-card {
        transition: all 0.3s ease;
    }
    
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .city__contacts {
        max-width: 600px;
        margin: 40px auto 0;
        padding: 40px;
        backdrop-filter: blur(10px);
        background: rgba(26, 35, 50, 0.9);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        color: var(--text-white);
    }
    
    .city__contacts h3 {
        color: var(--accent-gold);
    }
    
    .city__contacts p {
        color: var(--text-silver);
    }
    
    .breadcrumb {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .service-card .btn {
        padding: 14px 28px;
        font-size: 16px;
        font-weight: 500;
    }
    
    /* Services sections spacing */
    .services {
        padding: 80px 0;
    }
    
    .services h2 {
        font-size: 48px;
        margin-bottom: 60px;
        text-align: center;
    }
    
    /* CTA section improvements */
    .cta {
        padding: 120px 0 100px;
    }
    
    .cta h2 {
        font-size: 52px;
        margin-bottom: 25px;
    }
    
    .cta p {
        font-size: 20px;
        margin-bottom: 40px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Blog sections на desktop */
    .blog {
        padding: 80px 0;
    }
    
    .blog h1, .blog h2 {
        font-size: 48px;
        margin-bottom: 60px;
        text-align: center;
    }
    
    /* Desktop кнопки */
    .btn {
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .btn-primary {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    /* Desktop service cards hover */
    .service-card:hover {
        transform: translateY(-8px);
    }
    
    /* Hover effects handled in stacking cards section */
}

/* ========================================
   Падающий снег - Unicode символы
   ======================================== */

.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    position: fixed;
    top: -10%;
    z-index: 9999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    -webkit-animation-name: snowflakes-fall, snowflakes-shake;
    -webkit-animation-duration: 10s, 3s;
    -webkit-animation-timing-function: linear, ease-in-out;
    -webkit-animation-iteration-count: infinite, infinite;
    -webkit-animation-play-state: running, running;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

.snowflake:nth-of-type(0) {
    left: 1%;
    -webkit-animation-delay: 0s, 0s;
    animation-delay: 0s, 0s;
}

.snowflake:nth-of-type(1) {
    left: 10%;
    -webkit-animation-delay: 1s, 1s;
    animation-delay: 1s, 1s;
}

.snowflake:nth-of-type(2) {
    left: 20%;
    -webkit-animation-delay: 6s, .5s;
    animation-delay: 6s, .5s;
}

.snowflake:nth-of-type(3) {
    left: 30%;
    -webkit-animation-delay: 4s, 2s;
    animation-delay: 4s, 2s;
}

.snowflake:nth-of-type(4) {
    left: 40%;
    -webkit-animation-delay: 2s, 2s;
    animation-delay: 2s, 2s;
}

.snowflake:nth-of-type(5) {
    left: 50%;
    -webkit-animation-delay: 8s, 3s;
    animation-delay: 8s, 3s;
}

.snowflake:nth-of-type(6) {
    left: 60%;
    -webkit-animation-delay: 6s, 2s;
    animation-delay: 6s, 2s;
}

.snowflake:nth-of-type(7) {
    left: 70%;
    -webkit-animation-delay: 2.5s, 1s;
    animation-delay: 2.5s, 1s;
}

.snowflake:nth-of-type(8) {
    left: 80%;
    -webkit-animation-delay: 1s, 0s;
    animation-delay: 1s, 0s;
}

.snowflake:nth-of-type(9) {
    left: 90%;
    -webkit-animation-delay: 3s, 1.5s;
    animation-delay: 3s, 1.5s;
}

.snowflake:nth-of-type(10) {
    left: 25%;
    -webkit-animation-delay: 2s, 0s;
    animation-delay: 2s, 0s;
}

@-webkit-keyframes snowflakes-fall {
    0% {
        top: -10%;
    }
    100% {
        top: 100%;
    }
}

@-webkit-keyframes snowflakes-shake {
    0% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px);
    }
    50% {
        -webkit-transform: translateX(80px);
        transform: translateX(80px);
    }
    100% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px);
    }
}

@keyframes snowflakes-fall {
    0% {
        top: -10%;
    }
    100% {
        top: 100%;
    }
}

@keyframes snowflakes-shake {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(80px);
    }
    100% {
        transform: translateX(0px);
    }
}


/* CTA Responsive Styles */
@media (max-width: 768px) {
    .cta {
        padding: var(--space-xl) 0;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: var(--fs-base);
    }

    .cta .btn {
        padding: 15px 35px;
        font-size: var(--fs-base);
    }
}

/* Убираем лишние отступы у секции */
@media (max-width: 768px) {
    .blog {
        padding: 10px 0; /* Минимальные отступы */
    }
    
    .page-header {
        padding: 15px 0;
        margin-bottom: 10px;
    }

    .page-header h1 {
        font-size: clamp(20px, 8vw, 28px);
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .breadcrumb {
        font-size: 11px;
        margin-top: 5px;
        gap: 3px;
    }

    /* Компактная пагинация для маленьких экранов */
    .pagination {
        gap: 5px;
        margin: 20px 0;
        padding: 15px 0;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 8px;
    }

    .pagination .current {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* City contacts для маленьких экранов */
    .city__contacts {
        padding: 15px;
        margin: 20px auto;
        border-radius: 16px;
    }

    .city__contacts h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .city__contacts p {
        font-size: 13px;
        margin: 6px 0;
    }

    .city-hero h1 {
        font-size: clamp(22px, 7vw, 32px);
    }
}

/* Fallback для браузеров без поддержки view-timeline */
@supports not (view-timeline-name: test) {
    @media (max-width: 768px) {
        .blog-card__content {
            animation: none;
        }
        
        .stack-cards__item:hover .blog-card__content {
            /* Removed transform to maintain sticky positioning */
            opacity: 0.95;
        }
    }
}

/* Гирлянда VK */
:root {
    --vkui--animation_duration_l: 0.4s;
    --vkui--animation_duration_m: 0.3s;
    --vkui--color_icon_tertiary: #99A2AD;
    --vkui--color_icon_secondary: #818C99;
}

.GarlandParts__root--lFj2D {
    position: relative;
}

.GarlandParts__root--lFj2D:not(.GarlandParts__rootVisible--wOewv) {
    opacity: 0;
}

.GarlandParts__rootVisible--wOewv.GarlandParts__rootAnimated--4fTfj {
    animation: GarlandParts__fadeIn--14L7i var(--vkui--animation_duration_l) forwards;
}

.GarlandParts__switch--ow3NU.GarlandParts__switch--ow3NU {
    top: -24px;
    right: 47px;
    z-index: -1;
    padding: 0px 10px;
    position: fixed;
    pointer-events: all;
    color: var(--vkui--color_icon_tertiary);
    transition: top var(--vkui--animation_duration_m);
    cursor: pointer;
}

[dir="rtl"] .GarlandParts__switch--ow3NU.GarlandParts__switch--ow3NU {
    right: auto;
    left: 47px;
}

@media (max-width: 1229px) {
    .GarlandParts__switch--ow3NU.GarlandParts__switch--ow3NU {
        display: none;
    }
}

.GarlandParts__switchHover--virSm.GarlandParts__switchHover--virSm {
    top: -20px;
}

.GarlandParts__switchActive--JCx2j.GarlandParts__switchActive--JCx2j {
    top: 0px;
}

.GarlandParts__lamp--lSkfB {
    color: var(--vkui--color_icon_secondary);
}

.GarlandParts__shadow--n58bS {
    color: transparent;
}

.GarlandParts__item--Ccnct {
    z-index: 1;
    overflow: visible;
    color: var(--vkui--color_icon_tertiary);
}

.GarlandParts__item1--4xfVU {
    margin-top: -5px;
    margin-left: -9px;
}

[dir="rtl"] .GarlandParts__item1--4xfVU {
    margin-left: 0px;
    margin-right: -9px;
}

.GarlandParts__rootEnabled--qHasV .GarlandParts__item1--4xfVU .GarlandParts__lamp--lSkfB,
.GarlandParts__rootEnabled--qHasV .GarlandParts__item1--4xfVU .GarlandParts__shadow--n58bS {
    color: rgb(39, 135, 245);
}

.GarlandParts__item2--hQx8m {
    margin-top: -3px;
    margin-left: -8px;
}

[dir="rtl"] .GarlandParts__item2--hQx8m {
    margin-left: 0px;
    margin-right: -8px;
}

.GarlandParts__rootEnabled--qHasV .GarlandParts__item2--hQx8m .GarlandParts__lamp--lSkfB,
.GarlandParts__rootEnabled--qHasV .GarlandParts__item2--hQx8m .GarlandParts__shadow--n58bS {
    color: rgb(246, 121, 255);
}

.GarlandParts__item3--zyzDS {
    margin-top: -8px;
    margin-left: -8px;
}

[dir="rtl"] .GarlandParts__item3--zyzDS {
    margin-left: 0px;
    margin-right: -8px;
}

.GarlandParts__rootEnabled--qHasV .GarlandParts__item3--zyzDS .GarlandParts__lamp--lSkfB,
.GarlandParts__rootEnabled--qHasV .GarlandParts__item3--zyzDS .GarlandParts__shadow--n58bS {
    color: rgb(23, 214, 133);
}

.GarlandParts__item4--f8WaX {
    margin-top: -6px;
    margin-left: -8px;
}

[dir="rtl"] .GarlandParts__item4--f8WaX {
    margin-left: 0px;
    margin-right: -8px;
}

.GarlandParts__rootEnabled--qHasV .GarlandParts__item4--f8WaX .GarlandParts__lamp--lSkfB,
.GarlandParts__rootEnabled--qHasV .GarlandParts__item4--f8WaX .GarlandParts__shadow--n58bS {
    color: rgb(255, 217, 29);
}

.GarlandParts__item5--l2Nh9 {
    margin-top: -7px;
    margin-left: -10px;
}

[dir="rtl"] .GarlandParts__item5--l2Nh9 {
    margin-left: 0px;
    margin-right: -10px;
}

.GarlandParts__rootEnabled--qHasV .GarlandParts__item5--l2Nh9 .GarlandParts__lamp--lSkfB,
.GarlandParts__rootEnabled--qHasV .GarlandParts__item5--l2Nh9 .GarlandParts__shadow--n58bS {
    color: rgb(171, 71, 233);
}

@keyframes GarlandParts__fadeIn--14L7i {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.garland-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    overflow: hidden;
}

.garland-container > div {
    display: inline-flex;
    flex: 0 0 auto;
}

.garland-toggle {
    position: fixed;
    top: 0;
    right: 47px;
    z-index: 100000;
    cursor: pointer;
    pointer-events: all;
    transition: top 0.3s;
    color: #99A2AD;
}

.garland-toggle:hover {
    top: 4px;
}

.garland-toggle svg {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

/* На мобильных устройствах позиционируем тумблер ровно между кнопкой звонка и бургером */
@media (max-width: 1023px) {
    .garland-toggle {
        right: calc(1rem + 44px + (var(--space-sm) / 2) - 3.5px);
    }
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--space-2xl) 0;
}

.faq-section__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.faq-section__header {
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.faq-section__eyebrow {
    display: inline-flex;
    align-self: center;
    padding: 0.25rem 1.25rem;
    border-radius: 999px;
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent-blue-light);
}

.faq-section__title {
    font-size: var(--fs-3xl);
    line-height: 1.2;
    color: var(--text-white);
    font-weight: 700;
}

.faq-section__subtitle {
    color: var(--text-gray);
    font-size: var(--fs-base);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: min(100%, 780px);
    margin: 0 auto;
}

.faq-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(16, 22, 33, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.faq-card.is-open {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(23, 31, 45, 0.95);
    transform: translateY(-2px);
}

.faq-card__trigger {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-white);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    cursor: pointer;
    text-align: left;
}

.faq-card__title {
    font-size: var(--fs-lg);
    line-height: 1.4;
    font-weight: 600;
    color: inherit;
}

.faq-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.faq-card.is-open .faq-card__icon {
    transform: rotate(180deg);
    background: rgba(37, 99, 235, 0.25);
}

.faq-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    padding: 0 var(--space-md);
    border-top: 1px solid transparent;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.faq-card.is-open .faq-card__body {
    opacity: 1;
    padding-top: var(--space-xs);
    padding-bottom: var(--space-sm);
    border-top-color: rgba(255, 255, 255, 0.08);
}

.faq-card__answer {
    color: var(--text-silver);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.faq-card__answer p {
    margin-bottom: var(--space-2xs);
}

.faq-card__answer p:last-child {
    margin-bottom: 0;
}

.faq-section__footer {
    margin-top: var(--space-lg);
    text-align: center;
    color: var(--text-gray);
    font-size: var(--fs-sm);
}

.faq-section__footer span {
    color: var(--accent-blue-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq-section {
        padding: var(--space-xl) 0;
    }

    .faq-section__title {
        font-size: var(--fs-2xl);
    }

    .faq-card__title {
        font-size: var(--fs-base);
    }

    .faq-card__trigger {
        padding: var(--space-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-card,
    .faq-card__body,
    .faq-card__icon {
        transition: none !important;
    }
}


/* ===== REVIEWS CAROUSEL SECTION ===== */
.reviews-section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.reviews-section__header {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.reviews-section__eyebrow {
    display: inline-flex;
    align-self: center;
    padding: 0.25rem 1.25rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-blue-light);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reviews-section__header h2 {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--text-white);
}

.reviews-section__description {
    color: var(--text-gray);
    font-size: var(--fs-base);
    margin: 0;
}

.reviews-section h2 {
    font-size: var(--fs-3xl);
}

.reviews-carousel {
    position: relative;
}

.reviews-swiper {
    padding: 10px 0 var(--space-lg);
    overflow: visible;
}

.reviews-swiper .swiper-wrapper {
    align-items: stretch;
}

.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Review Card */
.review-card {
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-lg);
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(59, 130, 246, 0.02) 50%, 
        rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.review-card > * {
    position: relative;
    z-index: 1;
}

.review-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Review Card Header */
.review-card__header {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    min-height: 50px;
    align-items: center;
}

.review-card__avatar {
    flex-shrink: 0;
    position: relative;
}

.review-card__avatar-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.review-card__avatar-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--fs-base);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.review-card__info {
    flex: 1;
    min-width: 0;
}

.review-card__name {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2px;
    line-height: 1.3;
}

.review-card__service {
    font-size: var(--fs-sm);
    color: var(--text-gray);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card__rating {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    justify-self: end;
}

.review-card__star {
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
}

.review-card__star--filled {
    color: #ffb400;
}

/* Review Card Body */
.review-card__body {
    flex: 1;
    margin-bottom: var(--space-md);
}

.review-card__text {
    color: var(--text-silver);
    line-height: 1.6;
    font-size: var(--fs-sm);
    margin: 0;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Review Card Footer */
.review-card__footer {
    margin-top: auto;
}

.review-card__date {
    font-size: var(--fs-xs);
    color: var(--text-gray);
    opacity: 0.8;
}

/* Swiper Navigation - ОТКЛЮЧЕНО */
.reviews-swiper-button-prev,
.reviews-swiper-button-next {
    display: none !important;
}

/* Swiper Pagination */
.reviews-swiper-pagination {
    position: relative;
    margin-top: var(--space-lg);
    text-align: center;
}

.reviews-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.reviews-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--accent-blue);
    transform: scale(1.2);
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.review-card--static {
    height: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews-section {
        padding: var(--space-xl) 0;
    }

    .reviews-section__header h2 {
        font-size: var(--fs-2xl);
    }

    .reviews-section__description {
        font-size: var(--fs-sm);
    }

    .review-card {
        padding: var(--space-md);
    }

    .review-card__header {
        grid-template-columns: 44px 1fr auto;
        gap: var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    .review-card__avatar-image,
    .review-card__avatar-initials {
        width: 44px;
        height: 44px;
    }

    .review-card__rating {
        justify-self: end;
    }


    .reviews-swiper {
        padding-bottom: var(--space-xl);
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Стрелки отключены */
}

/* Desktop Large */
@media (min-width: 1400px) {
    /* Стрелки отключены */
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .review-card,
    .review-card__star,
    .reviews-swiper-pagination .swiper-pagination-bullet {
        transition: none !important;
    }
}

/* Модальное окно в стиле сайта */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    position: relative;
}

.modal__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.3) 50%, transparent 100%);
}

.modal__header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal__close {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    cursor: pointer;
    padding: 12px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.modal__body {
    padding: 32px;
}

.modal__description {
    margin: 0 0 32px;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.price-form .form-group {
    margin-bottom: 24px;
}

.price-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.price-form .form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.price-form .form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.price-form .form-control::placeholder {
    color: var(--text-gray);
    opacity: 0.8;
}

/* Стили для всех элементов форм в модальных окнах */
.modal input[type="text"],
.modal input[type="email"], 
.modal input[type="tel"],
.modal select,
.modal textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.modal input[type="text"]:focus,
.modal input[type="email"]:focus,
.modal input[type="tel"]:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.modal input::placeholder,
.modal textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.modal select option {
    background: #ffffff;
    color: var(--text-dark);
    padding: 12px;
}

.modal .btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    min-height: 56px;
}

.modal .btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Стили для всех обычных форм на сайте */
form input[type="text"],
form input[type="email"], 
form input[type="tel"],
form input[type="password"],
form select,
form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    display: block;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form input[type="password"]:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

form select option {
    background: #ffffff;
    color: var(--text-dark);
    padding: 12px;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Стили для параграфов в формах Django (для as_p) */
form p {
    margin-bottom: 20px;
}

form p label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

form p input,
form p select,
form p textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

form p input:focus,
form p select:focus,
form p textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

/* Стили для обычных кнопок */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    min-height: 56px;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
    text-decoration: none;
}

/* Стили для контактной формы */
.contact-form {
    max-width: 600px;
    margin: 60px auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
}

.contact-form h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
}


.btn--block {
    width: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: var(--text-white);
    border: none;
    padding: 18px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-blue-light) 0%, var(--accent-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
}

.btn--primary:disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

/* Premium кнопка "Узнать цену ремонта" с WOW эффектом */
.price-cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b  50%, #d97706 100%);
    color: #1e293b;
    text-decoration: none;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 30px rgba(251, 191, 36, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: fit-content;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.price-cta-button::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 2;
}


.price-cta-button::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.price-cta-button span {
    position: relative;
    z-index: 2;
}

.price-cta-button:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 50px rgba(251, 191, 36, 0.8),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    color: #0f172a;
    text-decoration: none;
}


.price-cta-button:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50%) scale(1.5);
        opacity: 0.6;
    }
}

@keyframes money-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        background: #1e293b;
    }
    50% {
        transform: translateY(-50%) scale(1.3);
        background: #0f172a;
        box-shadow: 0 0 12px rgba(30, 41, 59, 0.8);
    }
}

/* Блок призыва к действию в стиле CTA сайта */
.price-cta-section {
    padding: 60px 0 40px 0;
    text-align: center;
    margin: 40px 0;
}

.price-cta-card {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
}

.price-cta-card h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.price-cta-card p {
    font-size: var(--fs-lg);
    margin-bottom: 30px;
    color: #e2e8f0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (max-width: 768px) {
    .modal {
        padding: 15px;
        align-items: flex-start;
        padding-top: 50px;
    }
    
    .modal__content {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        border-radius: 12px;
        width: calc(100vw - 30px);
        max-width: none;
        margin: 0 auto;
    }
    
    .modal__header {
        padding: 16px 16px 12px;
        flex-wrap: wrap;
    }
    
    .modal__header h3 {
        font-size: 18px;
        line-height: 1.3;
        margin-right: 10px;
        flex: 1;
        min-width: 0;
    }
    
    .modal__close {
        padding: 8px;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .modal__body {
        padding: 16px;
    }
    
    .modal input[type="text"],
    .modal input[type="email"], 
    .modal input[type="tel"],
    .modal select,
    .modal textarea {
        padding: 12px 16px;
        font-size: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .modal textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .modal .btn {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        width: 100%;
        margin-top: 10px;
    }
    
    .price-cta-card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .price-cta-card h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .price-cta-card p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Исправления для всех форм на мобильных */
    .contact-form {
        margin: 30px auto;
        padding: 20px;
        border-radius: 12px;
    }
    
    .contact-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    form input[type="text"],
    form input[type="email"], 
    form input[type="tel"],
    form input[type="password"],
    form select,
    form textarea {
        padding: 12px 16px;
        font-size: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    form textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    form p input,
    form p select,
    form p textarea {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    form label,
    form p label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    form .btn,
    form button[type="submit"],
    form input[type="submit"] {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        width: 100%;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .price-form .form-control {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .price-form label {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

/* Дополнительные исправления для очень маленьких экранов */
@media (max-width: 480px) {
    .modal {
        padding: 10px;
        padding-top: 30px;
    }
    
    .modal__content {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 60px);
        border-radius: 8px;
    }
    
    .modal__header {
        padding: 12px 12px 8px;
    }
    
    .modal__header h3 {
        font-size: 16px;
    }
    
    .modal__body {
        padding: 12px;
    }
    
    .modal input[type="text"],
    .modal input[type="email"], 
    .modal input[type="tel"],
    .modal select,
    .modal textarea {
        padding: 10px 12px;
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .modal textarea {
        min-height: 80px;
    }
    
    .modal .btn {
        padding: 12px 16px;
        min-height: 44px;
    }
    
    .contact-form {
        margin: 20px 10px;
        padding: 15px;
    }
    
    form input[type="text"],
    form input[type="email"], 
    form input[type="tel"],
    form input[type="password"],
    form select,
    form textarea,
    form p input,
    form p select,
    form p textarea {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    form .btn,
    form button[type="submit"],
    form input[type="submit"] {
        padding: 12px 16px;
        min-height: 44px;
    }
}

/* Кастомные уведомления */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    width: calc(100vw - 40px);
}

.custom-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.custom-notification__content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    backdrop-filter: blur(10px);
}

.custom-notification__icon {
    color: #22c55e;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.custom-notification__text {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    word-wrap: break-word;
}

.custom-notification__close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: -2px;
    margin-right: -4px;
}

.custom-notification__close:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}

/* Стили для ошибок */
.custom-notification.error .custom-notification__icon {
    color: #ef4444;
}

.custom-notification.error .custom-notification__content {
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(239, 68, 68, 0.1);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .custom-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .custom-notification__content {
        padding: 16px;
        border-radius: 12px;
    }
    
    .custom-notification__text {
        font-size: 13px;
    }
}

/* Индикатор загрузки для кнопок */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
}

.btn.loading[data-loading-text]::before {
    content: attr(data-loading-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: inherit;
    font-weight: inherit;
    white-space: nowrap;
    margin-left: 25px;
}

@keyframes button-loading-spinner {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
