/* ==========================================================
   Праксис (praxiscab.com) — стили сайта
   Палитра и шрифты приведены в соответствие с praxiscab.space:
   тёплый камень + шалфей + приглушённая глина
   Шрифты: Fraunces (заголовки) / Work Sans (текст) / IBM Plex Mono (метки, время)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink: #24312A;
    --ink-soft: #44503F;
    --muted: #74705F;
    --paper: #F1EEE2;
    --paper-warm: #EAE6D6;
    --card: #FBFAF4;
    --sage: #6F8E76;
    --sage-deep: #3F5744;
    --clay: #B4695A;
    --clay-soft: #E7D3CD;
    --line: #DAD5C2;
    --line-soft: #E6E2D2;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 28px;

    --shadow-soft: 0 1px 2px rgba(36, 49, 42, 0.04), 0 8px 24px rgba(36, 49, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--muted);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--ink); }
h1 { font-size: 46px; line-height: 1.15; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
.accent-italic { font-style: italic; color: var(--sage-deep); }

p { margin: 0; color: var(--ink-soft); }

/* ---------- Навигация ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 21px; }
.logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--ink-soft); }
.nav-links a.active { color: var(--sage-deep); font-weight: 600; }
.nav-links { display: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary { background: var(--sage-deep); color: var(--paper); }
.btn-outline { background: transparent; border: 1.5px solid var(--sage-deep); color: var(--sage-deep); }
.btn-small { padding: 10px 20px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 80px 0 64px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -140px; right: -120px;
    width: 440px; height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--paper-warm), var(--line-soft) 65%, transparent 100%);
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.hero-copy { max-width: 560px; }
.hero-copy p.lede { font-size: 17px; line-height: 1.65; margin: 20px 0 26px; }
.format-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.badge-outline { border: 1.5px solid var(--sage-deep); color: var(--sage-deep); }
.badge-solid { background: var(--sage-deep); color: var(--paper); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-cta .phone { font-size: 14px; color: var(--ink-soft); }
.hero-cta .phone strong { display: block; color: var(--ink); font-size: 15px; }

.info-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    box-shadow: var(--shadow-soft);
}
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.info-row:last-child { border-bottom: none; }
.info-row .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.info-row .value { font-size: 15px; font-weight: 600; text-align: right; }

/* ---------- Секции ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; font-size: 16px; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.card h3 { margin-top: 4px; }
.card p { font-size: 14.5px; line-height: 1.55; }
.card .price { font-family: var(--font-mono); font-size: 13px; color: var(--sage-deep); font-weight: 500; }

.teaser-band {
    background: var(--sage-deep);
    padding: 40px 0;
}
.teaser-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.teaser-band p { font-family: var(--font-display); font-size: 21px; color: var(--paper); }
.teaser-band .btn-outline { border-color: var(--paper); color: var(--paper); }

/* ---------- Форма записи ---------- */
.booking-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-soft);
    max-width: 640px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.form-row input,
.form-row select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
}
.form-row input:focus,
.form-row select:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 560px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-grid-2 .form-row { min-width: 0; }

.format-toggle { display: flex; gap: 10px; }
.format-toggle label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink-soft);
}
.format-toggle input { display: none; }
.format-toggle input:checked + span { color: var(--sage-deep); }
.format-toggle label:has(input:checked) { border-color: var(--sage-deep); background: var(--paper-warm); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 4px; }
.slot-btn {
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 13.5px;
    cursor: pointer;
    text-align: center;
}
.slot-btn.selected { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-status.success { background: #E4EDE3; color: var(--sage-deep); }
.form-status.error { background: var(--clay-soft); color: #7A3B30; }

/* ---------- FAQ / аккордеон ---------- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
}
.faq-icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--sage-deep);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--sage-deep);
    transition: transform 0.15s ease;
}
.faq-icon::before { width: 12px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 12px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 640px;
    transition: max-height 0.2s ease;
}
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 22px; }

.grow-note {
    background: var(--card);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
}
.grow-note p { font-size: 14.5px; line-height: 1.55; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--muted); } /* ---------- Schedule strip ---------- */ .schedule { background: var(--sage-deep); color: var(--paper); } .schedule .section-head p { color: rgba(241, 238, 226, 0.72); } .schedule .section-head .eyebrow { color: rgba(241, 238, 226, 0.85); } .schedule .eyebrow::before { background: rgba(241, 238, 226, 0.5); } .schedule-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; } .schedule-day { background: rgba(241, 238, 226, 0.08); border: 1px solid rgba(241, 238, 226, 0.16); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; } .schedule-day.off { opacity: 0.4; } .schedule-day .d { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(241, 238, 226, 0.7); margin-bottom: 10px; } .schedule-day .h { font-family: var(--font-display); font-size: 16px; } @media (max-width: 640px) { .schedule-grid { grid-template-columns: repeat(3, 1fr); } } /* ---------- Directions map ---------- */ .directions-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; } @media (min-width: 720px) { .directions-grid { grid-template-columns: 1fr 1fr; } } .map-frame { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; } .map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Админка (общие вспомогательные классы) ---------- */
.admin-wrap { max-width: 920px; margin: 0 auto; padding: 60px 24px; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px; margin-bottom: 28px; }
.admin-card table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-card th, .admin-card td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.admin-card th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.login-box { max-width: 360px; margin: 120px auto; }

.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.admin-header h1 { font-size: 28px; }
.admin-logout { font-size: 13.5px; color: var(--muted); text-decoration: underline; }

.admin-card h2 { font-size: 21px; margin-bottom: 18px; }
.admin-card .admin-card-note { font-size: 13px; color: var(--muted); margin-top: -10px; margin-bottom: 18px; }

.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    resize: vertical;
}
.form-row textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.form-row input[type="file"] { border: none; padding: 6px 0; }

.flash-message { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 22px; }
.flash-message.success { background: #E4EDE3; color: var(--sage-deep); }
.flash-message.error { background: var(--clay-soft); color: #7A3B30; }

.repeatable-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.repeatable-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 18px; position: relative; background: var(--paper); }
.repeatable-item .form-row:last-child { margin-bottom: 0; }
.repeatable-remove {
    position: absolute;
    top: 14px; right: 14px;
    background: none;
    border: none;
    color: var(--clay);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-soft); }
.btn-danger { background: transparent; border: 1.5px solid var(--clay); color: var(--clay); }
.btn-danger.btn-small, .btn-ghost.btn-small { padding: 8px 16px; font-size: 12.5px; }

.format-pill, .visit-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
}
.format-pill.online { background: var(--paper-warm); color: var(--sage-deep); }
.format-pill.in_person { background: var(--line-soft); color: var(--ink-soft); }

.inline-form { display: inline; }
.bookings-scroll { overflow-x: auto; }
.bookings-scroll table { min-width: 760px; }
