/* WITH_BROWS — палитра и ритм перенесены с Tilda-версии сайта. */

@font-face {
    font-family: "Manrope";
    src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    src: url("/fonts/manrope-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f9f9f7;
    --bg-alt: #efefef;
    --card: #ffffff;
    --ink: #000000;
    --ink-soft: #292929;
    --muted: #7a7a7a;
    --line: #d6d6d6;
    --accent: #829b89;
    --accent-dark: #6d8574;
    --accent-soft: #e5ece7;
    --danger: #b3261e;
    --radius: 14px;
    --dock-h: 76px;
    --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}

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

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-inline: 20px;
}

.muted {
    color: var(--muted);
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 14px/1.1 var(--font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-dark);
}

.btn--primary:disabled {
    background: var(--line);
    color: #fff;
    cursor: default;
    transform: none;
}

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

.btn--outline:hover {
    background: var(--ink);
    color: #fff;
}

.btn--icon img {
    width: 20px;
    height: 20px;
}

.btn--block {
    width: 100%;
}

.link-btn {
    background: none;
    border: 0;
    padding: 6px 0;
    font: 600 14px var(--font);
    color: var(--accent-dark);
    cursor: pointer;
}

/* ---------- Первый экран ---------- */

.hero {
    padding-block: 36px 40px;
    background: var(--bg);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    animation: fadein-right .8s ease both;
}

/* Нет логотипа — круг с инициалами в цвет акцента. */
.hero__avatar--initials {
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero__title {
    margin: 18px 0 6px;
    font-size: clamp(30px, 6vw, 46px);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero__subtitle {
    margin: 0 auto;
    max-width: 560px;
    color: var(--ink-soft);
}

.hero__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

@keyframes fadein-right {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Лента окошек ---------- */

.windows {
    width: 100%;
    max-width: 720px;
    margin-top: 32px;
    padding: 18px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    text-align: left;
}

.windows__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.windows__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.windows__chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.windows__empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font: 600 15px/1.2 var(--font);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.chip small {
    font-weight: 500;
    font-size: 12px;
    color: var(--muted);
}

.chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.chip--skeleton {
    border-color: transparent;
    background: linear-gradient(90deg, #f0f0ee 25%, #e6e6e3 50%, #f0f0ee 75%) 0 0 / 200% 100%;
    animation: shimmer 1.2s infinite linear;
    cursor: default;
}

.chip--skeleton:nth-child(n+4) {
    display: none;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* ---------- Услуги ---------- */

.services {
    padding-block: 75px 135px;
    background: var(--bg-alt);
}

.section-title {
    margin: 0;
    text-align: center;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-subtitle {
    margin: 8px 0 40px;
    text-align: center;
    color: var(--ink-soft);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}

.card__photo {
    aspect-ratio: 6 / 5;
    max-width: 100%;
    overflow: hidden;
    background: var(--line);
}

.card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 24px;
    text-align: center;
}

.card__title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.card__descr {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ink-soft);
}

.card__list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.35;
    color: var(--ink-soft);
}

.card__list li + li {
    margin-top: 4px;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    margin-top: auto;
    padding-top: 6px;
}

.card__duration {
    font-size: 14px;
    color: var(--muted);
}

.card__price {
    font-size: 20px;
    font-weight: 700;
}

.card__btn {
    margin-top: 16px;
    align-self: center;
    min-width: 200px;
}

/* ---------- Контакты ---------- */

.contacts {
    padding-block: 105px 60px;
    background: var(--bg);
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: center;
}

.contacts__text .section-title {
    text-align: left;
    margin-bottom: 18px;
}

.contacts__text p {
    margin: 0 0 8px;
}

.contacts__phone {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.contacts__social a {
    color: var(--accent-dark);
}

.contacts__map {
    height: 420px;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
}

.contacts__map {
    position: relative;
}

.contacts__map iframe,
.map-static,
.map-static img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-static img {
    object-fit: cover;
}

.map-actions {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.map-btn {
    min-height: 44px;
}

.map-btn.btn--outline {
    background: var(--bg);
}

.footer {
    padding-block: 24px;
    background: var(--bg-alt);
    font-size: 13px;
    color: var(--muted);
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

/* ---------- Закреплённая панель ---------- */

.dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(249, 249, 247, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform .25s ease;
}

.dock.is-hidden {
    transform: translateY(110%);
}

.dock__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.dock__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dock__label {
    font-size: 12px;
    color: var(--muted);
}

.dock__value {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dock__btn {
    flex-shrink: 0;
}

/* ---------- Шторка записи ---------- */

body.sheet-open {
    overflow: hidden;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    animation: fade .2s ease both;
}

.sheet__panel {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    max-height: 92dvh;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    animation: slide-up .28s cubic-bezier(.2, .8, .2, 1) both;
}

.sheet__grab {
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: var(--line);
}

.sheet__header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 10px;
    text-align: center;
}

.sheet__back, .sheet__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.sheet__back:hover, .sheet__close:hover {
    background: var(--bg-alt);
}

.sheet__back:disabled {
    visibility: hidden;
}

.sheet__step {
    font-size: 12px;
    color: var(--muted);
}

.sheet__title {
    margin: 0;
    font-size: 18px;
}

.sheet__summary {
    margin: 0 16px 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--accent-soft);
    font-size: 14px;
}

.sheet__body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.sheet__footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes slide-left {
    from { transform: translateX(100%); }
    to { transform: none; }
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hint, .empty {
    margin: 4px 0 12px;
    font-size: 14px;
    color: var(--muted);
}

/* Дни */
.days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}

.days::-webkit-scrollbar {
    display: none;
}

.day {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 58px;
    padding: 8px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    font: 500 12px/1.2 var(--font);
    color: var(--ink);
    cursor: pointer;
}

.day b {
    font-size: 19px;
    margin: 2px 0;
}

.day.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.day:disabled {
    background: transparent;
    color: #b9b9b9;
    border-style: dashed;
    cursor: default;
}

.month-label {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
}

/* Время */
.times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
}

.time {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    font: 600 16px var(--font);
    cursor: pointer;
}

.time.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Услуги в шторке */
.svc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svc {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden;
}

.svc.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.svc.is-disabled {
    opacity: .5;
}

.svc__main {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    gap: 10px;
    align-items: start;
    width: 100%;
    padding: 14px;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.svc__main:disabled {
    cursor: default;
}

.svc__check {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
}

.svc.is-selected .svc__check {
    background: var(--accent);
    border-color: var(--accent);
}

.svc__name {
    font-weight: 600;
    line-height: 1.3;
}

.svc__meta {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
}

.svc__price {
    font-weight: 700;
    white-space: nowrap;
}

.svc__more {
    margin: 0 14px 12px 50px;
    font-size: 13px;
    color: var(--ink-soft);
}

.svc__more summary {
    color: var(--accent-dark);
    font-weight: 600;
    cursor: pointer;
}

.svc__more ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.svc__more p {
    margin: 6px 0 0;
}

.svc__note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--danger);
}

/* Форма */
.field {
    display: block;
    margin-bottom: 14px;
}

.field span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.field em {
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
}

.field input, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    font: 16px var(--font);
    color: var(--ink);
}

.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field.is-invalid input {
    border-color: var(--danger);
}

.hp {
    position: absolute;
    left: -9999px;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--ink-soft);
}

.consent input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fbeaea;
    color: var(--danger);
    font-size: 14px;
}

/* Готово */
.step--done {
    padding: 12px 0 8px;
    text-align: center;
}

.done__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 32px;
}

.done__message {
    font-weight: 600;
    margin: 0 0 6px;
}

.done__summary {
    margin: 0 0 16px;
    color: var(--ink-soft);
}

.done__links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ---------- Адаптив ---------- */

@media (min-width: 900px) {
    body {
        padding-bottom: 0;
    }

    .dock {
        inset: auto 24px 24px auto;
        width: auto;
        padding: 10px 10px 10px 20px;
        border: 1px solid var(--line);
        border-radius: 999px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    }

    .dock__inner {
        gap: 18px;
    }

    .windows__chips {
        grid-template-columns: repeat(6, 1fr);
    }

    .chip--skeleton:nth-child(n+4) {
        display: flex;
    }

    .sheet__panel {
        inset: 0 0 0 auto;
        width: 460px;
        max-height: none;
        border-radius: 20px 0 0 20px;
        animation-name: slide-left;
    }

    .sheet__grab {
        display: none;
    }
}

@media (max-width: 899px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contacts__text, .contacts__text .section-title {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .wrap {
        padding-inline: 16px;
    }

    .hero {
        padding-block: 28px 28px;
    }

    .hero__links .btn {
        flex: 1 1 calc(50% - 10px);
        padding-inline: 12px;
    }

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

    .services {
        padding-block: 56px 72px;
    }

    .contacts {
        padding-block: 56px 40px;
    }

    .contacts__map {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
