/* ========================================
   ШРИФТЫ
   ======================================== */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-light-webfont.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-regular-webfont.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-bold-webfont.woff2') format('woff2');
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0B1F3B;
    --primary-light: #1E4D7B;
    --accent: #1E90FF;
    --accent-hover: #4BA8FF;
    --bg-light: #f4f7fc;
    --card-bg: #ffffff;
    --text-dark: #1a2a3a;
    --text-muted: #6a7a8a;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========================================
   ШАПКА
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

.header-address {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .header-address {
        font-size: 12px;
    }
}

.phone-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 28px;
    border: 2px solid var(--accent);
    border-radius: 50px;
    transition: var(--transition);
    background: rgba(30, 144, 255, 0.06);
    white-space: nowrap;
}

.phone-header:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.2);
}

@media (max-width: 480px) {
    .phone-header {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* ========================================
   ГЕРОЙ
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    background: linear-gradient(135deg, #f4f7fc 0%, #e8edf5 50%, #dce3ef 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-title span {
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(30, 144, 255, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@media (max-width: 768px) {
    .hero-scroll {
        display: none;
    }
}

/* ========================================
   О БИЗНЕС-ЦЕНТРЕ
   ======================================== */
.about-section {
    padding: 80px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-tag.center {
    display: block;
    text-align: center;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

.section-title span {
    color: var(--accent);
}

.section-title.center {
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(30, 144, 255, 0.06);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========================================
   ГАЛЕРЕЯ (слайдер)
   ======================================== */
.gallery-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.slider-container {
    margin: 30px auto 0;
    max-width: 1100px;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .slider-container {
        padding: 0 10px;
    }
}

.slider-item {
    padding: 10px;
    cursor: pointer;
}

.slider-item img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: var(--radius);


}

.slider-item img:hover {
    transform: scale(1.02);
    transition: 0.5s;
}

@media (max-width: 768px) {
    .slider-item img {
        height: 280px;
    }
}

/* ===== СТИЛИ ДЛЯ SLICK ===== */
.slick-prev:before,
.slick-next:before {
    color: var(--primary) !important;
    font-size: 32px !important;
    opacity: 0.6 !important;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    opacity: 1 !important;
}

.slick-dots li button:before {
    color: var(--primary) !important;
    opacity: 0.2 !important;
    font-size: 10px !important;
}

.slick-dots li.slick-active button:before {
    color: var(--accent) !important;
    opacity: 1 !important;
}

.slick-dots {
    bottom: -35px !important;
}

/* ========================================
   ПЛАНИРОВКИ (этажи)
   ======================================== */
.floors-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px;
}

.floors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .floors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
}

.floor-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.floor-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(30, 144, 255, 0.12);
}

.floor-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.floor-label {
    font-size: 14px;
    color: var(--text-muted);
}

.floor-count {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 8px;
}

.floor-arrow {
    position: absolute;
    right: 16px;
    bottom: 24px;
    font-size: 18px;
    color: var(--accent);
    opacity: 0.3;
    transition: var(--transition);
}

.floor-card:hover .floor-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9997;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius);
    max-width: 700px;
    width: 92%;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content.modal-lg {
    max-width: 1150px;
    padding: 30px;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding-left: 15px;
    z-index: 10;
}

.modal-close:hover {
    color: #eb0c0c;
}

/* ===== СТИЛИ ДЛЯ SVG В МОДАЛКЕ ===== */
.floor-svg-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8ecf0;
    overflow: auto;
}

.floor-svg-container svg {
    width: 100%;
    height: auto;
}

.unit-path {
    cursor: pointer;
    transition: var(--transition);
}

.unit-path:hover {
    opacity: 0.7 !important;
    filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.4));
}

.unit-path.inactive {
    opacity: 0.25 !important;
    cursor: default;
    pointer-events: none;
}

.unit-path.inactive:hover {
    opacity: 0.25 !important;
    filter: none !important;
}

/* ===== ДЕТАЛИ ПОМЕЩЕНИЯ ===== */
.unit-details-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .unit-details-images {
        grid-template-columns: 1fr;
    }
}

.unit-details-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
}

.unit-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.unit-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.unit-meta-item {
    background: var(--bg-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-dark);
}

.unit-meta-item strong {
    color: var(--accent);
}

.unit-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.unit-phone-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.unit-phone-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.3);
}

/* ========================================
   КОНТАКТЫ
   ======================================== */
.contact-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.contact-block {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .contact-block {
        padding: 30px 20px;
    }
}

.status-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 8px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-block .hint {
    font-size: 16px;
    color: var(--text-muted);
}

.big-phone {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin: 15px 0;
    letter-spacing: 2px;
    transition: var(--transition);
}

.big-phone:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .big-phone {
        font-size: 28px;
    }
}

/* ========================================
   ФУТЕР
   ======================================== */
.main-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e8ecf0;
    background: #ffffff;
}

.main-footer p {
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0.6;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-overlay .close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.lightbox-overlay .lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.lightbox-overlay .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.15);
    font-size: 36px;
    padding: 2px 20px 6px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.lightbox-overlay .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.lightbox-overlay .nav-prev {
    left: 30px;
}

.lightbox-overlay .nav-next {
    right: 30px;
}

.lightbox-overlay .counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .lightbox-overlay .nav-btn {
        font-size: 24px;
        padding: 12px 16px;
    }

    .lightbox-overlay .nav-prev {
        left: 10px;
    }

    .lightbox-overlay .nav-next {
        right: 10px;
    }

    .lightbox-overlay .close-btn {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }
}

/* ========================================
   СКРОЛЛБАР
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f4f7fc;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ========================================
   ПРЕДПРОСМОТР ПЛАНИРОВОК
   ======================================== */
.preview-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.floors-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 1024px) {
    .floors-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .floors-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.floor-preview-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.floor-preview-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(30, 144, 255, 0.12);
}

.floor-preview-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.floor-preview-card img:hover {
    opacity: 0.92;
}

.floor-preview-card .label {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    color: var(--primary);
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
}

@media (max-width: 768px) {
    .floor-preview-card img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .floor-preview-card img {
        height: 180px;
    }
}


/* ========================================
   КАСТОМНЫЙ TOOLTIP ДЛЯ ПОМЕЩЕНИЙ
   ======================================== */
.unit-tooltip {
    position: fixed;
    background: rgba(11, 31, 59, 0.95);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    pointer-events: none;
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 300px;
    line-height: 1.5;
}

.unit-tooltip.visible {
    opacity: 1;
}

.unit-tooltip .tooltip-name {
    font-weight: 700;
    color: #1E90FF;
}

.unit-tooltip .tooltip-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* ========================================
   ФУТЕР (ссылки)
   ======================================== */
.main-footer .footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-footer .footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.6;
}

.main-footer .footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    text-decoration: underline;
}

.main-footer .footer-divider {
    color: var(--text-muted);
    opacity: 0.3;
    font-size: 14px;
}

@media (max-width: 480px) {
    .main-footer .footer-links {
        flex-direction: column;
        gap: 6px;
    }

    .main-footer .footer-divider {
        display: none;
    }
}