/* Клуб хатха-йоги — основной сайт. Тёплая спокойная палитра, системные шрифты. */

:root {
  --bg: #f5efe4;
  --bg-soft: #efe7d8;
  --surface: #fffdf8;
  --surface-2: #faf4e9;
  --ink: #332f28;
  --ink-soft: #5c554a;
  --muted: #8a8173;
  --line: #e4dac6;
  --accent: #a4693f;
  --accent-deep: #8a5631;
  --accent-soft: #e9d9c4;
  --ok: #5f7a54;
  --err: #9a4a3a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(70, 54, 32, .06), 0 8px 24px rgba(70, 54, 32, .06);
  --maxw: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, #f9f2e4 0%, rgba(249, 242, 228, 0) 60%),
    radial-gradient(900px 500px at -10% 0%, #f1e8d6 0%, rgba(241, 232, 214, 0) 55%);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); letter-spacing: .1px; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 44rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 239, 228, .9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-weight: 600; }
.brand .bt span { color: var(--muted); font-size: .78rem; font-family: var(--font); letter-spacing: .4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); padding: 8px 12px; border-radius: 8px; font-size: .97rem; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav a.cta { background: var(--accent); color: #fff; }
.nav a.cta:hover { background: var(--accent-deep); }

/* Герой */
.hero { padding: clamp(2.4rem, 6vw, 4.5rem) 0 1.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 42px; align-items: center; }
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34rem; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .74rem; color: var(--accent-deep); margin: 0 0 1rem; font-weight: 600; }
.hero-art { aspect-ratio: 1 / 1; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: #fff; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent-deep); border-color: var(--accent-soft); }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.block { width: 100%; }

/* Секции и карточки */
section { scroll-margin-top: 80px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 1.4rem 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card .ic { width: 38px; height: 38px; color: var(--accent); margin-bottom: 10px; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); margin: 1.4rem 0;
}

/* Расписание */
.schedule { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .97rem; }
.schedule caption { text-align: left; color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }
.schedule th, .schedule td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule th { color: var(--ink-soft); font-weight: 600; }
.schedule tbody tr:hover { background: var(--surface-2); }
.schedule .day { font-weight: 600; white-space: nowrap; }
.schedule .time { font-variant-numeric: tabular-nums; color: var(--accent-deep); white-space: nowrap; }
.tag { display: inline-block; font-size: .78rem; padding: 2px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-deep); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .body { padding: 0 18px 16px; color: var(--ink-soft); }

/* Заметки */
.notes-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.note-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.note-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.note-card .thumb { aspect-ratio: 16 / 9; background: var(--surface-2); }
.note-card .meta { padding: 16px 18px; }
.note-card .meta small { color: var(--muted); }
.note-card .meta h3 { margin: .2rem 0 .3rem; }
.note-card .meta p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Статья */
.article { max-width: 42rem; }
.article .kicker { color: var(--accent-deep); text-transform: uppercase; letter-spacing: 1.5px; font-size: .74rem; font-weight: 600; }
.article time { color: var(--muted); font-size: .9rem; }
.article p { color: var(--ink-soft); }
.article blockquote { margin: 1.5em 0; padding: .3em 0 .3em 1.2em; border-left: 3px solid var(--accent-soft); font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }

/* Формы */
.auth-wrap { max-width: 27rem; margin: clamp(1.5rem, 5vw, 3.5rem) auto; }
.form-wide { max-width: 40rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.form-card h1 { font-size: 1.6rem; }
.form-intro { color: var(--ink-soft); margin-bottom: 1.4rem; }
.field { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field .req { color: var(--accent); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(164, 105, 63, .15); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--err); background: #fbf1ee; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field .err-text { font-size: .82rem; color: var(--err); margin-top: 5px; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.form-foot { margin-top: 1.4rem; font-size: .92rem; color: var(--ink-soft); text-align: center; }

/* Сообщения формы (aria-live) */
.formmsg { margin-top: 1.1rem; padding: 13px 15px; border-radius: 10px; font-size: .94rem; display: none; }
.formmsg.show { display: block; }
.formmsg.err { background: #f8ece8; border: 1px solid #e7c9c0; color: var(--err); }
.formmsg.ok { background: #eef2e8; border: 1px solid #cfdcc0; color: var(--ok); }

/* Спиннер */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost .spinner { border-color: rgba(164,105,63,.35); border-top-color: var(--accent-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Подвал */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--bg-soft); }
.site-footer .wrap { padding: 36px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 .8rem; }
.site-footer a { color: var(--ink-soft); display: block; padding: 3px 0; }
.site-footer .brand { margin-bottom: .6rem; }
.site-footer .fine { color: var(--muted); font-size: .86rem; max-width: 26rem; }
.site-footer .copy { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .84rem; padding: 16px 20px; }

/* 404 */
.center-screen { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; }
.center-screen .big { font-family: var(--serif); font-size: clamp(3rem, 12vw, 6rem); color: var(--accent-soft); margin: 0; line-height: 1; }

/* Утилиты */
.lead-sub { color: var(--muted); font-size: .95rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }
.text-c { text-align: center; }
.mt0 { margin-top: 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; order: -1; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 9px; font-size: .9rem; }
  .brand .bt span { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition: none !important; }
}
