/* ============================================
   LANDING PAGE - АНТИКОР.ЭКСПЕРТ
   Modern, Professional Design
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --accent: #f59e0b;
    --accent-dark: #d97706;

    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;   /* 12 × φ */
    --radius-xl: 32px;  /* 20 × φ */

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

.logo-text .accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
}

.phone-icon {
    font-size: 18px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition-fast);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Светлый вариант outline для тёмного фона (hero) */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        rgba(15, 23, 42, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    max-width: 800px;
    color: var(--white);
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 14px;
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-300);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.feature-icon {
    color: var(--success);
    font-weight: bold;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 13px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 24px 0;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    text-align: center;
}

.promo-icon {
    font-size: 48px;
}

.promo-text {
    color: var(--white);
}

.promo-text h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.promo-text p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gray-100);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title .accent {
    color: var(--primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-600);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-card.featured {
    border: 2px solid var(--primary);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
}

.service-content {
    padding: 28px;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.service-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   TECHNOLOGY
   ============================================ */
.technology {
    background: var(--dark);
    color: var(--white);
}

.technology .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.technology .section-title {
    color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.tech-step {
    display: flex;
    gap: 24px;
}

.step-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    border-radius: var(--radius-lg);
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--gray-400);
    font-size: 15px;
    line-height: 1.7;
}

.tech-materials {
    text-align: center;
}

.tech-materials h3 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--gray-300);
}

.materials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.material-card {
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.material-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.material-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.material-card p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.advantage-card {
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.advantage-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 18px;  /* 30/φ ≈ 18.5 */
    font-size: 18px;  /* 30/φ */
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--gray-600);
    font-size: 15px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    background: var(--gray-50);
}

.gallery-showcase {
    margin-bottom: 40px;
}

.before-after-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ba-image {
    position: relative;
}

.ba-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.ba-labels {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 200px;
}

.ba-label {
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
}

.ba-before {
    background: var(--danger);
    color: var(--white);
}

.ba-after {
    background: var(--success);
    color: var(--white);
}

.ba-info {
    padding: 24px;
    text-align: center;
}

.ba-info h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.ba-info p {
    color: var(--gray-600);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--accent);
    border-radius: 100px;
}

.stars {
    font-size: 18px;
}

.rating-text {
    font-weight: 600;
    color: var(--dark);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.testimonial-car {
    font-size: 13px;
    color: var(--gray-500);
}

.testimonial-rating {
    font-size: 14px;
}

.testimonial-text {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 86, 219, 0.95) 0%,
        rgba(30, 64, 175, 0.9) 100%
    );
}

.cta-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contacts-info h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    font-size: 24px;
}

.contact-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
}

a.contact-value:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contacts-map {
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-200);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

.footer-logo .accent {
    color: var(--primary-light);
}

.footer-text {
    color: var(--gray-500);
    font-size: 14px;
    text-align: center;
}

.footer-text p {
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--dark);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--gray-600);
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition-fast);
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

.form-note a {
    color: var(--primary);
    text-decoration: underline;
}

.modal-success {
    text-align: center;
    padding: 40px 0;
}

.modal-success .success-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.modal-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.modal-success p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

/* ============================================
   FLOATING CTA
   ============================================ */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.phone {
    background: var(--success);
    color: var(--white);
    display: none; /* Скрыта на десктопе */
}

/* Показываем кнопку звонка только на мобильных */
@media (max-width: 768px) {
    .floating-btn.phone {
        display: flex;
    }
}

.floating-btn.chat {
    background: var(--primary);
    color: var(--white);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
        --container-padding: 16px;
    }

    /* Container для мобильных - обязательный padding */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Navbar mobile - полная переработка */
    .navbar .container {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px !important;
        gap: 6px;
    }

    /* Логотип - минимальный размер */
    .logo {
        font-size: 14px;
        flex: 0 1 auto;
        min-width: 0;
        gap: 4px;
    }

    .logo-icon {
        font-size: 18px;
        flex-shrink: 0;
    }

    .logo-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Скрываем телефон на мобильных */
    .nav-actions .phone-link {
        display: none;
    }

    /* Кнопка записаться на мобильных - компактная */
    .nav-actions {
        flex: 0 0 auto;
        gap: 6px;
    }

    .nav-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* Бургер меню */
    .mobile-menu-btn {
        flex: 0 0 auto;
        margin-left: 2px;
        padding: 6px;
    }

    .mobile-menu-btn span {
        width: 20px;
    }

    /* Hero mobile - полная переработка */
    .hero {
        min-height: auto;
        padding-top: 56px;
        display: block;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    /* Hero content с гарантированными отступами */
    .hero-content {
        position: relative;
        padding: 24px 0 40px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-badge {
        font-size: 10px;
        padding: 5px 10px;
        margin-bottom: 14px;
        display: inline-flex;
    }

    .hero-title {
        font-size: 22px;
        margin-bottom: 14px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .hero-features {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-feature {
        font-size: 13px;
        flex: none;
        width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 14px 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-stats {
        display: flex;
        gap: 12px;
        padding-top: 24px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .stat-number {
        font-size: 20px;
        white-space: nowrap;
    }

    .stat-label {
        font-size: 10px;
        white-space: nowrap;
    }

    .scroll-indicator {
        display: none;
    }

    /* Promo banner mobile */
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .promo-icon {
        font-size: 32px;
    }

    .promo-text h3 {
        font-size: 16px;
    }

    .promo-text p {
        font-size: 13px;
    }

    .promo-content .btn {
        width: 100%;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 30px;
    }

    .section-label {
        font-size: 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        border-radius: var(--radius-md);
    }

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h3 {
        font-size: 18px;
    }

    .service-content p {
        font-size: 14px;
    }

    .service-features {
        font-size: 13px;
    }

    .service-footer {
        flex-direction: column;
        gap: 12px;
    }

    .service-footer .btn {
        width: 100%;
    }

    .price-value {
        font-size: 20px;
    }

    /* Technology mobile */
    .tech-step {
        padding: 20px;
    }

    .step-number {
        font-size: 36px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 14px;
    }

    .tech-materials h3 {
        font-size: 18px;
    }

    .materials-grid {
        flex-direction: column;
        gap: 12px;
    }

    .material-card {
        padding: 16px;
    }

    .material-logo {
        font-size: 18px;
    }

    /* Advantages mobile */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-card {
        padding: 20px;
        text-align: center;
    }

    .advantage-icon {
        font-size: 32px;
    }

    .advantage-card h3 {
    font-size: 18px;  /* 30/φ ≈ 18.5 */
        font-size: 16px;
    }

    .advantage-card p {
        font-size: 13px;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        height: 200px;
    }

    .ba-image {
        height: auto;
    }

    .ba-image img {
        height: auto;
        max-height: none;
        object-fit: contain;
        filter: brightness(1.4) contrast(1.1);
    }

    .ba-labels {
        gap: 40px;
        bottom: 10px;
    }

    .ba-label {
        font-size: 11px;
        padding: 5px 12px;
    }

    .ba-info {
        padding: 14px;
    }

    .ba-info h3 {
        font-size: 15px;
    }

    .ba-info p {
        font-size: 12px;
    }

    /* Testimonials mobile */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .testimonial-name {
        font-size: 15px;
    }

    .testimonial-car {
        font-size: 12px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .rating-badge {
        flex-direction: column;
        gap: 4px;
    }

    /* CTA mobile */
    .cta {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* Contacts mobile */
    .contacts-info h2 {
        font-size: 24px;
    }

    .contact-item {
        padding: 12px 0;
    }

    .contact-icon {
        font-size: 20px;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-value {
        font-size: 15px;
    }

    .social-links {
        justify-content: center;
    }

    .contacts-map {
        height: 250px;
    }

    /* Footer mobile */
    .footer {
        padding: 30px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-logo {
        font-size: 18px;
    }

    .footer-text p {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        font-size: 13px;
    }

    /* Modal mobile */
    .modal-content {
        margin: 10px;
        padding: 24px 20px;
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-header p {
        font-size: 14px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-note {
        font-size: 11px;
    }

    /* Floating buttons mobile */
    .floating-cta {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 52px;
        height: 52px;
    }

    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Small phones (до 420px) */
@media (max-width: 420px) {
    /* Container с минимальным padding */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Навбар для маленьких экранов */
    .navbar .container {
        padding: 0 8px !important;
        gap: 4px;
    }

    .logo {
        font-size: 13px;
        gap: 3px;
    }

    .logo-icon {
        font-size: 16px;
    }

    /* Кнопка ещё компактнее */
    .nav-actions .btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    .mobile-menu-btn {
        padding: 4px;
    }

    .mobile-menu-btn span {
        width: 18px;
    }

    /* Hero для маленьких экранов */
    .hero-badge {
        font-size: 9px;
        padding: 4px 8px;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 6px;
        justify-content: space-between;
    }

    .stat-item {
        text-align: center;
        flex: 1;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
    }

    .section-title {
        font-size: 20px;
    }

    .service-image {
        height: 150px;
    }

    .advantage-card {
        padding: 16px;
    }
}

/* Very small phones (до 360px) */
@media (max-width: 360px) {
    .navbar .container {
        padding: 0 6px !important;
    }

    .logo {
        font-size: 12px;
    }

    .logo-icon {
        font-size: 14px;
    }

    /* Скрываем текст кнопки, оставляем только иконку */
    .nav-actions .btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .hero-title {
        font-size: 18px;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 8px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fix service cards alignment - footer at bottom */
@media (min-width: 769px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        align-items: stretch;
    }
    
    .service-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .service-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .service-content p {
        flex: 1;
    }
    
    .service-features {
        margin-bottom: auto;
    }
    
    .service-footer {
        margin-top: auto;
    }
}
