:root {
    --bg-dark: #0c0c0c;
    --bg-card: #141414;
    --orange: #FF6B35;
    --orange-hover: #ff8547;
    --orange-glow: rgba(255, 107, 53, 0.4);
    --text: #ffffff;
    --text-muted: #a3a3a3;
    --border: rgba(255, 255, 255, 0.1);
    --dark-bg: #0c0c0c;
    --white: #ffffff;
    --primary-color: #FF6B35;
    --light-text: #d4d4d8;
    --teal: #FF6B35;
    --teal-hover: #ff8547;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container-prices {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка: вверху прозрачная, при скролле — непрозрачная */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 18px 0;
    transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
}

.logo-img {
    display: none;
    height: 28px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: block;
}

header.scrolled .logo-img {
    display: block;
}

header.scrolled .logo-text {
    display: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--bg-dark);
    border-radius: 6px;
    font-size: 18px;
}

.logo-sub {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
}

.logo p {
    line-height: 1.25;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-phone:hover {
    color: var(--orange);
}

.header-phone i {
    color: var(--orange);
}

.btn-orange {
    background: var(--orange);
    color: var(--bg-dark);
}

.btn-orange:hover {
    background: var(--orange-hover);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

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

.nav-menu a {
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 12px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--orange);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-white {
    background-color: var(--text);
    color: var(--bg-dark);
}

.btn-white:hover {
    background-color: var(--orange);
    color: var(--bg-dark);
}

.btn-teal,
.btn-orange {
    background-color: var(--orange);
    color: var(--bg-dark);
}

.btn-teal:hover,
.btn-orange:hover {
    background-color: var(--orange-hover);
    transform: translateY(-1px);
}

.btn-blue {
    background-color: var(--orange);
    color: var(--bg-dark);
}

.btn-blue:hover {
    background-color: var(--orange-hover);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Стили для иконок соцсетей в шапке (в стиле кнопок) */
.header-social-links {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 22px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.telegram-btn {
    background-color: #0088cc;
    color: white;
    border: none;
}

.telegram-btn:hover {
    background-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

/* Адаптивность для иконок в шапке */
@media (max-width: 768px) {
    .header-social-links {
        display: none; /* Скрываем на мобильных, так как они есть в мобильном меню */
    }
    
    .header-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .btn-social {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}



/* Мобильное меню для страницы проектов */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.mobile-menu-btn i {
    color: #e0e0e0;
    font-size: 18px;
    transition: color 0.3s ease;
}

.mobile-menu-btn.active {
    background-color: rgba(0, 0, 0, 0.9);
}

.mobile-menu-btn.active i {
    color: #fff;
    transform: rotate(90deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #00060f;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    padding: 80px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu {
    list-style: none;
    flex: 1;
}

.mobile-nav-menu li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    border: none;
}

.mobile-nav-menu a:hover {
    color: var(--orange);
}

.mobile-menu-contact {
    background-color: var(--orange);
    color: var(--bg-dark);
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    margin-top: 10px;
    display: inline-block;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Адаптивность для мобильного меню */
@media (max-width: 768px) {
    .nav, .header-buttons, .header-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-container {
        position: relative;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
    }
    
    .mobile-menu-container {
        padding: 70px 20px 20px;
    }
    
    .mobile-nav-menu a {
        font-size: 16px;
        padding: 12px 0;
    }
    
    .mobile-menu-btn {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-btn i {
        font-size: 16px;
    }
}

/* Улучшения для шапки на странице проектов */
.projects-page {
    padding: 100px 0 100px;
}

/* Адаптивность для шапки проектов */
@media (max-width: 768px) {
    .projects-page {
        padding: 120px 0 80px;
    }
}

/* Улучшения для мобильного меню */
.mobile-menu, .mobile-menu-overlay {
    transform: translateZ(0);
    backface-visibility: hidden;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Плавные переходы */
.mobile-nav-menu a,
.mobile-menu-contact,
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшения для иконки меню на разных устройствах */
@media (max-width: 768px) {
    .mobile-menu-btn {
        background-color: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-btn i {
        color: #d0d0d0;
    }
}

/* Улучшение доступности */
.mobile-menu-btn:focus {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* Плавная анимация иконки */
.mobile-menu-btn i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Герой-секция — референс: чёрный фон, заголовок, пункты, оранжевая CTA, визуал с оранжевым свечением */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 80px;
    background-color: var(--bg-dark);
}

.hero-ref {
    background-image: none;
}

/* Фон — SVG (картинка задаётся в HTML) */
.hero-bg-svg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Мобильная версия героя: изображение с контейнером и YUNCO */
@media (max-width: 768px) {
    .hero.hero-ref.hero-bg-svg {
        background-image: url("../ChatGPT Image Feb 19, 2026, 03_10_19 PM.png") !important;
    }
}

.hero-ref .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 70% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg-svg .hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
}

.hero-content {
    max-width: 951px;
}

.hero-title {
    width: 100%;
    max-width: 951px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 28px;
    color: var(--text);
    text-transform: uppercase;
}

.hero-bullets {
    list-style: none;
    margin-bottom: 32px;
}

.hero-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.hero-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

.btn-hero-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--orange);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.25s, transform 0.25s;
}

.btn-hero-cta:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--orange-glow);
}

.glow-orange {
    box-shadow: 0 0 40px var(--orange-glow), 0 0 80px rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.scroll-arrow {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 20px;
    animation: bounce 2s infinite;
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.scroll-arrow:hover {
    color: var(--orange);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

@media (max-width: 992px) {
    .hero-inner {
        text-align: center;
    }
    .hero-bullets li { padding-left: 0; }
    .hero-bullets li::before { display: none; }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        padding: 88px 0 24px;
        align-items: flex-end;
    }

    .hero-inner {
        align-items: flex-end;
        justify-content: flex-start;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.25;
        margin-bottom: 16px;
        letter-spacing: 0.01em;
    }

    .btn-hero-cta {
        padding: 12px 22px;
        font-size: 13px;
    }

    .scroll-arrow {
        display: none;
    }

    .header-contact .header-phone span { display: none; }
    .header-contact .btn-orange { display: none; }
}



/* Секция "О нас" — современный блок: иерархия, одно изображение в рамке */
.about {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.about-modern .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text-block {
    max-width: 520px;
}

.about-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.about-title {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 16px;
}

.about-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-body:last-of-type {
    margin-bottom: 24px;
}

.about-highlight {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    padding: 16px 20px;
    background: rgba(255, 107, 53, 0.08);
    border-left: 3px solid var(--orange);
    border-radius: 0 8px 8px 0;
}

.about-highlight-accent {
    font-weight: 600;
    color: var(--orange);
}

.about-visual {
    position: relative;
}

.about-visual-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: var(--bg-card);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.about-visual-img {
    width: 100%;
    padding-bottom: 110%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
}

/* Адаптивность секции "О нас" */
@media (max-width: 992px) {
    .about-modern .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .about-text-block {
        max-width: 100%;
    }
    .about-highlight {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 72px 0;
    }
    .about-modern .about-container {
        gap: 40px;
    }
    .about-visual-img {
        padding-bottom: 100%;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 56px 0;
    }
    .about-title {
        font-size: 24px;
    }
    .about-lead {
        font-size: 15px;
    }
    .about-body {
        font-size: 14px;
    }
}

/* Общие стили .section-text для других секций */
.section-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Секция "Услуги" — сетка карточек как Popular Tours в референсе */
.services {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title-number {
    text-transform: uppercase;
    font-size: clamp(26px, 3.5vw, 38px);
}

.section-number {
    color: var(--orange);
}

.section-title-uppercase {
    text-transform: uppercase;
    margin-bottom: 48px;
}

/* Блок "Работа с нами" — две колонки, пункты, оранжевый контур */
.work-with-us {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.work-with-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.work-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    position: relative;
}

.work-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.work-block-list {
    list-style: none;
    margin-bottom: 20px;
}

.work-block-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.work-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--orange);
    border-radius: 50%;
}

.work-block-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.work-block-visual {
    height: 120px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.25);
}

@media (max-width: 992px) {
    .work-with-us-grid {
        grid-template-columns: 1fr;
    }
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-item.service-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.service-item.service-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 107, 53, 0.1);
}

.service-card .service-img {
    width: 100%;
    height: 220px;
    flex: none;
    background-color: #1f1f1f;
    background-size: cover;
    background-position: center;
}

.service-card .service-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-number {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.service-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.service-card .btn-teal {
    align-self: flex-start;
    padding: 8px 18px;
    font-size: 12px;
}

/* Старый вариант списка услуг (если без .services-grid) */
.services-list:not(.services-grid) {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item:not(.service-card) {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-item:nth-child(even):not(.service-card) {
    flex-direction: row-reverse;
}

.service-item:not(.service-card) .service-img {
    flex: 1;
    height: 300px;
    background-color: #1f1f1f;
    background-size: cover;
    background-position: center;
}

.service-item:not(.service-card) .service-content {
    flex: 1;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-item:not(.service-card), 
    .service-item:nth-child(even):not(.service-card) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    .service-item:not(.service-card) .service-img {
        width: 100%;
        height: 250px;
        flex: none;
    }
    .service-item:not(.service-card) .service-content {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .service-item {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .service-img {
        height: 220px;
        border-radius: 8px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-text {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .service-item {
        gap: 20px;
        margin-bottom: 35px;
    }
    
    .service-img {
        height: 200px;
        border-radius: 6px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .service-content .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .service-img {
        height: 180px;
    }
    
    .service-title {
        font-size: 17px;
    }
    
    .service-text {
        font-size: 13px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .service-img {
        height: 160px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* Альтернативный вариант - адаптивная высота через padding */
.service-img.adaptive {
    height: auto;
    width: 100%;
    padding-bottom: 60%; /* Соотношение примерно 5:3 */
}

@media (max-width: 768px) {
    .service-img.adaptive {
        padding-bottom: 50%; /* Более квадратное соотношение на мобильных */
    }
}

/* Улучшение для изображений с разным контентом */
.service-img {
    position: relative;
    overflow: hidden;
}

.service-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-img:hover::after {
    opacity: 1;
}

/* Гарантия отображения изображений на всех устройствах */
.service-img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}



/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow: auto;
}

.modal-content {
    background: #0c0c0c;
    margin: 4% auto;
    width: 92%;
    max-width: 920px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 300;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #c2c2c4;
}

/* Один блок: текст слева, карусель справа; высота по контенту, без прокрутки */
.modal-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
    max-height: 90vh;
    overflow: hidden;
}

/* Слева: текст (порядок через order) */
.modal-text {
    order: 1;
}

/* Справа: карусель — маленькие карточки с наложением друг на друга */
.modal-carousel {
    order: 2;
    flex: 0 0 38%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 20px 16px;
    min-width: 0;
}

.modal-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
}

.modal-carousel-slides {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 140px;
    width: 100%;
}

.modal-carousel-slide {
    position: absolute;
    left: 0;
    width: 70%;
    height: 88%;
    min-height: 130px;
    max-height: 180px;
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
    z-index: 1;
    opacity: 0.9;
}

/* Наложение друг на друга: каждая следующая карточка со сдвигом */
.modal-carousel-slide:nth-child(1) { left: 0; z-index: 1; }
.modal-carousel-slide:nth-child(2) { left: 18px; z-index: 2; }
.modal-carousel-slide:nth-child(3) { left: 36px; z-index: 3; }
.modal-carousel-slide:nth-child(4) { left: 54px; z-index: 4; }
.modal-carousel-slide:nth-child(5) { left: 72px; z-index: 5; }

.modal-carousel-slide.active {
    z-index: 10;
    opacity: 1;
    transform: scale(1.04);
}

.modal-carousel-slide.active .modal-img {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.modal-carousel-slide .modal-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
    position: relative;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

/* Эффект наложения на каждую картинку */
.modal-carousel-slide .modal-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

.modal-carousel-prev,
.modal-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #0c0c0c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.modal-carousel-prev:hover,
.modal-carousel-next:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.modal-carousel-prev { left: 8px; }
.modal-carousel-next { right: 8px; }

.modal-carousel-prev i,
.modal-carousel-next i {
    font-size: 14px;
}

.modal-text {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 20px 20px 20px 24px;
    overflow: visible;
    border-left: none;
}

.modal-text p,
.modal-text ul {
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 14px;
}

.modal-text p[style*="color: #FF6B35"],
.modal-text p[style*="color: var(--teal)"] {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.modal-text ul {
    padding-left: 1.25rem;
    list-style: none;
}

.modal-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    position: relative;
}

.modal-text ul li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--orange);
    border-radius: 50%;
}

.modal-img {
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
}

.modal-description {
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-contact {
    font-weight: 500;
    color: var(--teal);
}

/* Модальные окна — мобильные (карусель сверху, текст снизу) */
@media (max-width: 768px) {
    .modal-content {
        width: 96%;
        margin: 3% auto;
        max-height: 94vh;
        overflow-y: auto;
        border-radius: 20px;
    }

    .modal-body {
        flex-direction: column;
        aspect-ratio: auto;
        max-height: none;
        overflow: visible;
    }

    .modal-carousel {
        order: 1;
        flex: 0 0 auto;
        padding: 20px 16px 16px;
    }

    .modal-carousel-inner {
        min-height: 200px;
    }

    .modal-carousel-slides {
        min-height: 200px;
    }

    .modal-carousel-slide {
        left: 50% !important;
        transform: translateX(-50%);
        width: 75%;
        max-height: 200px;
        min-height: 180px;
    }

    .modal-carousel-slide:not(.active) {
        opacity: 0;
        pointer-events: none;
    }

    .modal-carousel-slide.active {
        transform: translateX(-50%) scale(1);
    }

    .modal-carousel-slide .modal-img {
        min-height: 180px;
        border-radius: 14px;
    }

    .modal-carousel-slide .modal-img::after {
        border-radius: 16px;
    }

    .modal-carousel-prev,
    .modal-carousel-next {
        width: 42px;
        height: 42px;
    }

    .modal-carousel-prev { left: 22px; }
    .modal-carousel-next { right: 22px; }

    .modal-text {
        order: 2;
        padding: 20px 20px 28px;
        border-left: none;
        overflow-y: auto;
    }

    .modal-text ul {
        padding-left: 1rem;
    }

    .modal-text ul li {
        margin-bottom: 1rem;
        font-size: 14px;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.6);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 16px 0 0;
    }

    .modal-carousel {
        padding: 0 12px 12px;
    }

    .modal-carousel-inner {
        max-height: 220px;
        border-radius: 14px;
    }

    .modal-carousel-slide .modal-img,
    .modal-carousel-slide .modal-img::after {
        border-radius: 14px;
    }

    .modal-carousel-prev { left: 18px; }
    .modal-carousel-next { right: 18px; }

    .modal-text {
        padding: 16px 16px 24px;
    }

    .modal-text ul li {
        margin-bottom: 0.9rem;
        font-size: 13px;
    }
}

/* Анимация появления модального окна */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Улучшение скролла для модальных окон */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 3px;
}

/* Базовая оптимизация изображений для всех устройств */
.modal-img {
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.modal-img:hover {
    transform: scale(1.02);
}

/* Улучшение контрастности для лучшего восприятия */
.modal-text strong {
    color: var(--orange);
    font-weight: 600;
}

.modal-text p[style*="color: #FF6B35"],
.modal-text p[style*="color: var(--teal)"] {
    margin-bottom: 1.5rem;
    font-size: 16px;
}



/* Секция "Реализованные проекты" */
.projects {
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 6, 15, 0.85);
}

.projects-container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, background-color 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.project-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #FF6B35;
}

.project-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.project-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.project-result {
    font-weight: 600;
    margin-bottom: 5px;
    color: #FF6B35;
}



/* Секция преимуществ — стиль 2026: карточки, мягкие границы, hover */
.advantages {
    padding: 88px 0 100px;
    background-color: var(--bg-dark);
}

.advantages .section-header {
    margin-bottom: 48px;
}

.advantages .section-title {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-item {
    position: relative;
    text-align: left;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.advantage-item:hover {
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.advantage-item:hover::before {
    opacity: 1;
}

.advantage-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 20px;
    color: var(--orange);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.06));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.advantage-item:hover .advantage-icon {
    color: var(--orange);
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.35);
}

.advantage-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .advantage-item {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .advantages {
        padding: 64px 0 80px;
    }
    .advantages .section-header {
        margin-bottom: 36px;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .advantage-item {
        padding: 24px 20px;
    }
    .advantage-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .advantage-item {
        padding: 20px 18px;
    }
    .advantage-title {
        font-size: 16px;
    }
    .advantage-item p {
        font-size: 13px;
    }
}

/* Секция "Тарифы" — карточный дизайн 2025 */
.pricing {
    background-color: var(--bg-dark);
}

.pricing-modern .pricing-header {
    padding: 72px 0 48px;
    text-align: center;
}

.pricing-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

.pricing-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.pricing-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

.pricing-content {
    padding: 0 0 100px;
    background-color: var(--bg-dark);
}

.pricing-modern .container-prices {
    max-width: 1200px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 12px;
}

.pricing-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.pricing-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: -0.02em;
}

.pricing-card-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Адаптивность тарифов */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pricing-modern .pricing-header {
        padding: 56px 0 36px;
    }
    .pricing-content {
        padding: 0 0 72px;
    }
    .pricing-card {
        padding: 24px;
    }
    .pricing-card-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pricing-card-title {
        font-size: 16px;
    }
    .pricing-card-desc {
        font-size: 13px;
    }
}



/* Секция "Заявка" */
.request {
    padding: 0;
}

.request-ref {
    background-color: var(--bg-dark);
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

/* Расчёт услуги внутри блока тарифов — без визуального разрыва */
.pricing-content .request-ref {
    border-top: none;
    padding: 48px 0 0;
    margin-top: 8px;
}

.request-background {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
}

.request-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12,12,12,0.9), rgba(12,12,12,0.95));
}

.request-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.request-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text);
}

.request-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.request-btn {
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 6px;
    transition: all 0.25s ease;
    background: var(--orange);
    color: var(--bg-dark);
}

.request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--orange-glow);
    background: var(--orange-hover);
}

/* Адаптивность для секции заявки */
@media (max-width: 768px) {
    .request-background {
        padding: 80px 0;
    }
    
    .request-title {
        font-size: 26px;
    }
    
    .request-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .request-background {
        padding: 60px 20px;
    }
    
    .request-title {
        font-size: 24px;
    }
    
    .request-text {
        font-size: 15px;
    }
    
    .request-btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}



/* Секция отзывов — редакционный стиль: крупный номер, без карточки, линейка-прогресс */
.testimonials {
    padding: 88px 0 100px;
    background-color: var(--bg-dark);
}

.testimonials-modern {
    background-image: none;
}

.testimonials-modern::before {
    display: none;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 56px;
}

.testimonials-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

.testimonials-title {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.03em;
}

.testimonial-slider {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 56px;
}

.testimonial-items {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    width: 100%;
    position: relative;
    height: 100%;
}

.testimonial-item.active {
    display: block;
    animation: testimonialFade 0.4s ease;
}

@keyframes testimonialFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Номер слайда скрыт по запросу */
.testimonial-number {
    display: none;
}

/* Без карточки — только типографика */
.testimonial-card {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 24px;
    font-weight: 300;
}

.testimonial-author {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.testimonial-author::before {
    content: '— ';
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* Стрелки по бокам, минимальные */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
    opacity: 0.7;
}

.testimonial-arrow:hover {
    color: var(--orange);
    opacity: 1;
}

.testimonial-arrow-prev {
    left: 0;
}

.testimonial-arrow-next {
    right: 0;
}

.testimonial-arrow i {
    font-size: 13px;
}

/* Линейка-прогресс вместо точек */
.testimonial-dots {
    display: flex;
    gap: 6px;
    margin-top: 40px;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.dot {
    flex: 1;
    height: 3px;
    max-width: 36px;
    border-radius: 2px;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: background 0.25s ease, opacity 0.25s ease;
    opacity: 0.6;
}

.dot:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

.dot.active {
    background: var(--orange);
    opacity: 1;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 64px 0 80px;
    }
    .testimonials-header {
        margin-bottom: 40px;
    }
    .testimonial-slider {
        padding: 0 44px;
    }
    .testimonial-items {
        height: 340px;
    }
    .testimonial-text {
        font-size: 15px;
    }
    .testimonial-arrow {
        width: 36px;
        height: 36px;
    }
    .testimonial-dots {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .testimonial-items {
        height: 380px;
    }

    .testimonial-slider {
        padding: 0 36px;
    }
    .testimonial-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .testimonial-author {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
    .testimonial-arrow {
        width: 32px;
        height: 32px;
    }
    .testimonial-arrow i {
        font-size: 12px;
    }
    .testimonial-dots {
        margin-top: 28px;
        max-width: 100px;
    }
    .dot {
        max-width: 28px;
    }
}





/* Подвал — минималистичный */
footer {
    padding: 48px 24px;
    text-align: center;
    background-color: var(--bg-dark);
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0 auto 24px;
    max-width: 1200px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .service-item, 
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-body {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-menu, .header-buttons, .header-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(22px, 7vw, 30px);
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 96%;
        margin: 3% auto;
    }
    
    .request-background {
        padding: 80px 0;
    }
    
    .request-title {
        font-size: 26px;
    }
    
    .request-text {
        font-size: 16px;
    }
    
    .contact-content {
        max-width: 100%;
    }
    
    .contact-title {
        font-size: 26px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .request-background {
        padding: 60px 20px;
    }
    
    .request-title {
        font-size: 24px;
    }
    
    .request-text {
        font-size: 15px;
    }
    
    .request-btn {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Секция контактов — референс: шапка + карта и панель */
.contacts {
    background-color: var(--bg-dark);
}

.contacts-modern .contacts-header {
    padding: 64px 0 40px;
    text-align: center;
}

.contacts-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

.contacts-title {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.contacts-container {
    display: flex;
    min-height: 520px;
    max-height: 75vh;
    width: 100%;
}

.contacts-map-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    border-right: 1px solid var(--border);
    overflow: hidden;
    min-height: 400px;
}

.contacts-map-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: absolute;
    inset: 0;
}

.contact-info {
    flex: 0 0 420px;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.contact-content {
    width: 100%;
    max-width: 340px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.contact-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
    margin: 0 auto 16px;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 20px;
}

.contact-phone-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 107, 53, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--orange);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 0.2s, border-color 0.2s;
}

.contact-phone-block:hover {
    background: rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.35);
    color: var(--orange);
}

.contact-phone-block i {
    font-size: 14px;
    opacity: 0.9;
}

.contact-address-block {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.contact-address-block i {
    color: var(--orange);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-address-block > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-address-cn,
.contact-address-ru {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.contact-address-ru {
    font-size: 12px;
    opacity: 0.9;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-social-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--bg-dark);
}

/* Соцссылки в других секциях (если есть) */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
}

.social-link:hover {
    background-color: var(--orange);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--orange-glow);
}

/* Адаптивность контактов */
@media (max-width: 992px) {
    .contacts-container {
        flex-direction: column;
        max-height: none;
        min-height: 0;
    }
    
    .contact-info {
        order: 1;
    }

    .contacts-map-wrap {
        order: 2;
        flex: none;
        height: 45vh;
        min-height: 320px;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: none;
    }
    
    .contact-info {
        flex: none;
        padding: 36px 24px;
    }
    
    .contact-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contacts-modern .contacts-header {
        padding: 48px 0 32px;
    }
    
    .contacts-map-wrap {
        height: 40vh;
        min-height: 280px;
    }
    
    .contact-info {
        padding: 28px 20px;
    }
    
    .contact-card {
        padding: 24px;
    }
    
    .contact-phone-block {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        flex: 0 0 auto;
    }
    
    .contact-avatar {
        width: 64px;
        height: 64px;
    }
    
    .contact-name {
        font-size: 16px;
    }
    
    .contact-address-cn,
    .contact-address-ru {
        font-size: 12px;
    }
    
    .contact-social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
