/* ============================================
   HEADER СТИЛИ
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo img, .logo-img {
    height: 48px;
    width: auto;
    cursor: pointer;
}

@media (min-width: 768px) {
    .site-logo img, .logo-img {
        height: 56px;
    }
}

/* Навигация */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .desktop-nav {
        gap: 2rem;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .nav-menu {
        gap: 2rem;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

@media (min-width: 1024px) {
    .nav-link {
        font-size: 16px;
    }
}

.nav-link:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .nav-link:hover {
        transform: scale(1.05);
    }
}

/* Переключатель языков */
.language-switcher {
    display: flex;
    align-items: flex-start;
    padding-top: 0.375rem;
}

.lang-switch {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.375rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    min-height: 36px;
    min-width: 36px;
    transition: all 0.2s ease;
    background: transparent;
}

.lang-switch:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

.lang-switch svg {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
}

.lang-label {
    position: absolute;
    bottom: -4px;
    right: -8px;
    font-size: 10px;
    font-weight: bold;
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid var(--color-primary);
}

/* Мобильное меню */
.mobile-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mobile-menu-wrapper {
        display: none;
    }
}

.mobile-menu-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.mobile-menu-toggle .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .menu-icon::before,
.mobile-menu-toggle .menu-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .menu-icon::before {
    top: -8px;
}

.mobile-menu-toggle .menu-icon::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .menu-icon {
    background-color: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Мобильная навигация */
.mobile-nav {
    display: none;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

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

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.mobile-nav-link:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

/* ============================================
   HERO СЕКЦИЯ
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ============================================
   СЕКЦИИ
   ============================================ */

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
}

/* ============================================
   SERVICES
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.service-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-bg img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

/* ============================================
   ABOUT
   ============================================ */

.about-content {
    margin-bottom: 3rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-muted-foreground);
}

.about-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .about-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background-color: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.benefit-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background-color: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--color-primary);
}

.contact-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-value {
    color: rgba(255, 255, 255, 0.8);
}

.contact-value a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

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

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo img {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-foreground);
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-foreground);
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-intro {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.modal-section-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.modal-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.modal-list li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: bold;
    flex-shrink: 0;
}

.modal-types, .modal-guarantee {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}
