/* ============================================================
   DESIGN TOKENS — DARK THEME (default)
   ============================================================ */
:root {
    /* --- Brand palette --- */
    --gold:            #FFD700;
    --gold-light:      #FFCC33;
    --gold-dim:        #D4AF37;
    --gold-deep:       #E6BE6A;

    /* --- Neutral scale --- */
    --black:           #0F0F0F;
    --dark-100:        #121212;  /* deepest cards */
    --dark-200:        #1A1A1A;  /* surfaces       */
    --dark-300:        #222222;  /* borders        */
    --dark-400:        #333333;  /* subtle borders */

    /* --- Text --- */
    --text-primary:    #FFFFFF;
    --text-secondary:  #A1A1A1;
    --text-disabled:   #555555;

    /* --- Semantic aliases (used throughout the stylesheet) --- */
    --bg-page:         var(--black);
    --bg-surface:      var(--dark-200);
    --bg-card:         var(--dark-100);

    --accent:          var(--gold);
    --accent-light:    var(--gold-light);

    --border-subtle:   var(--dark-300);
    --border-default:  var(--dark-400);

    --header-bg:       rgba(15, 15, 15, 0.70);
    --footer-bg:       rgba(15, 15, 15, 0.70);
    --hero-overlay:    rgba(15, 15, 15, 0.65);
    --card-overlay:    rgba(15, 15, 15, 0.35);
    --card-overlay-hover: rgba(15, 15, 15, 0.05);

    --select-option-bg: var(--dark-200);

    --shadow-gold:     rgba(255, 215, 0, 0.35);
    --shadow-gold-lg:  rgba(255, 215, 0, 0.55);
    --shadow-btn:      rgba(212, 175, 55, 0.60);
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
body.theme-light {
    --gold:            #B8860B;
    --gold-light:      #B8860B;
    --gold-dim:        #996E09;
    --gold-deep:       #B8860B;

    --black:           #F5F0E8;
    --dark-100:        #FFFFFF;
    --dark-200:        #F0EBE0;
    --dark-300:        #DDD5C3;
    --dark-400:        #C8BCA8;

    --text-primary:    #1A1208;
    --text-secondary:  #5C5040;
    --text-disabled:   #9E8E78;

    --bg-page:         #F5F0E8;
    --bg-surface:      #F0EBE0;
    --bg-card:         #FFFFFF;

    --accent:          var(--gold);
    --accent-light:    var(--gold-light);

    --border-subtle:   #DDD5C3;
    --border-default:  #C8BCA8;

    --header-bg:       rgba(245, 240, 232, 0.85);
    --footer-bg:       rgba(245, 240, 232, 0.85);
    --hero-overlay:    rgba(245, 240, 232, 0.45);
    --card-overlay:    rgba(245, 240, 232, 0.55);
    --card-overlay-hover: rgba(245, 240, 232, 0.10);

    --select-option-bg: #F0EBE0;

    --shadow-gold:     rgba(184, 134, 11, 0.25);
    --shadow-gold-lg:  rgba(184, 134, 11, 0.40);
    --shadow-btn:      rgba(184, 134, 11, 0.50);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    transition: background 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;

    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-card);
    color: var(--accent);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 20px var(--shadow-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease, border-color 0.4s ease;
}

.theme-toggle:hover {
    transform: scale(1.12) rotate(20deg);
    box-shadow: 0 6px 28px var(--shadow-gold-lg);
}

/* ============================================================
   BUTTONS — базовый класс
   ============================================================ */
.btn-luxe {
    position: relative;
    overflow: hidden;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    margin: .4rem;
    white-space: nowrap;
}

.btn-luxe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.6s;
}

.btn-luxe:hover::before { left: 300%; }

/* --- Кнопки в хедере --- */
.btn-nav-calc {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #0a0a0a;
    border: none;
}
.btn-nav-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-gold);
}

.btn-nav-contact {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-nav-contact:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* --- Кнопки в Hero --- */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #0a0a0a;
    font-size: 15px;
    padding: 15px 34px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px var(--shadow-gold);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    font-size: 15px;
    padding: 14px 34px;
    border-radius: 10px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-3px);
}

/* Старые классы — оставляем на всякий случай */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #000;
}
.btn-gold:hover {
    box-shadow: 0 12px 35px var(--shadow-gold);
}
.btn-outline-gold {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--gold);
}
.btn-outline-gold:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-light);
    color: var(--gold);
}
.btn-outline-dark {
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}
.btn-outline-dark:hover {
    border-color: var(--border-default);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    z-index: 1000;
    transition: background 0.4s ease;
}

/* Логотип */
.header-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--text-primary);
}

.header-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.4));
}

.header-logo-text {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.logo-accent {
    color: var(--gold);
    font-weight: 300;
    margin: 0 1px;
}

/* Nav */
header nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.sleect-language {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    margin-right: .5rem;
    transition: color 0.3s, border-color 0.3s;
    width: auto !important;
    margin-bottom: 0 !important;
}
.sleect-language:hover {
    color: var(--text-primary);
    border-color: var(--gold);
}
.sleect-language option {
    background-color: var(--bg-surface);
}

header nav a {
    margin: 0 !important;
    text-decoration: none;
}
header nav a button {
    margin: 0 0 0 .25rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    width: 100%;
    height: 88vh;
    min-height: 560px;
    padding: 3rem 3rem 3rem;
    padding-top: calc(64px + 3rem);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("img/hero_bg.jpg") center 30% / cover no-repeat;
    background-color: var(--hero-overlay);
    background-blend-mode: multiply;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Нижний градиент для плавного перехода */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, transparent, var(--bg-page));
}

.hero:hover .hero-bg {
    transform: scale(1.03);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
}

/* Надпись над заголовком */
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: 20px;
    padding: 5px 16px;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
    background: rgba(255,215,0,0.06);
}

.hero .container h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: .5rem;
}

.hero-dash {
    color: var(--gold);
    font-weight: 300;
}

.hero .container h2 {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    font-size: clamp(16px, 2.2vw, 26px);
    letter-spacing: 0.01em;
    margin-bottom: .9rem;
}

/* Описание с иконками-разделителями */
.hero-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-buttons a { margin: 0; }
.hero-buttons button { margin: 0; }

/* ============================================================
   SECTION HEADER — shared utility
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-top: .5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: .5rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   TYPES SECTION
   ============================================================ */
.types-section {
    margin-top: 6rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255,215,0,0.2);
}

.types-title {
    font-size: clamp(28px, 4vw, 40px);
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 1.1;
}
.types-title span { color: var(--gold-light); }

/* Grid: 3 колонки, широкие карточки занимают 2 */
.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
}

.type-card--wide { grid-column: span 2; }

/* Карточка */
.type-card {
    position: relative;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,215,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.type-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.4);
    border-color: rgba(255,215,0,0.5);
}

/* Фоновое фото */
.type-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.type-card:hover .type-card__bg { transform: scale(1.07); }

/* Градиентный оверлей снизу */
.type-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0) 0%,
        rgba(10,10,10,0.35) 45%,
        rgba(10,10,10,0.88) 100%
    );
    transition: background 0.4s ease;
}
.type-card:hover .type-card__overlay {
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0) 0%,
        rgba(10,10,10,0.25) 40%,
        rgba(10,10,10,0.82) 100%
    );
}

/* Контент поверх */
.type-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.75rem;
    z-index: 2;
}

.type-card__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #0a0a0a;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: .6rem;
}

.type-card__content h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: .3rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.type-card__content p {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    margin-bottom: .85rem;
    max-width: 340px;
    transition: color 0.3s ease;
}
.type-card:hover .type-card__content p { color: rgba(255,255,255,0.85); }

/* Футер карточки: цена + иконка */
.type-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.type-card__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.type-card__zoom {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,215,0,0.5);
    background: rgba(255,215,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, transform 0.3s ease;
}
.type-card:hover .type-card__zoom {
    background: rgba(255,215,0,0.25);
    transform: scale(1.1);
}
.type-card__zoom svg { width: 16px; height: 16px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(5,5,5,0.92);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,215,0,0.35);
    background: rgba(255,215,0,0.08);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover {
    background: rgba(255,215,0,0.2);
    transform: rotate(90deg);
}
.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__img-wrap {
    flex-shrink: 0;
    max-width: 60vw;
    max-height: 80vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,215,0,0.2);
    transform: scale(0.93);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.lightbox.active .lightbox__img-wrap { transform: scale(1); }

.lightbox__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 80vh;
}

.lightbox__info {
    max-width: 320px;
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}
.lightbox.active .lightbox__info {
    transform: translateX(0);
    opacity: 1;
}

.lightbox__title {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
    line-height: 1.15;
}

.lightbox__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.lightbox__price {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: 6px;
    padding: 6px 16px;
    background: rgba(255,215,0,0.07);
}

/* Адаптив lightbox */
@media (max-width: 768px) {
    .lightbox {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }
    .lightbox__img-wrap {
        max-width: 100%;
        max-height: 50vh;
        width: 100%;
    }
    .lightbox__info { max-width: 100%; transform: translateY(10px); }
    .lightbox.active .lightbox__info { transform: translateY(0); }
    .lightbox__title { font-size: 24px; }
}

/* Адаптив types-grid */
@media (max-width: 900px) {
    .types-grid { grid-template-columns: 1fr 1fr; }
    .type-card--wide { grid-column: span 2; }
    .type-card { height: 260px; }
}

@media (max-width: 580px) {
    .types-grid { grid-template-columns: 1fr; }
    .type-card--wide { grid-column: span 1; }
    .type-card { height: 240px; }
}

/* Shared background photo classes */
.image1 { background-image: url("img/work/9.jpg");  background-position: center 10%; }
.image2 { background-image: url("img/work/2.jpg"); background-position: center 25%; }
.image3 { background-image: url("img/work/3.jpg");  background-position: center 20%; }

.photo1 { background: url("img/work/4.jpg")   center 10% / cover no-repeat; }
.photo2 { background: url("img/work/5.jpg")  center 25% / cover no-repeat; }
.photo3 { background: url("img/work/6.jpg")   center 20% / cover no-repeat; }
.photo4 { background: url("img/work/7.jpg") center 30% / cover no-repeat; }
.photo5 { background: url("img/work/8.jpg")   center 40% / cover no-repeat; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
    margin-top: 6rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.gallery-heading {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
}
.gallery-heading span { color: var(--gold-light); }

/* Grid layout — masonry-style with fixed rows */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 280px 220px;
    gap: 12px;
}

/* Placement */
.gallery-card--tall  { grid-row: span 2; }          /* col 1, both rows */
.gallery-card--wide  { grid-column: span 2; }       /* bottom, cols 1-2 */

/* Card base */
.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.gallery-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.35);
    border-color: rgba(255,215,0,0.45);
}

/* Background photo */
.gallery-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
    filter: grayscale(15%);
}
.gallery-card:hover .gallery-card__bg {
    transform: scale(1.07);
    filter: grayscale(0%);
}

/* Gradient overlay */
.gallery-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0)    0%,
        rgba(10,10,10,0.25) 50%,
        rgba(10,10,10,0.80) 100%
    );
    transition: opacity 0.35s ease;
}

/* Content */
.gallery-card__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.4rem;
    z-index: 2;
}

/* Solution tag pills */
.gallery-card__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: .55rem;
    backdrop-filter: blur(6px);
}
.gallery-card__tag--matte  { background: rgba(200,200,200,0.2); color: #e8e8e8; border: 1px solid rgba(255,255,255,0.25); }
.gallery-card__tag--glossy { background: rgba(255,215,0,0.18);  color: var(--gold); border: 1px solid rgba(255,215,0,0.4); }
.gallery-card__tag--satin  { background: rgba(180,160,220,0.2); color: #d4baff; border: 1px solid rgba(180,160,220,0.35); }
.gallery-card__tag--led    { background: rgba(100,200,255,0.18); color: #7ee0ff; border: 1px solid rgba(100,200,255,0.35); }
.gallery-card__tag--custom { background: rgba(255,130,80,0.18); color: #ffb38a; border: 1px solid rgba(255,130,80,0.35); }

/* Meta text */
.gallery-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateY(6px);
    transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-card__meta { transform: translateY(0); }

.gallery-card__room {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0;
}
.gallery-card__detail {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    margin: 0;
    transition: color 0.3s ease;
}
.gallery-card:hover .gallery-card__detail { color: rgba(255,255,255,0.8); }

/* Zoom icon on gallery cards */
.gallery-card__zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15,15,15,0.55);
    border: 1px solid rgba(255,215,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 3;
}
.gallery-card__zoom-icon svg { width: 15px; height: 15px; }
.gallery-card:hover .gallery-card__zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gallery-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* Close button */
.gallery-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,215,0,0.35);
    background: rgba(255,215,0,0.08);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}
.gallery-lightbox__close:hover { background: rgba(255,215,0,0.2); transform: rotate(90deg); }
.gallery-lightbox__close svg { width: 20px; height: 20px; }

/* Prev / Next nav */
.gallery-lightbox__nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,215,0,0.3);
    background: rgba(255,215,0,0.07);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}
.gallery-lightbox__nav:hover { background: rgba(255,215,0,0.18); transform: scale(1.1); }
.gallery-lightbox__nav svg { width: 22px; height: 22px; }

/* Stage — photo + caption */
.gallery-lightbox__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 860px;
}

.gallery-lightbox__photo {
    width: 100%;
    max-height: 72vh;
    aspect-ratio: 4/3;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-300);
    border: 1px solid rgba(255,215,0,0.15);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    transform: scale(0.93);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.gallery-lightbox.active .gallery-lightbox__photo {
    transform: scale(1);
    opacity: 1;
}

/* Caption */
.gallery-lightbox__caption {
    display: flex;
    align-items: center;
    gap: .75rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}
.gallery-lightbox.active .gallery-lightbox__caption {
    opacity: 1;
    transform: translateY(0);
}
.gallery-lightbox__tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255,215,0,0.15);
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.35);
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.gallery-lightbox__room {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.gallery-lightbox__detail {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    letter-spacing: 0.03em;
}

/* Dot indicators */
.gallery-lightbox__dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.gallery-lightbox__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
    padding: 0;
}
.gallery-lightbox__dot.active {
    background: var(--gold);
    transform: scale(1.4);
}

/* Mobile */
@media (max-width: 640px) {
    .gallery-lightbox { padding: 1rem; gap: .5rem; }
    .gallery-lightbox__nav { width: 38px; height: 38px; }
    .gallery-lightbox__photo { max-height: 55vh; }
    .gallery-lightbox__caption { flex-wrap: wrap; gap: .4rem; }
    .gallery-lightbox__room { font-size: 16px; }
}
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px 200px;
    }
    .gallery-card--tall { grid-row: span 1; }
    .gallery-card--wide { grid-column: span 2; }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-card,
    .gallery-card--tall,
    .gallery-card--wide {
        grid-column: span 1;
        grid-row: span 1;
        height: 220px;
    }
    .gallery-card__room { font-size: 18px; }
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.container:has(.calculation-title) {
    border-top: 1px solid var(--gold);
    margin-top: 6rem;
    padding-top: 1rem;
}

.calculation-title {
    font-size: 35px;
    font-family: "Cormorant Garamond", serif;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: .5rem;
}

.calculation-title span {
    color: var(--gold-light);
}

.calculator-card {
    background-color: var(--bg-card);
    width: 600px;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin: 3rem auto 5rem;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.calc-title {
    color: var(--accent);
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.calc-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

select, input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-default);
    padding: 12px;
    color: var(--text-primary);
    border-radius: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: color 0.4s ease, border-color 0.4s ease;
}

select option {
    background-color: var(--select-option-bg);
    color: var(--text-primary);
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px var(--shadow-gold);
}

.calc-result {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.4s ease;
}

.price-display {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent);
    margin: 15px 0;
}

.total-info {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-exact {
    background: var(--text-primary);
    color: var(--bg-card);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.4s ease, color 0.4s ease;
}

/* --- Checkboxes --- */
.calc-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gold-light);
    user-select: none;
}

.checkbox-container input { display: none; }

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 3px;
}

.checkbox-container input:checked ~ .checkmark:after {
    content: "✔";
    position: absolute;
    left: 3px;
    top: -2px;
    color: var(--accent);
}

/* --- Calculate button --- */
.btn-main {
    width: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-dim));
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    color: #000;
}

.btn-main:hover {
    box-shadow: 0 0 15px var(--shadow-btn);
}

/* ============================================================
   CALCULATOR v2
   ============================================================ */
.calc2-section {
    margin-top: 6rem;
    padding: 3rem 0 5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.calc2-heading {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
}
.calc2-heading span { color: var(--gold-light); }

/* Layout */
.calc2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

/* ---- Inputs column ---- */
.calc2-step {
    margin-bottom: 1.75rem;
}

.calc2-step-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: .75rem;
}

.calc2-step-num {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.calc2-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.4s;
    margin-bottom: 0;
}
.calc2-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
}
.calc2-input::placeholder { color: var(--text-disabled); }

/* Option button groups */
.calc2-btn-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.calc2-btn-group--col {
    flex-direction: column;
    gap: .5rem;
}

.calc2-option-btn {
    flex: 1;
    min-width: 60px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.calc2-option-btn strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.calc2-option-btn small {
    font-size: 11px;
    color: var(--text-disabled);
    display: block;
    font-weight: 400;
}

.calc2-option-btn:hover {
    border-color: var(--gold);
    color: var(--text-primary);
    background: rgba(255,215,0,0.05);
}

.calc2-option-btn.active {
    border-color: var(--gold);
    background: rgba(255,215,0,0.08);
    color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255,215,0,0.15);
}
.calc2-option-btn.active strong { color: var(--gold); }
.calc2-option-btn.active small  { color: var(--gold-dim); opacity: .8; }

/* CTA row */
.calc2-cta-group {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .5rem;
}
.calc2-cta-group a { margin: 0; }
.calc2-cta-primary  { width: 100%; margin: 0; }
.calc2-cta-secondary { width: 100%; margin: 0; }

/* ---- Result column ---- */
.calc2-result-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc2-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    transition: background 0.4s, border-color 0.4s;
}

.calc2-result-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: .5rem;
}

.calc2-price-range {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: .75rem;
    letter-spacing: -0.01em;
}

.calc2-disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 2px solid rgba(255,215,0,0.35);
    padding-left: .75rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.calc2-rate-info {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.calc2-rate-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.25);
    color: var(--gold-dim);
    white-space: nowrap;
}

.calc2-minimum {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: .4rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border-subtle);
}
.calc2-minimum strong { color: var(--text-primary); }
.calc2-min-icon { font-size: 15px; }

/* Includes card */
.calc2-includes-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    transition: background 0.4s, border-color 0.4s;
}

.calc2-includes-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: .6rem;
}
.calc2-includes-title + .calc2-list { margin-bottom: 1rem; }
.calc2-includes-title--not { color: var(--text-disabled); margin-top: .5rem; }

.calc2-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.calc2-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.calc2-list--included li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 12px;
}
.calc2-list--excluded li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--text-disabled);
    font-weight: 700;
}

.calc2-individual-note {
    margin-top: .75rem;
    font-size: 12px;
    font-style: italic;
    color: var(--gold-dim);
}

/* Warning card */
.calc2-warning-card {
    background: rgba(255,215,0,0.05);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    transition: background 0.4s, border-color 0.4s;
}
.calc2-warning-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.calc2-warning-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .3rem;
}
.calc2-warning-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Photo-card option buttons (Step 3) — horizontal row */
.calc2-btn-group--photo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.calc2-photo-btn {
    position: relative;
    height: 160px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    flex: none;
    min-width: 0;
}

.calc2-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.calc2-photo-btn:hover .calc2-photo-bg,
.calc2-photo-btn.active .calc2-photo-bg {
    transform: scale(1.07);
}

.calc2-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.72) 100%);
    transition: background 0.3s ease;
}
.calc2-photo-btn.active .calc2-photo-overlay {
    background: linear-gradient(to bottom, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.55) 100%);
}

.calc2-photo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: .85rem 1rem;
    text-align: left;
}
.calc2-photo-content strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    display: block;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.calc2-photo-content small {
    font-size: 11px;
    color: rgba(255,255,255,0.75) !important;
    display: block;
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Active state: gold border */
.calc2-photo-btn.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255,215,0,0.35), 0 8px 24px rgba(0,0,0,0.3);
}
.calc2-photo-btn:hover {
    border-color: rgba(255,215,0,0.55);
}

/* Responsive */
@media (max-width: 640px) {
    .calc2-btn-group--photo {
        grid-template-columns: 1fr;
    }
    .calc2-photo-btn { height: 120px; }
}

/* Showcase strip — removed, styles no longer needed */

/* Responsive */
@media (max-width: 900px) {
    .calc2-layout {
        grid-template-columns: 1fr;
    }
    /* inputs col идёт первым */
    .calc2-inputs-col  { order: 1; }

    /* из правой колонки: карточка с ценой — сразу под inputs */
    .calc2-result-card { order: 2; }

    /* что входит и предупреждение — в самый низ */
    .calc2-includes-card { order: 3; }
    .calc2-warning-card  { order: 4; }

    /* сама правая колонка тоже идёт после левой */
    .calc2-result-col { order: 2; display: contents; }

    .calc2-showcase { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .calc2-showcase { grid-template-columns: 1fr; }
    .calc2-showcase-card { height: 160px; }
    .calc2-price-range { font-size: 28px; }
    .calc2-cta-group { gap: .5rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    margin-top: 7rem;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--text-secondary);
    overflow: hidden;
    transition: background 0.4s ease;
}

/* Золотое свечение сверху */
.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 40px 8px rgba(255, 215, 0, 0.15);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 3rem;
    padding: 4rem 2rem 3rem;
}


/* На десктопе обёртка прозрачна — колонки участвуют в общем grid */
.footer-nav-contact-wrap {
    display: contents;
}
/* --- Бренд --- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.4));
}

.footer-logo-text {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.footer-logo-dash {
    color: var(--gold);
    font-weight: 300;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: .6rem;
    margin-top: .25rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    background: rgba(255, 215, 0, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-social-btn svg {
    width: 16px;
    height: 16px;
}

/* --- Колонки --- */
.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

/* --- Контакты --- */
.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-contacts li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.75;
}

.footer-contacts a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* --- Badges --- */
.footer-badges {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    background: rgba(255, 215, 0, 0.04);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.footer-badge:hover {
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.08);
}

.footer-badge-num {
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    min-width: 52px;
}

.footer-badge-label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* --- Bottom bar --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 1.1rem 2rem;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-disabled);
    letter-spacing: 0.03em;
}

.footer-divider {
    color: rgba(255, 215, 0, 0.3);
}

/* --- Адаптив футера --- */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    /* обёртка остаётся contents, нав и контакты занимают по одной колонке */
    .footer-col--badges {
        grid-column: span 2;
    }
    .footer-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .footer-badge {
        flex: 1 1 140px;
    }
}

@media (max-width: 600px) {
    /* footer-inner: flex-колонка, обёртка занимает всю ширину */
    .footer-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    /* Обёртка нав+контакты — на мобильном становится grid 2 колонки */
    .footer-nav-contact-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .footer-col--nav {
        padding: 1.5rem 1rem 1.5rem 1.25rem;
        border-right: 1px solid rgba(255, 215, 0, 0.08);
    }

    .footer-col--contacts {
        padding: 1.5rem 1.25rem 1.5rem 1rem;
    }

    /* Бренд — центр, сверху */
    .footer-brand {
        align-items: center;
        text-align: center;
        padding: 2rem 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        order: -1;
    }

    /* Бейджи — три плитки в ряд */
    .footer-col--badges {
        grid-column: auto;
        padding: 1.5rem 1.25rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .footer-badges {
        flex-direction: row;
        gap: .5rem;
    }

    .footer-badge {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: .75rem .4rem;
        gap: .15rem;
    }

    .footer-badge-num {
        font-size: 20px;
        min-width: auto;
    }

    .footer-badge-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: .3rem;
        text-align: center;
    }
    .footer-divider { display: none; }
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.before-after-section {
    margin-top: 6rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--gold);
}

.ba-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 35px;
    text-align: center;
    margin-bottom: .6rem;
}
.ba-title span { color: var(--gold-light); }

.ba-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 2.5rem;
    letter-spacing: 0.03em;
}

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

.ba-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ba-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

/* --- Сам слайдер --- */
.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    background: var(--bg-card);
}

/* Фото «после» — занимает весь блок */
.ba-after {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-200);
}

/* Фото «до» — обрезается справа через clip-path */
.ba-before {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-400);
    clip-path: inset(0 50% 0 0); /* начальное положение 50% */
    transition: clip-path 0s;    /* убираем лаг при перетаскивании */
}

/* Вертикальная линия-разделитель */
.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* Круглая ручка */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    transition: transform 0.15s ease;
}

.ba-slider:hover .ba-handle,
.ba-slider.dragging .ba-handle {
    transform: translate(-50%, -50%) scale(1.12);
}

/* Метки До / После */
.ba-label {
    position: absolute;
    top: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    backdrop-filter: blur(6px);
}
.ba-label-before {
    right: 12px;
    background: rgba(15,15,15,0.65);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
}
.ba-label-after {
    left: 12px;
    background: rgba(255,215,0,0.15);
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.35);
}

/* Подсказка-анимация при первом просмотре */
.ba-slider.hint .ba-divider {
    animation: ba-hint 1.2s ease-in-out;
}
@keyframes ba-hint {
    0%   { left: 50%; }
    30%  { left: 30%; }
    70%  { left: 70%; }
    100% { left: 50%; }
}

/* --- Адаптив --- */
@media (max-width: 900px) {
    .ba-sliders { grid-template-columns: 1fr 1fr; }
    .ba-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
    .ba-sliders { grid-template-columns: 1fr; }
    .ba-card:last-child { grid-column: auto; max-width: 100%; }
    .ba-title { font-size: 26px; }
}

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.mobile-bottom-bar {
    display: none; /* shown only on mobile via media query */
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1500;
        background: var(--header-bg);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 215, 0, 0.15);
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
    }

    .mobile-bar-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 12px 8px 10px;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        transition: background 0.2s ease, color 0.2s ease;
        color: var(--text-secondary);
        border: none;
        background: none;
        cursor: pointer;
        min-height: 62px;
    }

    .mobile-bar-btn svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .mobile-bar-btn:active { background: rgba(255, 215, 0, 0.06); }
    .mobile-bar-btn:active svg { transform: scale(0.9); }

    .mobile-bar-btn--calc {
        color: var(--gold);
        border-right: 1px solid rgba(255, 215, 0, 0.12);
    }
    .mobile-bar-btn--calc svg { color: var(--gold); }

    .mobile-bar-btn--wa { color: #25D366; }
    .mobile-bar-btn--wa svg { color: #25D366; fill: #25D366; }
}

/* ============================================================
   TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Header */
    header nav { gap: .25rem; }
    header { padding: 0 1.5rem; }
    .sleect-language { width: auto !important; }

    /* Sections spacing */
    .types-section,
    .gallery-section,
    .calc2-section,
    .before-after-section {
        margin-top: 4.5rem;
        padding-top: 2.5rem;
    }
    .container:has(.calculation-title) { margin-top: 4.5rem; }
    .site-footer { margin-top: 5rem; }

    /* Types grid: 2 columns */
    .type { width: 49.5%; }

    /* Calculator */
    .calculator-card {
        width: 100%;
        padding: 30px 24px;
    }
}

/* Desktop-only nav links hidden class */
.nav-desktop-only { display: flex; }

/* ============================================================
   MOBILE  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    /* --- Header — simplified, no burger --- */
    header {
        padding: 0 1rem;
        height: 52px;
        min-height: 52px;
    }

    .header-logo img { width: 28px; height: 28px; }
    .header-logo-text { font-size: 18px; }

    /* Hide desktop-only nav links */
    .nav-desktop-only { display: none !important; }

    /* Keep nav visible but only show language select */
    header nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 0;
    }

    .sleect-language {
        width: auto !important;
        margin: 0 !important;
    }

    /* --- Hero --- */
    .hero {
        height: auto;
        min-height: 65vh;
        padding: calc(52px + 2.5rem) 1.25rem 4rem;
    }
    .hero .container { max-width: 100%; padding: 0; }
    .hero .container h1 { font-size: clamp(36px, 10vw, 56px); }
    .hero .container h2 { font-size: clamp(14px, 4vw, 20px); }
    .hero-desc { font-size: 12px; }
    .hero-eyebrow { margin-bottom: 1rem; }
    .hero-buttons { flex-direction: column; gap: .5rem; margin-top: .5rem; }
    .hero-buttons a { margin: 0; width: 100%; }
    .hero-buttons button { width: 100%; margin: 0; }

    /* --- Section spacing on mobile --- */
    .types-section,
    .gallery-section,
    .calc2-section,
    .before-after-section {
        margin-top: 3.5rem;
        padding-top: 2rem;
    }
    .section-header { margin-bottom: 2rem; }

    /* --- Types --- */
    .types-title { font-size: 26px; text-align: center; }
    .type { width: 100%; height: 28vh; padding: 1.5rem; }
    .types-grid { gap: 8px; }

    /* --- Gallery --- */
    .gallery-grid { gap: 8px; }

    /* --- Before/After --- */
    .ba-sliders { gap: 12px; }
    .ba-title { font-size: 26px; }
    .ba-subtitle { font-size: 13px; margin-bottom: 1.5rem; }

    /* --- Calculator v1 --- */
    .container:has(.calculation-title) {
        margin-top: 3.5rem;
        padding-top: .5rem;
    }
    .calculation-title { font-size: 26px; margin-top: 1.5rem; margin-bottom: .25rem; }

    .calculator-card {
        width: 100%;
        padding: 24px 16px;
        margin: 1.5rem auto 3rem;
        border-radius: 12px;
    }

    .calc-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .calc-title   { font-size: 19px; }
    .calc-subtitle { font-size: 12px; margin-bottom: 20px; }
    .price-display { font-size: 26px; }

    /* --- Calculator v2 --- */
    .calc2-layout { gap: 1.5rem; margin-top: 1.5rem; }
    .calc2-step { margin-bottom: 1.25rem; }
    .calc2-result-card { padding: 1.25rem; }
    .calc2-includes-card { padding: 1.25rem; }
    .calc2-price-range { font-size: 28px; }

    /* --- Footer --- */
    .site-footer { margin-top: 4rem; }

    /* --- Theme toggle — positioned above bottom bar --- */
    .theme-toggle {
        bottom: 80px;
        right: 1rem;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    /* --- Bottom padding for mobile bar --- */
    body { padding-bottom: 70px; }
    .site-footer {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================================
   EXTRA SMALL  ≤ 400px
   ============================================================ */
@media (max-width: 400px) {
    .container { padding: 0 .75rem; }
    .hero { padding: calc(52px + 2rem) 1rem 3rem; }
    .hero .container h1 { font-size: 28px; }
    .hero .container h2 { font-size: 14px; }
    .types-section,
    .gallery-section,
    .calc2-section,
    .before-after-section {
        margin-top: 2.75rem;
    }
    .type { height: 24vh; padding: 1rem; }
    .calc-title { font-size: 17px; }
    .btn-luxe { padding: 11px 18px; font-size: 14px; }
    .calc2-btn-group { gap: .35rem; }
    .calc2-option-btn { padding: 8px 12px; font-size: 13px; }
}
