/* ================================
   МАСТЕР — Автошкола Тюмень
   CLEAN CSS — без дубликатов
   ================================ */

:root {
  --ink: #111817;
  --paper: #f2f0e8;
  --acid: #d9ff43;
  --orange: #ff6936;
  --line: rgba(17,24,23,.16);
  --muted: #626964;
  --white: #ffffff;
  --radius: 16px;
  --radius-pill: 100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; line-height: 1.5; -webkit-font-smoothing: antialiased; }

p, h1, h2, h3, span, b, li { -webkit-user-select: none; user-select: none; }
input, textarea { user-select: text !important; -webkit-user-select: text !important; }
img { -webkit-user-drag: none; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1420px, calc(100% - 48px)); margin: auto; }

/* ═══ HEADER ═══ */
header {
  height: 86px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--ink);
  z-index: 100;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 900;
  letter-spacing: -1px;
  font-size: 24px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 22px;
  transform: rotate(-10deg);
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

nav a {
  opacity: .85;
  transition: .15s;
  white-space: nowrap;
}

nav a:hover {
  opacity: 1;
  color: var(--acid);
}

.nav-svedeniya {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-pill);
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-svedeniya:after {
  content: "▾";
  font-size: 10px;
}

.nav-svedeniya:hover {
  border-color: var(--acid);
  background: rgba(255,255,255,.06);
}

.call {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-pill);
  transition: .15s;
}

.call:hover {
  background: white;
  color: var(--ink);
}

.login-icon, .login-btn {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .2s;
  background: rgba(0,0,0,.2);
  white-space: nowrap;
}

.login-icon:hover, .login-btn:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.login-btn {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

/* ═══ HERO ═══ */
.hero {
  min-height: calc(100vh - 86px);
  position: relative;
  background: #111 url('../img/hero.jpg') center/cover no-repeat;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,12,11,.87) 0%, rgba(4,12,11,.46) 47%, rgba(4,12,11,.2)),
              linear-gradient(0deg, rgba(4,12,11,.6), transparent 55%);
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  padding: 80px 0 65px;
}

.eyebrow {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 21px;
}

.hero h1 {
  font-size: clamp(62px, 10.5vw, 164px);
  line-height: .78;
  letter-spacing: -.075em;
  margin: 0 0 40px;
  max-width: 1120px;
  text-transform: uppercase;
}

.hero h1 .stroke {
  display: block;
  margin-left: 16%;
  color: transparent;
  -webkit-text-stroke: 2px white;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy {
  max-width: 440px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
}

.hero-action {
  background: var(--acid);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 20px 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  gap: 30px;
  align-items: center;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}

.hero-action:hover {
  background: white;
  transform: translateY(-4px);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: .35s;
  background-image: linear-gradient(rgba(217,255,67,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(217,255,67,.16) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

.hero:hover .map-grid {
  opacity: 1;
}

.coords {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 8;
  transform: translate(18px, 18px);
  padding: 10px 13px;
  background: rgba(10,16,15,.88);
  border: 1px solid rgba(217,255,67,.7);
  backdrop-filter: blur(8px);
  font: 11px/1.45 monospace;
  letter-spacing: .06em;
  color: var(--acid);
  white-space: nowrap;
}

.cross-x, .cross-y {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  background: rgba(217,255,67,.65);
  display: none;
}

.cross-x {
  height: 1px;
  width: 100%;
  left: 0;
}

.cross-y {
  width: 1px;
  height: 100%;
  top: 0;
}

.map-tag {
  position: absolute;
  right: 34px;
  top: 112px;
  font: 11px monospace;
  letter-spacing: .12em;
  color: var(--acid);
  border: 1px solid rgba(217,255,67,.4);
  padding: 9px 12px;
  background: rgba(0,0,0,.25);
  z-index: 2;
}

/* ═══ TICKER ═══ */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--acid);
  padding: 15px 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker div {
  display: inline-block;
  animation: move 22s linear infinite;
}

@keyframes move {
  to { transform: translateX(-50%); }
}

/* ═══ SECTIONS ═══ */
section { padding: 110px 0; }

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 60px;
}

.kicker {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  font-size: clamp(42px, 6vw, 88px);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 0;
  max-width: 850px;
  text-transform: uppercase;
}

/* ═══ PROGRAM CARDS ═══ */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  min-height: 420px;
  border: 1px solid var(--line);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: .3s;
  background: rgba(255,255,255,.22);
}

.card:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--ink);
  transition: .35s;
  z-index: -1;
}

.card:hover {
  color: white;
  transform: translateY(-8px);
}

.card:hover:before {
  height: 100%;
}

.card.active {
  background: var(--orange);
  border-color: var(--orange);
}

.num {
  font: 12px monospace;
  opacity: .65;
}

.letter {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.1em;
}

.card h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.card p {
  font-size: 14px;
  line-height: 1.5;
  opacity: .7;
  margin: 0;
}

.round {
  position: absolute;
  right: 24px;
  top: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ═══ FEATURES ═══ */
.features {
  background: var(--ink);
  color: white;
}

.features .section-top {
  border-color: rgba(255,255,255,.18);
}

.features .kicker {
  color: var(--acid);
}

.feat-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
}

.feat {
  background: var(--ink);
  padding: 38px;
  min-height: 250px;
}

.feat b {
  font-size: 58px;
  letter-spacing: -.05em;
  color: var(--acid);
}

.feat h3 {
  font-size: 22px;
  margin: 35px 0 10px;
}

.feat p {
  color: #aeb4b0;
  line-height: 1.6;
  margin: 0;
}

.feat:first-child {
  background: var(--acid);
  color: var(--ink);
}

.feat:first-child b {
  color: var(--ink);
}

.feat:first-child p {
  color: #46503f;
}

/* Отзывы на тёмном фоне */
.on-dark .feat h3 {
  color: white;
}

.on-dark .feat p {
  color: #aeb4b0;
}

.on-dark .feat .author {
  color: var(--acid);
}

.on-dark .feat:first-child h3 {
  color: var(--ink);
}

.on-dark .feat:first-child p {
  color: #46503f;
}

.on-dark .feat:first-child .author {
  color: var(--ink);
}

/* ═══ CTA ═══ */
.cta { padding: 90px 0; }

.cta-box {
  background: var(--orange);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: end;
  gap: 30px;
  border-radius: var(--radius);
}

.cta-box p {
  font-size: 18px;
  max-width: 530px;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form input {
  padding: 18px 20px;
  border: 1px solid rgba(0,0,0,.25);
  background: transparent;
  font-size: 16px;
  outline: none;
  border-radius: 12px;
}

.form input::placeholder {
  color: #38281f;
}

.form button {
  padding: 19px;
  background: var(--ink);
  color: white;
  border: 0;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-pill);
}

.form button:hover {
  background: var(--acid);
  color: var(--ink);
}

/* ═══ FOOTER ═══ */
footer { padding: 35px 0; }

.foot {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══ MEGA MENU ═══ */
.mega {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: white;
  display: none;
  flex-direction: column;
  padding: 30px 0;
  overflow: auto;
}

.mega.open {
  display: flex;
}

.mega-top {
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
}

.mega-left .eyebrow {
  margin-bottom: 12px;
}

.mega-left h2 {
  color: white;
  font-size: clamp(36px, 5vw, 72px);
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.15);
}

.mega-link {
  background: var(--ink);
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: .2s;
  min-height: 140px;
}

.mega-link:hover {
  background: white;
  color: var(--ink);
  transform: translateY(-2px);
}

.mega-link:hover .ml-num {
  color: var(--orange);
}

.ml-num {
  font: 11px monospace;
  letter-spacing: .1em;
  color: var(--acid);
  display: block;
  margin-bottom: 12px;
}

.mega-link h4 {
  margin: 0 0 8px;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.mega-link p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: .6;
}

.mega-link .arrow {
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.close-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.close-btn:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

/* ═══ SVEDENIYA PAGE ═══ */
.page-head {
  padding: 60px 0 30px;
  background: var(--ink);
  color: white;
}

.page-head h1 {
  font-size: clamp(36px, 6vw, 84px);
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
  margin: 0;
  max-width: 900px;
}

.page-head h1 span {
  color: var(--acid);
}

.page-head .sub {
  color: #aeb4b0;
  max-width: 600px;
  line-height: 1.6;
  margin-top: 20px;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  align-items: start;
  border-top: 1px solid var(--line);
}

.side {
  position: sticky;
  top: 86px;
  background: white;
  border-right: 1px solid var(--line);
  height: calc(100vh - 86px);
  overflow: auto;
  padding: 24px 18px;
}

.side h4 {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.side a {
  display: block;
  padding: 12px 14px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: .15s;
}

.side a:hover {
  border-color: var(--line);
  background: rgba(0,0,0,.03);
}

.side a.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.side a.active span {
  color: var(--acid);
}

.side a span {
  font: 10px monospace;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.content { padding: 0; }

.block {
  padding: 56px 48px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.block:nth-child(even) {
  background: #fdfcf8;
}

.block .kicker:before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.block h2 {
  font-size: 36px;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin: 0 0 24px;
  line-height: .95;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.card-mini {
  border: 1px solid var(--line);
  padding: 20px;
  background: white;
  border-radius: 12px;
}

.card-mini h3 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
}

.card-mini p, .card-mini li {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.card-mini ul {
  padding-left: 16px;
  margin: 8px 0 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  margin-top: 16px;
  background: white;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  padding: 12px;
  background: var(--ink);
  color: white;
  text-align: left;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:hover td {
  background: rgba(217,255,67,.1);
}

.badge {
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
}

.ok { background: var(--acid); }
.dark { background: var(--ink); color: white; }
.orang { background: var(--orange); color: white; }

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.doc {
  border: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  font-size: 13px;
  transition: .15s;
  border-radius: 12px;
}

.doc:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.doc small {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.notice {
  padding: 12px 18px;
  background: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 16px;
  border-radius: var(--radius-pill);
}

/* ═══ TEACHERS ═══ */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.teacher-card {
  background: white;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: .3s;
}

.teacher-card:hover {
  background: #fdfcf8;
}

.teacher-card.dragging {
  opacity: 0.4;
  transform: rotate(1deg) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  z-index: 10;
}

.teacher-card.drag-over {
  background: rgba(217, 255, 67, .1);
  outline: 2px solid var(--acid);
  outline-offset: -2px;
}

.teacher-photo {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.teacher-photo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--line);
  transition: .3s;
}

.teacher-card:hover .teacher-photo img {
  border-color: var(--acid);
}

.teacher-info {
  flex: 1;
  min-width: 0;
}

.teacher-info b {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.teacher-info p {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

.teacher-drag-handle {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 16px;
  cursor: grab;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: .2s;
  z-index: 5;
  padding: 0;
}

.teacher-drag-handle:hover {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
  transform: scale(1.1);
}

.teacher-drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.teacher-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: .2s;
  z-index: 5;
  padding: 0;
}

.teacher-delete:hover {
  background: #ff3b3b;
  color: white;
  border-color: #ff3b3b;
  transform: scale(1.1);
}

.teacher-add {
  border: none;
  background: white;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: .3s;
  min-height: 96px;
}

.teacher-add:hover {
  background: rgba(217, 255, 67, .1);
  color: var(--ink);
}

.teacher-add .plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed currentColor;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 300;
  transition: .3s;
}

.teacher-add:hover .plus {
  background: var(--acid);
  border-color: var(--acid);
  border-style: solid;
  color: var(--ink);
  transform: rotate(90deg);
}

/* ═══ FAQ ═══ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  position: relative;
  transition: .3s;
  overflow: visible;
}

.faq-item:hover {
  border-color: var(--ink);
}

.faq-item[open] {
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.faq-item.dragging {
  opacity: 0.4;
  transform: rotate(0.5deg) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  z-index: 10;
}

.faq-item.drag-over {
  border-color: var(--acid);
  background: rgba(217, 255, 67, .05);
  outline: 2px solid var(--acid);
  outline-offset: -2px;
}

.faq-question {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  padding: 20px 60px 20px 44px;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.3;
  transition: .2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: '+';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: .3s;
  width: 20px;
  text-align: center;
}

.faq-item[open] .faq-question::before {
  content: '−';
  color: var(--ink);
}

.faq-question:hover {
  color: var(--ink);
}

.faq-answer {
  padding: 0 24px 20px 44px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 16px;
}

.faq-answer p {
  margin: 0;
}

.faq-drag-handle {
  position: absolute;
  top: 18px;
  right: 36px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 16px;
  cursor: grab;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: .2s;
  z-index: 5;
  padding: 0;
}

.faq-drag-handle:hover {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
  transform: scale(1.1);
}

.faq-drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.faq-delete {
  position: absolute;
  top: 18px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: .2s;
  z-index: 5;
  padding: 0;
}

.faq-delete:hover {
  background: #ff3b3b;
  color: white;
  border-color: #ff3b3b;
  transform: scale(1.1);
}

.faq-add {
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: .3s;
}

.faq-add:hover {
  border-color: var(--acid);
  color: var(--ink);
  background: rgba(217, 255, 67, .05);
}

.faq-add .plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 300;
  transition: .3s;
}

.faq-add:hover .plus {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
  transform: rotate(90deg);
}

/* ═══ MEDIA CARDS ═══ */
.media-card .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: .3s;
}

.media-card:hover .thumb img {
  transform: scale(1.05);
}

.media-card .thumb .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--acid);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  z-index: 2;
}

[data-image] img {
  object-fit: cover;
  object-position: center;
}

/* ═══ LOGIN PAGE ═══ */
.login-page {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: var(--paper);
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.login-card .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-card .field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.login-card input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #eceae3;
  font-size: 15px;
}

.login-card .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.login-card .consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.login-card button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 100px;
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: .2s;
}

.login-card button[type="submit"]:hover {
  background: var(--acid);
  color: var(--ink);
}

.login-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ═══ UTILS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: .2s;
  border: 1px solid transparent;
}

.btn-acid {
  background: var(--acid);
  color: var(--ink);
}

.btn-acid:hover {
  background: white;
}

.btn-dark {
  background: var(--ink);
  color: white;
}

.btn-dark:hover {
  background: var(--acid);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
}

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.alert-ok {
  background: var(--acid);
  color: var(--ink);
}

.alert-err {
  background: #ff3b3b;
  color: white;
}

.input {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  width: 100%;
}

.admin-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: .08em;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.15);
}

.admin-bar a {
  color: var(--acid);
}

.tb-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .15s;
}

.tb-btn:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

[data-editable]:focus {
  outline: 2px solid var(--acid);
  background: rgba(217,255,67,.08);
}

[data-image] {
  overflow: hidden;
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shim 1.2s infinite;
}

@keyframes shim {
  to { background-position: -200% 0; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  nav { gap: 16px; }
  .call { display: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-links { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .grid2 { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .teacher-grid { grid-template-columns: 1fr 1fr; }
  .block { padding: 36px 20px; }
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 28px, 1420px); }
  nav { display: none; }
  .menu-btn { display: block; }
  .hero { min-height: calc(100vh - 86px); }
  .hero h1 { font-size: clamp(48px, 12vw, 100px); }
  .hero h1 .stroke { margin-left: 0; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .map-tag { right: 14px; top: 100px; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 35px; }
  .section-top { display: block; }
  .section-top .kicker { margin-bottom: 25px; }
}

@media (max-width: 600px) {
  .teacher-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(42px, 14vw, 70px); }
  .hero-copy { font-size: 15px; }
  .hero-inner { padding: 60px 0 50px; }
  .program-grid { grid-template-columns: 1fr; }
  .card { min-height: 300px; }
  .letter { font-size: 90px; }
  section { padding: 75px 0; }
  .cta-box { padding: 25px; }
  .foot { gap: 20px; flex-wrap: wrap; }
  .map-grid, .coords, .cross-x, .cross-y { display: none !important; }
  .faq-question { font-size: 15px; padding: 16px 50px 16px 38px; }
  .faq-answer { font-size: 13px; padding: 0 16px 16px 38px; }
  .faq-drag-handle { top: 14px; right: 30px; }
  .faq-delete { top: 14px; right: 4px; }
}

/* ═══ HERO ПОЗИЦИОНИРОВАНИЕ ═══ */
.hero .wrap {
    padding: 0 60px;
}

.hero h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    text-align: left;
    padding-left: 5%;
}

.hero-bottom {
    padding: 0 40px;
}

.hero-copy {
    padding-left: 20px;
}

.hero-action {
    margin-right: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero .wrap {
        padding: 0 24px;
    }
    
    .hero h1 {
        padding-left: 0;
        margin-left: 0;
    }
    
    .hero-bottom {
        padding: 0 16px;
    }
    
    .hero-copy {
        padding-left: 0;
    }
    
    .hero-action {
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .hero .wrap {
        padding: 0 16px;
    }
    
    .hero-bottom {
        padding: 0 12px;
    }
}