/* ============================================================
   Ольга Лазарева — персональный стилист · v2
   Editorial minimal: warm off-white, near-black ink,
   Cormorant Garamond display + Inter body.
   ============================================================ */

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

:root {
    --bg: #f7f5f1;
    --bg-deep: #efece6;
    --ink: #1c1a17;
    --muted: #6f6a61;
    --line: #ddd8cf;
    --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1160px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* ---------- Bracket label, e.g. [обо мне] ---------- */
.label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.label::before { content: "[ "; }
.label::after  { content: " ]"; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(247, 245, 241, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
}

.brand {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.5vw, 1.9rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link.active {
    border-bottom: 1px solid var(--ink);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 1px;
    width: 22px;
    margin: 0 auto;
    background-color: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
    .hamburger { display: flex; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background-color: var(--bg);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-nav.open { max-height: 30rem; }

    .site-nav .nav-link {
        width: 100%;
        padding: 0.9rem var(--pad);
        border-bottom: none;
        font-size: 1rem;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 1rem 2.5rem;
    border: 1px solid var(--ink);
    background-color: var(--ink);
    color: var(--bg);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--ink);
}

.btn-ghost {
    background-color: transparent;
    color: var(--ink);
}

.btn-ghost:hover {
    background-color: var(--ink);
    color: var(--bg);
}

/* ---------- Hero (home, split with photo) ---------- */
.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    min-height: calc(100vh - 4.25rem);
}

.hero-content {
    align-self: center;
    padding-top: clamp(3rem, 8vh, 5rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
    padding-right: clamp(2rem, 5vw, 5rem);
    padding-left: max(var(--pad), calc((100vw - var(--max-width)) / 2 + var(--pad)));
}

.hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    line-height: 1.08;
    max-width: 14ch;
    margin-bottom: 1.75rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
}

.hero-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.4;
    max-width: 24em;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 0.97rem;
    color: var(--muted);
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-location {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-left: 1px solid var(--ink);
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-location p {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-location-mode {
    flex-shrink: 0;
    min-width: 4.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-tagline {
    margin-top: clamp(2.5rem, 7vh, 4.5rem);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    max-width: 20rem;
    line-height: 2;
}

.hero-media {
    position: relative;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

.hero-words {
    position: absolute;
    top: clamp(2rem, 6vh, 4rem);
    right: clamp(1.25rem, 3vw, 2.75rem);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 2.1;
    color: var(--ink);
    border-left: 1px solid var(--ink);
    padding-left: 1.1rem;
}

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-content {
        padding: clamp(3rem, 8vh, 4.5rem) var(--pad) 3rem;
    }

    .hero-tagline { margin-top: 2.5rem; }

    .hero-media {
        display: none;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(4rem, 9vh, 7rem) 0;
    border-top: 1px solid var(--line);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
    max-width: 24ch;
}

/* ---------- About ---------- */
.about-text p {
    margin-bottom: 1.25rem;
    max-width: 38rem;
}

.about-text ul.about-list {
    list-style: none;
    max-width: 38rem;
    margin-bottom: 1.25rem;
}

.about-text ul.about-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.6rem;
}

.about-text ul.about-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--muted);
}

.about-text p.about-accent {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.35;
    font-style: italic;
    margin: 2rem 0 0;
}

/* ---------- About: credential row ---------- */
.about-credential {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) 2fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    margin-top: clamp(2.5rem, 6vh, 4rem);
    padding-top: clamp(2rem, 5vh, 3rem);
    border-top: 1px solid var(--line);
}

.edu-list {
    list-style: none;
    max-width: 34rem;
}

.edu-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.4rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.edu-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--muted);
}

@media (max-width: 820px) {
    .about-credential { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ---------- Services index (home) ---------- */
.service-row {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding: clamp(1.75rem, 4vh, 2.5rem) 0;
    transition: opacity 0.2s ease;
}

.service-row:first-of-type { border-top: 1px solid var(--line); }

.service-row-inner {
    display: grid;
    grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 5fr) auto;
    align-items: baseline;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.service-num {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.service-name {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.service-row:hover .service-name { color: var(--muted); }

.service-brief {
    font-size: 0.95rem;
    color: var(--muted);
}

.service-arrow {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.service-row:hover .service-arrow {
    transform: translateX(6px);
    color: var(--ink);
}

@media (max-width: 820px) {
    .service-row-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "num arrow"
            "name arrow"
            "brief brief";
        row-gap: 0.4rem;
    }
    .service-num   { grid-area: num; }
    .service-name  { grid-area: name; }
    .service-brief { grid-area: brief; }
    .service-arrow { grid-area: arrow; align-self: center; }
}

.services-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 40rem;
}

.services-cta {
    margin-top: 2rem;
}

/* ---------- CTA band ---------- */
.cta-band {
    background-color: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding: clamp(4rem, 9vh, 6.5rem) 0;
    text-align: center;
}

.cta-band h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 1.25rem;
}

.cta-band p {
    max-width: 36rem;
    margin: 0 auto 2rem;
    color: var(--muted);
}

/* ---------- Works ---------- */
.gallery-grid {
    display: grid;
    max-width: 56rem;
}

.gallery-item {
    position: relative;
    display: block;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.02); }

.gallery-item-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1.1rem;
    background: linear-gradient(transparent, rgba(20, 18, 15, 0.65));
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-align: left;
}

.gallery-caption {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.gallery-caption[hidden] { display: none; }

.gallery-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery-nav-arrow {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    background: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gallery-nav-arrow:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.gallery-nav-counter {
    margin-left: auto;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(20, 18, 15, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 7rem;
}

.lightbox[hidden] { display: none; }

.lightbox-stage {
    max-width: 90vw;
    max-height: calc(100vh - 8.5rem);
    overflow: hidden;
}

.lightbox-image {
    max-width: 90vw;
    max-height: calc(100vh - 8.5rem);
    object-fit: contain;
    cursor: zoom-in;
}

.lightbox.zoomed { padding: 0; }

.lightbox.zoomed .lightbox-stage {
    overflow: auto;
    max-width: 100vw;
    max-height: 100vh;
}

.lightbox.zoomed .lightbox-image {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    z-index: 210;
    transition: color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover { color: #fff; }

.lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.4rem;
    line-height: 1;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 1rem;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-caption {
    position: absolute;
    bottom: 2.8rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(90vw, 42rem);
    padding: 0 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    z-index: 210;
}

.lightbox-caption[hidden] { display: none; }

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ---------- Reviews ---------- */
.reviews-track {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    transition: height 0.35s ease;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 min(100%, 32rem);
    scroll-snap-align: start;
    background-color: var(--bg-deep);
    padding: 2rem;
}

.reviews-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.review-card::before {
    content: "“";
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 0.5;
    margin-bottom: 1rem;
    color: var(--muted);
}

.review-text {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

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

.review-more {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.review-more:hover { color: var(--muted); }

.review-author {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}



/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding: clamp(4rem, 9vh, 6.5rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.page-hero .label { margin-bottom: 2rem; }

.page-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.1;
    max-width: 20ch;
    margin-bottom: 1.5rem;
}

.page-lead {
    max-width: 36rem;
    color: var(--muted);
}

.back-link {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 2.5rem;
    transition: color 0.2s ease;
}

.back-link:hover { color: var(--ink); }

/* ---------- Service page: fit list ---------- */
.fit-list {
    list-style: none;
    max-width: 56rem;
}

.fit-list li {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    border-bottom: 1px solid var(--line);
}

.fit-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--muted);
}

/* ---------- Service page: format cards ---------- */
.formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 2rem;
    align-items: start;
}

.format-card {
    background-color: var(--bg-deep);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.format-name {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.format-price {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.format-price small {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
}

.format-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.format-steps-title {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.format-steps {
    list-style: none;
    counter-reset: step;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.format-steps li {
    counter-increment: step;
    position: relative;
    padding: 0.5rem 0 0.5rem 2.2rem;
    font-size: 0.93rem;
}

.format-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.62rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.format-steps li strong { font-weight: 600; }

.format-card .btn { align-self: flex-start; }

/* ---------- Service page: Q&A ---------- */
.qa-list {
    max-width: 56rem;
}

.qa-list details {
    border-bottom: 1px solid var(--line);
}

.qa-list details:first-child { border-top: 1px solid var(--line); }

.qa-list summary {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1.25rem 2.5rem 1.25rem 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.qa-list summary::-webkit-details-marker { display: none; }

.qa-list summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--muted);
    transition: transform 0.25s ease;
}

.qa-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.qa-list details p {
    padding: 0 0 1.5rem;
    color: var(--muted);
    max-width: 40rem;
}

/* ---------- Contacts page ---------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin-top: clamp(2rem, 5vh, 3.5rem);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: var(--bg-deep);
    padding: 2.25rem 2rem;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.contact-card:hover { background-color: #e8e4dc; }

.contact-icon {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 1.5;
}

.contact-card-name {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-card-handle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact-note {
    margin-top: clamp(2.5rem, 6vh, 4rem);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    max-width: 36rem;
    font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--ink); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    background-color: var(--bg);
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
