/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Минималистичный стиль в духе uboost.tube */
.feature-card,
.mode-card {
    border: 1px solid #e5e7eb;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #DC2626;
    text-decoration: none;
    white-space: nowrap;
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    display: inline-block;
}

.nav {
    display: none;
    gap: 24px;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #DC2626;
}

.header-phone {
    display: none;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.header-phone:hover {
    color: #DC2626;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 999;
    padding: 80px 24px 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-link:hover {
    color: #DC2626;
}

/* Hero Section */
.hero {
    padding: 48px 0;
    background: linear-gradient(to bottom, #DC2626 0%, rgba(220, 38, 38, 0.95) 20%, rgba(220, 38, 38, 0.85) 40%, rgba(220, 38, 38, 0.6) 60%, rgba(220, 38, 38, 0.3) 80%, rgba(220, 38, 38, 0) 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Адаптивные стили для оптимизации */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -ms-interpolation-mode: bicubic;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background-color: #FFFFFF;
    color: #DC2626;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    min-width: 44px;
    min-height: 44px;
    text-align: center;
    border: 2px solid #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    background-color: #FEF2F2;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Section Styles */
section {
    padding: 64px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #1a1a1a;
}

/* About Section */
.about {
    background-color: #f9fafb;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Адаптивные стили для оптимизации */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -ms-interpolation-mode: bicubic;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #4b5563;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.feature-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.feature-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}

/* Modes Section */
.modes {
    background-color: #f9fafb;
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.mode-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mode-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.mode-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 16px;
}

.mode-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #DC2626;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.modes-cta {
    text-align: center;
}

/* Contacts Section */
.contacts-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 32px;
}

.contact-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.contact-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.contact-value {
    color: #DC2626;
    text-decoration: none;
    font-size: 16px;
}

.contact-value:hover {
    text-decoration: underline;
}

address {
    font-style: normal;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 32px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #DC2626;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav {
        display: flex;
    }

    .header-phone {
        display: block;
    }

    .menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-details {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-item {
        flex: 1 1 300px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero {
        padding: 120px 0;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-description {
        font-size: 22px;
    }

    section {
        padding: 96px 0;
    }

    .section-title {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-text {
        font-size: 18px;
    }

    .feature-text,
    .mode-text,
    .contact-text {
        font-size: 17px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 48px;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid #DC2626;
    outline-offset: 2px;
}

/* Адаптивные изображения - общие стили */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Оптимизация для всех изображений */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Адаптивные размеры для hero-image */
@media (max-width: 767px) {
    .hero-image {
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image {
        max-width: 400px;
    }
}

/* Адаптивные размеры для about-image */
@media (max-width: 767px) {
    .about-image {
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-image {
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .about-image {
        max-width: 600px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn-primary,
    .menu-toggle {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}

