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

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

:root {
    --ink: #101820;
    --ink-soft: #1c2a33;
    --teal: #0f5c68;
    --teal-bright: #17808f;
    --amber: #d4843a;
    --amber-deep: #b86a28;
    --paper: #eef1f2;
    --paper-2: #e2e7e9;
    --line: rgba(16, 24, 32, 0.12);
    --white: #ffffff;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body.trade-page {
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

/* ——— Header ——— */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--ink);
    border-bottom: 3px solid var(--amber);
    padding: 10px 0;
    box-shadow: none;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 36px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.header-left { justify-self: start; }
.header-right { justify-self: end; }
.logo { justify-self: center; }

.logo img {
    height: 34px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

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

.header-phone-link {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.78rem, 1.3vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.header-phone-note {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amber);
}

.header-social {
    display: flex;
    gap: 8px;
}

.header-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    border-radius: 0;
    transition: border-color 0.2s, background 0.2s;
}

.header-social a:hover {
    border-color: var(--amber);
    background: rgba(212, 132, 58, 0.15);
}

.header-social img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ——— Page shell ——— */
.vizitka-page {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 58px;
}

.vizitka-split {
    flex: 1;
    min-height: 0;
    display: grid;
    /* Content left, gallery right — opposite of kitchens */
    grid-template-columns: minmax(340px, 0.92fr) 4px minmax(0, 1.08fr);
    grid-template-rows: 1fr;
}

.vizitka-divider {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    background: var(--ink);
    z-index: 5;
}

.vizitka-divider-glow {
    display: none;
}

.vizitka-divider-line {
    position: absolute;
    inset: 12% 0;
    width: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        var(--amber) 20%,
        var(--teal-bright) 50%,
        var(--amber) 80%,
        transparent
    );
}

/* ——— Left: content ——— */
.vizitka-right {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    position: relative;
    background: var(--ink-soft);
    color: #f2f5f6;
    overflow: hidden;
}

.vizitka-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}

.vizitka-intro {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: clamp(28px, 4.5vh, 44px) clamp(22px, 3.2vw, 40px) 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vizitka-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid var(--amber);
    border-radius: 0;
    color: var(--amber);
    font-size: clamp(0.52rem, 0.9vw, 0.62rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
}

.vizitka-title {
    font-size: clamp(1.15rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 10px;
    max-width: 18ch;
}

.vizitka-subtitle {
    font-size: clamp(0.68rem, 1.15vw, 0.82rem);
    line-height: 1.45;
    color: rgba(242, 245, 246, 0.72);
    font-weight: 400;
    max-width: 36ch;
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vizitka-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: clamp(12px, 2vh, 20px) clamp(22px, 3.2vw, 40px) clamp(14px, 2.5vh, 24px);
    overflow-y: auto;
}

.vizitka-info-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.8vh, 18px);
    min-height: 0;
}

/* Installment */
.vizitka-installment-wrap {
    width: 100%;
}

.installment-badge {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    border-radius: 0;
    background: #21A038;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.installment-badge-mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    padding: 10px 6px;
    background: rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.installment-badge-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
}

.installment-badge-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.installment-badge-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.9);
}

.installment-badge-dot { opacity: 0.5; }

/* Perks — 2-col industrial cards */
.vizitka-perks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vizitka-perk {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid var(--amber);
    background: rgba(0, 0, 0, 0.22);
    border-radius: 0;
    transition: border-color 0.2s, background 0.2s;
}

.vizitka-perk:hover {
    border-color: rgba(212, 132, 58, 0.45);
    background: rgba(0, 0, 0, 0.32);
}

.vizitka-perk-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    background: rgba(212, 132, 58, 0.12);
    border: 1px solid rgba(212, 132, 58, 0.35);
}

.vizitka-perk-icon svg {
    width: 14px;
    height: 14px;
}

.vizitka-perk-text {
    font-size: clamp(0.58rem, 1vw, 0.7rem);
    line-height: 1.35;
    color: rgba(242, 245, 246, 0.88);
    font-weight: 400;
}

/* Actions */
.vizitka-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    margin-top: auto;
}

.vizitka-order-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.vizitka-order-wrap.is-open { overflow: visible; }

.vizitka-order-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.vizitka-order-wrap.is-open .vizitka-order-menu {
    max-height: 68px;
    opacity: 1;
    margin-top: 12px;
    padding: 4px 0;
    overflow: visible;
    pointer-events: auto;
}

.vizitka-order-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--amber-deep);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
}

.vizitka-order-wrap.is-open .vizitka-order-icon {
    transform: scale(1);
    opacity: 1;
}

.vizitka-order-wrap.is-open .vizitka-order-icon:nth-child(1) { transition-delay: 0.04s; }
.vizitka-order-wrap.is-open .vizitka-order-icon:nth-child(2) { transition-delay: 0.08s; }
.vizitka-order-wrap.is-open .vizitka-order-icon:nth-child(3) { transition-delay: 0.12s; }

.vizitka-order-wrap.is-open .vizitka-order-icon:hover {
    background: var(--amber-deep);
    transform: scale(1.04);
}

.vizitka-order-icon svg,
.vizitka-order-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.vizitka-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--amber);
    border-radius: 0;
    background: var(--amber);
    color: #fff;
    font-family: inherit;
    font-size: clamp(0.72rem, 1.2vw, 0.86rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.vizitka-cta:hover {
    background: var(--amber-deep);
    border-color: var(--amber-deep);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}

.vizitka-order-wrap.is-open .vizitka-cta {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
    transform: none;
}

.vizitka-cta-label { line-height: 1.2; }

.vizitka-cta-close {
    display: none;
    width: 22px;
    height: 22px;
}

.vizitka-order-wrap.is-open .vizitka-cta-label { display: none; }
.vizitka-order-wrap.is-open .vizitka-cta-close { display: block; }

.vizitka-cta-secondary {
    text-align: left;
    font-size: clamp(0.58rem, 0.95vw, 0.68rem);
    color: rgba(242, 245, 246, 0.65);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
    transition: color 0.2s, border-color 0.2s;
}

.vizitka-cta-secondary:hover {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

.vizitka-policy {
    flex-shrink: 0;
    width: 100%;
    padding-top: 8px;
    text-align: left;
}

.vizitka-policy-link {
    color: rgba(242, 245, 246, 0.35);
    font-size: 0.48rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.vizitka-policy-link:hover {
    color: rgba(242, 245, 246, 0.7);
}

/* ——— Right: Gallery ——— */
.vizitka-gallery {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: 1fr;
    min-height: 0;
    min-width: 0;
    background: #d8dee2;
    padding: 14px;
    gap: 12px;
}

.gallery-stage {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: hidden;
    background: #0a1014;
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(16, 24, 32, 0.12),
        0 12px 32px rgba(16, 24, 32, 0.18);
}

.gallery-slides {
    position: absolute;
    inset: 0;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(22px);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide--active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.gallery-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 16, 20, 0.22) 0%, transparent 24%),
        linear-gradient(0deg, rgba(10, 16, 20, 0.45) 0%, transparent 40%);
}

.trade-chip {
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 4px 16px rgba(16, 24, 32, 0.16);
}

.gallery-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 60px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.gallery-label,
.gallery-counter {
    padding: 7px 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gallery-counter-sep {
    opacity: 0.4;
    margin: 0 2px;
}

.gallery-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.14);
}

.gallery-progress-fill {
    width: 100%;
    height: 0%;
    background: var(--teal-bright);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-stage:hover .gallery-nav { opacity: 1; }

.gallery-nav-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    border: none;
    border-radius: 50%;
}

.gallery-nav-btn:hover {
    background: var(--teal);
    color: #fff;
}

.gallery-nav-btn svg {
    width: 18px;
    height: 18px;
}

.gallery-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    margin-top: 0;
    border: none;
    border-radius: 50%;
}

.gallery-zoom:hover {
    background: var(--teal);
    color: #fff;
}

.gallery-zoom svg {
    width: 16px;
    height: 16px;
}

.gallery-caption {
    position: absolute;
    left: 14px;
    right: auto;
    bottom: 14px;
    z-index: 4;
    padding: 0;
    max-width: min(74%, 360px);
}

.gallery-caption-inner,
.trade-caption-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-caption-num {
    position: static;
    opacity: 1;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.gallery-caption-inner h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 700;
    max-width: none;
    color: var(--ink);
    line-height: 1.25;
}

.gallery-price-block {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gallery-price-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
}

.gallery-price {
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    font-weight: 700;
    color: var(--ink);
}

.gallery-price-currency {
    font-size: 0.8rem;
    color: rgba(16, 24, 32, 0.55);
}

/* Filmstrip — vertical rail */
.gallery-filmstrip-wrap {
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border-top: none;
    min-height: 0;
}

.filmstrip-nav {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(16, 24, 32, 0.2);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filmstrip-nav:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.filmstrip-nav svg {
    width: 14px;
    height: 14px;
}

.filmstrip-nav--prev {
    transform: rotate(90deg);
}

.filmstrip-nav--next {
    transform: rotate(90deg);
}

.gallery-filmstrip {
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 24, 32, 0.25) transparent;
    padding: 2px;
}

.gallery-filmstrip::-webkit-scrollbar {
    width: 3px;
}

.gallery-filmstrip::-webkit-scrollbar-thumb {
    background: rgba(16, 24, 32, 0.25);
    border-radius: 999px;
}

.gallery-filmstrip-item {
    flex: 0 0 auto;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    text-align: left;
    scroll-snap-align: center;
    font-family: inherit;
}

.gallery-filmstrip-num {
    display: none;
}

.gallery-filmstrip-img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #c5ccd1;
    box-shadow: 0 2px 8px rgba(16, 24, 32, 0.12);
}

.gallery-filmstrip-item.active .gallery-filmstrip-img {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(15, 92, 104, 0.25);
}

.gallery-filmstrip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-filmstrip-item:hover .gallery-filmstrip-img img,
.gallery-filmstrip-item.active .gallery-filmstrip-img img {
    transform: scale(1.05);
}

.gallery-filmstrip-price {
    display: block;
    margin-top: 4px;
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    line-height: 1.2;
}

.gallery-filmstrip-item.active .gallery-filmstrip-price {
    color: var(--teal);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 16, 0.96);
    padding: 48px 20px 24px;
}

.gallery-lightbox.active { display: flex; }

.gallery-lightbox img {
    max-width: min(100%, 1100px);
    max-height: calc(100dvh - 120px);
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.gallery-lightbox-close svg { width: 20px; height: 20px; }

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.gallery-lightbox-prev { left: 16px; }
.gallery-lightbox-next { right: 16px; }
.gallery-lightbox-nav svg { width: 20px; height: 20px; }

.gallery-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    align-items: baseline;
    color: #fff;
    font-size: 0.85rem;
}

.gallery-lightbox-caption-price {
    color: var(--amber);
    font-weight: 700;
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    background: var(--ink);
    border-top: 3px solid var(--amber);
    padding: 22px clamp(16px, 3vw, 32px) 12px;
}

.site-footer-shell {
    max-width: 1440px;
    margin: 0 auto;
}

.site-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin-bottom: 8px;
}

.site-footer-item {
    font-size: clamp(0.58rem, 1vw, 0.7rem);
    color: rgba(255, 255, 255, 0.85);
}

.site-footer-item a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-item a:hover { color: var(--amber); }

.site-footer-schedule {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.site-footer-sep {
    color: rgba(255, 255, 255, 0.25);
}

.site-footer-note {
    display: inline-block;
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: var(--amber);
    padding: 3px 8px;
    border-radius: 0;
}

.site-footer-requisites {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-bottom: 6px;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer-requisites a,
.site-footer-requisites a[href^="tel"],
.site-footer-num,
.site-footer-num-part {
    color: rgba(255, 255, 255, 0.45) !important;
    text-decoration: none !important;
}

.site-footer-num-part + .site-footer-num-part::before { content: ''; }

.site-footer-copyright {
    text-align: center;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 0;
    text-align: center;
}

.footer-credit__label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
}

.footer-credit__link {
    display: inline-flex;
    line-height: 0;
}

.footer-credit__link img {
    display: block;
    height: 26px;
    width: auto;
}

/* Policy page */
.policy-body {
    height: auto !important;
    overflow: auto !important;
    background: var(--paper);
    color: var(--ink);
}

.policy-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--ink);
    border-bottom: 3px solid var(--amber);
}

.policy-header-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.policy-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.policy-page { padding: 32px 20px 60px; }

.policy-page-inner {
    max-width: 760px;
    margin: 0 auto;
}

.policy-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--ink);
}

.policy-content {
    font-size: 0.85rem;
    line-height: 1.65;
}

.policy-content h2 {
    margin: 24px 0 10px;
    font-size: 1rem;
}

.policy-content p,
.policy-content li { margin-bottom: 8px; }

.policy-content ul { padding-left: 1.2em; margin-bottom: 12px; }

.policy-content a { color: var(--teal); }

.policy-content strong { font-weight: 700; }

.policy-content-note {
    margin-top: 24px;
    font-size: 0.75rem;
    color: rgba(16, 24, 32, 0.55);
}

/* Cookie */
.cookie-banner {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 24px));
    width: calc(100% - 32px);
    max-width: 720px;
    padding: 22px 28px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 0;
    box-shadow: 6px 6px 0 rgba(16, 24, 32, 0.2);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.cookie-banner-text {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.55;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink);
    cursor: pointer;
}

.cookie-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--amber);
}

.cookie-accept-btn {
    padding: 10px 22px;
    background: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 0;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.cookie-accept-btn:hover:not(:disabled) {
    background: var(--amber);
    border-color: var(--amber);
}

.cookie-accept-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.glass-link {
    color: var(--teal);
    font-weight: 600;
}

/* ——— Desktop wide ——— */
@media (min-width: 1600px) {
    .vizitka-title { font-size: 2rem; }
    .vizitka-perks { gap: 10px; }
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
    html, body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .header {
        padding: 8px 0;
    }

    .header-container {
        padding: 0 12px;
        gap: 8px;
    }

    .header-phone-block {
        align-items: flex-start;
        gap: 1px;
        max-width: 42vw;
        min-width: 0;
    }

    .header-phone-link {
        font-size: 0.62rem;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .header-phone-note {
        font-size: 0.42rem;
        letter-spacing: 0.04em;
        line-height: 1.2;
        white-space: nowrap;
    }

    .logo img {
        height: 28px;
    }

    .header-social {
        gap: 6px;
    }

    .header-social a {
        width: 30px;
        height: 30px;
    }

    .header-social img {
        width: 14px;
        height: 14px;
    }

    .vizitka-page {
        height: auto;
        min-height: 100dvh;
        padding-top: 54px;
        background: var(--ink-soft);
    }

    .vizitka-split {
        display: flex;
        flex-direction: column;
        flex: none;
        overflow: visible;
    }

    .vizitka-right {
        display: contents;
        color: inherit;
    }

    .vizitka-intro {
        order: 1;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        padding: 14px 18px 16px;
        background: var(--ink-soft);
        border-bottom: none;
    }

    .vizitka-badge {
        margin-bottom: 10px;
        font-size: 0.5rem;
        padding: 5px 9px;
    }

    .vizitka-title {
        max-width: none;
        color: #fff;
        margin-bottom: 8px;
        font-size: 1.2rem;
    }

    .vizitka-subtitle {
        max-width: none;
        color: rgba(242, 245, 246, 0.72);
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .vizitka-gallery {
        order: 2;
        width: 100%;
        height: min(56dvh, 460px);
        flex: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 76px;
        grid-template-rows: 1fr;
        padding: 10px;
        gap: 8px;
        background: #d8dee2;
    }

    .gallery-stage {
        border-radius: 6px;
    }

    .gallery-filmstrip-wrap {
        grid-column: 2;
        grid-row: 1;
    }

    .gallery-caption {
        max-width: min(78%, 280px);
        left: 10px;
        bottom: 10px;
    }

    .gallery-caption-inner,
    .trade-caption-card {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .gallery-zoom {
        margin-top: 0;
        top: 10px;
        right: 10px;
        bottom: auto;
    }

    .vizitka-divider {
        order: 3;
        width: 100%;
        height: 4px;
        background: var(--amber);
    }

    .vizitka-divider-line { display: none; }

    .vizitka-info {
        order: 4;
        background: var(--ink-soft);
        color: #f2f5f6;
        padding: 20px 16px 28px;
        overflow: visible;
        align-items: stretch;
        text-align: left;
    }

    .vizitka-info::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 28px 28px;
    }

    .vizitka-installment-wrap {
        display: flex;
        justify-content: center;
    }

    .installment-badge { max-width: 100%; }

    .vizitka-perks {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .vizitka-actions {
        max-width: none;
        align-items: stretch;
    }

    .vizitka-cta-secondary {
        text-align: center;
        align-self: center;
    }

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

    .gallery-nav { opacity: 1; }

    .gallery-caption-inner h2 { max-width: none; font-size: 0.88rem; }

    .gallery-filmstrip-price { font-size: 0.45rem; }

    .site-footer {
        padding: 14px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        text-align: center;
    }

    .site-footer-shell {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .site-footer-sep {
        display: none !important;
    }

    .site-footer-bar,
    .site-footer-requisites {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }

    .site-footer-item {
        white-space: normal;
        text-align: center;
        display: block;
        width: 100%;
        font-size: 0.64rem;
        line-height: 1.3;
    }

    .site-footer-requisites > span:not(.site-footer-sep) {
        white-space: nowrap;
        text-align: center;
        display: block;
        width: auto;
        font-size: 0.58rem;
        line-height: 1.3;
    }

    .site-footer-num,
    .site-footer-num-part {
        display: inline !important;
        width: auto !important;
        white-space: nowrap;
    }

    .site-footer-schedule {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    .site-footer-note {
        margin: 0;
    }

    .site-footer-copyright {
        text-align: center;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .header-phone-link {
        font-size: 0.58rem;
    }

    .header-phone-note {
        font-size: 0.38rem;
    }

    .logo img {
        height: 26px;
    }

    .header-social a {
        width: 28px;
        height: 28px;
    }

    .vizitka-page {
        padding-top: 50px;
    }

    .vizitka-intro {
        padding: 12px 16px 14px;
    }

    .vizitka-title {
        font-size: 1.1rem;
    }

    .vizitka-gallery {
        grid-template-columns: minmax(0, 1fr) 68px;
    }

    .cookie-banner {
        padding: 18px 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }
}
