/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #202020;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 16px;
}

.logo {
    width: 200px;
    max-width: 60vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 40px 40px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) blur(1px);
    z-index: 1;
    border-radius: 0 0 40px 40px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.6) 70%,
        rgba(0,0,0,0.8) 100%
    );
    z-index: 2;
    border-radius: 0 0 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.highlight {
    color: #FFD600;
    position: relative;
}

.underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #FFD600 0%, #FF9800 100%);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(255, 214, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

/* Benefits Card */
.benefits-card {
    background: rgba(32, 32, 32, 0.9);
    /* Fallback for Safari */
    background: rgba(32, 32, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    margin: 0 auto 40px;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
}

.benefit-text {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    color: #fff;
    flex: 1;
    text-align: left;
}

/* Phone Buttons */
.phone-buttons {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.phone-btn {
    background: rgba(32, 32, 32, 0.9);
    /* Fallback for Safari */
    background: rgba(32, 32, 32, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 16px 24px;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    font-size: clamp(18px, 4vw, 22px);
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.phone-btn:hover,
.phone-btn:focus {
    background: rgba(255, 214, 0, 0.2);
    border-color: #FFD600;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 214, 0, 0.3);
}

.phone-btn:active {
    transform: translateY(0);
}

.phone-number {
    display: block;
    width: 100%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-section h2 {
    font-size: clamp(24px, 5vw, 32px);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #FFD600;
    font-weight: 900;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.service-card img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
}

.service-card p {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 600;
    margin: 0;
    flex: 1;
}

/* Reviews Section */
.reviews-section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.reviews-section h2 {
    font-size: clamp(24px, 5vw, 32px);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #FFD600;
    font-weight: 900;
}

.reviews-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.reviews-container::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    scroll-snap-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.review-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFD600;
    text-align: center;
}

.review-card p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fab:hover,
.fab:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.fab:active {
    transform: scale(0.95);
}

.whatsapp-fab {
    background: #25D366;
}

.whatsapp-fab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(37,211,102,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.phone-fab {
    background: #fff;
    border: 2px solid #25D366;
}

.phone-fab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(37,211,102,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite 0.5s;
}

.fab svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    z-index: 1;
    position: relative;
}

.phone-fab svg {
    fill: #25D366;
}

.benefit-subtext {
  font-size: 14px;   /* меньше шрифт */
  color: #aaa;       /* светлее цвет */
  margin-top: 2px;   /* чуть отступ сверху */
}


@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 60px;
        padding: 80px 40px;
    }
    
    .benefits-card {
        padding: 32px;
    }
    
    .benefit-item {
        margin-bottom: 24px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
    
    .phone-buttons {
        flex-direction: row;
        max-width: 600px;
        gap: 20px;
    }
    
    .reviews-container {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .review-card {
        min-width: 300px;
        max-width: 350px;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 0 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 80px;
        padding: 100px 40px;
    }
    
    .reviews-section {
        padding: 80px 40px;
    }
}

/* Safari-specific fixes */
@supports (-webkit-backdrop-filter: blur(20px)) {
    .benefits-card,
    .phone-btn {
        background: rgba(32, 32, 32, 0.7);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fab::before {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section::after {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.8) 0%,
            rgba(0,0,0,0.9) 100%
        );
    }
    
    .benefits-card,
    .phone-btn,
    .service-card,
    .review-card {
        border: 2px solid rgba(255,255,255,0.3);
    }
}