/* ТОРТОТЭ — публичная витрина. Графит + крем + золото, ар-деко. */

:root {
    --ink: #1c1e20;
    --ink-2: #25282b;
    --ink-3: #30343a;
    --cream: #fcfbea;
    --cream-2: #f3f0dc;
    --gold: #b08d57;
    --gold-2: #c9a76d;
    --gold-dark: #8a6b3c;
    --on-dark: #ece8d6;
    --on-dark-muted: #a9a594;
    --on-light: #1c1e20;
    --on-light-muted: #5d5b52;
    --line-dark: rgba(236, 232, 214, 0.16);
    --line-light: rgba(28, 30, 32, 0.14);
    --display: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
    --font: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1180px;
    --radius: 2px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body.store-body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
    color: var(--on-light);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0; }

:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 3px;
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.8rem 1.6rem;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-3); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--line-light { background: transparent; color: var(--cream); border-color: var(--gold); }
.btn--line-light:hover { background: var(--gold); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 15px; }

/* —— Header —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-logo img {
    height: 50px;
    width: auto;
}
.site-nav {
    display: flex;
    gap: 1.9rem;
    margin-left: 1rem;
}
.site-nav a {
    color: var(--on-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--gold-2); }
.site-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.site-header__phone {
    color: var(--on-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.site-header__phone:hover { color: var(--gold-2); }

/* —— Flash —— */
.flash-wrap { max-width: 760px; margin: 1rem auto 0; padding: 0 1.25rem; }
.flash {
    padding: 0.9rem 1.1rem;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    color: var(--ink);
    font-size: 15px;
}
.flash--error { border-left-color: #b4523e; }

/* —— Ornaments —— */
.deco { color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1; overflow: visible; }
.deco use { stroke: currentColor; }
.deco--hero {
    position: absolute;
    width: clamp(380px, 44vw, 680px);
    left: 46%;
    bottom: 0;
    z-index: 2;
    height: auto;
    pointer-events: none;
}
.section > .deco--grid {
    display: block;
    position: relative;
    z-index: 0;
    width: min(1000px, 84%);
    max-width: none;
    margin: calc(-1 * min(70px, 5.5vw)) 0 calc(-1 * clamp(3.5rem, 7vw, 6rem) - 1px) max(9%, calc(50% - 500px));
    stroke-width: 1.2;
}
#assortment .segments { position: relative; z-index: 1; }
.deco--small { width: 46px; height: 46px; }

/* —— Hero —— */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: min(680px, calc(100vh - var(--header-h)));
    background: var(--cream);
}
.hero__text {
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(9rem, 14vw, 12rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
    margin-left: auto;
}
.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1.1rem;
}
.hero__title {
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-wrap: balance;
}
.hero__lead {
    margin-top: 1.25rem;
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    color: var(--on-light-muted);
    max-width: 34rem;
}
.hero__facts {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 15px;
    color: var(--on-light-muted);
}
.hero__facts strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__urgency {
    margin-top: 1.1rem;
    font-size: 14px;
    color: var(--gold-dark);
    font-weight: 500;
}
.hero__urgency::before { content: "● "; color: #b4523e; }
.hero__media { position: relative; overflow: hidden; background: #d9d6c8; }
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

/* —— Trust strip —— */
.trust { background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.trust__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 2.2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.trust__item { display: flex; flex-direction: column; gap: 0.25rem; color: var(--on-dark-muted); font-size: 14px; }
.trust__num { font-size: 2rem; font-weight: 300; color: var(--gold-2); letter-spacing: 0.02em; }

/* —— Sections —— */
.section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 1.5rem;
}
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--cream { background: var(--cream); color: var(--on-light); }
.section--tight { padding-top: clamp(2rem, 4vw, 3rem); }
.section--line.section--dark { border-top: 1px solid var(--line-dark); }
.section--line.section--cream { border-top: 1px solid var(--line-light); }
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.section-title--dark { color: var(--ink); }
.section-title--left { text-align: left; }
.section-sub {
    text-align: center;
    margin-top: -1.6rem;
    margin-bottom: 2.4rem;
    color: var(--on-light-muted);
}
.section--dark .section-sub { color: var(--on-dark-muted); }
.section-cta { text-align: center; margin-top: 2.5rem; }
.section-note {
    text-align: center;
    margin-top: 2.2rem;
    color: var(--on-dark-muted);
    font-size: 15px;
}

/* —— Segments (Ассортимент) —— */
.segments {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.segment {
    min-width: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--cream);
    color: var(--ink);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 1rem 1.4rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.segment:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.segment__icon { color: var(--gold); margin-top: 18%; }
.segment__icon .deco--small { width: 64px; height: 64px; }
.segment__name {
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    font-weight: 300;
    text-align: center;
    color: var(--on-light-muted);
    line-height: 1.25;
    text-transform: lowercase;
}
.segment:hover .segment__name { color: var(--ink); }

/* —— Cards (работы) —— */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.card {
    background: var(--cream);
    color: var(--ink);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.card__photo { aspect-ratio: 1 / 1; background: var(--cream-2) center / cover no-repeat; }
.card__body { padding: 0.9rem 1rem 1.1rem; text-align: center; }
.card__name { font-size: 1.05rem; font-weight: 400; }
.card__price { font-size: 14px; color: var(--on-light-muted); margin-top: 0.15rem; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--on-dark-muted); }

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}
.chip {
    padding: 0.45rem 1rem;
    border: 1px solid var(--line-dark);
    color: var(--on-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    border-radius: 999px;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 500; }
.page-head { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* —— Offer band —— */
.offer { background: var(--cream); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.offer__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(2.6rem, 5vw, 3.6rem) 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}
.offer__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}
.offer p { color: var(--on-light-muted); max-width: 36rem; }
.offer .btn { margin-top: 0.6rem; }

/* —— Steps —— */
.steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: none;
}
.steps li { border-top: 1px solid var(--gold); padding-top: 1.4rem; }
.steps__n { font-size: 2.4rem; font-weight: 300; color: var(--gold-dark); line-height: 1; }
.steps h3 { font-size: 1.25rem; margin: 0.8rem 0 0.5rem; font-weight: 500; }
.steps p { color: var(--on-light-muted); font-size: 16px; }

/* —— Quiz —— */
.section--quiz { background: var(--cream-2); }
.quiz-wrap { max-width: 820px; }
.quiz {
    background: var(--cream);
    border: 1px solid var(--line-light);
    padding: clamp(1.4rem, 4vw, 2.6rem);
    box-shadow: 0 20px 50px rgba(28, 30, 32, 0.08);
}
.quiz__pref { margin-bottom: 1rem; color: var(--on-light-muted); }
.quiz__progress { height: 3px; background: var(--line-light); margin-bottom: 0.7rem; }
.quiz__bar { display: block; height: 100%; width: 20%; background: var(--gold); transition: width 0.3s ease; }
.quiz__counter { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-light-muted); margin-bottom: 1.2rem; }
.quiz__step { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
.quiz__step legend {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 400;
    margin-bottom: 1.1rem;
    padding: 0;
}
.js .quiz__step { display: none; margin-bottom: 0; }
.js .quiz__step.is-active { display: block; animation: quizIn 0.3s ease; }
.js .quiz__counter { display: block; }
.quiz__counter { display: none; }
@keyframes quizIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choices--inline { grid-template-columns: repeat(4, auto); justify-content: start; margin-top: 0.5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-light);
    background: #fff;
    font-size: 16px;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.choice--sm span { min-height: 44px; padding: 0.5rem 0.9rem; font-size: 15px; }
.choice:hover span { border-color: var(--gold); }
.choice input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { display: block; margin-top: 1.1rem; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--on-light-muted); }
.field input,
.field textarea {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    font-family: var(--font);
    font-size: 17px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2); }
.quiz__hint { margin-top: 0.9rem; font-size: 15px; color: var(--on-light-muted); }
.quiz__hint.is-free { color: #3f6b46; }
.quiz__hint.is-few { color: var(--gold-dark); }
.quiz__hint.is-busy,
.quiz__hint.is-urgent { color: #b4523e; }
.quiz__summary {
    background: var(--cream-2);
    padding: 1rem 1.1rem;
    font-size: 15px;
    color: var(--on-light-muted);
    border-left: 3px solid var(--gold);
}
.quiz__summary strong { color: var(--ink); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.2rem; font-size: 14px; color: var(--on-light-muted); }
.consent input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--ink); flex: 0 0 auto; }
.quiz__nav { display: flex; gap: 0.8rem; justify-content: space-between; margin-top: 1.8rem; }
.quiz__nav [data-prev] { visibility: hidden; }
.quiz__nav [data-next] { display: none; }
.js .quiz__nav [data-next] { display: inline-flex; }
.js .quiz__nav [data-submit] { display: none; }
.js .quiz.is-last [data-next] { display: none; }
.js .quiz.is-last [data-submit] { display: inline-flex; }
.js .quiz.is-past-first [data-prev] { visibility: visible; }
.quiz__nav .btn { min-width: 150px; }
.quiz__error { margin-top: 1rem; color: #b4523e; font-size: 15px; }
.quiz-alt { text-align: center; margin-top: 1.4rem; color: var(--on-light-muted); font-size: 15px; }
.quiz-alt a { color: var(--ink); }

/* —— Fillings —— */
.fillings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.filling { border: 1px solid var(--line-dark); padding: 1.5rem; }
.filling h3 { font-size: 1.2rem; color: var(--gold-2); font-weight: 400; margin-bottom: 0.5rem; }
.filling p { color: var(--on-dark-muted); font-size: 15px; }

/* —— Why —— */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.why h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--gold); }
.why p { color: var(--on-light-muted); font-size: 15px; }

/* —— Reviews —— */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.review { margin: 0; background: #fff; border: 1px solid var(--line-light); padding: 1.6rem 1.7rem; }
.review blockquote { margin: 0; font-size: 16px; color: var(--ink); }
.review figcaption { margin-top: 0.9rem; font-size: 14px; color: var(--gold-dark); font-weight: 500; letter-spacing: 0.05em; }

/* —— Showcase —— */
.showcase { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.showcase p { color: var(--on-light-muted); max-width: 36rem; }
.showcase__hours { margin-top: 1rem; font-weight: 500; color: var(--ink) !important; }
.showcase__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.showcase__small { font-size: 14px; }

/* —— FAQ —— */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.2rem 2.5rem 1.2rem 0;
    font-size: 1.1rem;
    position: relative;
    color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-2);
    font-size: 1.6rem;
    font-weight: 300;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.3rem; color: var(--on-dark-muted); max-width: 46rem; }

/* —— Contacts —— */
.contacts { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contacts__map { background: var(--cream); padding: 6px; }
.contacts__map iframe { display: block; width: 100%; height: 380px; border: 0; }
.ymap { position: relative; width: 100%; height: 380px; background: #e9e6d6; }
.ymap [class*="ground-pane"] { filter: grayscale(0.9) sepia(0.12) brightness(1.03); }
.ymap__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.8rem; text-align: left; color: var(--on-light); font-size: 15px; padding: 1rem; }
.ymap.is-ready .ymap__fallback { display: none; }
.ymap__pin, .ymap-mark__pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); box-shadow: 0 4px 10px rgba(0,0,0,.25); flex: none; }
.ymap-mark { position: relative; display: flex; align-items: center; gap: 8px; transform: translate(-13px, -34px); white-space: nowrap; }
.ymap-mark__pin { position: relative; border: 2px solid #fff; }
.ymap-mark__pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #1c1d1f; }
.ymap-mark__label { background: #1c1d1f; color: #fbfae9; font: 400 13px/1 "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.ymap-card { font: 300 14px/1.5 "Jost", sans-serif; color: #1c1d1f; min-width: 220px; padding: 2px 4px; }
.ymap-card b { display: block; font-weight: 400; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.ymap-card__rating { color: #8a6b3c; margin-bottom: 6px; }
.ymap-card__links { display: flex; gap: 12px; margin-top: 8px; }
.ymap-card__links a { color: #8a6b3c; text-decoration: underline; }
.contacts__info .section-title { margin-bottom: 1.6rem; }
.contacts__row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
    color: var(--on-dark);
    font-size: 16px;
}
.contacts__row svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold-2); margin-top: 1px; }
.contacts__row a { text-decoration: none; }
.contacts__row a:hover { color: var(--gold-2); }
.contacts__info .messengers { margin: 1.4rem 0 1.6rem; }

/* —— Messengers —— */
.messengers { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.messenger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--gold);
    color: inherit;
    text-decoration: none;
    font-size: 15px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.messenger svg { width: 18px; height: 18px; fill: currentColor; }
.messenger:hover { background: var(--gold); color: var(--ink); }

/* —— Item —— */
.item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.item__photo { aspect-ratio: 4 / 5; background: var(--cream-2) center / cover no-repeat; }
.item__title { font-size: clamp(2rem, 4vw, 3rem); }
.item__summary { margin-top: 1rem; color: var(--on-light-muted); }
.item__price { margin-top: 1.2rem; font-size: 1.4rem; font-weight: 500; }
.item__facts { margin: 1.2rem 0 0; padding-left: 1.1rem; color: var(--on-light-muted); }

/* —— Thanks / legal —— */
.thanks { text-align: center; min-height: 50vh; }
.thanks > p { max-width: 36rem; color: var(--on-light-muted); margin-bottom: 1.2rem; }
.thanks__lead { font-size: 1.2rem; color: var(--ink) !important; }
.thanks .messengers { justify-content: center; color: var(--ink); }
.legal > * { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; font-weight: 500; }
.legal p { color: var(--on-light-muted); overflow-wrap: anywhere; }
.legal { overflow-wrap: anywhere; }
.legal__note { margin-top: 2rem; font-size: 14px; }

/* —— Footer —— */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); }
.site-footer__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
    font-size: 15px;
}
.site-footer__brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer__title { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .messenger { color: var(--on-dark); }
.site-footer__legal {
    overflow-wrap: anywhere;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1.2rem 1.5rem 1.6rem;
    border-top: 1px solid var(--line-dark);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 13px;
}

/* —— Mobile bar & cookie —— */
.mobile-bar { display: none; }
.cookie {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 60;
    max-width: 380px;
    background: var(--cream);
    color: var(--ink);
    padding: 1rem 1.1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}
.cookie[hidden] { display: none; }

/* —— Responsive —— */

/* —— Премиальная типографика: Jost ExtraLight/Light в тон логотипу —— */
body.store-body { font-weight: 300; letter-spacing: 0.01em; }
body.store-body strong, body.store-body b { font-weight: 500; }
.hero__title, .section-title, .offer__title, .item__title, .quiz__title,
.steps h3, .why h3, .filling h3, .card__name, .legal h2, .thanks__title,
.trust__num, .steps__n, .item__price, .contacts h2, h1, h2, h3 {
    font-family: var(--display);
}
.hero__title {
    font-weight: 200;
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
}
.hero__lead { font-weight: 300; }
body.store-body { font-variant-numeric: lining-nums; }
.hero__cta { align-items: center; gap: 1.6rem; margin-top: 2.2rem; }
.hero__cta .btn { padding-left: 1.6rem; padding-right: 1.6rem; letter-spacing: 0.14em; }
/* Текст держим выше орнамента: нижний отступ = высота «нижних» плиток орнамента */
.hero__text { justify-content: center; padding-bottom: calc(min(44vw, 680px) * 0.34 + 2.5rem); }
.hero__rating { margin-top: 1.4rem; font-size: 14px; letter-spacing: 0.04em; color: var(--on-light-muted); }
.hero__stars { color: var(--gold); letter-spacing: 0.15em; margin-right: 0.35rem; }
.link-arrow { font-size: 14px; letter-spacing: 0.06em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color .2s; }
.link-arrow:hover { color: var(--gold-dark); }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }
.cookie { left: auto; right: 1rem; max-width: 340px; font-size: 13px; padding: 0.85rem 1rem; }
.eyebrow { font-weight: 400; font-size: 12px; letter-spacing: 0.28em; }
.section-title {
    font-weight: 200;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    letter-spacing: 0.24em;
}
.trust__num { font-weight: 200; font-size: 2.6rem; line-height: 1.05; }
.steps__n { font-weight: 200; font-size: 2.8rem; }
.steps h3, .why h3 { font-weight: 400; font-size: 1.2rem; letter-spacing: 0.02em; }
.filling h3 { font-weight: 300; font-size: 1.3rem; }
.card__name { font-weight: 300; font-size: 1.15rem; }
.quiz__title { font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.item__title { font-weight: 200; }
.item__price { font-weight: 300; font-size: 1.6rem; }
.review blockquote, .review p { font-family: var(--display); font-weight: 300; font-size: 1.05rem; line-height: 1.6; }
.segment__name { font-weight: 200; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: 0.02em; }
.site-nav a { font-weight: 300; letter-spacing: 0.08em; }
.btn {
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.btn--sm { font-size: 12px; letter-spacing: 0.14em; }
.chip, .choice span { font-weight: 300; }
.field { font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; }
.site-footer__title { font-family: var(--font); font-weight: 400; letter-spacing: 0.26em; font-size: 12px; }
.quiz__step legend { font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

@media (max-width: 1100px) {
    .site-nav { gap: 1.2rem; margin-left: 0; }
    .site-header__phone { display: none; }
}
@media (max-width: 900px) {
    .site-nav { display: none; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero__media { order: -1; aspect-ratio: 4 / 3; }
    .hero__text { padding: 2rem 1.25rem 2.5rem; margin: 0; max-width: none; }
    .deco--hero { width: 66vw; min-width: 0; left: auto; right: 0; bottom: auto; top: calc(75vw - 44vw); }
    .trust__inner { grid-template-columns: repeat(2, 1fr); }
    .segments,
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
    .steps,
    .why { grid-template-columns: 1fr; gap: 1.4rem; }
    .fillings { grid-template-columns: repeat(2, 1fr); }
    .reviews,
    .showcase,
    .contacts,
    .item { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 760px) {
    body.store-body { font-size: 16px; padding-bottom: 64px; }
    .page-order,
    .page-thanks { padding-bottom: 0; }
    .site-header__inner { padding: 0 1rem; }
    .site-logo img { height: 34px; }
    .section { padding-left: 1rem; padding-right: 1rem; }
    .section-title { letter-spacing: 0.2em; }
    .choices,
    .choices--3 { grid-template-columns: 1fr; }
    .choices--inline { grid-template-columns: repeat(2, 1fr); }
    .fillings { grid-template-columns: 1fr; }
    .hero__cta .btn { width: 100%; }
    .hero__cta { gap: 1.1rem; justify-content: center; }
    .hero__text { padding-bottom: 2.5rem; }
    .quiz__nav .btn { min-width: 0; flex: 1; }
    .contacts__map iframe, .ymap { height: 300px; }
    .section > .deco--grid { width: 100%; margin-left: 0; margin-top: -6vw; }
    .segment__name { padding: 0 0.5rem; overflow-wrap: anywhere; }
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: grid;
        grid-template-columns: 1fr 1fr 1.3fr;
        background: var(--ink);
        border-top: 1px solid var(--line-dark);
    }
    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        color: var(--on-dark);
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        border-right: 1px solid var(--line-dark);
    }
    .mobile-bar .mobile-bar__main { background: var(--gold); color: var(--ink); border-right: 0; }
    .cookie { left: 0.75rem; right: 0.75rem; bottom: 72px; max-width: none; }
    .site-header .btn--sm { display: none; }
    .site-logo img { height: 40px; }
    .mobile-bar a { font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
}
@media (max-width: 380px) {
    .segments,
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .segment__name { font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* —— v11: фото в ассортименте, галерея работ, лайтбокс —— */
.section-kicker {
    text-align: center;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin: 0 0 0.9rem;
}
.btn--line-dark { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn--line-dark:hover { background: var(--gold); color: var(--ink); }

.segment {
    aspect-ratio: 3 / 4;
    padding: 0;
    justify-content: flex-end;
    overflow: hidden;
    background: #2a2b2e;
    color: var(--cream);
}
.segment__photo { position: absolute; inset: 0; }
.segment__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.segment::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28, 29, 31, 0.88) 0%, rgba(28, 29, 31, 0.35) 32%, rgba(28, 29, 31, 0) 55%);
    pointer-events: none;
}
.segment::before {
    content: "";
    position: absolute; inset: 10px;
    border: 1px solid rgba(176, 141, 87, 0);
    z-index: 2;
    transition: border-color 0.3s ease;
    pointer-events: none;
}
.segment:hover::before { border-color: rgba(176, 141, 87, 0.85); }
.segment:hover .segment__photo img { transform: scale(1.04); }
.segment:hover { box-shadow: none; }
.segment__name,
.segment:hover .segment__name {
    position: relative;
    z-index: 1;
    color: var(--cream);
    text-transform: none;
    padding: 0 1rem 1.3rem;
    width: 100%;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.6rem;
}
.work { margin: 0; min-width: 0; }
.work--more { display: none; }
.works__grid.is-open .work--more { display: block; }
.work__open {
    display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    background: #ece9d6; aspect-ratio: 3 / 4; overflow: hidden; position: relative;
}
.work__open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.work__open::after {
    content: ""; position: absolute; inset: 10px;
    border: 1px solid rgba(176, 141, 87, 0); transition: border-color 0.3s ease;
}
.work__open:hover img { transform: scale(1.03); }
.work__open:hover::after { border-color: rgba(251, 250, 233, 0.9); }
.work__open:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.work__cap {
    margin-top: 0.75rem;
    font-size: 14px;
    font-weight: 300;
    color: var(--on-light-muted);
    line-height: 1.35;
}
.works__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.lightbox {
    border: 0; padding: 0; margin: 0;
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    background: rgba(20, 21, 23, 0.96);
    color: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 21, 23, 0.96); }
.lightbox__fig { margin: 0; text-align: center; }
.lightbox__fig img { max-height: 82vh; max-width: 88vw; width: auto; height: auto; display: block; margin: 0 auto; }
.lightbox__fig figcaption { margin-top: 0.9rem; font-weight: 300; letter-spacing: 0.04em; color: var(--on-dark-muted); }
.lightbox__close, .lightbox__nav {
    position: absolute; background: none; border: 0; color: var(--cream);
    font-family: var(--display); font-weight: 200; cursor: pointer; line-height: 1;
}
.lightbox__close { top: 1rem; right: 1.4rem; font-size: 2.6rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 1rem; }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--gold); }
.lightbox__cta { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); }

@media (max-width: 900px) {
    .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
}
@media (max-width: 700px) {
    .segment__name, .segment:hover .segment__name { padding: 0 0.7rem 0.9rem; }
    .work__cap { font-size: 13px; margin-top: 0.5rem; }
    .lightbox__fig img { max-height: 72vh; max-width: 94vw; }
    .lightbox__nav { top: auto; bottom: 4.6rem; transform: none; font-size: 2.6rem; }
    .lightbox__cta { white-space: nowrap; }
}
.section--dark .steps p, .section--dark .why p { color: var(--on-dark-muted); }
.section--dark .steps__n { color: var(--gold); }
.section--cream .section-kicker { color: var(--gold-dark); }
.segment__name { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
@media (max-width: 700px) {
    .segment::after { background: linear-gradient(to top, rgba(28, 29, 31, 0.92) 0%, rgba(28, 29, 31, 0.55) 30%, rgba(28, 29, 31, 0) 58%); }
    .segment__name, .segment:hover .segment__name { font-size: 0.98rem; }
}
/* Логотип: надпись ТОРТОТЭ на одной средней линии с пунктами меню (подпись «десерты» уходит ниже) */
.site-logo { display: flex; align-items: center; }
.site-logo img { transform: none; }
/* Шапка: логотип строго по центру, меню слева, телефон и кнопка справа */
.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1.5rem;
}
.site-nav { order: 1; justify-self: start; margin-left: 0; }
.site-logo { order: 2; justify-self: center; grid-column: 2; }
.site-header__actions { order: 3; justify-self: end; grid-column: 3; margin-left: 0; }
@media (max-width: 1100px) { .site-nav { gap: 1.1rem; } }
/* Ассортимент поднят на ~10 мм (38px) */
#assortment { padding-top: max(1.75rem, calc(clamp(3.5rem, 7vw, 6rem) - 38px)); }
/* Портфолио поднято на ~10 мм (38px) */
#works { padding-top: max(1.75rem, calc(clamp(3.5rem, 7vw, 6rem) - 38px)); }
/* Телефон в шапке — тем же шрифтом, что цифры в полосе доверия (4,9 / 100%) */
.site-header__phone {
    font-family: var(--display);
    font-weight: 200;
    font-size: 21px;
    letter-spacing: 0.04em;
    color: var(--gold-2);
}
.site-header__phone:hover { color: var(--cream); }
/* Шапка: единый стиль — заглавные с разрядкой, как логотип и кнопки */
.site-nav a {
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.site-header__phone {
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.05em;
}
@media (max-width: 1100px) { .site-nav a { letter-spacing: 0.12em; font-size: 12px; } }
.site-nav { gap: 1.5rem; }
.site-nav a { letter-spacing: 0.16em; }
@media (max-width: 1100px) { .site-nav { gap: 1rem; } .site-nav a { letter-spacing: 0.1em; } }
/* Заголовок первого экрана: две строки — «что» и «где» */
.hero__title {
    font-size: clamp(1.75rem, 2.75vw, 2.55rem);
    line-height: 1.2;
    text-wrap: initial;
}
.hero__line { display: block; }
@media (min-width: 901px) { .hero__line { white-space: nowrap; } }
/* Витрина: заголовок в одну строку по центру, как у остальных разделов */
#showcase .section-title { white-space: nowrap; }
.showcase--center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; max-width: 40rem; }
.showcase--center p { margin-left: auto; margin-right: auto; }
.showcase--center .showcase__cta { align-items: center; margin-top: 1.8rem; }
@media (max-width: 700px) { #showcase .section-title { white-space: normal; } }
.showcase--center .showcase__hours { font-weight: 400; letter-spacing: 0.02em; line-height: 1.6; }
/* Контакты: маршрут — ссылкой под адресом вместо третьей кнопки */
.link-arrow--light { color: var(--cream); display: inline-block; margin-top: 0.45rem; }
.link-arrow--light:hover { color: var(--gold-2); }
.contacts__row > span { display: block; }
/* Подвал без повторов: телефон, мессенджеры текстом, адрес */
.site-footer__phone { font-family: var(--display); font-weight: 300; font-size: 18px; letter-spacing: 0.05em; color: var(--gold-2); }
.site-footer__phone:hover { color: var(--cream) !important; }

/* v22 footer: only centered brand */
.site-footer__inner { display: flex !important; justify-content: center; text-align: center; grid-template-columns: none !important; }
.site-footer__brand { display: flex; flex-direction: column; align-items: center; max-width: 42rem; margin: 0 auto; }
.site-footer__brand img { margin: 0 auto 1rem; }
.site-footer__brand p { margin: 0; text-align: center; }
.site-footer__legal { justify-content: center !important; text-align: center; gap: .4rem 1.5rem; flex-wrap: wrap; }

/* v22 map marker: premium */
.ymap-mark { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 0; white-space: nowrap; transform: translate(-50%, calc(-100% + 5px)); cursor: pointer; }
.ymap-mark__card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 11px 20px 9px; background: #1c1d1f; box-shadow: 0 10px 24px rgba(28,29,31,.28); transition: transform .3s ease; }
.ymap-mark__card::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(176,141,87,.7); pointer-events: none; }
.ymap-mark__name { font: 300 15px/1 "Jost", sans-serif; letter-spacing: .32em; margin-right: -.32em; color: #fbfae9; text-transform: uppercase; }
.ymap-mark__sub { margin-top: 6px; font: 400 8px/1 "Jost", sans-serif; letter-spacing: .6em; margin-right: -.6em; color: #b08d57; text-transform: lowercase; }
.ymap-mark__stem { width: 1px; height: 22px; background: linear-gradient(#b08d57, rgba(176,141,87,.5)); }
.ymap-mark__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #b08d57; box-shadow: 0 0 0 3px rgba(251,250,233,.9), 0 2px 6px rgba(0,0,0,.3); }
.ymap-mark__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(176,141,87,.6); animation: ymapPulse 2.8s ease-out infinite; }
@keyframes ymapPulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.ymap-mark:hover .ymap-mark__card { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .ymap-mark__dot::after { animation: none; opacity: 0; } }

/* v23 contacts: map height = text block height (desktop) */
@media (min-width: 901px) {
    .contacts { align-items: stretch; }
    .contacts__map { align-self: stretch; }
    .contacts__map { display: flex; }
    .contacts__map .ymap { height: auto; min-height: 280px; flex: 1; }
    .contacts__info { align-self: start; }
    .contacts__info .messengers { margin-bottom: 0; }
}
.contacts__routes { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }

/* v24 narrow phones (320px): long buttons may wrap */
@media (max-width: 360px) {
    .section-cta .btn { white-space: normal; max-width: 100%; padding-left: 1rem; padding-right: 1rem; text-align: center; }
    .hero__text, .hero__media { min-width: 0; max-width: 100%; }
}

/* v25 footer: short gold divider instead of full-width line */
.site-footer__inner { padding-bottom: 1.6rem !important; }
.site-footer__legal { position: relative; border-top: 0 !important; padding-top: 1.6rem !important; }
.site-footer__legal::before { content: ""; position: absolute; top: 0; left: 50%; width: 72px; height: 1px; margin-left: -36px; background: var(--gold); opacity: .8; }

/* v26 footer: one row — legal | logo | about */
.site-footer--row .site-footer__row { max-width: var(--wrap); margin: 0 auto; padding: 1.8rem 1.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; font-size: 13px; line-height: 1.6; }
.site-footer--row .site-footer__legal { all: unset; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left; font-size: 13px; }
.site-footer--row .site-footer__legal::before { content: none; }
.site-footer--row .site-footer__logo { display: block; line-height: 0; }
.site-footer--row .site-footer__logo img { height: 48px; width: auto; margin: 0; }
.site-footer--row .site-footer__about { margin: 0; text-align: right; font-size: 13px; color: var(--on-dark-muted); }
@media (max-width: 900px) {
    .site-footer--row .site-footer__row { grid-template-columns: 1fr; gap: 1rem; padding: 1.6rem 1.25rem; text-align: center; }
    .site-footer--row .site-footer__logo { order: -1; justify-self: center; }
    .site-footer--row .site-footer__about { text-align: center; }
    .site-footer--row .site-footer__legal { align-items: center; text-align: center; order: 2; }
}

/* v27 map: route button */
.contacts__map { position: relative; }
.map-route { position: absolute; top: 18px; right: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 15px; background: #1c1d1f; color: #fbfae9; font: 400 12.5px/1 "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 10px 24px rgba(28,29,31,.28); transition: background .25s, color .25s, transform .25s; }
.map-route::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(176,141,87,.7); pointer-events: none; transition: border-color .25s; }
.map-route svg { width: 16px; height: 16px; color: #b08d57; flex: none; transition: color .25s; }
.map-route:hover { background: #b08d57; color: #1c1d1f; transform: translateY(-1px); }
.map-route:hover svg { color: #1c1d1f; }
.map-route:hover::before { border-color: rgba(28,29,31,.45); }
@media (max-width: 760px) {
    .map-route { top: 12px; right: 12px; left: 12px; justify-content: center; font-size: 11.5px; letter-spacing: .12em; padding: 12px 14px; }
}
@media (max-width: 360px) { .map-route { font-size: 10.5px; letter-spacing: .07em; gap: 8px; padding: 12px 10px; } .map-route svg { width: 14px; height: 14px; } }
