/* Основные стили БЕЗ переливающегося блика */
:root {
    --primary-dark: #1a1a1a;
    --primary-light: #ffffff;
    --accent: #8b5a2b;
    --accent-dark: #654321;
    --accent-light: #a87c4b;
    --accent-red: #e74c3c;
    --accent-red-light: #ff6b6b;
    --light-brown: #d7ccc8;
    --light-brown-light: #efebe9;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --text-dark: #333333;
    --text-light: #777777;
    --gradient: linear-gradient(135deg, var(--accent-red) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-light) 100%);
    --gradient-red: linear-gradient(135deg, var(--accent-red) 0%, #c0392b 100%);
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, var(--light-brown-light) 50%, var(--light-brown) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --transition-fast: all 0.25s ease;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
.policy-content::-webkit-scrollbar,
.brief-content::-webkit-scrollbar {
    display: none;
}

.brief-content.active {
    max-height: 500px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) transparent;
}
.brief-content.active::-webkit-scrollbar {
    width: 6px;
    display: block !important;
}
.brief-content.active::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}
.brief-content.active::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 3px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    cursor: auto;
}

/* Video placeholder (десктоп) */
.video-placeholder {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-8deg);
    transition: var(--transition);
    border: 2px solid var(--accent-red);
}
.video-placeholder:hover {
    transform: perspective(1000px) rotateY(0deg);
}
.video-placeholder video {
    width: 100%;
    object-fit: cover;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 26px;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.video-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 40px;
    z-index: 2;
}
.video-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.video-btn:hover {
    background: rgba(255,255,255,0.2);
}
@media (max-width: 1024px) {
    .video-placeholder {
        transform: none;
        margin: 0 auto;
    }
    .video-placeholder:hover {
        transform: none;
    }
}

/* Анимированный фон (упрощён) */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
    background: var(--gradient-bg);
}
.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.08) 0%, transparent 50%),
               radial-gradient(circle at 80% 20%, rgba(139, 90, 43, 0.08) 0%, transparent 50%),
               radial-gradient(circle at 40% 40%, rgba(168, 124, 75, 0.05) 0%, transparent 45%);
}
.animated-bg::after {
    background: radial-gradient(circle at 80% 80%, rgba(231, 76, 60, 0.06) 0%, transparent 50%),
               radial-gradient(circle at 20% 20%, rgba(139, 90, 43, 0.06) 0%, transparent 50%),
               radial-gradient(circle at 60% 60%, rgba(168, 124, 75, 0.04) 0%, transparent 45%);
    opacity: 0.5;
}

/* ===== ПЛАВАЮЩИЕ ИКОНКИ ===== */
.floating-element-animated,
.floating-element {
    pointer-events: none;
    position: absolute;
    opacity: 0.5;
    filter: blur(2px);
    animation: floatElement 8s infinite ease-in-out;
    z-index: 0;
}
.floating-element-animated.html { top: 16%; left: 34%; animation-delay: 0s; font-size: 3.5rem; }
.floating-element-animated.css { top: 20%; right: 8%; animation-delay: 1s; font-size: 3.8rem; }
.floating-element-animated.js { bottom: 18%; left: 3%; animation-delay: 2s; font-size: 3.2rem; }
.floating-element-animated.react { bottom: 15%; right: 5%; animation-delay: 0.5s; font-size: 4rem; }
.floating-element-animated.code { top: 25%; left: 10%; animation-delay: 1.5s; font-size: 3rem; }
.floating-element-animated.design { top: 39%; right: 49%; animation-delay: 2.5s; font-size: 3.6rem; }
.floating-element-animated.tilda { top: 57%; left: 16%; animation-delay: 0.8s; font-size: 3.4rem; }
.floating-element-animated.wordpress { bottom: 30%; left: 56%; animation-delay: 1.8s; font-size: 3.2rem; }

@keyframes floatElement {
    0%,100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    75% { transform: translateY(15px) rotate(-3deg); }
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.welcome-content h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    line-height: 1.1;
    display: inline-block;
}
.welcome-content h1 .highlight {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--text-dark);
}
.welcome-content h1 .highlight .line1,
.welcome-content h1 .highlight .line2 {
    display: inline;
}
@media (max-width: 1024px) {
    .welcome-content h1 .highlight .line1,
    .welcome-content h1 .highlight .line2 {
        display: block;
        line-height: 1.2;
    }
    .welcome-content h1 .highlight .line1 {
        margin-bottom: 0.1rem;
    }
}

/* ===== ЗАГОЛОВКИ БЛОКОВ (h2) ===== */
h2 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
h2.visible {
    opacity: 1;
    transform: translateX(0);
}
h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
h2.visible::after {
    width: 160px;
}

/* ===== ЗАГОЛОВКИ КАРТОЧЕК (h3) ===== */
.stage-card h3,
.skill-card h3,
.advantage-card h3,
.review-card h3,
.certificate-info h3 {
    position: relative;
    display: inline-block;
}
.stage-card h3::after,
.skill-card h3::after,
.advantage-card h3::after,
.review-card h3::after,
.certificate-info h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
}

/* Остальные h3 */
h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--accent-red);
}
.stage-card h3,
.skill-card h3,
.portfolio-info h3,
.certificate-info h3,
.brief-section-title,
.success-content h2,
.policy-content h2,
.advantage-card h3 {
    color: var(--accent-red);
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

p {
    margin-bottom: 1.2rem;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== КОНТЕЙНЕР – 100% ШИРИНА С БОЛЬШИМИ ОТСТУПАМИ ПО КРАЯМ ===== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(2rem, 4vw, 4rem);
}
section {
    padding: clamp(3.6rem, 7vw, 6rem) 0;
    position: relative;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(0.8rem, 1.8vw, 1.1rem) clamp(1.3rem, 2.5vw, 2rem);
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--accent-red);
    cursor: pointer;
    transition: var(--transition);
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}
.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.btn:hover:before { opacity: 1; }
.btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.3);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-6px) scale(1.03);
}

/* Логотип */
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1001;
    transition: var(--transition);
    cursor: pointer;
}
.logo:hover { transform: translateY(-2px); }
.logo-eye {
    width: clamp(42px, 6vw, 52px);
    height: clamp(42px, 6vw, 52px);
    aspect-ratio: 1 / 1;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-shrink: 0;
}
.logo-eye:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3); }
.eye-ball {
    width: 70%;
    height: 35%;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    animation: eyeBlink 5s infinite ease-in-out;
    transform-origin: bottom center;
    transition: transform 0.2s ease-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}
.eye-pupil {
    width: 40%;
    height: 80%;
    background: var(--primary-dark);
    border-radius: 50%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.eye-sparkle {
    position: absolute;
    width: 20%;
    height: 20%;
    background: white;
    border-radius: 50%;
    top: 20%;
    left: 30%;
    animation: sparkle 3s infinite alternate;
}
.footer-logo-eye .static-eye {
    width: 70%;
    height: 35%;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}
.footer-logo-eye .static-pupil {
    width: 40%;
    height: 80%;
    background: var(--primary-dark);
    border-radius: 50%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.footer-logo-eye .eye-ball,
.footer-logo-eye .eye-pupil,
.footer-logo-eye .eye-sparkle {
    display: none;
}
@keyframes eyeBlink {
    0%, 45%, 55%, 100% { height: 35%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
    50% { height: 5%; border-radius: 50% 50% 50% 50% / 100% 100% 100% 100%; }
}
@keyframes sparkle {
    0%,100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text span:first-child {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.logo-text span:first-child:after {
    content: 'пиксель24';
    display: block;
    font-size: 0.85em;
    margin-top: 1px;
    letter-spacing: 0.5px;
    font-style: normal;
}
.logo-text span:last-child {
    font-size: clamp(0.45rem, 1.1vw, 0.6rem);
    font-weight: 600;
    color: var(--text-light);
    margin-top: 2px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
header.scrolled {
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    margin-left: auto;
}
.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
    position: relative;
    padding: 4px 0;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    cursor: pointer;
}
.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition-fast);
    border-radius: 1px;
}
.nav-links a:hover { color: var(--accent-red); }
.nav-links a:hover:after { width: 100%; }
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
.mobile-menu-btn:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
}

/* ===== ИКОНКА ПОЧТЫ В ШАПКЕ (СТИЛЬ КАК В ФУТЕРЕ) ===== */
.header-email {
    display: flex;
    align-items: center;
    margin-left: 15px;
    flex-shrink: 0;
    order: 2;
}

.email-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.1rem;
    transition: var(--transition-fast);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--accent);
    animation: flyEmail 10s ease-in-out infinite;
    pointer-events: auto;
    position: relative;
}

.email-link:hover {
    background: rgba(139, 90, 43, 0.10);
    color: var(--accent-dark);
    transform: scale(1.08);
    border-color: var(--accent-dark);
    animation: none;
}

.email-link:active {
    transform: scale(0.95);
}

@keyframes flyEmail {
    0%, 80% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    90% {
        transform: translateY(-200px) scale(1.3);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .header-email {
        margin-left: 10px;
        order: 2;
    }
    .email-link {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        border: none;
        animation: flyEmail 10s ease-in-out infinite;
    }
    .email-link:hover {
        animation: none;
    }
}

/* ===== ГЛАВНЫЙ ЭКРАН – ОТСТУП ОТ ШАПКИ 145px ===== */
.welcome {
    padding-top: 145px !important;
    padding-bottom: 40px !important;
    overflow: hidden;
    position: relative;
}
.welcome:before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: welcomeBgCycle 25s ease-in-out infinite alternate;
}
@keyframes welcomeBgCycle {
    0%,20% { opacity: 1; transform: scale(1); filter: hue-rotate(0deg) blur(80px); }
    40% { opacity: 0.6; transform: scale(1.02); filter: hue-rotate(10deg) blur(85px); }
    60% { opacity: 1; transform: scale(1); filter: hue-rotate(20deg) blur(80px); }
    80% { opacity: 0.8; transform: scale(1.01); filter: hue-rotate(15deg) blur(82px); }
    100% { opacity: 1; transform: scale(1); filter: hue-rotate(0deg) blur(80px); }
}
.welcome .floating-element-animated {
    display: block !important;
}
.welcome-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px !important;
    align-items: center;
    position: relative;
    z-index: 1;
}
.welcome-content { position: relative; }
.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(231,76,60,0.12) 0%, rgba(139,90,43,0.12) 100%);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(231,76,60,0.25);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    color: var(--accent-red);
    padding: clamp(0.6rem, 1.5vw, 0.9rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}
.welcome-text { margin-bottom: 1rem; }
.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e2f;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    padding: 0.8rem 1rem;
    border-radius: 28px;
    display: inline-block;
    max-width: 90%;
}
.welcome-buttons {
    display: flex;
    gap: clamp(0.7rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}
.welcome-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -5px !important;
}

/* ===== АНИМАЦИИ ===== */
.experience-badge.slide-up,
.welcome-buttons.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.experience-badge.slide-up {
    transition-delay: 0.1s;
}
.welcome-buttons.slide-up {
    transition-delay: 0.6s;
}
.experience-badge.slide-up.visible,
.welcome-buttons.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.welcome-content h1.text-reveal,
.welcome-content .welcome-text p.text-reveal {
    filter: blur(12px);
    opacity: 0;
    transition: filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 1s ease;
    will-change: filter, opacity;
}
.welcome-content h1.text-reveal.visible,
.welcome-content .welcome-text p.text-reveal.visible {
    filter: blur(0);
    opacity: 1;
}

/* ===== ПОРТФОЛИО – УВЕЛИЧЕНА ВЫСОТА ВИДЕО ===== */
.portfolio-image {
    height: 280px !important;
    position: relative;
    overflow: hidden;
    background: #000;
}
.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== УВЕЛИЧЕН ВНУТРЕННИЙ ОТСТУП СНИЗУ В КАРТОЧКАХ ПОРТФОЛИО ===== */
.portfolio-info {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    padding-bottom: clamp(1.8rem, 3vw, 2.5rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Остальные секции (без изменений) */
.stages { position: relative; overflow: hidden; }
.stages:before {
    content: '';
    position: absolute;
    top: -25%;
    left: -15%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}
.stages-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
}
.stage-card {
    background: var(--light-brown-light);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 2.5vw, 2rem);
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transform-style: preserve-3d;
    cursor: pointer;
}
.stage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.15);
}
.stage-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.stage-card:hover:before { opacity: 0.05; }
.stage-icon {
    width: clamp(50px, 7vw, 65px);
    height: clamp(50px, 7vw, 65px);
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stage-card:hover .stage-icon { transform: scale(1.1); }
.stage-number {
    position: absolute;
    top: clamp(0.7rem, 1.5vw, 1rem);
    right: clamp(0.7rem, 1.5vw, 1rem);
    width: clamp(26px, 4.5vw, 34px);
    height: clamp(26px, 4.5vw, 34px);
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    border: 1px solid rgba(231, 76, 60, 0.15);
    backdrop-filter: blur(4px);
}
.stage-card h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 0.8rem;
    color: var(--accent-red);
}
.stage-card p {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.5;
}

/* Portfolio (общие) */
.portfolio { position: relative; overflow: hidden; }
.portfolio:before {
    content: '';
    position: absolute;
    bottom: -25%;
    right: -15%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}
.portfolio-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.swiper {
    width: 100%;
    height: clamp(480px, 55vw, 650px);
    padding: clamp(1.2rem, 2.5vw, 2rem) 0;
    padding-bottom: 40px;
}
.swiper-slide {
    background: var(--light-brown-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.08);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}
.swiper-slide:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.15);
}
.portfolio-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.portfolio-image {
    height: 280px !important;
    position: relative;
    overflow: hidden;
    background: #000;
}
.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-link {
    text-decoration: none;
    display: block;
    height: 100%;
    color: inherit;
}
.portfolio-info h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    margin-bottom: 1rem;
    min-height: 3.5em;
    display: flex;
    align-items: flex-start;
    color: var(--accent-red);
    line-height: 1.3;
}
.portfolio-info h3.blog-title {
    min-height: 3.5em;
    align-items: flex-start;
    padding-top: 0;
    margin-top: 0;
}
.portfolio-info p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--text-dark) !important;
    background: rgba(231, 76, 60, 0.08) !important;
    width: clamp(36px, 6vw, 48px) !important;
    height: clamp(36px, 6vw, 48px) !important;
    border-radius: 50%;
    border: 1px solid rgba(231, 76, 60, 0.1) !important;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
    cursor: pointer;
    opacity: 0.7 !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent-red) !important;
    transform: scale(1.08);
    color: white !important;
    opacity: 1 !important;
    border-color: var(--accent-red) !important;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: clamp(0.9rem, 2vw, 1.3rem) !important;
}
.swiper-button-next, .swiper-button-prev {
    z-index: 30 !important;
    pointer-events: auto !important;
}
.swiper-button-disabled {
    opacity: 0.35 !important;
    cursor: default;
}
.swiper {
    isolation: isolate;
}
.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.swiper-pagination-bullet-active {
    background: var(--accent-red);
    transform: scale(1.2);
}
@media (min-width: 1025px) {
    .swiper-pagination {
        display: none !important;
    }
}

/* Form */
.form-section { position: relative; overflow: hidden; }
.form-section:before {
    content: '';
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f7f3ef;
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(231, 76, 60, 0.08);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}
.form-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}
.form-group {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    position: relative;
}
.form-label {
    display: block;
    margin-bottom: clamp(0.6rem, 1.5vw, 0.9rem);
    font-weight: 600;
    color: var(--accent-red);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}
.form-input, .form-textarea {
    width: 100%;
    padding: clamp(0.8rem, 1.8vw, 1.1rem) clamp(1rem, 2vw, 1.5rem);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(231, 76, 60, 0.1);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-dark);
    transition: var(--transition-fast);
    cursor: text;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
    background: rgba(255, 255, 255, 0.95);
}
.form-textarea {
    min-height: clamp(120px, 25vw, 150px);
    resize: vertical;
}
.brief-container {
    margin: clamp(1.2rem, 2.5vw, 2rem) 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    border: 1px solid rgba(231, 76, 60, 0.08);
    overflow: hidden;
}
.brief-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    padding: 16px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brief-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #ff8888 0%, #ff5e4a 100%);
}
.brief-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.brief-header h4 i {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.brief-header i.fa-chevron-down {
    font-size: 1.3rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: bounceArrow 1.8s infinite ease-in-out;
}
@keyframes bounceArrow {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(4px) rotate(0deg); }
}
.brief-header.active i.fa-chevron-down {
    transform: rotate(180deg);
    animation: none;
}
.brief-header.active {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    background: linear-gradient(135deg, #ff5e4a 0%, #e74c3c 100%);
}
.brief-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.brief-content.active {
    border: 2px solid rgba(231, 76, 60, 0.4);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.98);
    transition: all 0.3s ease;
    overflow-y: auto;
    max-height: 600px;
}
.brief-section {
    margin-bottom: 25px;
    padding: 0 clamp(0.6rem, 2vw, 1.5rem);
}
.brief-section-title {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--accent-red);
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(231, 76, 60, 0.15);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brief-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 3px solid rgba(231, 76, 60, 0.08);
    transition: var(--transition-fast);
    cursor: pointer;
    overflow: hidden;
}
.brief-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(231, 76, 60, 0.15);
    transform: translateY(-2px);
}
.brief-item-header {
    padding: 14px 16px;
    background: rgba(231, 76, 60, 0.05);
    border-bottom: 1px solid rgba(231, 76, 60, 0.08);
}
.brief-item-header h5 {
    font-size: 0.95rem;
    color: var(--accent-red);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.brief-item-content { padding: 10px; }
.brief-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.brief-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.05);
    transition: var(--transition-fast);
    cursor: pointer;
}
.brief-option:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(231, 76, 60, 0.15);
    transform: translateX(5px);
}
.brief-option input[type="checkbox"],
.brief-option input[type="radio"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-red);
    flex-shrink: 0;
    cursor: pointer;
}
.brief-option label {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    color: var(--text-light);
    cursor: pointer;
    flex-grow: 1;
    line-height: 1.4;
}
.brief-option label + input[type="text"],
.brief-option label + textarea {
    margin-left: 16px;
    width: auto;
    flex: 1;
    min-width: 120px;
}
.brief-option {
    flex-wrap: wrap;
}
@media (max-width: 1024px) {
    .brief-option label + input[type="text"],
    .brief-option label + textarea {
        margin-left: 24px;
        width: calc(100% - 24px);
        flex: none;
    }
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}
.checkbox-group input {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    width: clamp(16px, 2.5vw, 20px);
    height: clamp(16px, 2.5vw, 20px);
    accent-color: var(--accent-red);
    cursor: pointer;
}
.checkbox-group label {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    color: var(--text-light);
}
.policy-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}
.policy-link:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-red);
    transition: var(--transition-fast);
}
.policy-link:hover:after { width: 100%; }
.form-buttons {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.2rem, 2.5vw, 2rem);
}
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container textarea,
.brief-content input[type="text"],
.brief-content textarea,
.brief-content input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1e1e1e;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.brief-option input[type="text"] {
    margin-top: 8px;
    width: 100%;
}
.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="tel"]:focus,
.form-container textarea:focus,
.brief-content input[type="text"]:focus,
.brief-content textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
    background: #ffffff;
}
.form-container input::placeholder,
.form-container textarea::placeholder,
.brief-content input::placeholder,
.brief-content textarea::placeholder {
    color: #aaa;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 1;
}
.brief-option label + input[type="text"] {
    margin-left: 24px;
    width: calc(100% - 24px);
}

/* Success popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: clamp(0.8rem, 2vw, 1.5rem);
    backdrop-filter: blur(16px);
}
.success-content {
    background: var(--light-brown-light);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    max-width: min(500px, 88vw);
    text-align: center;
    position: relative;
    border: 1px solid rgba(231, 76, 60, 0.08);
    box-shadow: var(--shadow-lg);
    animation: popupFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
}
.success-content i {
    font-size: 4rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    animation: successPulse 2s infinite;
}
@keyframes successPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.success-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--accent-red);
}
.success-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--accent-red);
    cursor: pointer;
    transition: var(--transition);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-top: 1rem;
}
.success-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}
@keyframes popupFade {
    from { opacity: 0; transform: translateY(-30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Skills */
.skills { position: relative; overflow: hidden; }
.skills:before {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.08) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}
.skills-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.skill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
}
.skill-card {
    background: var(--light-brown-light);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 2.5vw, 2rem);
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.15);
}
.skill-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.skill-card:hover:before { opacity: 0.05; }
.skill-icon {
    width: clamp(70px, 10vw, 90px);
    height: clamp(70px, 10vw, 90px);
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1rem, 2vw, 1.5rem);
    color: white;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.skill-card:hover .skill-icon { transform: scale(1.1); }
.skill-card h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 0.8rem;
    color: var(--accent-red);
}
.skill-card p {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.5;
    margin-bottom: 1.2rem;
}
.skill-level {
    width: 100%;
    margin-top: auto;
}
.skill-level-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    font-weight: 700;
    color: var(--accent-red);
}
.skill-level-bar {
    height: 8px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.08);
}
.skill-level-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 0.68, 0, 1.71);
}

/* Certificates */
.certificates {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2rem, 4vw, 4rem);
}
.certificates:before {
    content: '';
    position: absolute;
    top: -25%;
    right: -15%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}
.certificates-container {
    position: relative;
    z-index: 1;
}
.certificates h2 { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
    margin: 0 auto;
}
.certificate-card {
    background: var(--light-brown-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.08);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.15);
}
.certificate-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, rgba(139, 90, 43, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.certificate-img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
@media (max-width: 576px) {
    .certificate-img {
        max-width: 90%;
        max-height: 120px;
    }
}
.certificate-info {
    padding: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
}
.certificate-info h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: var(--accent-red);
}
.certificate-info p {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    color: var(--text-light);
    margin-bottom: 0;
}
.certificate-info a {
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}
.certificate-info a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* ==================== НОВЫЕ БЛОКИ ==================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 auto;
}
.advantage-card {
    background: var(--light-brown-light);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.08);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.15);
}
.advantage-icon {
    width: clamp(65px, 8vw, 80px);
    height: clamp(65px, 8vw, 80px);
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}
.advantage-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 0.8rem;
    color: var(--accent-red);
}
.advantage-card p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-light);
    margin-bottom: 0;
}

/* Цены */
.pricing-wrapper {
    margin: 0 auto;
    text-align: center;
}
.pricing-table {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(231, 76, 60, 0.1);
}
.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}
.pricing-table th {
    background: var(--gradient);
    color: white;
    padding: 1.2rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
}
.pricing-table td {
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(231, 76, 60, 0.08);
    color: var(--text-dark);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}
.pricing-table td:not(:first-child) {
    text-align: right;
    padding-right: 25px;
}
.pricing-table .price-cell {
    cursor: pointer;
    transition: background 0.2s;
}
.pricing-table .price-cell:hover {
    background: rgba(231, 76, 60, 0.05);
}
.pricing-table tr:last-child td {
    border-bottom: none;
}
.pricing-table .price-highlight {
    font-weight: 700;
    color: var(--accent-red);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}
.pricing-table .price-name {
    font-weight: 700;
    color: var(--text-dark);
}
.pricing-table .price-features {
    color: var(--text-light);
    font-size: 0.9rem;
}
.pricing-table tr:hover td {
    background: rgba(231, 76, 60, 0.03);
}
@media (max-width: 1024px) {
    .pricing-table table,
    .pricing-table thead,
    .pricing-table tbody,
    .pricing-table th,
    .pricing-table td,
    .pricing-table tr {
        display: block;
    }
    .pricing-table thead {
        display: none;
    }
    .pricing-table tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(231, 76, 60, 0.1);
        border-radius: var(--radius);
        padding: 0.5rem;
    }
    .pricing-table td {
        border: none;
        padding: 0.6rem 0.8rem;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .pricing-table td:not(:first-child) {
        text-align: left;
        padding-right: 0.8rem;
        cursor: pointer;
    }
    .pricing-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-dark);
        font-family: 'Montserrat', sans-serif;
        font-size: 0.85rem;
    }
    .pricing-table .price-name {
        font-size: 1.1rem;
    }
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 auto;
}
.review-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border: 1px solid rgba(231, 76, 60, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(231, 76, 60, 0.15);
}
.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}
.review-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.review-role {
    font-size: 0.85rem;
    color: var(--text-light);
}
.review-text {
    color: var(--text-dark);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 0;
}
.review-text::before {
    content: '"';
    color: var(--accent-red);
    font-size: 1.2rem;
}
.review-text::after {
    content: '"';
    color: var(--accent-red);
    font-size: 1.2rem;
}

/* FAQ */
.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: #ffffff;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid rgba(231, 76, 60, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: rgba(231, 76, 60, 0.15);
}
.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-dark);
    font-size: clamp(1rem, 2vw, 1.1rem);
    transition: var(--transition);
    user-select: none;
    font-family: 'Montserrat', sans-serif;
}
.faq-question:hover {
    color: var(--accent-red);
}
.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-red);
    font-size: 1.2rem;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(1.2rem, 2.5vw, 2.5rem);
    position: relative;
    overflow: hidden;
}
footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(1.2rem, 2.5vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
    width: 100%;
}
.footer-about { flex: 1; min-width: 240px; }
.footer-contact { flex-shrink: 0; text-align: right; }
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        text-align: left;
    }
    .footer-about p {
        text-align: left;
    }
    .footer-contact {
        text-align: left;
        width: 100%;
    }
    .contact-list {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .contact-list li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.2rem;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .contact-list li a {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        text-decoration: none;
        color: inherit;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .contact-icon {
        order: 2;
        margin: 0.2rem 0 0 0;
        align-self: flex-start;
        flex-shrink: 0;
    }
    .contact-details {
        order: 1;
        text-align: left;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .contact-details h4 {
        text-align: left;
        margin-bottom: 0.1rem;
    }
    .contact-details p {
        text-align: left;
        margin-bottom: 0;
    }
}
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    cursor: pointer;
}
.footer-logo .logo-eye { width: clamp(40px, 7vw, 55px); height: clamp(40px, 7vw, 55px); }
.footer-about p { color: rgba(255, 255, 255, 0.7); font-size: clamp(0.9rem, 1.8vw, 1rem); line-height: 1.6; }
.contact-list { list-style: none; }
.contact-list li {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.contact-icon {
    width: clamp(36px, 6vw, 48px);
    height: clamp(36px, 6vw, 48px);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: clamp(0.7rem, 1.5vw, 1rem);
    order: 1;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}
.contact-details { order: 0; }
.contact-list li:hover .contact-icon {
    background: var(--gradient);
    transform: translateY(-4px) scale(1.08);
}
.contact-details h4 {
    color: white;
    margin-bottom: 5px;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}
.contact-details p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}
.footer-policy {
    margin-top: clamp(1.2rem, 2.5vw, 2rem);
}
.footer-policy p {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}
.footer-policy a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}
.footer-policy a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: var(--transition-fast);
}
.footer-policy a:hover:after { width: 100%; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: lightboxFadeIn 0.3s ease;
    cursor: default;
}
@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    font-weight: bold;
    z-index: 10001;
}
.lightbox-close:hover {
    color: #e74c3c;
    transform: scale(1.1);
}
@media (max-width: 1024px) {
    .lightbox-close { top: 15px; right: 20px; font-size: 35px; }
    .lightbox-img { max-width: 95vw; max-height: 85vh; }
}
@media (max-width: 576px) {
    .lightbox-close { top: 10px; right: 15px; font-size: 30px; }
    .lightbox-img { max-width: 98vw; max-height: 80vh; }
}

/* Floating video container */
.floating-video-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}
.floating-video-container video {
    width: 100%;
    height: auto;
    display: block;
}
.close-video-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-video-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 25px;
    left: 25px;
    right: auto;
    max-width: 420px;
    width: auto;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.2rem 1.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1e1e1e;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(231, 76, 60, 0.2);
    border: none;
    animation: cookieFadeIn 0.4s ease;
    transition: all 0.2s;
    opacity: 1;
    visibility: visible;
}
@keyframes cookieFadeIn {
    from { opacity: 0; transform: translateY(20px); visibility: hidden; }
    to { opacity: 1; transform: translateY(0); visibility: visible; }
}
.cookie-consent p {
    margin: 0;
    flex: 1;
    color: #1e1e1e;
    font-weight: 500;
}
.cookie-consent a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    border-bottom: 2px solid rgba(231, 76, 60, 0.3);
}
.cookie-consent a:hover {
    color: #c0392b;
    border-bottom-color: #e74c3c;
}
.cookie-consent button {
    background: linear-gradient(135deg, #e74c3c 0%, #8b5a2b 100%);
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    white-space: nowrap;
}
.cookie-consent button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #ff5e4a 0%, #a06b3a 100%);
}
@media (max-width: 1024px) {
    .cookie-consent {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
        flex-direction: column;
        text-align: center;
        padding: 1rem 1.2rem;
    }
    .cookie-consent button { width: 100%; white-space: normal; padding: 0.7rem; }
    .cookie-consent p { margin-bottom: 0.5rem; }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff, #efebe9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}
.preloader-eye {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e74c3c, #8b5a2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}
.preloader-eye-ball {
    width: 60%;
    height: 30%;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    position: relative;
    overflow: hidden;
    animation: preloaderBlink 2s infinite;
}
.preloader-eye-pupil {
    width: 40%;
    height: 70%;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: preloaderMove 3s infinite alternate;
}
.preloader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e74c3c, #8b5a2b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}
.preloader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(231, 76, 60, 0.2);
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes preloaderBlink {
    0%,45%,55%,100% { transform: scaleY(1); }
    50% { transform: scaleY(0.2); }
}
@keyframes preloaderMove {
    0% { transform: translate(-50%, -50%) translateX(-8px); }
    100% { transform: translate(-50%, -50%) translateX(8px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

/* Кнопка закрытия видео на мобильных */
.close-video-mobile {
    display: none;
    position: absolute;
    top: 6px;
    left: 6px;
    width: 26px;
    height: 26px;
    background-color: rgba(0,0,0,0.7);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: all 0.2s ease;
}
.close-video-mobile:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.05);
}
@media (max-width: 1024px) {
    .close-video-mobile {
        display: flex;
    }
}
@media (min-width: 1025px) {
    .close-video-mobile {
        display: none !important;
    }
}

/* ==================== ПОП-АП ДЛЯ ТАБЛИЦЫ ЦЕН ==================== */
.price-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}
.price-popup-overlay.show {
    display: flex;
}
.price-popup-content {
    background: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: popupIn 0.3s ease;
    outline: none;
}
.price-popup-content,
.price-popup-content * {
    cursor: default !important;
}
.price-popup-close {
    cursor: pointer !important;
}
.price-popup-content a {
    cursor: pointer !important;
}
@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.price-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.price-popup-close:hover {
    color: #e74c3c;
}
.price-popup-content h3 {
    color: var(--accent-red);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.price-popup-content #pricePopupBody {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}
.price-popup-content #pricePopupBody ul {
    padding-left: 1.2rem;
}
.price-popup-content #pricePopupBody li {
    margin-bottom: 0.5rem;
}
.price-popup-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* ================================================================ */
/* ===== ПЛАНШЕТНАЯ И МОБИЛЬНАЯ ВЕРСИЯ (до 1024px) – ГАМБУРГЕР ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 0.8rem !important;
    }

    /* --- Убираем контур у иконки почты --- */
    .email-link {
        border: none !important;
    }

    /* --- Слайдер портфолио: центрирование с отступами --- */
    #portfolio .swiper {
        height: clamp(420px, 60vw, 500px) !important;
        padding: 0 10px !important;
        padding-bottom: 40px !important;
        overflow: visible !important;
        margin: 0 auto;
        max-width: 900px;
    }
    #portfolio .swiper-wrapper {
        display: flex !important;
    }
    #portfolio .swiper-slide {
        width: 100% !important;
        max-width: 340px !important;
        margin: 20 auto !important;
        flex-shrink: 0 !important;
        scroll-snap-align: center !important;
    }
    .portfolio-image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }

    /* --- Увеличен нижний отступ в карточках портфолио на мобильных --- */
    .portfolio-info {
        display: flex;
        flex-direction: column;
        padding: 1rem 1rem 1.5rem !important;
        flex: 1;
    }

    /* --- Плашка "Оставить заявку" – ширина как у карточек сертификатов --- */
    .form-buttons .btn {
        width: auto !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 12px 24px !important;
        display: inline-flex !important;
    }

    /* --- Плашка под текстом – растянута на всю ширину --- */
    .welcome-text p {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0rem 0rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        background: rgba(255,255,255,0.5) !important;
        backdrop-filter: blur(8px) !important;
        border-radius: 28px !important;
        box-sizing: border-box !important;
    }

    /* --- Меняем местами кнопки на мобильных с помощью order --- */
    .welcome-buttons {
        justify-content: center;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .welcome-buttons .btn:first-child {
        order: 2 !important;
    }
    .welcome-buttons .btn:last-child {
        order: 1 !important;
    }

    /* Остальные мобильные стили (без изменений) */
    .timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .welcome-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .welcome-content {
        text-align: center;
        width: 100%;
    }
    .experience-badge {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    .mobile-menu-btn {
        display: flex;
        order: 3;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        transition: var(--transition);
        z-index: 1000;
        gap: 1.5rem;
        backdrop-filter: blur(16px);
        margin-left: 0;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    header {
        padding: 0.8rem 0;
    }
    header.scrolled {
        padding: 0.6rem 0;
    }
    .welcome {
        padding-top: 80px !important;
        padding-bottom: 30px !important;
    }
    .form-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    .bg-spot,
    .bg-spot-animated,
    .bg-wave-animated {
        display: none;
    }
    
    /* ===== ИКОНКИ НА ГЕРОЕ – БЕЗ АНИМАЦИИ, НО С ТЕМИ ЖЕ ПАРАМЕТРАМИ ===== */
    .floating-element-animated {
        animation: none !important;
        display: block !important;
        opacity: 0.5 !important;
        filter: blur(2px) !important;
    }

    .portfolio-info h3 {
        min-height: 2.5em;
    }

    /* ===== ВИДЕО – ФИКСИРОВАННОЕ ПОВЕРХ ВСЕХ БЛОКОВ (z-index: 999) ===== */
    .video-placeholder {
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important;
        width: 140px !important;
        height: 180px !important;
        max-width: 140px !important;
        z-index: 999 !important;
        background: rgba(0,0,0,0.85) !important;
        border-radius: 12px !important;
        border: 2px solid #e74c3c !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
        backdrop-filter: blur(4px) !important;
        transform: none !important;
        pointer-events: auto !important;
        margin: 0 !important;
        isolation: isolate !important;
        will-change: auto !important;
        overflow: hidden !important;
    }
    .video-placeholder video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        display: block !important;
    }
    .video-placeholder .video-controls {
        bottom: 6px !important;
        right: 6px !important;
        gap: 4px !important;
        padding: 4px 8px !important;
        background: rgba(0,0,0,0.7) !important;
        border-radius: 30px !important;
        z-index: 10 !important;
    }
    .video-placeholder .video-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.9rem !important;
    }
    .close-video-mobile {
        top: 4px !important;
        left: 4px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 14px !important;
    }

    .stage-card,
    .skill-card,
    .certificate-card,
    .swiper-slide,
    .advantage-card,
    .review-card {
        background: #ffffff !important;
        border: 1px solid rgba(231, 76, 60, 0.2) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: none !important;
    }
    .stage-card h3,
    .skill-card h3,
    .certificate-info h3,
    .advantage-card h3 {
        color: var(--accent-red) !important;
    }
    .stage-card p,
    .skill-card p,
    .certificate-info p,
    .advantage-card p {
        color: #555 !important;
    }
    #advantages .container {
        padding: 0 !important;
    }
    #advantages .advantages-grid {
        padding: 0 1rem !important;
        gap: 1rem !important;
    }
    .stage-card:hover,
    .skill-card:hover,
    .certificate-card:hover,
    .swiper-slide:hover,
    .advantage-card:hover,
    .review-card:hover {
        transform: none !important;
        transition: none !important;
    }
    .stage-card:hover .stage-icon,
    .skill-card:hover .skill-icon,
    .advantage-card:hover .advantage-icon {
        transform: none !important;
    }
    .stage-card,
    .skill-card,
    .certificate-card,
    .advantage-card,
    .review-card {
        transform-style: flat !important;
        perspective: none !important;
    }
    .brief-header {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-sizing: border-box !important;
        padding: 12px 18px !important;
    }
    .brief-header h4 {
        flex: 1;
        margin: 0;
    }
    .form-container {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        padding: 1rem !important;
        box-sizing: border-box;
    }
    .form-group,
    .brief-container,
    .checkbox-group,
    .form-buttons {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .form-input,
    .form-textarea,
    .brief-content input[type="text"],
    .brief-content textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 12px 14px !important;
        font-size: 1rem !important;
    }
    .form-input::placeholder,
    .form-textarea::placeholder {
        font-size: 0.9rem;
    }
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    .brief-loading,
    .brief-error,
    .brief-content input,
    .brief-content textarea,
    .form-input,
    .form-textarea {
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .brief-loading {
        max-width: 100%;
        display: block;
        padding: 12px;
        box-sizing: border-box;
    }
    .brief-options {
        grid-template-columns: 1fr !important;
    }
    .brief-option {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        margin-bottom: 8px;
        padding: 0;
        background: transparent;
        border: none;
    }
    /* ТОЛЬКО для бюджетной опции увеличиваем отступ */
    .brief-option.budget-option {
        gap: 12px;
    }
    .brief-option input[type="radio"],
    .brief-option input[type="checkbox"] {
        flex-shrink: 0;
        margin-top: 3px;
    }
    .brief-option label {
        flex: 1;
        text-align: left;
        word-break: break-word;
        white-space: normal;
        line-height: 1.4;
        font-size: 0.95rem;
    }
    .brief-option input[type="text"] {
        width: 100% !important;
        margin-top: 8px;
        margin-left: 0 !important;
    }
    .portfolio-image,
    .swiper-slide .portfolio-image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }
    .portfolio-video,
    .swiper-slide .portfolio-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    .portfolio-info h3 {
        min-height: 2.5rem;
        margin-bottom: 0rem;
        font-size: 1rem;
        line-height: 1.3;
    }
    .portfolio-info p {
        margin-top: 0;
        font-size: 0.85rem;
        line-height: 1.4;
        flex: 1;
    }
    .portfolio-info h3.blog-title {
        min-height: 2.5rem;
    }
    .advantages-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding: 0.5rem 0.2rem 0.5rem 0.2rem !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .advantages-grid::-webkit-scrollbar {
        display: none !important;
    }
    .advantage-card {
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
        min-width: 280px !important;
        margin-bottom: 0 !important;
    }
    .advantages-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
    .advantages-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        transition: background 0.3s;
        cursor: pointer;
    }
    .advantages-dot.active {
        background: #e74c3c;
    }
    .reviews-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding: 0.5rem 0.2rem 0.5rem 0.2rem !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .reviews-grid::-webkit-scrollbar {
        display: none !important;
    }
    .review-card {
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
        min-width: 280px !important;
        margin-bottom: 0 !important;
    }
    .reviews-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
    .reviews-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        transition: background 0.3s;
        cursor: pointer;
    }
    .reviews-dot.active {
        background: #e74c3c;
    }
    .tab-buttons-container {
        max-width: 800px;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .tab-btn {
        width: auto !important;
        min-width: 200px;
        text-align: center;
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }
}

/* ========== ТАБЫ ПОСЛЕ ФОРМЫ (ДЕСКТОПНЫЙ ВИД) ========== */
.tab-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px auto 30px;
    flex-wrap: wrap;
    max-width: 800px;
}
.tab-btn {
    background: var(--light-brown-light);
    border: 2px solid rgba(231, 76, 60, 0.3);
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--accent-red);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}
.tab-btn:hover {
    transform: translateY(-3px);
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}
.tab-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(231, 76, 60, 0.4);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeTab 0.4s ease;
}
@keyframes fadeTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== ДОПОЛНИТЕЛЬНЫЕ ГЛОБАЛЬНЫЕ СТИЛИ ==================== */
.tilda-icon {
    font-family: Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
}
.contact-details a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}
.contact-details a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ===== ДЕСКТОП: левый отступ для контента и контраст карточек ===== */
@media (min-width: 1025px) {
    .welcome-content {
        padding-left: 30px !important;
    }
    .stage-card,
    .skill-card,
    .certificate-card,
    .swiper-slide,
    .advantage-card,
    .review-card {
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid rgba(231, 76, 60, 0.15) !important;
    }
    .portfolio-item {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(231, 76, 60, 0.15);
    }

    /* ===== УЛУЧШЕНИЯ ТАБЛИЦЫ ЦЕН НА ДЕСКТОПЕ ===== */
    .pricing-table td {
        text-align: center;
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
    }
    .pricing-table td.price-name {
        font-size: 1.1rem;
        font-weight: 700;
        text-align: center;
    }
    .pricing-table tr:last-child td {
        font-size: 1rem;
        text-align: center;
        padding: 1rem;
    }
    .pricing-table .price-cell {
        text-align: center !important;
    }

    /* ===== УВЕЛИЧЕННЫЙ ОТСТУП ДЛЯ ЗАГОЛОВКА ПОРТФОЛИО ===== */
    #portfolio h2 {
        margin-top: 60px;
    }

    /* ===== УВЕЛИЧЕННЫЙ ОТСТУП МЕЖДУ КОНТАКТАМИ И ИКОНКОЙ ПОЧТЫ ===== */
    .header-email {
        margin-left: 28px;
    }

    /* ===== УМЕНЬШАЕМ ШИРИНУ ТАБЛИЦЫ ЦЕН НА 20% В ДЕСКТОПЕ ===== */
    .pricing-wrapper {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* ===== ПЛАНШЕТНАЯ ВЕРСИЯ (768–1024px) – ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ И ЦЕНТРИРОВАНИЕ ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Переопределяем поведение контейнера, чтобы убрать лишний отступ */
    .header-container {
        justify-content: flex-start;
        gap: 0;
    }
    .logo {
        margin-right: auto;
    }
    /* Увеличенная иконка почты и отступ от гамбургера */
    .header-email {
        margin-left: 10px;
        margin-right: 15px;
        order: 2;
    }
    .email-link {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    .mobile-menu-btn {
        margin-left: 0;
        padding: 0;
        order: 3;
    }

    /* Уменьшаем отступы контейнера */
    .container {
        padding: 0 1.5rem !important;
    }

    /* Таблица цен – уменьшаем ширину ещё на 15% (теперь 500px) */
    .pricing-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Центрирование блоков */
    .welcome-content {
        text-align: center;
    }
    .welcome-content .experience-badge {
        margin-left: auto;
        margin-right: auto;
        display: inline-flex;
    }
    .welcome-buttons {
        justify-content: center;
    }
    .welcome-text p {
        margin-left: auto;
        margin-right: auto;
    }

    /* Уменьшаем размер заголовков */
    h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    .welcome-content h1 {
        font-size: 2.8rem;
    }

    /* Сетка этапов – 2 колонки */
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Сетка преимуществ и отзывов – 2 колонки */
    .advantages-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Уменьшаем размер шрифта в таблице цен */
    .pricing-table td {
        font-size: 0.9rem;
        padding: 0.8rem 0.4rem;
    }
    .pricing-table td.price-name {
        font-size: 0.95rem;
    }

    /* Форма: увеличиваем ширину */
    .form-container {
        max-width: 90%;
        padding: 1.5rem;
    }

    /* Видео на главном: уменьшаем максимальную ширину */
    .video-placeholder {
        max-width: 280px;
    }

    /* Слайдер портфолио: высота чуть меньше */
    #portfolio .swiper {
        height: clamp(400px, 50vw, 500px);
    }

    /* Отступы в карточках портфолио */
    .portfolio-info {
        padding: 1rem;
    }
    .portfolio-info h3 {
        font-size: 1.1rem;
    }
    .portfolio-info p {
        font-size: 0.85rem;
    }

    /* Кнопки – чуть меньше */
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    /* Центрирование для блоков, где контент обычно слева */
    .stages-container,
    .skills-container,
    .certificates-container,
    .advantages,
    .reviews,
    .faq,
    .pricing-wrapper {
        text-align: center;
    }
    .stage-card,
    .skill-card,
    .advantage-card,
    .review-card,
    .certificate-card {
        text-align: center;
    }
}

/* ===== СТИЛИ ДЛЯ КАПЧИ ===== */
.captcha-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInOverlay 0.3s ease;
}

.captcha-overlay.show {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.captcha-window {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: clamp(1.8rem, 5vw, 3rem);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(231, 76, 60, 0.15);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.captcha-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    padding: 0 8px;
}
.captcha-close:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
}

.captcha-window h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--accent-red);
    margin-bottom: 1rem;
    text-align: center;
}

.captcha-question {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    background: var(--light-brown-light);
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(231, 76, 60, 0.1);
}
.captcha-question span {
    font-weight: 800;
    color: var(--accent-red);
}

.captcha-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    border: 2px solid #ddd;
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.captcha-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}
.captcha-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.25);
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.captcha-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.captcha-btn {
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.captcha-btn-check {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    flex: 1;
}
.captcha-btn-check:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}
.captcha-btn-check:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.captcha-btn-refresh {
    background: var(--light-brown-light);
    color: var(--text-dark);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.2rem;
    border-radius: 50%;
}
.captcha-btn-refresh:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(180deg);
}

.captcha-error {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.8rem;
    min-height: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.captcha-error.show {
    opacity: 1;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .captcha-window {
        padding: 1.5rem;
    }
    .captcha-btn-check {
        flex: 1 1 100%;
    }
    .captcha-btn-refresh {
        width: 44px;
        height: 44px;
    }
}

/* ===== ОПТИМИЗАЦИЯ ДЛЯ СТАРЫХ ПК И УСТРОЙСТВ С ЭКОНОМИЕЙ ЭНЕРГИИ ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animated-bg,
    .animated-bg::before,
    .animated-bg::after {
        display: none !important;
    }

    .floating-element-animated,
    .floating-element {
        display: none !important;
    }

    .btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .stage-card:hover,
    .skill-card:hover,
    .advantage-card:hover,
    .review-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }

    .eye-ball {
        animation: none !important;
        transform: translate(-50%, -50%) rotate(0deg) !important;
    }
    .eye-pupil {
        transition: none !important;
    }

    .video-placeholder {
        transform: none !important;
    }
    .video-placeholder:hover {
        transform: none !important;
    }

    h2 {
        opacity: 1 !important;
        transform: translateX(0) !important;
        transition: none !important;
    }
    h2::after {
        width: 160px !important;
    }
}

/* ===== ОПТИМИЗАЦИЯ ДЛЯ СЛАБЫХ УСТРОЙСТВ (класс .low-performance) ===== */
body.low-performance *,
body.low-performance *::before,
body.low-performance *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

body.low-performance .floating-element-animated,
body.low-performance .animated-bg,
body.low-performance .bg-spot-animated,
body.low-performance .bg-wave-animated,
body.low-performance #pixel-layer {
    display: none !important;
}

body.low-performance .video-placeholder {
    transform: none !important;
}

body.low-performance .btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.low-performance .stage-card:hover,
body.low-performance .skill-card:hover,
body.low-performance .advantage-card:hover,
body.low-performance .review-card:hover,
body.low-performance .certificate-card:hover,
body.low-performance .swiper-slide:hover {
    transform: none !important;
    box-shadow: var(--shadow) !important;
}

body.low-performance .eye-ball {
    animation: none !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
}
body.low-performance .eye-pupil {
    transition: none !important;
}

body.low-performance h2 {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: none !important;
}
body.low-performance h2::after {
    width: 160px !important;
}

body.low-performance .welcome-content h1.text-reveal,
body.low-performance .welcome-content .welcome-text p.text-reveal {
    filter: blur(0) !important;
    opacity: 1 !important;
    transition: none !important;
}

body.low-performance .experience-badge.slide-up,
body.low-performance .welcome-buttons.slide-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* ===== УВЕДОМЛЕНИЕ ПОД КНОПКОЙ ===== */
.form-message {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .form-message {
        margin-top: 28px;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ 425px ===== */
@media (max-width: 425px) {
    /* Перенос слова "меня" в заголовке */
    .mobile-break {
        display: inline;
    }
    .advantages h2 .mobile-break {
        display: inline;
    }

    /* Отзывы – такой же стиль, как преимущества */
    .reviews-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding: 0.5rem 0.2rem 0.5rem 0.2rem !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .reviews-grid::-webkit-scrollbar {
        display: none !important;
    }
    .review-card {
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
        min-width: 280px !important;
        margin-bottom: 0 !important;
    }
    .reviews-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
    .reviews-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        transition: background 0.3s;
        cursor: pointer;
    }
    .reviews-dot.active {
        background: #e74c3c;
    }
}

@media (min-width: 426px) {
    .mobile-break {
        display: none;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ 425px ===== */
@media (max-width: 425px) {
    /* Перенос слова "меня" в заголовке */
    .mobile-break {
        display: inline;
    }
    .advantages h2 .mobile-break {
        display: inline;
    }

    /* Расширяем контейнер отзывов на всю ширину */
    #reviews .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Отзывы – такой же стиль, как преимущества, но с полной шириной */
    .reviews-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding: 0.5rem 0.5rem !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .reviews-grid::-webkit-scrollbar {
        display: none !important;
    }
    .review-card {
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
        min-width: 280px !important;
        margin: 0 !important;
    }
    .reviews-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
    .reviews-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        transition: background 0.3s;
        cursor: pointer;
    }
    .reviews-dot.active {
        background: #e74c3c;
    }
}

/* ================================================================ */
/* ===== МОБИЛЬНЫЙ СЛАЙДЕР ДЛЯ ПОРТФОЛИО (ТОНКИЙ СВЕТЛО-КРАСНЫЙ КОНТУР) ===== */
/* ================================================================ */
.portfolio-mobile-slider {
    display: none;
    overflow: hidden;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    touch-action: pan-y;
}

.portfolio-mobile-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding: 0 !important;
    margin: 0 !important;
    cursor: grab;
}

.portfolio-mobile-track.dragging {
    transition: none;
    cursor: grabbing;
}

.portfolio-mobile-track .portfolio-item {
    flex: 0 0 280px;
    min-width: 280px;
    background: #ffffff !important;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 0.5px solid rgba(231, 76, 60, 0.25) !important;
    box-shadow: var(--shadow-sm) !important;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
}

.portfolio-mobile-track .portfolio-item .portfolio-image {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    position: relative;
    overflow: hidden;
    background: #000;
}

.portfolio-mobile-track .portfolio-item .portfolio-image img,
.portfolio-mobile-track .portfolio-item .portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.portfolio-mobile-track .portfolio-item .portfolio-info {
    padding: 0.8rem 1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-mobile-track .portfolio-item .portfolio-info h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    color: var(--accent-red);
    min-height: auto !important;
}

.portfolio-mobile-track .portfolio-item .portfolio-info p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
    flex: 1;
    color: var(--text-light);
}

.portfolio-mobile-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.portfolio-mobile-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s;
    cursor: pointer;
}

.portfolio-mobile-dot.active {
    background: #e74c3c;
}

@media (min-width: 376px) and (max-width: 425px) {
    #portfolio .swiper {
        display: none !important;
    }
    .portfolio-mobile-slider {
        display: block !important;
    }
    .portfolio-mobile-dots {
        display: flex !important;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ (АНИМАЦИЯ ГАМБУРГЕРА, ИКОНКА "?", ПЕРЕНОС "КЛИЕНТОВ", ДУБЛИРУЮЩИЙ ТЕКСТ) ===== */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn .burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active .burger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.mobile-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.active .burger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.price-cell .info-icon {
    display: inline-block;
    font-size: 0.7em;
    margin-left: 4px;
    color: var(--accent-red);
    cursor: pointer;
    font-weight: 700;
    vertical-align: super;
    transition: transform 0.2s;
}
.price-cell .info-icon:hover {
    transform: scale(1.2);
}

@media (max-width: 425px) {
    .mobile-break {
        display: inline !important;
    }
    .reviews h2 .mobile-break {
        display: block !important;
        margin: 0;
        line-height: 0;
    }
}

.pricing-note-mobile {
    display: none;
}
@media (max-width: 768px) {
    .pricing-note-mobile {
        display: block;
    }
}