/* J-GET tutor: синий, лаймовый акцент, крупные скругления. */

:root {
  --blue: #2f6bff;
  --blue-deep: #1d4fd8;
  --blue-soft: #e9f0ff;
  --blue-line: #c9d8ff;
  --lime: #c6f24e;
  --lime-deep: #b2e22f;
  --ink: #101a3a;
  --muted: #5d6885;
  --line: #e3e8f3;
  --bg: #f3f5fa;
  --card: #ffffff;
  --danger: #d6344b;
  --radius: 24px;
  --radius-small: 14px;
  --shadow: 0 10px 30px rgb(24 46 110 / 7%);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; }
h2 strong { font-weight: 800; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 104px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

.visually-hidden, .trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.page { flex: 1; padding-bottom: 72px; }
.view { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

.noscript { display: grid; gap: 14px; padding: 32px 0; }
.noscript a { color: var(--blue-deep); text-decoration: underline; }

/* Кнопки, чипы, ссылки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-quiet { background: var(--blue-soft); color: var(--blue-deep); }
.btn-quiet:hover { background: var(--blue-line); }
.btn-glass { background: rgb(255 255 255 / 16%); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%); }
.btn-glass:hover { background: rgb(255 255 255 / 26%); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b9263c; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-big { min-height: 56px; padding: 0 32px; font-size: 17px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.chip-lime { background: var(--lime); color: var(--ink); }
.chip-soft { background: var(--blue-soft); }

.link { color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--blue); }
.label { color: var(--muted); font-size: 13px; font-weight: 600; }

/* Шапка */

.site-header { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 8px 12px 8px 24px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; }
.logo-tag { padding: 2px 9px 3px; border-radius: 8px; background: var(--lime); font-size: 14px; letter-spacing: 0; transform: rotate(-4deg); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.header-side { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-phone { font-weight: 800; white-space: nowrap; }
.header-phone:hover { color: var(--blue); }
.header-link { padding: 0; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.header-link:hover { color: var(--blue-deep); }

/* Первый экран */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  margin-top: 8px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(170deg, #2a63f6 0%, #3f7bff 55%, #7aa6ff 100%);
  color: #fff;
}
.hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-wave path { fill: none; stroke: var(--lime); stroke-width: 54; stroke-linecap: round; opacity: 0.38; }
.hero-text { position: relative; display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.hero-mark {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 16px 6px;
  border-radius: 18px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-1.5deg);
}
.hero-text p { max-width: 520px; font-size: 18px; color: rgb(255 255 255 / 92%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-art:hover .art-btn, .hero-art:focus-visible .art-btn { background: var(--ink); }
.hero-art:hover .art-card { box-shadow: 0 36px 70px rgb(14 36 110 / 38%); }
.hero-art:focus-visible { outline: 3px solid var(--lime); outline-offset: 6px; border-radius: 28px; }
.art-btn { transition: background 0.2s; }
.art-card { transition: box-shadow 0.25s; }
.art-card {
  width: min(340px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 60px rgb(14 36 110 / 30%);
  transform: rotate(2.5deg);
}
.art-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.art-avatar { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(140deg, var(--blue), #8fb4ff); }
.art-lines { flex: 1; display: grid; gap: 8px; }
.art-lines i { height: 10px; border-radius: 6px; background: var(--blue-soft); }
.art-lines i:first-child { width: 70%; background: var(--blue-line); }
.art-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.art-week b { color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.art-week i { height: 24px; border-radius: 8px; border: 1.5px solid var(--blue-line); }
.art-week i[data-s="1"] { border-color: transparent; background: var(--blue-line); }
.art-week i[data-s="2"] { border-color: transparent; background: var(--lime); }
.art-btn {
  display: block;
  margin-top: 18px;
  padding: 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.art-chip { position: absolute; padding: 10px 18px; font-size: 14px; box-shadow: 0 12px 26px rgb(14 36 110 / 22%); }
.art-chip-1 { top: 6%; left: 0; transform: rotate(-6deg); }
.art-chip-2 { bottom: 8%; right: 0; transform: rotate(4deg); }
.art-chip-3 { top: 2%; right: 2%; transform: rotate(7deg); background: rgb(255 255 255 / 22%); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 60%); }

/* О центре */

.about, .steps, .exam, .cta { margin-top: clamp(56px, 8vw, 96px); }
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.about-lead { display: grid; gap: 20px; }
.about-lead p { color: var(--muted); font-size: 17px; }
.subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.feature h3 { font-size: 19px; font-weight: 800; }
.feature p { color: var(--muted); font-size: 15px; }
.feature-accent { background: var(--blue); color: #fff; }
.feature-accent p { color: rgb(255 255 255 / 88%); }

/* Диагностика */

.diag { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; }
.diag-intro {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 32px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.diag-intro::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 34px solid var(--lime);
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
}
.diag-intro h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.diag-intro p { position: relative; z-index: 1; max-width: 460px; color: rgb(255 255 255 / 82%); font-size: 17px; }
.diag-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.diag-facts li { padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 35%); font-size: 14px; font-weight: 700; }
.diag-intro .btn { position: relative; z-index: 1; margin-top: 6px; }
.diag-steps { display: grid; gap: 16px; }
.diag-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 20px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.diag-step:hover { transform: translateX(6px); box-shadow: 0 18px 40px rgb(24 46 110 / 14%); }
.diag-num { grid-row: span 2; color: var(--blue); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.diag-step h3 { font-size: 20px; font-weight: 800; }
.diag-step p { color: var(--muted); font-size: 15px; }
.signup-lead { color: var(--muted); }

/* Что входит в стоимость */

.included { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 24px; }
.included-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.included-head p { max-width: 440px; color: var(--muted); font-size: 16px; }
.included-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.included-item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.included-item:nth-child(2) { background: var(--lime); }
.included-item:nth-child(2) p { color: #2f3a12; }
.included-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(24 46 110 / 14%); }
.included-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue); }
.included-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.included-item:nth-child(2) .included-icon { background: var(--ink); }
.included-item h3 { font-size: 19px; font-weight: 800; }
.included-item p { color: var(--muted); font-size: 15px; }

.profile-included { width: 100%; margin-top: 4px; padding: 16px 18px; border-radius: var(--radius-small); background: var(--blue-soft); }
.profile-included-title { margin-bottom: 8px; font-weight: 800; }
.profile-included ul { display: grid; gap: 6px; }
.profile-included li { position: relative; padding-left: 22px; color: #2c3759; font-size: 14px; }
.profile-included li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* Шаги */

.steps h2 { margin-bottom: 28px; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lime); font-weight: 800; font-size: 18px; }
.step h3 { font-size: 19px; font-weight: 800; }
.step p { color: var(--muted); font-size: 15px; }

/* ОГЭ и ЕГЭ */

.exam { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.exam-label {
  position: sticky;
  top: 104px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
}
.exam-label h2 { font-size: 44px; font-weight: 800; }
.exam-label p { display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 800; }
#ege .exam-label { background: var(--ink); }

.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.tcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(24 46 110 / 14%); }
.tcard-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue-soft); }
.portrait { width: 100%; height: 100%; object-fit: cover; }
.portrait-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--blue-soft), var(--blue-line));
  color: var(--blue);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tcard-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.tcard h3 { font-size: 18px; font-weight: 800; }
.tcard-subject { color: var(--blue-deep); font-weight: 700; font-size: 15px; }
.tcard-next { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.tcard-btn { margin-top: auto; }
.tcard:hover .tcard-btn { background: var(--lime); color: var(--ink); }

.exam-empty { display: grid; gap: 12px; justify-items: start; align-content: center; padding: 32px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.exam-empty h3 { font-size: 22px; font-weight: 800; }
.exam-empty p { max-width: 520px; color: var(--muted); }

/* Призыв позвонить */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  background: linear-gradient(120deg, #2a63f6, #5a8dff);
  color: #fff;
}
.cta h2 { font-weight: 800; margin-bottom: 8px; }
.cta p { max-width: 560px; color: rgb(255 255 255 / 90%); }
.cta .btn { min-height: 56px; font-size: 18px; }

/* Подвал */

.site-footer { padding: 36px 0 40px; background: var(--ink); color: rgb(255 255 255 / 72%); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.site-footer .logo { color: #fff; margin-bottom: 8px; }
.site-footer .logo-tag { color: var(--ink); }
.footer-phone { display: block; margin-bottom: 4px; color: #fff; font-size: 22px; font-weight: 800; }
.footer-phone:hover { color: var(--lime); }
.footer-contact p { max-width: 300px; }
.footer-links { display: flex; gap: 16px; margin-top: 8px; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--lime); }
.footer-teach { text-decoration: underline; text-underline-offset: 3px; }
.footer-teach:hover { color: #fff; }

/* Страница преподавателя */

.back { display: inline-block; margin: 12px 0 20px; color: var(--muted); font-weight: 700; }
.back:hover { color: var(--blue-deep); }

.profile { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; }
.profile-photo { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--blue-soft); box-shadow: var(--shadow); }
.profile-info { display: grid; gap: 14px; align-content: start; justify-items: start; padding: clamp(24px, 3.5vw, 40px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.profile-info h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.profile-subject { color: var(--blue-deep); font-size: 20px; font-weight: 700; }
.profile-bio { max-width: 640px; color: #2c3759; font-size: 17px; white-space: pre-line; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.facts dd { font-weight: 700; }

.schedule, .signup { margin-top: 20px; padding: clamp(20px, 3.5vw, 40px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.schedule-top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.schedule h2, .signup h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.schedule-note { margin-top: 6px; color: var(--muted); font-size: 14px; }
.week-nav { display: flex; align-items: center; gap: 12px; font-weight: 700; white-space: nowrap; }
.round { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); font-size: 18px; font-weight: 800; }
.round:hover:not(:disabled) { background: var(--blue); color: #fff; }
.round:disabled { opacity: 0.4; cursor: default; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { display: grid; justify-items: center; gap: 2px; padding: 8px 0 10px; border-radius: var(--radius-small); color: var(--muted); font-size: 13px; }
.week-day b { font-weight: 700; }
.week-day span { color: var(--ink); font-size: 18px; font-weight: 800; }
.week-day.is-today { background: var(--blue-soft); }
.week-empty { grid-column: 1 / -1; padding: 28px 16px; border-radius: var(--radius-small); background: var(--bg); color: var(--muted); text-align: center; }
.cell {
  display: grid;
  place-items: center;
  height: 48px;
  min-width: 0;
  padding: 0;
  border-radius: var(--radius-small);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cell-none { border: 1.5px dashed var(--line); }
.cell-free { border: 2px solid var(--blue); background: #fff; color: var(--blue-deep); transition: background 0.15s, transform 0.15s; }
.cell-free:hover { background: var(--blue-soft); transform: translateY(-1px); }
.cell-free[aria-pressed="true"] { border-color: var(--lime-deep); background: var(--lime); color: var(--ink); }
.cell-taken {
  background: repeating-linear-gradient(135deg, #d5dcec 0 6px, #c3ccdf 6px 12px);
  color: rgb(16 26 58 / 45%);
  text-decoration: line-through;
}
.week-day.is-over { color: #b3bccf; }
.week-day.is-over span { color: #b3bccf; }
.cell-none.is-over { border-color: #e8ecf3; background: #f6f7fb; }
.cell-past { background: #eef1f6; color: #b3bccf; font-weight: 600; cursor: not-allowed; }
.swatch-past { background: #eef1f6; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 22px; height: 22px; border-radius: 7px; }
.swatch-free { border: 2px solid var(--blue); }
.swatch-taken { background: repeating-linear-gradient(135deg, #d5dcec 0 5px, #c3ccdf 5px 10px); }
.swatch-picked { background: var(--lime); border: 2px solid var(--lime-deep); }

.signup-form { max-width: 720px; }
.signup-when { padding: 14px 18px; border-radius: var(--radius-small); background: var(--lime); font-size: 16px; }
.signup-when.is-empty { background: var(--bg); color: var(--muted); }
.signup-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.signup-call { color: var(--muted); }
.optional { color: var(--muted); font-weight: 500; font-size: 13px; }
.signup-done { display: grid; gap: 12px; justify-items: start; max-width: 640px; }
.message { margin: 0; padding: 16px 18px; border-left: 4px solid var(--blue); border-radius: var(--radius-small); background: var(--bg); white-space: pre-line; user-select: all; }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-telegram { background: #2aabee; }
.btn-telegram:hover { background: #1c93d2; }
.btn-max { background: var(--ink); }
.btn-max:hover { background: #26335e; }
.copy-note { color: var(--muted); font-size: 14px; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--lime); font-size: 26px; font-weight: 800; }

/* Формы */

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field-title { font-weight: 700; font-size: 14px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder { color: #9aa3ba; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(47 107 255 / 15%); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field-hint { color: var(--muted); font-size: 13px; }
.field-error, .form-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.form-error { padding: 12px 16px; border-radius: var(--radius-small); background: #fdecef; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 14px; color: #2c3759; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.form-foot { display: flex; align-items: center; gap: 16px; }

/* Вход и короткие страницы */

.auth, .notice {
  display: grid;
  gap: 16px;
  width: min(480px, 100% - 32px);
  margin: 40px auto 0;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.notice { justify-items: start; }
.auth h1, .notice h1 { font-size: 30px; font-weight: 800; }
.auth-note, .notice p { color: var(--muted); }
.auth-switch { color: var(--muted); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Кабинет преподавателя */

.cab-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 20px 0; }
.cab-title { display: flex; align-items: center; gap: 16px; }
.cab-title h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.cab-title p { color: var(--muted); }
.cab-photo { flex: none; width: 64px; height: 80px; border-radius: 16px; overflow: hidden; }
.cab-photo .portrait-empty { font-size: 20px; }
.status { font-weight: 700; color: var(--muted); }
.status.is-on { color: #3d7a00; }

.tabs { display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 20px; max-width: 100%; }
.tabs a { padding: 9px 20px; border-radius: 999px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tabs a:hover { color: var(--blue-deep); }
.tabs a[aria-current="page"] { background: var(--blue); color: #fff; }
.tab-summary { margin-bottom: 16px; color: var(--muted); font-weight: 600; }

.empty { display: grid; gap: 12px; justify-items: start; padding: 32px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.empty h2 { font-size: 24px; font-weight: 800; }
.empty p { color: var(--muted); max-width: 520px; }

.bookings { display: grid; gap: 12px; }
.booking {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) minmax(96px, auto);
  gap: 8px 20px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.booking-initials { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--blue-soft); color: var(--blue-deep); font-weight: 800; }
.booking-when { display: grid; }
.booking-when strong { font-weight: 800; }
.booking-when span { color: var(--muted); font-variant-numeric: tabular-nums; }
.booking-name { font-weight: 800; }
.booking-comment { margin-top: 2px; color: var(--muted); font-size: 14px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.booking-note, .booking > .form-error { grid-column: 1 / -1; }
.booking-note { color: var(--muted); font-size: 14px; }
.is-past { margin-top: 32px; opacity: 0.7; }
.section-label { margin-bottom: 12px; font-size: 18px; font-weight: 800; }

.schedule-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { padding: clamp(18px, 3vw, 28px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.schedule-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }
.panel h2 { font-size: 24px; font-weight: 800; }
.panel-note { margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.panel-error { margin-top: 12px; }

.plate { display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); gap: 5px; align-items: center; }
.plate-day { color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; text-transform: capitalize; }
.plate-hour { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.well { height: 30px; padding: 0; border: 1.5px solid var(--blue-line); border-radius: 9px; background: #fff; transition: background 0.12s; }
.well:hover { background: var(--blue-soft); }
.well[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); }

.calendar { display: grid; gap: 8px; }
.calendar .label { text-transform: capitalize; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekdays span { color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; text-transform: capitalize; }
.day {
  display: grid;
  place-items: center;
  align-content: center;
  height: 46px;
  min-width: 0;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--bg);
  font-weight: 700;
  line-height: 1.1;
}
.day small { color: var(--muted); font-size: 10px; font-weight: 600; }
.day[data-level="1"] { background: #dfe9ff; }
.day[data-level="2"] { background: #c4d6ff; }
.day[data-level="3"] { background: #a5c0ff; }
.day:hover { border-color: var(--blue); }
.day[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.day[aria-pressed="true"] small { color: rgb(255 255 255 / 80%); }

.schedule-day { margin-top: 20px; }
.schedule-day h3 { margin-bottom: 12px; font-size: 17px; font-weight: 800; }
.schedule-day h3::first-letter { text-transform: uppercase; }
.no-times { color: var(--muted); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 4px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--blue-deep);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.time small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.time:hover:not(:disabled) { background: var(--blue-soft); }
.time.is-closed { border: 2px dashed var(--line); background: var(--bg); color: var(--muted); }
.time.is-mine { border-color: var(--lime-deep); background: var(--lime); color: var(--ink); cursor: default; }

.profile-edit { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.profile-form { padding: clamp(18px, 3vw, 32px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.photo-field { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; }
.photo-field > div:last-child { display: grid; gap: 8px; justify-items: start; }
.photo-current { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; }
.photo-current .portrait-empty { font-size: 28px; }
.photo-button { position: relative; overflow: hidden; cursor: pointer; }
.photo-button:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.preview { position: sticky; top: 104px; display: grid; gap: 10px; }

/* Анимации */

.reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(0.98); } }

.hero-text > * { animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-mark { animation: mark 0.6s 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
@keyframes mark { from { opacity: 0; transform: rotate(-6deg) scale(0.8); } }

.hero-wave path { stroke-dasharray: 1; animation: draw 1.8s 0.2s ease-out backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.hero-art { animation: reveal 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.art-card { animation: float-card 7s ease-in-out infinite; }
@keyframes float-card { 50% { transform: rotate(1deg) translateY(-12px); } }
.art-chip { animation: float-chip 5s ease-in-out infinite; }
.art-chip-2 { animation-delay: -1.7s; }
.art-chip-3 { animation-delay: -3.2s; }
@keyframes float-chip { 50% { translate: 0 -9px; } }
.art-week i[data-s="2"] { animation: pick 2.6s ease-in-out infinite; }
@keyframes pick { 50% { transform: scale(1.18); box-shadow: 0 0 0 5px rgb(198 242 78 / 35%); } }

.feature, .step { transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover, .step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(24 46 110 / 14%); }
.step-num { transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.step:hover .step-num { transform: rotate(-8deg) scale(1.12); }
.tcard .portrait { transition: transform 0.4s; }
.tcard:hover .portrait { transform: scale(1.05); }
.chip-soft { transition: background 0.15s, transform 0.15s; }
.subjects .chip-soft:hover { background: var(--lime); transform: translateY(-2px); }
.cell-free[aria-pressed="true"] { animation: pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { from { transform: scale(0.85); } }
.done-mark { animation: pop 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
.cta .btn { animation: nudge 3.2s ease-in-out infinite; }
@keyframes nudge { 0%, 80%, 100% { transform: none; } 88% { transform: scale(1.05); } 94% { transform: scale(0.99); } }

/* Админка */

.admin-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.btn-ghost { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #f3c2ca; }
.btn-ghost:hover { background: #fdecef; }
.badge { display: inline-flex; align-items: center; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-new { background: #fff1d6; color: #8a5a00; }
.badge-ok { background: #e6f7cf; color: #3d6b00; }
.badge-muted { background: var(--bg); color: var(--muted); }

.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-bar .tab-summary { margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); font-weight: 700; font-size: 14px; }
.seg button:hover { color: var(--blue-deep); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; }

.req-list { display: grid; gap: 12px; }
.req {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 12px 24px;
  align-items: start;
  padding: 20px 22px;
  border-left: 5px solid #f5b83d;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.req.is-confirmed { border-left-color: var(--lime-deep); }
.req.is-past { border-left-color: var(--line); opacity: 0.8; }
.req-when { display: grid; gap: 2px; }
.req-when strong { font-weight: 800; }
.req-when strong::first-letter { text-transform: uppercase; }
.req-when span:not(.badge) { color: var(--muted); font-variant-numeric: tabular-nums; }
.req-when .badge { margin-top: 6px; }
.req-teacher { display: grid; gap: 2px; }
.req-teacher span { color: var(--muted); font-size: 14px; }
.req-client { display: grid; gap: 2px; justify-items: start; }
.req-comment { color: #2c3759; font-size: 14px; }
.req-meta { color: var(--muted); font-size: 12px; }
.req-actions { display: grid; gap: 8px; justify-items: end; }
.req-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.req-confirm { display: grid; gap: 10px; justify-items: end; max-width: 420px; text-align: right; }
.req-confirm p:first-child { font-weight: 700; }
.req-hint { color: var(--muted); font-size: 13px; }

.admin-teachers { display: grid; gap: 12px; }
.at {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.at-photo { width: 64px; height: 80px; border-radius: 16px; overflow: hidden; }
.at-photo .portrait-empty { font-size: 20px; }
.at-info { display: grid; gap: 2px; }
.at-name { font-size: 18px; font-weight: 800; }
.at-name:hover { color: var(--blue-deep); }
.at-info span { color: var(--muted); font-size: 14px; }
.at-email { word-break: break-all; }
.at-stats { display: grid; gap: 4px; justify-items: start; color: var(--muted); font-size: 14px; }
.at-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.at-error { grid-column: 1 / -1; }

.admin-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.admin-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.admin-head p { color: var(--muted); }
.cell-admin { border: 2px solid transparent; transition: transform 0.15s; }
.cell-admin:hover { transform: translateY(-1px); }
.cell-free.cell-admin { border-color: var(--blue); }
.cell-new { background: #ffe2a3; color: #6b4500; }
.cell-ok { background: var(--lime); color: var(--ink); }
.cell-closed { border: 2px dashed #c9d1e3 !important; background: var(--bg); color: #9aa3ba; }
.cell-admin[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.swatch-new { background: #ffe2a3; }
.swatch-ok { background: var(--lime); }
.swatch-closed { border: 2px dashed #c9d1e3; }
.slot-panel:not(:empty) { display: grid; gap: 12px; justify-items: start; margin-top: 20px; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.slot-panel h3 { font-size: 20px; font-weight: 800; }
.slot-panel h3::first-letter { text-transform: uppercase; }
.slot-panel .req-actions, .slot-panel .req-buttons, .slot-panel .req-confirm { justify-items: start; justify-content: flex-start; text-align: left; }
.manual-form { width: 100%; max-width: 620px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.manual-form h4 { font-size: 16px; font-weight: 800; margin: 0; }
.booking-who .badge { margin-left: 6px; }

@media (max-width: 960px) {
  .req { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .req-actions { grid-column: 1 / -1; justify-items: start; }
  .req-buttons { justify-content: flex-start; }
  .req-confirm { justify-items: start; text-align: left; }
  .at { grid-template-columns: 64px minmax(0, 1fr); }
  .at-stats { grid-column: 2; }
  .at-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .req { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; padding: 0 12px; }
  .at { padding: 14px; }
  .at-actions .btn { flex: 1; }
  .header-cabinet { display: none; }
}

/* Узкие экраны */

@media (max-width: 960px) {
  .nav { display: none; }
  .hero, .about, .schedule-grid, .profile-edit { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 340px; }
  .steps-list, .included-list { grid-template-columns: minmax(0, 1fr); }
  .diag { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; max-width: 260px; }
}

@media (max-width: 720px) {
  [id] { scroll-margin-top: 88px; }
  .header-bar { min-height: 56px; padding: 6px 8px 6px 16px; gap: 10px; }
  .logo { font-size: 18px; }
  .header-side { gap: 10px; }
  .header-phone { font-size: 0; }
  .header-phone::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4fd8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / 20px no-repeat;
  }
  .hero { border-radius: 28px; }
  .hero-text p { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  /* На телефоне карточка меньше, а плашки вынесены за её края, чтобы не закрывать кнопку. */
  .hero-art { min-height: 0; padding: 30px 0 42px; }
  .art-card { width: min(300px, 100%); padding: 16px; border-radius: 22px; }
  .art-head { gap: 10px; margin-bottom: 12px; }
  .art-avatar { width: 40px; height: 40px; border-radius: 13px; }
  .art-lines i { height: 8px; }
  .art-week { gap: 5px; }
  .art-week b { font-size: 10px; }
  .art-week i { height: 20px; border-radius: 7px; }
  .art-btn { margin-top: 12px; padding: 10px; font-size: 13px; }
  .art-chip { padding: 7px 12px; font-size: 12px; }
  .art-chip-1 { top: 0; left: 0; }
  .art-chip-2 { bottom: 0; right: 2%; }
  .art-chip-3 { top: 4px; right: 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .exam { grid-template-columns: minmax(0, 1fr); }
  .exam-label { position: static; flex-direction: row; align-items: center; min-height: 0; padding: 16px 20px; }
  .exam-label h2 { font-size: 32px; }
  .exam-label p { align-self: center; }
  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tcard-body { padding: 12px 12px 14px; }
  .tcard h3 { font-size: 16px; }
  .tcard-btn { width: 100%; }
  .cta .btn { width: 100%; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile-photo { max-width: 240px; }
  .week { gap: 4px; }
  .cell { height: 44px; border-radius: 10px; font-size: 12px; }
  .cell-free { border-width: 1.5px; }
  .week-day span { font-size: 16px; }
  .week-nav { width: 100%; justify-content: space-between; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .signup-foot .btn, .messengers .btn { width: 100%; }
  .btn-big { padding: 10px 20px; white-space: normal; text-align: center; line-height: 1.25; }
  .booking { grid-template-columns: auto minmax(0, 1fr); }
  .booking-who, .booking-actions { grid-column: 1 / -1; }
  .booking-actions { justify-content: flex-start; }
  .plate { grid-template-columns: 38px repeat(7, minmax(0, 1fr)); gap: 3px; }
  .tabs a { padding: 9px 14px; }
}

/* Маленькие телефоны */

@media (max-width: 400px) {
  .wrap { width: calc(100% - 24px); }
  .header-bar { padding: 6px 6px 6px 14px; gap: 6px; }
  .logo { font-size: 16px; gap: 4px; }
  .logo-tag { padding: 1px 7px 2px; font-size: 12px; }
  .header-side { gap: 6px; }
  .header-side .btn-small { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .hero { padding: 24px 18px; border-radius: 24px; }
  .hero h1 { font-size: 30px; }
  .hero-mark { padding: 2px 10px 5px; border-radius: 14px; }
  .art-chip { padding: 8px 12px; font-size: 12px; }
  .feature, .step, .exam-empty, .empty, .diag-step, .included-item { padding: 20px; }
  .diag-intro { padding: 24px 20px; border-radius: 24px; }
  .diag-num { font-size: 32px; }
  .diag-step { column-gap: 14px; }
  .tcards { gap: 8px; }
  .tcard-body { padding: 10px 10px 12px; }
  .tcard h3 { font-size: 15px; }
  .tcard-subject { font-size: 13px; }
  .tcard-next { font-size: 12px; }
  .tcard-btn { padding: 0 8px; }
  .profile-info, .signup { padding: 20px 16px; border-radius: 22px; }
  /* Сетке недели нужна вся ширина экрана, иначе время не помещается в окошко. */
  .schedule { margin-inline: -6px; padding: 18px 8px; border-radius: 22px; }
  .schedule-top, .legend { padding-inline: 8px; }
  .week { gap: 3px; }
  .cell { border-radius: 9px; font-size: 11.5px; letter-spacing: -0.02em; }
  .week-day { font-size: 12px; }
  .panel, .profile-form { padding: 16px 12px; border-radius: 22px; }
  .plate { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); gap: 2px; }
  .plate-hour { font-size: 11px; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; padding: 9px 6px; font-size: 14px; text-align: center; }
  .photo-field { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
}

/* Сенсорные экраны: крупнее зоны нажатия, без «залипающих» эффектов наведения */

a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (max-width: 720px) {
  .logo { min-height: 40px; }
  .site-footer .wrap { flex-direction: column; gap: 20px; }
  .footer-phone { padding: 6px 0; font-size: 24px; }
  .footer-links { gap: 10px; }
  .footer-links a, .footer-teach { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links a { padding: 0 16px; border-radius: 999px; background: rgb(255 255 255 / 12%); text-decoration: none; }
  .back { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 8px; }
  .legend { gap: 8px 16px; font-size: 13px; }
  .signup-call .link, .booking-who .link { display: inline-block; padding: 8px 0; }
  .messengers { flex-direction: column; }
}

@media (hover: none) {
  .tcard:hover, .feature:hover, .step:hover, .diag-step:hover, .included-item:hover, .btn:hover, .cell-free:hover { transform: none; }
  .tcard:hover { box-shadow: var(--shadow); }
  .tcard:hover .portrait, .step:hover .step-num { transform: none; }
  .tcard:hover .tcard-btn { background: var(--blue); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
