
    @font-face {
        font-family: 'Inter';
        src: url('/fonts/Inter-Regular.woff2') format('woff2');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Inter';
        src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
        font-weight: 600;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Inter';
        src: url('/fonts/Inter-Bold.woff2') format('woff2');
        font-weight: 700;
        font-style: normal;
        font-display: swap;
    }

    :root {
        --bg-main: #05060a;
        --bg-hero: radial-gradient(circle at 50% -20%, #1b2230, #05060a 70%);
        --bg-section: #080a10;
        --bg-highlight: linear-gradient(180deg, #080a10, #111522);
        --gold: #d8b979;
        --gold-soft: #c8a96a;
        --text-main: #f5f5f5;
        --text-muted: rgba(255,255,255,0.72);
        --border-soft: rgba(255,255,255,0.08);
        --card-bg: rgba(255,255,255,0.04);
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        font-family: "Inter", sans-serif;
        background: var(--bg-main);
        color: var(--text-main);
        -webkit-font-smoothing: antialiased;
    }

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

    img {
        max-width: 100%;
        display: block;
    }

    .container {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 28px;
    }

    section {
        padding: 110px 0;
        background: var(--bg-section);
        position: relative;
        overflow: hidden;
    }

    section.highlight {
        background: var(--bg-highlight);
    }

    /* HEADER */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(5,6,10,0.96);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        min-height: 48px;
    }

    .logo-block {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    }

    .logo-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
	.logo-large img {
    transform: scale(1.3);
    }

    .logo-large {
        width: 48px;
        height: 48px;
    }


    .logo-title {
        font-size: 17px;
        font-weight: 600;
        color: var(--gold);
        line-height: 1.2;
        font-family: "Inter", sans-serif;
        white-space: nowrap;
    }

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

    .phone-block {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .phone-number {
        font-size: 17px;
        font-weight: 600;
        color: var(--gold);
        white-space: nowrap;
    }

    .schedule-block {
        font-size: 13px;
        color: var(--text-muted);
        white-space: nowrap;
        opacity: 0.8;
        font-weight: 400;
        letter-spacing: 0.3px;
    }

    /* TYPOGRAPHY */
    h1 {
        font-size: 64px;
        font-weight: 700;
        letter-spacing: -1.5px;
        margin: 0 0 24px;
        color: #ffffff;
    }

    h2 {
        font-size: 40px;
        font-weight: 600;
        margin: 0 0 40px;
        color: #ffffff;
    }

    p {
        color: var(--text-muted);
        line-height: 1.7;
        font-size: 18px;
        margin: 0 0 16px;
    }

    .subtitle {
        max-width: 760px;
        margin: 0 auto 40px;
        font-size: 20px;
        opacity: 0.9;
        text-align: center;
    }

    .small {
        font-size: 14px;
        color: var(--text-muted);
        margin-top: 18px;
    }

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

    /* HERO */
    .hero {
        padding: 160px 0 140px;
        text-align: center;
        background: var(--bg-hero);
        margin-top: 64px;
    }

    .hero-inner {
        position: relative;
        z-index: 1;
    }

    /* BUTTONS */
    .btn {
        width: 188px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 16px 0;
        background: linear-gradient(135deg, var(--gold), var(--gold-soft));
        color: #05060a;
        font-weight: 600;
        border-radius: 14px;
        text-decoration: none;
        font-size: 18px;
        transition: 0.3s ease;
        box-shadow: 0 8px 20px rgba(200,169,106,0.25);
    }

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(200,169,106,0.35);
    }

    .btn svg {
        width: 24px;
        height: 24px;
    }

    .btn-group {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
	
    .price-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:16px 24px;
    border-radius:14px;
    background:transparent;
    border:1px solid var(--gold);
    color:var(--gold);
    font-weight:600;
    transition:.3s;
    }

    .price-btn:hover {
        background:var(--gold);
        color:#05060a;
    }
    /* FLOAT BUTTONS */
    .float-buttons {
        position: fixed;
        bottom: 24px;
        right: 24px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        z-index: 999;
    }

    .float-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--gold), var(--gold-soft));
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(200,169,106,0.35);
        transition: 0.3s ease;
        text-decoration: none;
    }

    .float-btn:hover {
        transform: translateY(-3px);
    }

    .float-btn svg {
        width: 26px;
        height: 26px;
    }

    /* GRID */
    .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    /* CARD */
    .card {
        background: var(--card-bg);
        border: 1px solid var(--border-soft);
        border-radius: 18px;
        padding: 32px;
        backdrop-filter: blur(14px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        transition: 0.3s ease;
    }

    .card:hover {
        transform: translateY(-6px);
        border-color: rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.06);
    }

    .card b {
        display: block;
        margin-bottom: 10px;
        font-size: 18px;
        color: #ffffff;
    }

    /* ADVANTAGES */
    .advantages {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        margin-top: 32px;
    }

    .adv-item {
        font-size: 16px;
        color: var(--text-muted);
    }

    .adv-item::before {
        content: "✓ ";
        color: var(--gold);
        font-weight: 600;
    }

    /* CALCULATOR */
    .calculator {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 40px;
    }

    .calculator input[type="number"] {
        width: 100%;
        background: #05060a;
        border: 1px solid var(--border-soft);
        color: white;
        padding: 16px;
        border-radius: 12px;
        font-size: 18px;
        margin-bottom: 20px;
    }

    .deposit-hint {
        font-size: 14px;
        margin-top: -10px;
        margin-bottom: 20px;
        color: rgba(255,255,255,0.55);
    }

    .radio {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
        cursor: pointer;
        font-size: 18px;
    }

    .radio input {
        display: none;
    }

    .radio span {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 2px solid var(--gold);
    }

    .radio input:checked + span {
        background: var(--gold);
        box-shadow: inset 0 0 0 5px #05060a;
    }

    .calc-result {
        background: rgba(216,185,121,0.08);
        border: 1px solid rgba(216,185,121,0.25);
        border-radius: 18px;
        padding: 35px;
    }

    .payment {
        font-size: 42px;
        font-weight: 700;
        color: var(--gold);
        margin: 25px 0;
    }

    .result-info div {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-soft);
    }

    /* YANDEX MAP */
    #yandex-map-container {
        height: 500px;
    }

    /* HOUSES & PLANS (JSON) */
    #houses-wrapper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .house-card {
        background: var(--card-bg);
        border: 1px solid var(--border-soft);
        border-radius: 18px;
        padding: 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        backdrop-filter: blur(14px);
        transition: 0.3s ease;
    }

    .house-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255,255,255,0.18);
    }

    .house-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 14px;
    }

    .house-images {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

.house-img-wrap {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #11131b;

    user-select: none;
    cursor: pointer;
    pointer-events: auto;
}

.house-img-wrap img {
    pointer-events: none;
}

    .house-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        -webkit-user-drag: none;
        user-select: none;
    }

    /* FOOTER */
    footer {
        background: #05060a;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: 28px 0 32px;
        font-size: 14px;
        color: var(--text-muted);
    }

    .footer-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
    }

    .footer-address {
        max-width: 420px;
    }

    /* RESPONSIVE */
    @media (max-width: 1024px) {
        .calculator {
            grid-template-columns: 1fr;
        }

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

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

        #houses-wrapper {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 768px) {

        .header-inner {
            padding: 10px 0;
        }

        .logo-block {
            flex-direction: row;
            align-items: center;
            gap: 10px;
        }

        .logo-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--gold);
            line-height: 1.2;
            font-family: "Inter", sans-serif;
        }

        .schedule-block {
            display: none;
        }

        .phone-number {
            font-size: 15px;
        }

        .header-contact {
            gap: 12px;
        }

    h1 {
            font-size: 34px;
            line-height: 1.22;
            margin-bottom: 20px;
        }

        h2 {
            font-size: 26px;
            margin-bottom: 30px;
        }

        p {
            font-size: 16px;
            line-height: 1.55;
        }

        .subtitle {
            font-size: 15px;
            margin-bottom: 30px;
            padding: 0 10px;
        }

        .container {
            padding: 0 18px;
        }

        section {
            padding: 70px 0;
        }

        .hero {
            padding: 120px 0 80px;
            margin-top: 60px;
        }

        .btn {
            width: 100%;
            padding: 14px 0;
            font-size: 17px;
            gap: 10px;
        }

        .btn svg {
            width: 22px;
            height: 22px;
        }

        .btn-group {
            flex-direction: column;
            gap: 14px;
        }

        .float-buttons {
            bottom: 18px;
            right: 18px;
            gap: 12px;
        }

        .float-btn {
            width: 52px;
            height: 52px;
        }

        .float-btn svg {
            width: 24px;
            height: 24px;
        }

        .grid {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .card {
            padding: 28px;
            border-radius: 16px;
        }

        .advantages {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .calculator {
            grid-template-columns: 1fr;
            padding: 32px;
            gap: 32px;
        }

        .calculator input[type="number"] {
            font-size: 16px;
            padding: 14px;
            margin-bottom: 16px;
        }

        #depositHint {
            font-size: 13px !important;
            line-height: 1.4;
            margin-top: -6px;
            margin-bottom: 18px;
        }

        .payment {
            font-size: 28px;
            margin: 20px 0;
        }

        .result-info div {
            padding: 10px 0;
        }

        iframe {
            height: 340px !important;
        }

        #yandex-map-container {
            height: 340px !important;
        }

        .footer-inner {
            flex-direction: column;
            align-items: flex-start;
        }

        #houses-wrapper {
            grid-template-columns: 1fr;
        }

        .house-img-wrap {
            height: 160px;
        }
    }

/* ============================
   PERFECT HEADER MOBILE FIX
   ============================ */
@media (max-width: 768px) {

    /*    */
    .header-inner {
        padding: 8px 0;
        gap: 12px;
    }

    /*  */
    .logo-img {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .logo-title {
        font-size: 15px;
        line-height: 1.1;
    }

    .logo-subtitle {
        font-size: 11px;
    }

    /*  */
    .phone-number {
        font-size: 15px;
        white-space: nowrap;
    }

    /*  MAX / TELEGRAM */
}

/* -  (iPhone SE, 12 mini) */
    @media (max-width: 480px) {

        .header-inner {
            padding: 6px 0;
            gap: 10px;
        }

        .logo-block {
            flex-direction: row;
            align-items: center;
            gap: 8px;
        }

        .logo-img {
            width: 38px;
            height: 38px;
        }

        .logo-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--gold);
            line-height: 1.2;
            font-family: "Inter", sans-serif;
        }

        .phone-number {
            font-size: 14px;
        }

        .schedule-block {
            display: none;
        }

        /*  ,    */
        .header-messengers {
            display: none;
        }

        /*  */
        .float-buttons {
            display: none;
        }
    }

    .price-link {
        display: block;
        margin-top: 24px;
        text-align: center;
        color: var(--gold);
        font-size: 16px;
        text-decoration: none;
        transition: 0.25s ease;
    }

    .price-link:hover {
        opacity: 0.75;
    }

    /* GALLERY MODAL */
    .gallery-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 10000;
        backdrop-filter: blur(20px);
        animation: fadeIn 0.3s ease;
    }

    .gallery-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    @keyframes slideIn {
        from { 
            opacity: 0;
            transform: scale(0.9);
        }
        to { 
            opacity: 1;
            transform: scale(1);
        }
    }

    .gallery-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: slideIn 0.4s ease;
    }

    .gallery-content img {
        max-width: 100%;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease;
        user-select: none;
        -webkit-user-drag: none;
    }

    .gallery-content img.zoomed {
        transform: scale(1.5);
        cursor: zoom-out;
    }

    .gallery-close {
        position: absolute;
        top: 20px;
        right: 30px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 40px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10001;
        backdrop-filter: blur(10px);
    }

    .gallery-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 30px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10001;
        backdrop-filter: blur(10px);
    }

    .gallery-nav:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-50%) scale(1.1);
    }

    .gallery-prev {
        left: 20px;
    }

    .gallery-next {
        right: 20px;
    }

    .gallery-counter {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        z-index: 10001;
    }

    /* Mobile adaptations */
    @media (max-width: 768px) {
        .gallery-nav {
            width: 50px;
            height: 50px;
            font-size: 24px;
        }

        .gallery-prev {
            left: 10px;
        }

        .gallery-next {
            right: 10px;
        }

        .gallery-close {
            top: 10px;
            right: 15px;
            width: 40px;
            height: 40px;
            font-size: 32px;
        }

        .gallery-counter {
            bottom: 20px;
            font-size: 16px;
            padding: 8px 16px;
        }

        .gallery-content img {
            max-height: 85vh;
        }
    }

    @media (max-width: 480px) {
        .gallery-nav {
            width: 44px;
            height: 44px;
            font-size: 20px;
        }

        .gallery-prev {
            left: 5px;
        }

        .gallery-next {
            right: 5px;
        }

        .gallery-close {
            top: 5px;
            right: 10px;
            width: 36px;
            height: 36px;
            font-size: 28px;
        }

        .gallery-counter {
            bottom: 15px;
            font-size: 14px;
            padding: 6px 12px;
        }
    }
    