/* ==========================================================
   Salon — основные стили (мобильно-ориентированные)
   ========================================================== */

:root {
    /* Баклажановая тема — значения по умолчанию (также служат запасными для всех тем) */
    --color-primary: #c1432e;
    --color-primary-dark: #9c3322;
    --color-accent: #b08c4f;
    --color-bg: #f7eee3;
    --color-bg-alt: #efd9ce;
    --color-text: #241a1c;
    --color-text-light: #7d6a63;
    --color-surface: #fffbf7;
    --color-border: #e3d2c2;
    --color-header-bg: #2a1620;
    --color-header-text: #f7eee3;
    --shadow: 0 10px 30px rgba(42, 22, 32, 0.12);

    /* Глобальные токены — общие для всех тем */
    --color-on-primary: #fffbf7;
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
    --radius: 16px;
    --header-height: 76px;
}

[data-theme="light"] {
    --color-primary: #c1432e;
    --color-primary-dark: #9c3322;
    --color-accent: #b08c4f;
    --color-bg: #faf7f4;
    --color-bg-alt: #f1ebe4;
    --color-text: #2a2220;
    --color-text-light: #8a7d75;
    --color-surface: #ffffff;
    --color-border: #e8ddd2;
    --color-header-bg: #ffffff;
    --color-header-text: #2a2220;
    --shadow: 0 10px 30px rgba(40, 30, 20, 0.10);
}

[data-theme="dark"] {
    --color-primary: #e0593f;
    --color-primary-dark: #c1432e;
    --color-accent: #c9a463;
    --color-bg: #15131a;
    --color-bg-alt: #1f1c24;
    --color-text: #efeae6;
    --color-text-light: #a39da5;
    --color-surface: #221f28;
    --color-border: #34303b;
    --color-header-bg: #0e0d11;
    --color-header-text: #efeae6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="pink"] {
    --color-primary: #e0457e;
    --color-primary-dark: #b8285f;
    --color-accent: #d4a24c;
    --color-bg: #fdf2f6;
    --color-bg-alt: #fbe1ea;
    --color-text: #3a1f2c;
    --color-text-light: #93707f;
    --color-surface: #ffffff;
    --color-border: #f3c9d9;
    --color-header-bg: #3a1f2c;
    --color-header-text: #fdf2f6;
    --shadow: 0 10px 30px rgba(224, 69, 126, 0.18);
}

[data-theme="emerald"] {
    --color-primary: #1f6f54;
    --color-primary-dark: #154f3c;
    --color-accent: #c9a227;
    --color-bg: #f4f1e8;
    --color-bg-alt: #e8e1cd;
    --color-text: #1a2b22;
    --color-text-light: #5c6b60;
    --color-surface: #ffffff;
    --color-border: #ded6bf;
    --color-header-bg: #10261f;
    --color-header-text: #f4f1e8;
    --shadow: 0 10px 30px rgba(16, 38, 31, 0.15);
}

[data-theme="ocean"] {
    --color-primary: #1d7a8c;
    --color-primary-dark: #155a68;
    --color-accent: #e8794a;
    --color-bg: #eef6f7;
    --color-bg-alt: #dcebee;
    --color-text: #16282d;
    --color-text-light: #5d7a80;
    --color-surface: #ffffff;
    --color-border: #cfe3e6;
    --color-header-bg: #0d2b36;
    --color-header-text: #eef6f7;
    --shadow: 0 10px 30px rgba(13, 43, 54, 0.15);
}

[data-theme="terracotta"] {
    --color-primary: #c1622d;
    --color-primary-dark: #9c4d22;
    --color-accent: #7a8450;
    --color-bg: #f6ede0;
    --color-bg-alt: #efd9bf;
    --color-text: #2b1d14;
    --color-text-light: #8a6f57;
    --color-surface: #fffaf3;
    --color-border: #e3cba8;
    --color-header-bg: #2b1d14;
    --color-header-text: #f6ede0;
    --shadow: 0 10px 30px rgba(43, 29, 20, 0.18);
}

[data-theme="lavender"] {
    --color-primary: #6f4fa0;
    --color-primary-dark: #523a78;
    --color-accent: #c9909c;
    --color-bg: #f5f1fa;
    --color-bg-alt: #e8def2;
    --color-text: #241537;
    --color-text-light: #7d6f95;
    --color-surface: #ffffff;
    --color-border: #dccdec;
    --color-header-bg: #241537;
    --color-header-text: #f5f1fa;
    --shadow: 0 10px 30px rgba(36, 21, 55, 0.15);
}

[data-theme="mono"] {
    --color-primary: #e94f37;
    --color-primary-dark: #c23a25;
    --color-accent: #2b2b2b;
    --color-bg: #f5f5f4;
    --color-bg-alt: #e8e7e4;
    --color-text: #1f1f1d;
    --color-text-light: #76746e;
    --color-surface: #ffffff;
    --color-border: #dcdad5;
    --color-header-bg: #1a1a1a;
    --color-header-text: #f5f5f4;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.25;
    margin: 0 0 16px;
    font-weight: 600;
}

p {
    margin: 0 0 16px;
}

button {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 56px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section-title {
    font-size: 30px;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-appearance: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--color-primary-dark);
    box-shadow: 0 8px 20px rgba(193, 67, 46, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-header-bg);
    border-bottom: 1px solid rgba(176, 140, 79, 0.25);
    padding-top: env(safe-area-inset-top);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-accent);
    flex-shrink: 0;
}

.logo i {
    font-size: 22px;
    color: var(--color-primary);
}

.site-logo-img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.main-nav a {
    font-weight: 500;
    color: var(--color-header-text);
    opacity: 0.82;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a.is-active {
    opacity: 1;
    color: var(--color-accent);
}

.main-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--color-primary);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-link {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-header-text);
    white-space: nowrap;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--color-header-text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    padding: 64px 0 56px;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

.hero__text {
    text-align: center;
}

.hero__eyebrow {
    display: inline-block;
    color: var(--color-primary-dark);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.hero__title {
    font-size: 34px;
    margin-bottom: 16px;
}

.hero__subtitle {
    color: var(--color-text-light);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 28px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hero__text, .hero__image {
    animation: heroFadeUp 0.7s ease both;
}

.hero__image {
    border-radius: 50% 50% 0 0 / 20% 20% 0 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation-delay: 0.15s;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* ---------- Swatch rail (signature element) ---------- */
.swatch-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.swatch-rail::-webkit-scrollbar {
    display: none;
}

.swatch-rail__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.swatch-rail__item:hover, a.swatch-rail__item:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--swatch-color, var(--color-primary));
}

.swatch-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--swatch-color, var(--color-primary));
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55) inset;
}

/* ---------- Cards / Services ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(46, 30, 30, 0.14);
}

.card__img {
    height: 200px;
    overflow: hidden;
}

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

.card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card__category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.card__title {
    font-size: 19px;
    margin: 0;
}

.card__desc {
    color: var(--color-text-light);
    font-size: 14px;
    flex: 1;
}

.card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.card__price {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-primary-dark);
}

.card__duration {
    font-family: var(--font-mono);
    color: var(--color-text-light);
    font-size: 12px;
}

/* ---------- Services listing page ---------- */
.services-category {
    margin-bottom: 48px;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.services-category h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

/* ---------- About page ---------- */
.about-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.about-hero__img {
    border-radius: 50% 50% 0 0 / 18% 18% 0 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-hero__img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.about-fact {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.about-fact strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--color-primary-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-grid img {
    border-radius: 12px;
    height: 160px;
    object-fit: cover;
    width: 100%;
}

/* ---------- About: tabs ---------- */
.about-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.about-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-text-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Та же логика "точки", что в .swatch-dot на услугах — общий язык акцентов */
.about-tabs__btn::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--color-border);
    transition: background-color 0.2s ease;
}

.about-tabs__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.about-tabs__btn.is-active {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.about-tabs__btn.is-active::before {
    background: var(--color-accent);
}

.about-tabs__panel {
    display: none;
}

.about-tabs__panel.is-active {
    display: block;
}

/* ---------- About: certificates slider ---------- */
.cert-slider {
    position: relative;
}

.cert-slider__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.cert-slide {
    scroll-snap-align: start;
    flex: 0 0 100%;
}

/* Паспарту + уголок печати — фото читается как диплом, а не как обычная плитка-картинка */
.cert-slide__frame {
    position: relative;
    padding: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cert-slide__frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-style: solid;
    border-width: 20px 20px 0 0;
    border-color: var(--color-accent) transparent transparent transparent;
    opacity: 0.9;
}

.cert-slide img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--color-border);
}

@media (min-width: 700px) {
    .cert-slide {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

.cert-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--color-text);
}

.cert-slider__nav--prev {
    left: -8px;
}

.cert-slider__nav--next {
    right: -8px;
}

@media (min-width: 700px) {
    .cert-slider__nav--prev {
        left: -20px;
    }
    .cert-slider__nav--next {
        right: -20px;
    }
}

/* ---------- Contacts page ---------- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.contacts-info {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.contacts-info dl {
    margin: 0;
}

.contacts-info dt {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 13px;
    text-transform: uppercase;
    margin-top: 18px;
}

.contacts-info dd {
    margin: 4px 0 0;
    font-size: 16px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.schedule-table td {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.schedule-table td:last-child {
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 600;
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 320px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding-top: 48px;
}

.site-footer a {
    color: var(--color-header-text);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.site-footer__col h3 {
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.site-footer__col a {
    display: block;
    margin-bottom: 8px;
    opacity: 0.85;
}

.logo--footer {
    color: var(--color-accent);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    font-size: 20px;
}

.site-footer address p {
    margin: 0 0 10px;
    opacity: 0.85;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    font-size: 13px;
    text-align: center;
    opacity: 0.7;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.legal-info {
    margin-top: 6px;
    font-size: 12px;
}

/* ---------- Scroll-reveal animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cards-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.cards-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.cards-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.cards-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.cards-grid [data-animate]:nth-child(6) { transition-delay: 0.4s; }

.gallery-grid [data-animate]:nth-child(2) { transition-delay: 0.06s; }
.gallery-grid [data-animate]:nth-child(3) { transition-delay: 0.12s; }
.gallery-grid [data-animate]:nth-child(4) { transition-delay: 0.18s; }
.gallery-grid [data-animate]:nth-child(5) { transition-delay: 0.24s; }
.gallery-grid [data-animate]:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.18);
    padding: 18px 20px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-light);
    flex: 1 1 240px;
}

.cookie-banner a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

@media (min-width: 720px) {
    .cookie-banner {
        max-width: 560px;
        left: auto;
    }
}

/* ---------- Booking modal ---------- */
.booking-overlay {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(20, 12, 12, 0.55);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.booking-overlay[hidden] {
    display: none;
}

.booking-overlay.is-open {
    opacity: 1;
}

.booking-modal {
    background: var(--color-surface);
    width: 100%;
    max-width: 520px;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    -webkit-overflow-scrolling: touch;
    transform: translateY(40px);
    transition: transform 0.3s ease;
}

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

@media (min-width: 640px) {
    .booking-overlay {
        align-items: center;
    }
    .booking-modal {
        border-radius: var(--radius);
        padding: 32px;
    }
}

.booking-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-bg-alt);
    cursor: pointer;
    font-size: 16px;
}

.booking-modal__subtitle {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-appearance: none;
    appearance: none;
}

input[type="checkbox"], input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

textarea {
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.booking-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-slots__hint, .booking-slots__empty {
    color: var(--color-text-light);
    font-size: 14px;
}

.slot-btn {
    min-width: 72px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
}

.slot-btn.is-selected {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    cursor: pointer;
}

.consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.consent-check a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.booking-modal__message {
    font-size: 14px;
    margin-bottom: 14px;
    min-height: 0;
}

.booking-modal__message.is-error {
    color: #b00020;
}

.booking-modal__message.is-success {
    color: #1b7a3d;
}

/* ---------- Flatpickr tweaks ---------- */
.flatpickr-calendar {
    box-shadow: var(--shadow) !important;
    border-radius: var(--radius) !important;
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--color-header-bg);
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 28px;
    width: 100%;
    max-width: 380px;
}

.auth-card h1 {
    font-size: 24px;
    text-align: center;
}

.auth-card .error {
    color: #b00020;
    font-size: 14px;
    margin-bottom: 14px;
}

.back-home {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--color-text-light);
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero__inner {
        grid-template-columns: 1.1fr 1fr;
        text-align: left;
    }
    .hero__text {
        text-align: left;
    }
    .hero__subtitle {
        margin: 0 0 28px;
    }
    .hero__actions {
        flex-direction: row;
        align-items: center;
    }
    .about-hero {
        grid-template-columns: 1fr 1.1fr;
    }
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 880px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .phone-link {
        display: flex;
    }
    .site-footer__inner {
        grid-template-columns: 1.3fr 1fr 1fr;
    }
}

@media (max-width: 879px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        background: var(--color-header-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        font-family: var(--font-heading);
        font-size: 26px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 32px 20px;
        padding-top: calc(32px + env(safe-area-inset-top));
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
        z-index: 200;
    }
    .main-nav.is-open {
        transform: translateX(0);
    }
    .main-nav a {
        opacity: 0.9;
    }
    .burger {
        display: flex;
        position: relative;
        z-index: 210;
    }
}

@media (min-width: 880px) {
    .burger {
        display: none;
    }
    .main-nav {
        position: static;
        transform: none;
        flex-direction: row;
    }
}
