/* ===================================
   CSS VARIABLES (THEMING)
   =================================== */
:root {
    /* Colors - Light Theme */
    --color-primary: #E53935;
    --color-primary-dark: #C62828;
    --color-primary-light: #FF6E6B;
    --color-accent: #FF5722;
    
    --color-bg: #FFFFFF;
    --color-bg-secondary: #F8F9FA;
    --color-bg-tertiary: #F0F1F3;
    
    --color-text: #1A1A2E;
    --color-text-secondary: #4A4A5A;
    --color-text-muted: #6B7280;
    
    --color-border: #E5E7EB;
    --color-card-bg: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(229, 57, 53, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Hero overlay */
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
    --hero-overlay-white: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --color-bg: #0F0F1A;
    --color-bg-secondary: #1A1A2E;
    --color-bg-tertiary: #252540;
    
    --color-text: #F5F5F7;
    --color-text-secondary: #B0B0B8;
    --color-text-muted: #808090;
    
    --color-border: #2A2A3E;
    --color-card-bg: #1A1A2E;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    --glass-bg: rgba(26, 26, 46, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Hero overlay - dark theme */
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* ===================================
   RESET & BASE
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--white {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}

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

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.header--scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

[data-theme="dark"] .header--scrolled {
    background: rgba(15, 15, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.header__logo-icon {
    font-size: 2rem;
}

.header__logo-text {
    color: white;
}

.header__logo-accent {
    color: var(--color-primary);
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__link {
    font-weight: 500;
    color: white;
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.header__link:hover {
    color: var(--color-primary);
}

.header__link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.header__phone:hover {
    color: var(--color-primary);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--color-primary);
    transform: rotate(15deg);
}

.theme-toggle:hover .theme-toggle__icon {
    filter: none;
}

.theme-toggle__icon {
    font-size: 1.25rem;
    position: absolute;
    transition: all var(--transition-base);
    filter: brightness(0) invert(1);
}

.theme-toggle__icon--dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle__icon--light {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle__icon--dark {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle__icon--light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu__link {
    font-size: 1.125rem;
    font-weight: 500;
    color: white;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__link:hover {
    color: var(--color-primary);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('2.jpeg') center/cover no-repeat;
    animation: parallax 20s ease-in-out infinite;
}

@keyframes parallax {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
}

.hero__overlay-white {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay-white);
    z-index: 1;
}

[data-theme="dark"] .hero__overlay-white {
    display: none;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
}

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

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: var(--section-padding);
    background: var(--color-bg-secondary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-card__description {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.services__cta {
    text-align: center;
    padding: 40px;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.services__cta-text {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__text strong {
    color: var(--color-text);
}

.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-display);
}

.about__stat-label {
    display: block;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.about__image {
    position: relative;
}

.about__img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.about__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .about__image::after {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .about__image::after {
    background: rgba(0, 0, 0, 0.2);
}

.about__image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-xl);
    z-index: -1;
}

/* ===================================
   ADVANTAGES SECTION
   =================================== */
.advantages {
    padding: var(--section-padding);
    background: var(--color-bg-secondary);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.advantage-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.advantage-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.advantage-card__title {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.advantage-card__text {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta__container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.cta__content {
    flex: 1;
    min-width: 300px;
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 16px;
}

.cta__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.cta__form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--glass-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta__form .form-group {
    flex: 1;
    min-width: 200px;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact__item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact__icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact__item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text);
}

.contact__item p {
    color: var(--color-text-secondary);
}

.contact__link {
    color: var(--color-primary);
    font-weight: 500;
}

.contact__link:hover {
    color: var(--color-primary-dark);
}

.contact__form {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.contact__form-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* ===================================
   FORMS
   =================================== */
.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 16px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__desc {
    color: var(--color-text-secondary);
    margin-top: 16px;
    line-height: 1.7;
}

.footer__links h4,
.footer__contacts h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__contacts .footer__phone,
.footer__contacts .footer__email {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.footer__contacts .footer__phone:hover,
.footer__contacts .footer__email:hover {
    color: var(--color-primary);
}

.footer__address {
    color: var(--color-text-secondary);
    margin-top: 16px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer__policy {
    color: var(--color-text-muted);
}

.footer__policy:hover {
    color: var(--color-primary);
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   ANIMATIONS
   =================================== */
/* Fade Up Animation */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect for cards */
.services__grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.services__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.services__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.services__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.services__grid .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.services__grid .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

.advantages__grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.advantages__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.advantages__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.advantages__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.advantages__grid .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.advantages__grid .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* ===================================
   RESPONSIVE
   =================================== */
/* Tablet */
@media (max-width: 1024px) {
    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__image {
        order: -1;
    }
    
    .about__img {
        height: 400px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Portrait & Large Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .header__nav {
        display: none;
    }
    
    .header__phone {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .services__grid,
    .advantages__grid {
        grid-template-columns: 1fr;
    }
    
    .cta__container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta__form {
        width: 100%;
        flex-direction: column;
    }
    
    .cta__form .form-group {
        width: 100%;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .advantage-card {
        padding: 24px;
    }
    
    .contact__form {
        padding: 24px;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
