:root {
    --bg: #f5f5f3;
    --header-height: 84px;
    --section-pad-y: 90px;
    --surface: #ffffff;
    --surface-soft: #ececeb;
    --text: #111111;
    --text-soft: #5c5c5c;
    --line: rgba(17, 17, 17, 0.12);
    --line-strong: rgba(17, 17, 17, 0.22);
    --dark: #111111;
    --dark-soft: #1b1b1b;
    --dark-line: rgba(255, 255, 255, 0.12);
    --dark-text: rgba(255, 255, 255, 0.78);
    --success: #1d6d3a;
    --danger: #b52d2d;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    --container: 1180px;
    --transition: 0.28s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 245, 243, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    height: 64px;
}

.brand-mark img {
    width: 64px;
    height: 64px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small {
    font-size: 0.84rem;
    color: var(--text-soft);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-soft);
    transition: color var(--transition);
}

.main-nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    min-height: 52px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-small {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.95rem;
}

.btn-dark {
    background: var(--dark);
    color: #ffffff;
}

.btn-dark:hover {
    background: #000000;
}

.btn-light {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.btn-light:hover {
    background: #fafafa;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    position: absolute;
    left: 14px;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 17px;
}

.menu-toggle span:nth-child(2) {
    top: 24px;
}

.menu-toggle span:nth-child(3) {
    top: 31px;
}

.menu-toggle.is-active span:nth-child(1) {
    top: 24px;
    transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    top: 24px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    background: rgba(245, 245, 243, 0.98);
    transform: translateX(100%);
    transition: transform 0.34s ease;
    z-index: 80;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-inner {
    height: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-brand img {
    width: 70px;
}

.mobile-brand strong {
    display: block;
}

.mobile-brand small {
    display: block;
    color: var(--text-soft);
}

.mobile-close {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
}

.mobile-close span {
    position: absolute;
    left: 14px;
    top: 24px;
    width: 24px;
    height: 2px;
    background: var(--text);
}

.mobile-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
}

.mobile-nav a {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-weight: 600;
}

.mobile-contact {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.mobile-contact a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    background: var(--text);
    color: #ffffff;
    font-weight: 600;
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 70;
}

.mobile-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-intro {
    padding: 0 0 56px;
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.hero-banner-wrap {
    width: 100%;
    line-height: 0;
}

.hero-banner-image {
    display: block;
    width: 100%;
    height: clamp(220px, 32vw, 420px);
    object-fit: cover;
    object-position: center;
}

.hero-intro-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: 100%;
    padding-top: 42px;
}

.hero {
    padding: 0 0 56px;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-text {
    margin: 0;
    color: var(--text-soft);
    max-width: 860px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.card {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.section {
    position: relative;
    z-index: 3;
    padding: var(--section-pad-y) 0;
}

.section-surface {
    background: var(--surface-soft);
}

.section-dark {
    background: var(--dark);
    color: #ffffff;
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading h2 {
    margin: 16px 0 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
}

.section-heading-light p {
    color: var(--dark-text);
}

.section-rule {
    display: block;
    width: min(240px, 100%);
    height: 12px;
    margin: 0 auto;
    position: relative;
    color: rgba(17, 17, 17, 0.28);
}

.section-rule-light {
    color: rgba(255, 255, 255, 0.32);
}

.section-rule::before,
.section-rule::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 28px);
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
    border-radius: 999px;
}

.section-rule::before {
    left: 0;
}

.section-rule::after {
    right: 0;
}

.cards {
    display: grid;
    gap: 22px;
}

.services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.benefit-card {
    padding: 28px;
}

.service-card h3,
.benefit-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.25;
}

.benefit-card p {
    margin: 0;
    color: var(--text-soft);
}

.section-services-dark .service-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--dark-line);
    box-shadow: none;
}

.section-services-dark .service-card h3 {
    color: #ffffff;
}

.section-services-dark .service-card p {
    margin: 0;
    color: var(--dark-text);
}

.service-price {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
}

.section-services-dark .service-price {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-line);
    color: #ffffff;
}

.section-note {
    margin: 24px 0 0;
    text-align: center;
}

.section-services-dark .section-note {
    color: var(--dark-text);
}

.section-services-dark .container {
    min-height: calc(100svh - var(--header-height) - (var(--section-pad-y) * 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.order-card,
.side-card {
    padding: 30px;
}

.side-card h3 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.side-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.side-list li+li {
    margin-top: 8px;
}

.side-contact {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.side-contact a {
    font-weight: 700;
}

.side-contact-meta {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    padding-top: 4px;
}

.side-contact-meta p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.side-contact-meta strong {
    color: var(--text);
}

.side-map {
    margin-top: 8px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.side-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.form-block+.form-grid {
    margin-top: 24px;
}

.field-label {
    display: block;
    font-weight: 700;
}

.field-note {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.service-option {
    position: relative;
}

.service-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-option label {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.service-option label:hover {
    transform: translateY(-1px);
}

.service-option strong {
    display: block;
    font-size: 1rem;
}

.service-option span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.service-option input:checked+label {
    border-color: var(--text);
    background: #f0f0ee;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    padding: 14px 16px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.form-status {
    margin: 0;
    font-weight: 600;
    color: var(--text-soft);
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-error {
    color: var(--danger);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-footer {
    background: #0b0b0b;
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-left span,
.footer-right span {
    line-height: 1.45;
}

.footer-left strong {
    color: #ffffff;
}

.footer-separator {
    opacity: 0.45;
}

@media (max-width: 1120px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
        justify-self: end;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 74px;
        --section-pad-y: 70px;
    }

    .container {
        width: min(100% - 22px, var(--container));
    }

    .hero-intro {
        min-height: auto;
        padding: 0 0 28px;
    }

    .hero-banner-image {
        height: 220px;
    }

    .hero-copy {
        padding-top: 28px;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 70px 0;
    }

    .section-services-dark {
        min-height: auto;
        align-items: stretch;
    }

    .services-grid,
    .benefits-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .benefit-card,
    .order-card,
    .side-card {
        padding: 22px;
    }

    .site-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .footer-inner {
        min-height: auto;
        padding: 20px 0;
        gap: 14px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
    }

    .footer-left strong,
    .footer-left span,
    .footer-right span {
        display: block;
        width: 100%;
    }

    .footer-left span,
    .footer-right span {
        font-size: 0.95rem;
    }


    .footer-separator {
        display: none;
    }

    .service-options {
        grid-template-columns: 1fr;
    }
}

.order-form input.is-invalid,
.order-form textarea.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
}

.form-status.is-error {
    color: #b91c1c;
}

.form-status.is-success {
    color: #166534;
}

/* ─── Gallery admin trigger ─── */

.gallery-admin-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    line-height: 0;
}

.gallery-admin-trigger:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Admin modal ─── */

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.admin-modal-box {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
    padding: 36px;
    width: 100%;
    max-width: 580px;
    max-height: 90svh;
    overflow-y: auto;
}

.admin-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.admin-modal-close:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.admin-modal-title {
    margin: 0 0 4px;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.admin-modal-desc {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* File picker */

.admin-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.file-picker {
    position: relative;
    border-radius: var(--radius-md);
    border: 2px dashed var(--line);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    cursor: pointer;
    transition: border-color var(--transition);
}

.file-picker:hover {
    border-color: var(--line-strong);
}

.file-picker-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-picker-area {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.file-picker-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-picker-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

/* Select styling */

.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235c5c5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--text);
    padding: 14px 40px 14px 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field select:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.label-optional {
    font-weight: 400;
    color: var(--text-soft);
}

/* Gallery caption meta */

.gallery-caption {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-meta {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-left: auto;
}

@media (max-width: 520px) {
    .admin-modal-box {
        padding: 24px 20px;
    }

    .admin-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Nav active & hover underline ─── */

.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: center;
}

.main-nav a:hover::after,
.main-nav a.nav-active::after {
    transform: scaleX(1);
}

.main-nav a.nav-active {
    color: var(--text);
}

/* ─── Scroll animations ─── */

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.fade-up-visible {
    opacity: 1;
    transform: none;
}

/* ─── Gallery Carousel ─── */

.gallery-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-carousel {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 6px 2px;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 clamp(260px, calc((100% - 40px) / 3), 420px);
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.carousel-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: var(--dark);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.carousel-arrow:hover {
    background: #000000;
    transform: scale(1.06);
}

.gallery-single {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-single img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Before/After Slider */

.ba-slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

.ba-img {
    position: absolute;
    inset: 0;
}

.ba-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: var(--surface-soft);
}

.ba-img-after {
    clip-path: inset(0 0 0 50%);
}

.ba-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

.ba-label-right {
    left: auto;
    right: 12px;
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.28);
}

.ba-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
    color: var(--text);
}

.ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.gallery-caption {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-badge {
    display: inline-flex;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(17, 17, 17, 0.06);
    color: var(--text);
}

@media (max-width: 760px) {
    /* Carousel přes celou šířku nahoře, šipky v řádku pod ním */
    .gallery-carousel-wrap {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 16px;
    }

    .gallery-carousel {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .carousel-arrow-prev {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        justify-self: start;
    }

    .carousel-arrow-next {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        justify-self: end;
    }

    .carousel-arrow {
        width: 48px;
        height: 48px;
    }

    .gallery-item {
        flex: 0 0 100%;
    }
}