/*!
* Gems Gallery — mainpage styles
*/

/* ─── Hero ─────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 115px;
    padding-bottom: 100px;
}

.hero-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-subtitle {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    line-height: 1;
    color: #595959;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-title-line1 {
    color: #ffffff;
}

.hero-title-line2 {
    color: #a28d53;
}

.hero-media {
    position: relative;
    z-index: 1;
    height: 440px;
    margin-top: 40px;
    pointer-events: none;
}

/* Shine — декоративные засветки, обрезаются overflow: hidden на .hero */
.hero-shine {
    position: absolute;
    bottom: 180px;
    z-index: 2;
    pointer-events: none;
}

.hero-shine img {
    width: 100%;
    height: auto;
}

.hero-shine-left {
    left: -40px;
    width: 400px;
}

.hero-shine-right {
    right: -40px;
    width: 360px;
}

.hero-van,
.hero-jewelry {
    position: absolute;
    bottom: -70px;
    height: auto;
}

.hero-van {
    left: 0%;
    width: 67%;
    z-index: 2;
}

.hero-jewelry {
    right: 0%;
    width: 67%;
    z-index: 1;
}

.hero-van img,
.hero-jewelry img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Фичер-блоки */
.hero-features {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 0;
}

.hero-feature {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    padding: 35px 35px;
    border-radius: 20px;
    border: 1px solid #8c8c8c;
    background: #79797924;
    backdrop-filter: blur(10px);
    text-align: left;
}

.hero-feature-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.hero-feature-text {
    text-transform: uppercase;
    font-size: 16px;
    line-height: 24px;
}

.hero-feature-label {
    color: #a28d53;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-media {
        height: 360px;
    }
}
@media (max-width: 768px) {
    /* .hero {
        padding-top: 40px;
    } */

    .hero-shine {
        display: none;
    }

    .hero-media {
        height: 260px;
    }

    .hero-van {
        left: -2%;
        width: 80%;
    }

    .hero-jewelry {
        right: -2%;
        width: 52%;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-jewelry {
        bottom: 20px;
        right: 0%;
        width: 100%;
        
    }
    .hero-van {
        left: 0%;
        width: 100%;
        bottom: -130px;
    }
    .hero-features {
        margin-top: 150px;
    }
    .hero-feature {
        padding: 20px 20px;
    }

}
@media (max-width: 320px) {
    /* .hero {
        padding-top: 24px;
    } */
}

/* ─── Gallery Slider ────────────────────────────── */
.gallery {
    padding: 80px 0 100px;
    overflow: hidden;
}

.gallery-heading {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 48px;
}

.gallery-heading-line1 {
    color: #ffffff;
}

.gallery-heading-line2 {
    color: #a28d53;
    font-style: italic;
}

.gallery-slider-wrap {
    position: relative;
}

.gallery-slider {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    align-items: flex-end;
    height: 480px; /* fixed — prevents vertical jump during slide transitions */
}

/* Desktop — side slides: 28% each, active: 44% */
.gallery-slide {
    flex: 0 0 28%;
    min-width: 0;
    padding: 0 10px;
    transition: flex-basis 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide.is-active {
    flex: 0 0 44%;
}

.gallery-slide-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-slide-inner img {
    width: 100%;
    object-fit: cover;
    display: block;
    height: 360px;
    transition: height 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.55s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Side slides — grayscale, shorter */
.gallery-slide.is-prev img,
.gallery-slide.is-next img {
    filter: grayscale(100%) brightness(0.65);
    height: 360px;
}

/* Active (center) slide — full color, taller */
.gallery-slide.is-active img {
    filter: none;
    height: 480px;
}

/* ── Slide animations ── */
@keyframes gallerySlideInRight {
    from { transform: translateX(90px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes gallerySlideInLeft {
    from { transform: translateX(-90px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes galleryPushLeft {
    0%   { transform: translateX(0);     opacity: 1; }
    45%  { transform: translateX(-30px); opacity: 0.6; }
    100% { transform: translateX(0);     opacity: 1; }
}
@keyframes galleryPushRight {
    0%   { transform: translateX(0);    opacity: 1; }
    45%  { transform: translateX(30px); opacity: 0.6; }
    100% { transform: translateX(0);    opacity: 1; }
}
@keyframes galleryFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.gallery-slide.is-entering-next .gallery-slide-inner {
    animation: gallerySlideInRight 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.gallery-slide.is-entering-prev .gallery-slide-inner {
    animation: gallerySlideInLeft 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.gallery-slide.is-leaving-left .gallery-slide-inner {
    animation: galleryPushLeft 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-slide.is-leaving-right .gallery-slide-inner {
    animation: galleryPushRight 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-slide.is-fading-in .gallery-slide-inner {
    animation: galleryFadeIn 0.45s ease both;
}

/* Caption overlay — visible only on active slide */
.gallery-slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    border-radius: 12px;
    padding: 24px 28px 28px;
    background: rgba(42, 42, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    pointer-events: none;
}

.gallery-slide.is-active .gallery-slide-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-slide-title {
    font-family: "Sofia Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.gallery-slide-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Navigation buttons */
.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-bottom: 80px;
}

.gallery-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #7c7c7c;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-nav-btn:hover {
    border-color: #a28d53;
    background: rgba(162, 141, 83, 0.12);
    color: #a28d53;
}

.gallery-nav-next {
    background: #a28d53;
    border-color: #a28d53;
    color: #ffffff;
}

.gallery-nav-next:hover {
    background: rgba(162, 141, 83, 0.8);
    color: #ffffff;
}

/* ─── Gallery Responsive ────────────────────────── */
@media (max-width: 1024px) {
    .gallery-track {
        height: 400px;
    }

    .gallery-slide.is-prev img,
    .gallery-slide.is-next img {
        height: 300px;
    }

    .gallery-slide.is-active img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .gallery {
        padding-top: 60px;
    }

    .gallery-heading {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 32px;
    }

    /* Mobile: one slide at a time, full container width */
    .gallery-slider {
        overflow: visible;
    }

    .gallery-track {
        display: block;
    }

    .gallery-slide {
        flex: none;
        display: none;
        padding: 0;
        transition: none;
    }

    .gallery-slide.is-active {
        display: block;
    }

    .gallery-slide-inner {
        border-radius: 0;
    }

    .gallery-slide-inner img,
    .gallery-slide.is-active img,
    .gallery-slide.is-prev img,
    .gallery-slide.is-next img {
        height: 72vw; /* fixed height — prevents layout jump on slide change */
        max-height: 420px;
        filter: none;
        transition: none;
    }

    .gallery-slide.is-entering-next .gallery-slide-inner,
    .gallery-slide.is-entering-prev .gallery-slide-inner {
        animation-duration: 0.4s;
    }

    /* Caption sits below the image on mobile */
    .gallery-slide-caption {
        position: static;
        opacity: 1 !important;
        transform: none !important;
        background: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        padding: 20px 20px 0;
        pointer-events: auto;
        height: 220px;
        overflow: hidden;
    }

    .gallery-slide-title {
        font-size: 20px;
        color: #ffffff;
    }

    .gallery-slide-desc {
        font-size: 14px;
        color: #afafaf;
    }

    .gallery-nav {
        justify-content: flex-end;
        padding: 0 20px;
        margin-top: 16px;
    }

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

    .gallery {
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-slide-inner img,
    .gallery-slide.is-active img {
        height: 85vw;
        max-height: 85vw;
    }
}

/* ─── Booking ───────────────────────────────────── */
.booking {
    padding: 100px 0;
    background: url('../images/mainpage/bg_booking.jpg') center center / cover no-repeat;
}

.booking-card {
    background: #161616;
    border: 1px solid #282828;
    border-radius: 20px;
    padding: 60px;
}

.booking-title {
    font-size: 48px;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.booking-title-accent {
    color: #a28d53;
}

/* Grid */
.booking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.booking-field--full {
    grid-column: 1 / -1;
}

/* Label */
.booking-label {
    font-size: 14px;
    line-height: 1;
    color: #7c7c7c;
    transition: color 0.2s ease;
}

.booking-label.is-error {
    color: #e53535;
}

/* Inputs */
.booking-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    color: #373737;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-input::placeholder {
    color: #b0b0b0;
}

.booking-input:focus {
    border-color: #a28d53;
    box-shadow: 0 0 0 3px rgba(162, 141, 83, 0.12);
    outline: none;
}

.booking-input.is-error {
    border-color: #e53535;
    box-shadow: 0 0 0 3px rgba(229, 53, 53, 0.10);
}

.booking-textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 16px;
    resize: vertical;
}

/* Datepicker input — курсор pointer */
.booking-datepicker {
    cursor: pointer;
}

/* Footer формы — ошибка + кнопка */
.booking-form-footer {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.booking-error {
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
    color: #e53535;
    text-align: center;
}

.booking-error:empty {
    display: none;
}

.booking-success-msg {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #a28d53;
    color: #a28d53;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
}

/* Кнопка */
.booking-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 420px;
    max-width: 100%;
    height: 52px;
    padding: 0 24px;
    background: #a28d53;
    border-radius: 10px;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.booking-submit:hover {
    opacity: 0.85;
}

.booking-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ─── Contact Input Wrapper ─────────────────────── */
.contact-input-wrapper {
    display: flex;
    gap: 4px;
    align-items: stretch;
}

.contact-input-wrapper .contact-input {
    flex: 1;
    min-width: 0;
}

/* Кастомный select мессенджера */
.custom-select-wrapper {
    position: relative;
    width: 136px;
    flex-shrink: 0;
}

.booking-contact-select {
    display: none; /* Скрыт, заменён кастомным */
}

.custom-select {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 32px 0 12px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    user-select: none;
}

.custom-select:focus {
    outline: none;
    border-color: #a28d53;
}

.custom-select-wrapper.open .custom-select {
    border-color: #a28d53;
    border-radius: 10px 10px 0 0;
}

.custom-select-display {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.custom-select-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.custom-select-text {
    font-size: 14px;
    color: #373737;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
    pointer-events: none;
    line-height: 0;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #a28d53;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-select-dropdown {
    display: block;
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 14px;
    color: #373737;
}

.custom-select-option:hover {
    background-color: #f5f5f5;
}

.custom-select-option:last-child {
    border-radius: 0 0 10px 10px;
}

/* Error state for contact select */
.custom-select-wrapper.is-error .custom-select {
    border-color: #e53535;
    box-shadow: 0 0 0 3px rgba(229, 53, 53, 0.10);
}

/* Per-field error text */
.booking-field-error {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #e53535;
    min-height: 0;
}

.booking-field-error:empty {
    display: none;
}

/* jQuery UI Datepicker overrides (dark theme) */
.ui-datepicker {
    background: #1e1e1e !important;
    border: 1px solid #353535 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 14px !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 4px 0 8px !important;
}

.ui-datepicker-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer !important;
    top: 4px !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    background-image: none !important;
}

.ui-icon-circle-triangle-e,
.ui-icon-circle-triangle-w {
    background-image: none !important;
    text-indent: 0 !important;
    color: #a28d53 !important;
}

.ui-datepicker td {
    padding: 2px !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
    border-radius: 6px !important;
    text-align: center !important;
    color: #cccccc !important;
    background: transparent !important;
    border: none !important;
    transition: background 0.15s ease !important;
}

.ui-datepicker td a:hover {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.ui-datepicker td.ui-datepicker-today a {
    background: #2a2a2a !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.ui-datepicker td.ui-state-active a,
.ui-datepicker .ui-state-active {
    background: #a28d53 !important;
    color: #ffffff !important;
    border: none !important;
}

.ui-datepicker th {
    color: #7c7c7c !important;
    font-weight: 400 !important;
    font-size: 12px !important;
}

.ui-datepicker td.ui-state-disabled span {
    color: #444 !important;
}

/* ─── Booking Responsive ────────────────────────── */
@media (max-width: 1024px) {
    .booking-card {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .booking {
        padding: 60px 0;
    }

    .booking-card {
        padding: 40px 30px;
    }

    .booking-title {
        font-size: 36px;
        margin-bottom: 28px;
    }

    .booking-fields {
        grid-template-columns: 1fr;
    }

    .booking-field--full {
        grid-column: 1;
    }
    .gallery-track {
        height: auto;
    }
}

@media (max-width: 640px) {
    .booking {
        padding: 40px 0;
    }

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

    .booking-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .booking-submit {
        width: 100%;
        height: 48px;
    }
}

/* ─── Success Modal ─────────────────────────────── */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.booking-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.booking-modal-box {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border: 1px solid #282828;
    border-radius: 20px;
    padding: 48px 40px 44px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    transform: translateY(16px);
    transition: transform 0.3s ease;
}

.booking-modal.is-open .booking-modal-box {
    transform: translateY(0);
}

.booking-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c7c7c;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.booking-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.booking-modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.booking-modal-title {
    font-family: "Sofia Sans", sans-serif;
    font-size: 26px;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 12px;
}

.booking-modal-text {
    font-size: 15px;
    line-height: 1.6;
    color: #7c7c7c;
}

.callback-modal-field {
    text-align: left;
    margin-top: 24px;
    margin-bottom: 4px;
}

.callback-modal-submit {
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 640px) {
    .booking-modal-box {
        padding: 36px 24px 32px;
        border-radius: 16px;
    }

    .booking-modal-title {
        font-size: 22px;
    }
}

/* ─── Program Accordion ─────────────────────────── */
.program {
    padding: 100px 0;
}

.program-heading {
    font-size: 48px;
    line-height: 1.2;
    color: #ffffff;
    text-align: left;
    margin-bottom: 60px;
}

.program-heading-accent {
    color: #a28d53;
}

/* Accordion items */
.program-item {
    border-top: 1px solid #1e1e1e;
}

.program-item:last-child {
    border-bottom: 1px solid #1e1e1e;
}

/* Header button — same 3-col grid as the inner content */
.program-item-header {
    display: grid;
    grid-template-columns: 68px minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 40px;
    align-items: center;
    width: 100%;
    padding: 28px 0;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.program-item-num {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1;
    color: #2e2e2e;
    grid-column: 1;
    transition: color 0.35s ease;
}

.program-item.is-active .program-item-num {
    color: #a28d53;
}

.program-item-title {
    font-family: "Sofia Sans", sans-serif;
    font-size: 22px;
    line-height: 1.3;
    color: #646464;
    grid-column: 3; /* aligns with the info/description column */
    transition: color 0.35s ease, opacity 0.35s ease;
}

/* Hide title in header when step is open (h3 inside content takes over) */
.program-item.is-active .program-item-title {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Animated body — CSS grid trick */
.program-item-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-item.is-active .program-item-body {
    grid-template-rows: 1fr;
}

.program-item-content {
    min-height: 0;
    overflow: hidden;
}

/* Inner layout — same 3-col grid: col 1 empty (number track), col 2 image, col 3 info */
.program-item-inner {
    display: grid;
    grid-template-columns: 68px minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 40px;
    align-items: start;
    padding-bottom: 48px;
}

.program-item-img {
    grid-column: 2;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.program-item-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.program-item-info {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.program-item-name {
    font-family: "Sofia Sans", sans-serif;
    font-size: 22px;
    line-height: 1.3;
    color: #a28d53;
}

.program-item-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #afafaf;
}

/* Action buttons */
.program-item-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.program-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.program-btn-book {
    background: #a28d53;
    color: #ffffff;
    border: 1px solid #a28d53;
}

.program-btn-book:hover {
    opacity: 0.85;
}

.program-btn-callback {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #ffffff;
}

.program-btn-callback:hover {
    border-color: #a28d53;
    color: #a28d53;
    opacity: 1;
}

/* ─── Program Responsive ────────────────────────── */
@media (max-width: 1024px) {
    .program {
        padding: 80px 0;
    }

    .program-heading {
        font-size: 40px;
        margin-bottom: 48px;
    }

    .program-item-header,
    .program-item-inner {
        grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr);
        column-gap: 28px;
    }

    .program-item-img img {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .program {
        padding: 60px 0;
    }

    .program-heading {
        font-size: 32px;
        margin-bottom: 36px;
    }

    /* Header: back to flex on mobile */
    .program-item-header {
        display: flex;
        gap: 20px;
        padding: 22px 0;
    }

    .program-item-num {
        min-width: 28px;
        flex-shrink: 0;
    }

    .program-item-title {
        grid-column: unset;
        font-size: 18px;
    }

    /* Active title: restore visibility, paint gold */
    .program-item.is-active .program-item-title {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        color: #a28d53;
    }

    /* Stack vertically: info first, then image */
    .program-item-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
        /* indent to match title left edge: num(28px) + gap(20px) */
        padding-left: 48px;
        padding-bottom: 28px;
    }

    .program-item-img {
        order: 2;
        border-radius: 12px;
    }

    .program-item-img img {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 56vw;
        border-radius: 12px;
    }

    .program-item-info {
        order: 1;
        gap: 14px;
    }

    /* Name hidden on mobile — title in header already shows */
    .program-item-name {
        display: none;
    }

    .program-item-actions {
        order: 3;
    }
}

@media (max-width: 640px) {
    .program {
        padding: 40px 0;
    }

    .program-heading {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .program-item-header {
        gap: 16px;
        padding: 18px 0;
    }

    .program-item-title {
        font-size: 16px;
    }

    /* Adjust indent for smaller gap (num 28px + gap 16px = 44px) */
    .program-item-inner {
        padding-left: 44px;
    }

    .program-btn {
        height: 44px;
        padding: 0 20px;
        font-size: 12px;
    }
}

/* ─── Catalog ───────────────────────────────────── */
.catalog {
    padding: 80px 0 100px;
}

.catalog-eyebrow {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1;
    color: #595959;
    margin-bottom: 12px;
    text-align: left;
}

.catalog-heading {
    color: #ffffff;
    margin-bottom: 48px;
    text-align: left;
}

.catalog-heading-accent {
    color: #a28d53;
}

.catalog-outer {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.catalog-item {
    background: #1a1a1a;
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.catalog-item picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.catalog-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
}

.catalog-scrollbar-wrap {
    display: none;
}

/* ─── Catalog 1024px ── */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── Catalog Mobile ── */
@media (max-width: 768px) {
    .catalog {
        padding: 60px 0 80px;
    }

    .catalog-heading {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 32px;
    }

    .catalog-outer {
        max-width: 100%;
        padding: 0;
    }

    .catalog-grid {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        grid-template-columns: none;
        gap: 12px;
        padding: 0 20px;
    }

    .catalog-grid::-webkit-scrollbar {
        display: none;
    }

    .catalog-item {
        flex: 0 0 calc(62vw);
        scroll-snap-align: start;
        aspect-ratio: 1;
    }

    .catalog-scrollbar-wrap {
        display: block;
        padding: 16px 20px 0;
    }

    .catalog-scrollbar-track {
        height: 3px;
        background: #2a2a2a;
        border-radius: 2px;
        position: relative;
        overflow: hidden;
    }

    .catalog-scrollbar-thumb {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: #a28d53;
        border-radius: 2px;
        transition: transform 0.08s linear;
        will-change: transform;
    }
}

@media (max-width: 480px) {
    .catalog-item {
        flex: 0 0 calc(65vw);
    }
}

/* ─── Reasons ───────────────────────────────────── */
.reasons {
    padding: 80px 0 100px;
}

.reasons-heading {
    font-size: 40px;
    line-height: 1.2;
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
}

.reasons-heading-accent {
    color: #a28d53;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 120px;
}

.reasons-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.reasons-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 50%;
    width: 1px;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #A28D53 47.12%, rgba(255,255,255,0) 100%);
}

.reasons-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    line-height: 0;
}

.reasons-icon svg {
    width: 100%;
    height: 100%;
}

.reasons-item-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1.4;
}

.reasons-item-desc {
    font-size: 14px;
    color: #8c8c8c;
    line-height: 1.6;
    margin-top: -8px;
}

/* ─── Reasons 768px ── */
@media (max-width: 768px) {
    .reasons {
        padding: 60px 0 80px;
    }

    .reasons-heading {
        font-size: 28px;
        margin-bottom: 40px;
    }

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

    .reasons-item {
        padding: 36px 0;
        gap: 16px;
    }

    .reasons-item:first-child {
        padding-top: 0;
    }

    .reasons-item:last-child {
        padding-bottom: 0;
    }

    .reasons-item:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #A28D53 47.12%, rgba(255,255,255,0) 100%);
    }
}

/* ─── FAQ ───────────────────────────────────────── */
.faq {
    padding: 100px 0;
    background-color: #141414;
    background-image: url('../images/mainpage/paper.png');
    background-image: image-set(
        url('../images/mainpage/paper.webp') type('image/webp'),
        url('../images/mainpage/paper.png')  type('image/png')
    );
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}


.faq-heading {
    font-size: 48px;
    line-height: 1.2;
    color: #ffffff;
    text-align: left;
    margin-bottom: 60px;
}

.faq-heading-accent {
    color: #a28d53;
}

.faq-item {
    border-top: 1px solid #1e1e1e;
}

.faq-item:last-child {
    border-bottom: 1px solid #1e1e1e;
}

.faq-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 28px 0;
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: none;
}

.faq-item-title {
    font-family: "Sofia Sans", sans-serif;
    font-size: 22px;
    line-height: 1.3;
    color: #646464;
    flex: 1;
    transition: color 0.35s ease;
}

.faq-item.is-active .faq-item-title {
    color: #a28d53;
}

.faq-item-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e2e2e;
    transform: rotate(180deg);
    transition: color 0.35s ease, transform 0.35s ease;
    will-change: transform;
}

.faq-item.is-active .faq-item-icon {
    color: #a28d53;
    transform: rotate(0deg);
}

.faq-item-icon svg path {
    transition: fill 0.35s ease;
}

/* Animated body — CSS grid trick */
.faq-item-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item.is-active .faq-item-body {
    grid-template-rows: 1fr;
}

.faq-item-content {
    min-height: 0;
    overflow: hidden;
    text-align: left;
}

.faq-item-text {
    font-size: 15px;
    line-height: 1.75;
    color: #afafaf;
    padding-bottom: 32px;
    padding-right: 70px;
}

/* ─── FAQ Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .faq {
        padding: 80px 0;
    }

    .faq-heading {
        font-size: 40px;
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }

    .faq-heading {
        font-size: 32px;
        margin-bottom: 36px;
    }

    .faq-item-header {
        padding: 22px 0;
        gap: 16px;
    }

    .faq-item-title {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .faq {
        padding: 40px 0;
    }

    .faq-heading {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .faq-item-header {
        padding: 18px 0;
    }

    .faq-item-title {
        font-size: 16px;
    }

    .faq-item-text {
        font-size: 14px;
        padding-bottom: 24px;
    }
}

/* ─── Contacts ─────────────────────────────────────── */
.contacts {
    padding: 100px 0;
    background-color: #111111;
}

.contacts-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contacts-heading {
    font-size: 52px;
    font-weight: 600;
    color: #a28d53;
    margin: 0 0 28px;
    line-height: 1.1;
}

.contacts-social {
    display: flex;
    gap: 20px;
    margin-top: 70px;
}

.contacts-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contacts-social-link img {
    flex-shrink: 0;
}

.contacts-social-link:hover {
    color: #a28d53;
}

.contacts-hours {
    font-size: 15px;
    color: #afafaf;
    margin: 0 0 16px;
    font-family: "Manrope", sans-serif;
}

.contacts-phone {
    display: block;
    font-size: 38px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.contacts-phone:hover {
    color: #a28d53;
}

.contacts-phone-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 22px;
    margin-top: 10px;
    letter-spacing: 0.01em;
}

.contacts-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contacts-city-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #afafaf;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.contacts-city-btn:hover {
    border-color: rgba(162, 141, 83, 0.5);
    color: #ffffff;
}

.contacts-city-btn--active {
    border-color: #a28d53;
    color: #a28d53;
    background-color: rgba(162, 141, 83, 0.08);
}

.contacts-map-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1040 / 700;
    background: #1a1a1a;
}

.contacts-map {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contacts-map--active {
    opacity: 1;
    pointer-events: auto;
}

.contacts-map picture {
    display: block;
    width: 100%;
    height: 100%;
}

.contacts-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Contacts Responsive ─────────────────────────── */
@media (max-width: 1024px) {
    .contacts {
        padding: 80px 0;
    }

    .contacts-heading {
        font-size: 42px;
    }

    .contacts-phone {
        font-size: 30px;
    }
}

@media (max-width: 900px) {
    .contacts-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contacts-heading {
        font-size: 36px;
        text-align: center;
        margin-bottom: 24px;
    }

    .contacts-info {
        align-items: center;
        text-align: center;
    }

    .contacts-heading {
        order: 1;
        text-align: center;
    }

    .contacts-social {
        order: 2;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .contacts-hours {
        order: 3;
        text-align: center;
    }

    .contacts-phone {
        order: 4;
        font-size: 34px;
    }

    .contacts-phone-note {
        order: 5;
        text-align: center;
    }

    .contacts-cities {
        order: 6;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .contacts {
        padding: 56px 0;
    }

    .contacts-heading {
        font-size: 30px;
    }

    .contacts-phone {
        font-size: 26px;
    }

    .contacts-city-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}
