/* Polly practice — visual scheme (BL-057): sage green accent, warm sandy/beige backgrounds,
   Lora headings + Noto Sans body (both with Cyrillic, self-hosted). Mobile-first (BL-056). */

@font-face { font-family: "Lora"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/lora-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/lora-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/noto-sans-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/noto-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6efe4;          /* warm beige page */
  --bg-alt: #efe4d3;      /* sand band */
  --surface: #fffaf2;     /* cards */
  --border: #e4d7c3;
  --text: #39342e;
  --muted: #6e655a;
  --sage: #8aa486;        /* accent */
  --sage-strong: #56724f; /* buttons / links (AA contrast on beige and white text) */
  --sage-deep: #435b3e;
  --sage-soft: #dfe8da;
  --taken: #d9cfc1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(80, 60, 30, .05), 0 6px 20px rgba(80, 60, 30, .06);
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--sage-strong); text-underline-offset: .18em; }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.25; color: var(--text); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* Placeholder text (TODO in docs/content) */
.ph { text-decoration: underline dotted rgba(86, 114, 79, .55); text-decoration-thickness: 1.5px; text-underline-offset: .25em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid var(--sage-strong);
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--sage-strong); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sage-strong); }
.btn-ghost:hover { background: var(--sage-soft); }
.btn-lg { padding: .85em 1.8em; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.logo {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-deep); border: 1px solid var(--sage);
  font: 500 .95rem var(--font-head); letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font: 500 1.08rem var(--font-head); white-space: nowrap; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.lang-switch {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-decoration: none;
  padding: .45em .7em; border-radius: 8px; color: var(--muted);
}
.lang-switch:hover { background: var(--bg-alt); color: var(--text); }

.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: .5em .8em; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .92rem; user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--sage); }
.burger { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: .65em .9em; border-radius: 10px; text-decoration: none; color: var(--text); }
.menu li a:hover { background: var(--bg-alt); }
.menu li a[aria-current="page"] { background: var(--sage-soft); color: var(--sage-deep); font-weight: 600; }
.menu-cta { width: 100%; margin-top: 8px; }

@media (max-width: 420px) {
  .menu-label { display: none; }
  .brand-name { font-size: 1rem; }
}

/* Pages */
.page { padding: 40px 0 64px; }
.page-cta { margin-top: 2em; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose h2 { margin-top: 1.4em; }
.page h2 { margin-top: 1.4em; }
.page .card h2, .page .note h2 { margin-top: 0; }

/* Home */
.hero { padding: 32px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-photo { max-width: 360px; width: 78%; margin: 0 auto; }
.hero-text { text-align: center; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-strong); font-weight: 600; margin-bottom: .6em; }
.hero h1 { margin-bottom: .3em; }
.tagline { font: italic 400 clamp(1.15rem, 3.6vw, 1.4rem)/1.45 var(--font-head); color: var(--sage-deep); }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 1.6em; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.phone-link svg { width: 18px; height: 18px; fill: currentColor; }

.photo, .photo-ph { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 180px 180px var(--radius) var(--radius); object-fit: cover; }
.photo-ph {
  background: linear-gradient(160deg, var(--sage-soft), var(--bg-alt) 70%);
  border: 1px solid var(--border); display: grid; place-items: end center; overflow: hidden;
}
.photo-ph svg { width: 70%; fill: rgba(86, 114, 79, .22); }
.prose .photo-ph { max-width: 260px; margin: 1em 0; }
.content-img { border-radius: var(--radius); }

.steps { background: var(--bg-alt); padding: 48px 0 56px; }
.section-title { text-align: center; margin-bottom: 1.2em; }
.step-list { list-style: none; margin: 0 0 2em; padding: 0; display: grid; gap: 16px; }
.step-list li { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.step-no {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage-deep); font: 600 1rem var(--font-head); margin-bottom: 10px;
}
.step-list p { color: var(--muted); margin: 0; }

/* Cards */
.cards { display: grid; gap: 18px; margin: 28px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.service-card { display: flex; flex-direction: column; }
.service-card .prose { flex: 1; color: var(--muted); }
.service-card .btn { align-self: flex-start; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 18px 0 22px; }
.facts dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; font-weight: 600; }
.facts .price { font: 600 1.3rem var(--font-head); color: var(--sage-deep); }
.note { border-left: 3px solid var(--sage); padding: 4px 0 4px 18px; max-width: 70ch; }
.note p { color: var(--muted); }

.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-list dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.map-link { font-size: .92rem; font-weight: 400; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 24px; }
.empty-state svg { width: 52px; height: 52px; fill: none; stroke: var(--sage); stroke-width: 2; stroke-linejoin: round; margin-bottom: 12px; }
.empty-state p { margin: 0 auto; max-width: 46ch; }

/* FAQ */
.faq { display: grid; gap: 10px; margin: 24px 0 28px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative;
  font: 500 1.06rem/1.4 var(--font-head);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 400 1.5rem var(--font-body); color: var(--sage-strong); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .prose { padding: 0 20px 18px; color: var(--muted); }

/* Booking */
.demo-banner {
  background: #fbf3dc; border: 1px solid #ecdcac; color: #6b5622; border-radius: 10px;
  padding: 10px 14px; font-size: .93rem;
}
.booking-grid { display: grid; gap: 18px; margin: 22px 0 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { margin: 0; font-size: 1.3rem; }
.cal-nav {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  font-size: 1.5rem; line-height: 1; color: var(--sage-strong); border: 1px solid var(--border); background: var(--bg);
}
.cal-nav:hover { background: var(--sage-soft); }
.cal-nav.disabled { opacity: .3; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-wd { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .95rem;
  text-decoration: none; color: var(--muted);
}
.cal-day.off { opacity: .45; }
.cal-day.free { background: var(--sage-soft); color: var(--sage-deep); font-weight: 600; }
.cal-day.free:hover { background: var(--sage); color: #fff; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--sage); }
.cal-day.selected, .cal-day.selected:hover { background: var(--sage-strong); color: #fff; }
.cal-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -8px; vertical-align: -1px; }
.dot.free { background: var(--sage-soft); border: 1px solid var(--sage); }
.dot.off { background: var(--bg-alt); border: 1px solid var(--border); }

.slots h2::first-letter { text-transform: uppercase; }
.slot-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot {
  display: block; text-align: center; padding: .65em 0; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--sage); color: var(--sage-deep); background: var(--surface);
}
a.slot:hover { background: var(--sage-soft); }
.slot.selected { background: var(--sage-strong); border-color: var(--sage-strong); color: #fff; }
.slot.taken { border-color: var(--taken); color: var(--muted); background: var(--bg); text-decoration: line-through; opacity: .7; }

.booking-form .chosen { background: var(--sage-soft); border-radius: 10px; padding: 10px 14px; }
.form { display: grid; gap: 16px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form textarea {
  font: 400 1rem var(--font-body); color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: .7em .85em; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
.form .row { display: grid; gap: 16px; }
.form .hint { font-weight: 400; font-size: .84rem; color: var(--muted); margin: 0; }
.req { color: #a05a3c; margin-left: 2px; }
.service-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.service-choice legend { font-weight: 600; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.form .choice {
  display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.form .choice:has(input:checked) { border-color: var(--sage-strong); background: var(--sage-soft); }
.form .choice input { margin-top: .3em; accent-color: var(--sage-strong); }
/* Child fields appear only when "child" is selected — CSS only, no JS. */
.child-fields { display: none; gap: 10px; border-left: 3px solid var(--sage); padding-left: 14px; }
.form:has(#svc-child:checked) .child-fields { display: grid; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--sage-strong); flex: none; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: #e9ddca; color: var(--text); font-size: .9rem; margin-top: auto; }
.footer-grid { display: grid; gap: 22px; padding-top: 36px; padding-bottom: 24px; }
.footer-grid p { margin: 0 0 .5em; }
.footer-name { font: 500 1.1rem var(--font-head); }
.footer-sub { color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--sage-deep); }
.footer-firm { color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  border-top: 1px solid #d9cab2; padding-top: 14px; padding-bottom: 22px; color: var(--muted); font-size: .82rem;
}

/* Tablet / desktop */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form .row.two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .page { padding: 56px 0 80px; }
}
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  .hero-photo { width: 100%; max-width: 400px; }
  .hero-text { text-align: left; }
  .hero .lead { margin-left: 0; }
  .hero-actions { flex-direction: row; gap: 24px; }
  .booking-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (min-width: 900px) { .cal-day { aspect-ratio: auto; height: 50px; } }
