


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

:root {
    --primary-gold: #C9A96E;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #666;
    --white: #ffffff;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: #000;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    font-size: 72px;
    color: var(--primary-gold);
    letter-spacing: 20px;
    animation: fadeInOut 2s infinite;
}

.loading-logo img {
    width: 500px;
    height: auto;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 60px;
}

.logo img {
    height: 85px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    transition: color 0.3s;
}

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

.cta-btn {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 12px 35px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s;
    font-weight: 300;
}

.cta-btn:hover {
    background: var(--primary-gold);
    color: #000;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* Hero Section with Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1.5s ease;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 15px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 50px;
    text-transform: uppercase;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: var(--white);
    font-size: 11px;
    letter-spacing: 2px;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 60px;
    background: var(--white);
    margin: 0 auto 10px;
}

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

/* Section Base */
section {
    position: relative;
    padding: 150px 60px;
}

.section-dark {
    background: #000;
    color: var(--white);
}

.section-light {
    background: var(--light);
    color: var(--dark);
}

/* Content Sections */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    line-height: 1.3;
}

.content-text p {
    font-size: 16px;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.content-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.content-image:hover img {
    transform: scale(1.1);
}

/* Full Width Section */
.full-width-section {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.full-width-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.full-width-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 40px;
}

.full-width-content h2 {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 30px;
}

.full-width-content p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

/* Residence Types */
.residence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0;
    margin-top: 80px;
}

.residence-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

.residence-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.residence-card:hover img {
    transform: scale(1.15);
}

.residence-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 50px;
    transition: background 0.5s;
}

.residence-card:hover .residence-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
}

.residence-info h3 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 10px;
}

.residence-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

/* Location Map */
.location-section {
    position: relative;
    padding: 0;
    height: 80vh;
    overflow: hidden;
}

.location-map {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(50%) brightness(0.8) contrast(1.2);
    transition: filter 0.3s ease;
}

.map-iframe:hover {
    filter: grayscale(0%) brightness(1) contrast(1);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(45, 45, 45, 0.3) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.map-content {
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 60px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-content h2 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.coordinates {
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.6;
}

/* Contact Form */
.contact-section {
    background: #000;
    padding: 120px 60px;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.form-container h2 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--white);
}

.form-container p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

select {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px;
}

select option {
    background-color: #2c2c2c;
    color: #ffffff;
}

input, textarea, select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px 20px;
    color: var(--white);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255,255,255,0.08);
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.submit-btn {
    background: var(--primary-gold);
    border: none;
    color: #000;
    padding: 18px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s;
    font-weight: 500;
}

.submit-btn:hover {
    background: #d4b87a;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 80px 60px 40px;
    color: var(--white);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.5);
    line-height: 2;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.tag {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    letter-spacing: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease;
}

/* Responsive - Desktop */
@media (max-width: 1024px) {
    .content-section {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .residence-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Responsive - Tablet & Mobile */
@media (max-width: 768px) {
    nav {
        padding: 20px 30px;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0,0,0,0.98);
        flex-direction: column;
        padding: 100px 40px;
        transition: right 0.5s;
        z-index: 9999;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 10000;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-content {
        padding: 0 20px;
        margin-top: 80px;
    }

    .hero-content h1 {
        font-size: 28px;
        letter-spacing: 4px;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator span {
        height: 40px;
    }

    .content-text h2 {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .content-text p {
        font-size: 15px;
    }

    .content-image {
        height: 400px;
    }

    section {
        padding: 80px 30px;
    }

    .full-width-section {
        height: 60vh;
    }

    .full-width-content h2 {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .full-width-content p {
        font-size: 14px;
    }

    .residence-grid {
        grid-template-columns: 1fr;
    }

    .residence-card {
        height: 400px;
    }

    .location-section {
        height: 60vh;
    }

    .map-content {
        padding: 20px 30px;
    }

    .map-content h2 {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .coordinates {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .contact-section {
        padding: 80px 30px;
    }

    .form-container h2 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 60px 30px 30px;
    }

    .footer-content {
        gap: 40px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .loading-logo img {
        width: 300px;
    }

    .hero-content h1 {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .cta-btn {
        padding: 10px 25px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .content-text h2 {
        font-size: 28px;
    }

    .full-width-content h2 {
        font-size: 24px;
    }

    .map-content h2 {
        font-size: 28px;
    }

    .map-content {
        padding: 15px 20px;
    }

    .form-container h2 {
        font-size: 28px;
    }

    input, textarea, select {
        padding: 15px 18px;
        font-size: 13px;
    }
}
/* ========== ICONS ========== */

.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Instagram */
.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* WhatsApp */

.whatsapp {
/*    background: linear-gradient(135deg, #25D366, #128C7E)*/;
animation: gradient 3s ease infinite;
}




/* Telegram */
.telegram {
    background: linear-gradient(135deg, #0088cc, #00aced);
}

/* Кнопка "Наверх" */
.scroll-top {
    background: linear-gradient(135deg, var(--primary-gold), #d4b87a);
    cursor: pointer;
    border: none;
    font: inherit;
}

/* Иконки SVG */
.social-svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

/* Текстовая подпись */
.social-text {
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.social-text::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
}

/* Эффекты при наведении */
.social-icon:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon:hover .social-svg {
    transform: rotate(10deg);
}

.social-icon:hover .social-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Анимация появления */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.social-icon {
    animation: floatIn 0.5s ease backwards;
}

.instagram { animation-delay: 0.1s; }
.whatsapp { animation-delay: 0.2s; }
.telegram { animation-delay: 0.3s; }
.scroll-top { animation-delay: 0.4s; }

/* Эффект пульсации для важных кнопок */
.whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .social-sidebar {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        left: 0;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .social-text {
        display: none; /* Скрываем текст на мобильных */
    }

    .social-icon:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .social-sidebar {
        gap: 10px;
        bottom: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-svg {
        width: 20px;
        height: 20px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .social-icon {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
}

/* Адаптация для печати */
@media print {
    .social-sidebar {
        display: none;
    }
}

/* Альтернативный вариант: вертикальная полоса */
.social-sidebar.alternative {
    right: 0;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.social-sidebar.alternative .social-icon {
    border-radius: 0;
    width: 60px;
    height: 60px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-sidebar.alternative .social-icon:last-child {
    border-bottom: none;
}

/* Вариант с числом уведомлений */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
