/* logoped-vidnoe.ru — v2 "modern" restyle. Violet gradient hero with an
   abstract speech-bubble composition, lavender-white body, rounded cards,
   amber CTA. Class names are unchanged from v1 (site-v1/), so the JS and the
   admin page keep working. Every text/bg pair is ≥ 4.5:1 (body) / 3:1 (large). */

:root {
  --bg: #f7f5ff;
  --surface: #ffffff;
  --surface-alt: #efeafe;
  --text: #1f1b3a;
  --muted: #55526e;        /* 6.9:1 on --bg */
  --line: #e3ddf6;
  --primary: #5b3df5;      /* 6.3:1 with white */
  --primary-dark: #4429c9;
  --primary-soft: #e9e3ff;
  --accent: #0e7c6b;       /* kept for location colours + admin page */
  --accent-dark: #0a5f52;
  --accent-soft: #d7f2ec;
  --cta: #ffc93c;          /* amber; dark text on it = 12:1 */
  --cta-dark: #f4b400;
  --cta-text: #1f1b3a;
  --pink: #ff7eb6;
  --vidnoe-bg: #d7f2ec;  --vidnoe-fg: #0b5a4d;   /* 7.6:1 */
  --petr-bg: #ffe6b8;    --petr-fg: #6b3d00;     /* 8.0:1 */
  --pending-bg: #ecebf5; --pending-fg: #4a475f;  /* 7.4:1 */
  --taken-bg: #e6e4ef;   --taken-fg: #66637a;    /* 4.7:1 */
  --radius: 20px;
  --shadow: 0 10px 30px rgba(59, 42, 140, .08);
  --shadow-lg: 0 24px 60px rgba(59, 42, 140, .16);
  --grad: linear-gradient(135deg, #5b3df5 0%, #7b4cf0 45%, #b25cf5 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.6 "Manrope", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 80px; position: relative; }
.section--alt { background: var(--surface-alt); }
.sub { max-width: 720px; font-size: 17px; margin-bottom: 28px; color: var(--muted); }

/* section heading ornament: a short gradient dash */
.section h2::after {
  content: ""; display: block; width: 56px; height: 6px; border-radius: 6px; margin-top: 12px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
}

/* --- buttons --- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; text-decoration: none; cursor: pointer; font-size: 16px; line-height: 1.2;
  transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--cta); color: var(--cta-text); box-shadow: 0 8px 20px rgba(255, 201, 60, .35); }
.btn--primary:hover { background: var(--cta-dark); }
.btn--ghost { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* --- top bar --- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(247, 245, 255, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.brand::before { content: "АБ"; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.brand span { font-weight: 500; color: var(--muted); }
.topnav { display: flex; gap: 20px; margin-left: auto; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.topnav a:hover { color: var(--primary-dark); }
@media (max-width: 960px) { .topnav { display: none; } .topbar .btn { margin-left: auto; } .brand span { display: none; } }

/* --- hero --- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad);
  padding-block: 72px 120px;
}
.hero::before { /* soft glow blobs */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 420px at 88% 8%, rgba(255, 126, 182, .45), transparent 70%),
    radial-gradient(360px 360px at 6% 100%, rgba(255, 201, 60, .28), transparent 70%),
    radial-gradient(260px 260px at 60% 110%, rgba(255, 255, 255, .18), transparent 70%);
}
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--cta); color: var(--cta-text); font-weight: 800; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; margin: 0 0 18px;
}
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(40, 20, 120, .25); }
.lead { font-size: 18px; max-width: 560px; color: #f3efff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stats li { display: flex; flex-direction: column; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 10px 16px; min-width: 120px; }
.stats b { font-size: 24px; color: #fff; line-height: 1.1; }
.stats span { color: #efe9ff; font-size: 13px; }

/* hero art: abstract speech bubbles */
.hero__art { position: relative; aspect-ratio: 1 / .86; }
.hero__art svg { width: 100%; height: 100%; overflow: visible; }
.hero__art .bub { transform-box: fill-box; transform-origin: center; animation: float 6s ease-in-out infinite; }
.hero__art .bub:nth-child(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.hero__art .bub:nth-child(3n) { animation-duration: 8.5s; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@media (prefers-reduced-motion: reduce) { .hero__art .bub { animation: none; } }

/* --- band (the "pain" strip) --- */
.band { background: var(--surface); padding-block: 40px; border-bottom: 1px solid var(--line); }
.band__in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; }
.band__q { font-size: 20px; font-weight: 800; margin: 0; color: var(--text); }
.band__a { font-size: 17px; margin: 0; color: var(--muted); }
@media (max-width: 720px) { .band__in { grid-template-columns: 1fr; } }

/* --- services --- */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.services li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  transition: transform .15s, box-shadow .15s;
}
.services li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.services .ico { grid-row: span 2; font-size: 20px; line-height: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); }
.services b { font-size: 15px; }
.services span:last-child { color: var(--muted); font-size: 14px; }

/* --- cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card__ico { font-size: 26px; margin-bottom: 12px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), #ffe6f2); }
.card p { margin: 0; color: #3a3656; }

/* --- about / education --- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.about__photo { position: relative; margin: 0; justify-self: center; width: min(320px, 100%); }
.about__photo img { border-radius: 50% 50% 50% 18%; aspect-ratio: 1; object-fit: cover; object-position: top; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.about__photo::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 90px; height: 90px; border-radius: 50%; background: var(--cta); z-index: -1; }
.about__photo::after { content: ""; position: absolute; left: -18px; bottom: 10px; width: 60px; height: 60px; border-radius: 50%; background: var(--pink); opacity: .8; z-index: -1; }
.about--me { position: relative; z-index: 0; }
.checks, .edu { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.h3--gap { margin-top: 28px; }
.edu li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.about__docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.about__docs img { border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid #fff; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* --- gallery --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gallery img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

/* --- logo-mirror tool links --- */
.tools__title { margin-top: 32px; font-size: 18px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s; }
.tool:hover { transform: translateY(-2px); border-color: var(--primary); }
.tool__ico { font-size: 24px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); }
.tool b { display: block; color: var(--primary-dark); }
.tool small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* --- places --- */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.place { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden; }
.place::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--vidnoe-bg); }
.place--petrushino::before { background: var(--petr-bg); }
.place > * { position: relative; }
.place__tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.place--vidnoe .place__tag { background: var(--vidnoe-bg); color: var(--vidnoe-fg); }
.place--petrushino .place__tag { background: var(--petr-bg); color: var(--petr-fg); }
.place p { margin-bottom: .4em; }
@media (max-width: 720px) { .places { grid-template-columns: 1fr; } }

/* --- schedule grid --- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; font-size: 14px; }
.legend__i { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(0,0,0,.1); }
.sw--vidnoe { background: var(--vidnoe-bg); }
.sw--petrushino { background: var(--petr-bg); }
.sw--pending { background: repeating-linear-gradient(45deg, var(--pending-bg), var(--pending-bg) 4px, #d9d6e6 4px, #d9d6e6 8px); }
.sw--taken { background: var(--taken-bg); }
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 14px; }
.grid th, .grid td { padding: 0; border-bottom: 1px solid var(--line); }
.grid th { background: var(--surface); position: sticky; top: 0; padding: 12px 8px; font-weight: 800; text-align: center; z-index: 1; }
.grid__time { text-align: left !important; white-space: nowrap; padding-left: 16px !important; color: var(--muted); font-weight: 700; width: 100px; position: sticky; left: 0; background: var(--surface); z-index: 2; }
.grid td { text-align: center; height: 44px; }
.cell { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 44px; border: 0; border-left: 1px solid var(--line); background: transparent; font: inherit; color: inherit; cursor: default; padding: 0 6px; }
.cell--free { cursor: pointer; font-weight: 800; }
.cell--vidnoe { background: var(--vidnoe-bg); color: var(--vidnoe-fg); }
.cell--petrushino { background: var(--petr-bg); color: var(--petr-fg); }
.cell--free:hover, .cell--free:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.cell--pending { background: repeating-linear-gradient(45deg, var(--pending-bg), var(--pending-bg) 4px, #d9d6e6 4px, #d9d6e6 8px); color: var(--pending-fg); font-size: 12px; }
.cell--taken { background: var(--taken-bg); color: var(--taken-fg); }
.cell--off { color: var(--taken-fg); }
.grid__note { margin-top: 10px; font-size: 14px; }

/* --- faq + seo text --- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: #3a3656; }
.seo-text { max-width: 820px; margin-top: 36px; color: #3a3656; font-size: 15px; }
.seo-text h3 { font-size: 17px; color: var(--text); }
.seo-text summary { list-style: none; cursor: pointer; }
.seo-text summary::-webkit-details-marker { display: none; }
.seo-text summary h3 { display: inline; }

/* --- contacts --- */
.contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 16px; }
.contacts li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 10px; }
.contacts .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); font-size: 15px; }
.contacts a { font-weight: 800; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.address { background: var(--surface); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.address h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.address__line { font-weight: 700; margin-bottom: 4px; }
.address p { margin-bottom: 8px; }
.map { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-alt); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) { .addresses { grid-template-columns: 1fr; } }
.footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* --- modal --- */
.modal { border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--text); background: var(--surface); }
.modal::backdrop { background: rgba(31, 27, 58, .6); }
.modal__form, .modal__done { padding: 28px 28px 22px; position: relative; }
.modal__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__slot { font-weight: 800; color: var(--primary-dark); background: var(--primary-soft); padding: 10px 14px; border-radius: 12px; }
.modal label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.modal input, .modal textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; border: 1px solid #c9c4e0; border-radius: 12px; background: #fff; color: var(--text); }
.modal input:focus, .modal textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.req { color: #c8461f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #9f1d1d; background: #fde8e8; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.modal__done { text-align: center; }
.done__ico { font-size: 44px; }

/* --- status page --- */
.status { max-width: 560px; margin: 48px auto; background: var(--surface); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.status__badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; }
.status--pending { background: var(--petr-bg); color: var(--petr-fg); }
.status--confirmed { background: var(--vidnoe-bg); color: var(--vidnoe-fg); }
.status--rejected, .status--cancelled { background: #fde8e8; color: #7f1d1d; }
.status dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 20px 0; }
.status dt { color: var(--muted); }
.status dd { margin: 0; font-weight: 700; }

/* --- mobile-only / desktop-only helpers --- */
.m-only { display: none; }
.daylist { display: none; }
.pager { display: none; }
.band-copy { display: none; }

/* =====================================================================
   Phones (≤ 720px): a deck of full-screen pages, one per section, turned
   by horizontal swipe (native scroll-snap). Every page fits 360×640
   without inner scrolling (measured); overflow-y:auto is the safety net.
   ===================================================================== */
@media (max-width: 720px) {
  html { scroll-behavior: auto; }
  body { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  .topbar { position: static; flex: 0 0 auto; }
  .topbar__in { min-height: 50px; }
  main {
    flex: 1 1 auto; min-height: 0; display: flex;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  main::-webkit-scrollbar { display: none; }
  main > section {
    flex: 0 0 100%; width: 100%; height: 100%; box-sizing: border-box;
    scroll-snap-align: start; scroll-snap-stop: always;
    overflow-y: auto; overflow-x: hidden; padding-block: 14px 10px;
    display: flex; flex-direction: column;
  }
  main > section > .wrap { width: 100%; padding-inline: 16px; }
  .band, .footer, .m-hide { display: none !important; }
  .m-only { display: block; }
  .band-copy { display: block; }
  .pager {
    display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line); background: var(--surface);
  }
  .pager__arrow { border: 0; background: var(--primary-soft); color: var(--primary-dark); width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
  .pager__label { flex: 1 1 auto; font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pager__dots { display: flex; gap: 5px; flex: 0 0 auto; }
  .pager__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #cfc9e6; cursor: pointer; }
  .pager__dot.is-active { background: var(--primary); width: 18px; border-radius: 4px; }

  /* type scale */
  h2 { font-size: 22px; margin-bottom: 6px; }
  .section h2::after { width: 40px; height: 4px; margin-top: 6px; }
  h3 { font-size: 16px; }
  .section { padding-block: 14px 10px; }
  .sub { font-size: 14px; margin-bottom: 10px; }
  .muted.small { font-size: 12px; }

  /* hero: gradient page, art beside the title, the rest full-width */
  .hero { padding-block: 14px 10px; }
  .hero__wave { display: none; }
  .hero__in { display: grid; grid-template-columns: 1fr 118px; grid-template-areas: "title art" "lead lead" "cta cta" "stats stats"; gap: 10px 10px; align-items: center; }
  .hero__text { display: contents; }
  .hero__art { grid-area: art; aspect-ratio: 1; }
  .eyebrow { display: none; }
  .hero h1 { grid-area: title; margin: 0; font-size: 19px; }
  .lead { grid-area: lead; margin: 0; font-size: 14px; }
  .hero__cta { grid-area: cta; margin: 0; flex-wrap: nowrap; }
  .hero__cta .btn { white-space: nowrap; padding: 9px 8px; font-size: 12.5px; flex: 1 1 auto; text-align: center; }
  .stats { grid-area: stats; flex-wrap: nowrap; gap: 6px; }
  .stats li { flex: 1 1 0; min-width: 0; padding: 6px 8px; border-radius: 10px; }
  .stats b { font-size: 17px; }
  .stats span { font-size: 10.5px; line-height: 1.2; }

  /* services */
  .services { grid-template-columns: 1fr 1fr; gap: 8px; }
  .services li { padding: 8px 10px; grid-template-columns: 26px 1fr; column-gap: 6px; border-radius: 12px; }
  .services .ico { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
  .services b { font-size: 13px; line-height: 1.25; }
  .services span:last-child { font-size: 11px; line-height: 1.3; }

  /* how: single column, clamped, tap to open */
  .cards { grid-template-columns: 1fr; gap: 6px; }
  .card { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
  .card__ico { grid-row: span 2; font-size: 16px; width: 30px; height: 30px; border-radius: 9px; margin: 0; }
  .card h3 { font-size: 13.5px; margin-bottom: 1px; }
  .card p { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card.is-open p { -webkit-line-clamp: unset; display: block; }

  /* about / education */
  .about { grid-template-columns: 1fr; gap: 12px; }
  .about--me { grid-template-columns: 1fr 104px; align-items: start; }
  .about__photo { width: 104px; justify-self: end; margin-top: 4px; }
  .about__photo img { border-width: 4px; }
  .about__photo::before { width: 36px; height: 36px; inset: -8px -8px auto auto; }
  .about__photo::after { width: 26px; height: 26px; left: -8px; bottom: 6px; }
  .checks li { font-size: 13px; margin-bottom: 6px; padding-left: 26px; }
  .checks li::before { width: 18px; height: 18px; font-size: 11px; border-radius: 6px; }
  .edu li { font-size: 12.5px; padding: 7px 0; line-height: 1.35; }
  .about__docs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .about__docs img { aspect-ratio: 3 / 4; border-width: 3px; }

  /* gallery + tools */
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery img { border-radius: 12px; }
  .tools__title { margin-top: 10px; font-size: 14px; margin-bottom: 6px; }
  .tools { grid-template-columns: 1fr; gap: 6px; }
  .tool { padding: 8px 10px; grid-template-columns: 30px 1fr; gap: 8px; border-radius: 12px; }
  .tool__ico { font-size: 16px; width: 30px; height: 30px; border-radius: 9px; }
  .tool b { font-size: 13px; }
  .tool small { font-size: 11.5px; line-height: 1.3; }

  /* places */
  .places { gap: 10px; }
  .place { padding: 12px 14px; border-radius: 14px; }
  .place p { font-size: 14px; }
  .place .muted { font-size: 13px; }

  /* schedule: day tabs + two columns of slot chips */
  .grid-scroll, .legend { display: none; }
  .daylist { display: block; }
  .daylist__tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 8px; }
  .daylist__tab { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 3px 0; font: inherit; font-weight: 800; font-size: 12px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
  .daylist__tab small { font-size: 11px; font-weight: 700; color: var(--primary-dark); }
  .daylist__tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
  .daylist__tab.is-active small { color: #ece6ff; }
  .daylist__rows { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .drow { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; width: 100%; border: 0; border-radius: 10px; padding: 4px 8px; font: inherit; font-size: 12px; text-align: left; color: var(--taken-fg); background: var(--taken-bg); min-height: 28px; }
  .drow__time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 11.5px; }
  .drow__what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .drow--free { cursor: pointer; font-weight: 800; }
  .drow--vidnoe { background: var(--vidnoe-bg); color: var(--vidnoe-fg); }
  .drow--petrushino { background: var(--petr-bg); color: var(--petr-fg); }
  .drow--pending { background: repeating-linear-gradient(45deg, var(--pending-bg), var(--pending-bg) 4px, #d9d6e6 4px, #d9d6e6 8px); color: var(--pending-fg); }
  .drow--range { grid-column: 1 / -1; }
  .drow--range .drow__time { font-weight: 700; }
  .daylist__empty { grid-column: 1 / -1; color: var(--muted); padding: 10px 0; }
  .grid__note { margin-top: 6px; font-size: 11.5px; }

  /* faq */
  .faq { gap: 6px; }
  .faq details { padding: 0 12px; border-radius: 12px; }
  .faq summary { padding: 9px 30px 9px 0; font-size: 14px; }
  .faq summary::after { top: 7px; width: 22px; height: 22px; font-size: 16px; }
  .faq p { font-size: 13px; margin-bottom: 10px; }
  .seo-text { margin-top: 10px; font-size: 13px; }
  .seo-text summary h3 { font-size: 14px; }
  .seo-text summary::after { content: " ▾"; color: var(--primary); }
  .seo-text[open] summary::after { content: " ▴"; }

  /* contacts */
  .contacts { gap: 6px; font-size: 14px; }
  .contacts li { padding: 4px 12px 4px 6px; }
  .contacts .ico { width: 24px; height: 24px; font-size: 12px; }
  .addresses { gap: 6px; margin-top: 8px; }
  .address { padding: 8px 10px 6px; border-radius: 12px; }
  .address h3 { font-size: 14px; margin-bottom: 2px; }
  .address__line { font-size: 12.5px; }
  .address p { margin-bottom: 2px; font-size: 12px; }
  .map { aspect-ratio: auto; height: 96px; border-radius: 10px; }
  .m-only.small { margin: 8px 0 0; }
}

/* --- phone fit: "Обо мне" photo beside the heading only; contacts maps --- */
@media (max-width: 720px) {
  .about--me { grid-template-columns: 1fr 96px; grid-template-areas: "title art" "lead art" "list list"; gap: 6px 10px; align-items: start; }
  .about--me > div { display: contents; }
  .about--me h2 { grid-area: title; }
  .about--me .band-copy { grid-area: lead; margin: 0; font-size: 13px; }
  .about--me .checks { grid-area: list; margin-top: 6px; }
  .about__photo { grid-area: art; width: 96px; justify-self: end; margin-top: 0; }
  .map { height: 88px; }
}
@media (max-width: 720px) {
  .hero__in { grid-template-columns: 1fr 150px; }
  .hero h1 { font-size: 20px; }
}

/* --- discreet admin entry (the "key") in the top bar --- */
.admin-key { text-decoration: none; font-size: 17px; line-height: 1; opacity: .6; flex: 0 0 auto; transition: opacity .15s, transform .15s; }
.admin-key:hover { opacity: 1; transform: rotate(-15deg); }
@media (max-width: 960px) { .topbar .btn { margin-left: auto; } .topbar .admin-key { margin-left: 0; } }
