:root {
    --rose: #c98fa0;
    --rose-deep: #b57d8f;
    --blush: #e8cdd2;
    --cream: #fbf3f0;
    --ink: #4a2f36;
    --sidebar-width: 38%;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

/* ---- fixed zooming photo (left half) ---- */
#woman {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center 35%;
    background-size: 170% auto;
    z-index: 1;
}

/* затемнення лівого краю фото — щоб біле меню читалось на світлих ділянках */
#woman::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(74,47,54,.5) 0%, rgba(74,47,54,.15) 40%, rgba(74,47,54,0) 65%);
    pointer-events: none;
}

/* ---- sidebar over the photo ---- */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 44px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    letter-spacing: 8px;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 10px rgba(74,47,54,0.5);
}

.nav { display: flex; flex-direction: column; gap: 22px; }

.nav-link {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(74,47,54,0.45);
    position: relative;
    padding-left: 0;
    transition: color .25s ease, padding-left .25s ease;
}

.nav-link:hover,
.nav-link.active { color: #fff; padding-left: 26px; }

.nav-link:hover::before,
.nav-link.active::before {
    content: "—";
    position: absolute;
    left: 0;
}

.reservation-box {
    border: 1px solid rgba(255,255,255,0.65);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 17px 18px;
    text-shadow: 0 1px 8px rgba(74,47,54,0.45);
    transition: background .25s ease;
}

.reservation-box:hover { background: rgba(255,255,255,0.18); }

/* ---- scrolling right column ---- */
.content {
    position: relative;
    z-index: 3;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.panel {
    min-height: calc(100vh - 14px);
    display: flex;
    align-items: center;
    padding: 90px 64px;
    margin-bottom: 14px; /* видимий проміжок між блоками */
}

.panel-inner { width: 100%; max-width: 560px; margin: 0 auto; }
.panel-inner--wide { max-width: 640px; }

.panel--rose  { background: var(--rose); color: var(--cream); }
.panel--blush { background: var(--blush); color: var(--ink); }

.eyebrow {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 28px;
}

.display-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 50px;
    line-height: 1.22;
    letter-spacing: .5px;
    color: var(--cream);
}

.display-title em { font-style: italic; }

.hero-photo {
    display: block;
    width: 100%;
    height: 64vh;
    object-fit: cover;
    margin-top: 48px;
}

.lead-text {
    font-size: 22px;
    line-height: 1.9;
    margin-bottom: 52px;
}

.lead-text strong { font-weight: 600; }

/* заголовки секцій — той самий стиль, що в меню зліва */
.section-title {
    font-family: 'Jost', sans-serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 44px;
    color: var(--ink);
}

.section-title em { font-style: normal; }
.section-title--light { color: var(--cream); }

/* ---- photo grids ---- */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.photo-grid img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.photo-grid--tall img { height: 430px; }

/* грід робіт: 3 колонки як на sprava */
.photo-grid--works { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid--works img { height: 230px; }
.works-more { margin-top: 14px; }
.works-more[hidden] { display: none; }

.btn-show-all {
    display: block;
    margin: 32px auto 0;
    padding: 15px 36px;
    background: transparent;
    border: 1px solid rgba(251,243,240,0.7);
    color: var(--cream);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease;
}

.btn-show-all:hover { background: rgba(251,243,240,0.15); }


/* ---- tabs ---- */
.tabs {
    display: flex;
    border: 1px solid rgba(74,47,54,0.3);
    margin-bottom: 40px;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    opacity: .5;
    transition: opacity .2s ease, background .2s ease;
}

.tab-btn + .tab-btn { border-left: 1px solid rgba(74,47,54,0.3); }

.tab-btn.active {
    opacity: 1;
    background: rgba(201,143,160,0.22);
    font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- services with hover preview ---- */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 32px;
    align-items: start;
}

.service-list { list-style: none; }

.service-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(74,47,54,0.18);
    font-size: 15px;
    cursor: default;
    transition: background .2s ease, padding-left .2s ease;
}

.service-list li:hover {
    background: rgba(201,143,160,0.16);
    padding-left: 12px;
}

.service-list li span {
    color: var(--rose-deep);
    white-space: nowrap;
    font-size: 13px;
    align-self: center;
}

.service-preview {
    position: sticky;
    top: 90px;
    overflow: hidden;
}

.service-preview img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: opacity .35s ease;
}

.service-preview img.is-fading { opacity: 0; }

.note { margin-top: 22px; font-size: 12px; opacity: .6; }
.note-inline { font-size: 13px; opacity: .65; font-style: italic; }

/* ---- course tab ---- */
.course-name {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 18px;
}

.course-desc { line-height: 1.75; margin-bottom: 26px; }

.course-facts { list-style: none; }

.course-facts li {
    display: flex;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(74,47,54,0.18);
    font-size: 15px;
}

.course-facts strong {
    flex: 0 0 130px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    align-self: center;
    opacity: .75;
}

/* ---- contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.contact-info p strong {
    display: inline-block;
    min-width: 110px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .75;
}

.contact-info a { color: var(--rose-deep); font-weight: 600; text-decoration: none; }

.map-card {
    display: block;
    border: 1px solid rgba(74,47,54,0.3);
    padding: 22px 24px;
    margin-bottom: 28px;
    text-decoration: none;
    color: var(--ink) !important;
    font-weight: 400 !important;
    transition: background .25s ease, border-color .25s ease;
}

.map-card:hover {
    background: rgba(201,143,160,0.16);
    border-color: var(--rose-deep);
}

.map-card-address {
    display: block;
    font-size: 16px;
    letter-spacing: 1.5px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.map-card-cta {
    display: block;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--rose-deep);
}

.btn-book {
    display: inline-block;
    margin-top: 14px;
    padding: 17px 30px;
    background: var(--rose);
    color: var(--cream) !important;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: background .25s ease;
}

.btn-book:hover { background: var(--rose-deep); }

/* ---- clock (стиль референсу: кремовий циферблат з рисками, тонкі стрілки, рамка) ---- */
.clock-widget { display: flex; justify-content: center; }

.clock-frame {
    border: 1px solid rgba(74,47,54,0.35);
    padding: 34px 44px 26px;
    text-align: center;
}

.clock {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--cream);
    position: relative;
}

.clock-ticks { position: absolute; inset: 0; }

.tick {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 1px;
    height: 8px;
    margin-left: -.5px;
    background: rgba(74,47,54,0.55);
    transform-origin: 50% 69px;
}

.tick.tick--major { width: 2px; height: 12px; margin-left: -1px; }

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    background: var(--ink);
}

.hand.hour   { width: 2px; height: 38px; margin-left: -1px; }
.hand.minute { width: 1.5px; height: 56px; margin-left: -.75px; }
.hand.second { width: 1px; height: 62px; margin-left: -.5px; background: var(--rose-deep); }

.clock-caption {
    margin-top: 22px;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: .65;
}

/* ---- footer ---- */
.footer {
    background: var(--rose);
    color: var(--cream);
    padding: 36px 64px;
}

.footer-inner {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-inner a { color: var(--cream); }
.since { opacity: .65; margin-left: auto; }
.copyright { opacity: .5; }

/* ---- mobile ---- */
@media (max-width: 900px) {
    #woman {
        position: relative;
        width: 100%;
        height: 55vh;
        background-size: cover !important;
        background-position: center 30%;
    }

    #woman::after { content: none; }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        background: var(--rose);
        padding: 26px 22px;
        gap: 22px;
    }

    .logo, .nav-link, .reservation-box { text-shadow: none; }

    .nav { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }

    .nav-link:hover, .nav-link.active { padding-left: 0; }
    .nav-link:hover::before, .nav-link.active::before { content: none; }
    .nav-link.active { text-decoration: underline; text-underline-offset: 6px; }

    .content { margin-left: 0; width: 100%; }

    .panel { min-height: auto; padding: 58px 24px; }

    .display-title { font-size: 40px; }
    .section-title { font-size: 34px; }

    .hero-photo { width: 100%; height: 280px; margin-top: 36px; }

    .photo-grid { grid-template-columns: 1fr; }
    .photo-grid img, .photo-grid--tall img { height: 300px; }

    .services-layout { grid-template-columns: 1fr; }
    .service-preview { position: static; order: -1; }
    .service-preview img { height: 220px; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer { padding: 28px 24px; }
    .since { margin-left: 0; }
}
