/* Главная и страница учителя: обычные прокручиваемые страницы. */

.page { min-height: 100vh; background: linear-gradient(180deg, #f3fafe 0%, #e4f2fa 100%); }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-weight: 1000; font-size: 1.2rem; letter-spacing: 0.01em; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 800; text-decoration: none; }
.top nav a:hover { background: var(--ice); color: var(--lake); }

.h-hero { position: relative; overflow: hidden; border-radius: 0 0 32px 32px; background: var(--deep); }
.h-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.h-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 53, 86, 0.78) 0%, rgba(10, 53, 86, 0.35) 55%, rgba(10, 53, 86, 0) 100%); }
.h-hero-in { position: relative; z-index: 1; padding: clamp(40px, 9vw, 120px) 0 clamp(40px, 7vw, 96px); color: #fff; }
.h-kicker { margin: 0; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #9fe3ee; font-size: 0.95rem; }
.h-title { margin: 8px 0 12px; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1; font-weight: 1000; max-width: 13ch; }
.h-lead { margin: 0 0 22px; font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 34rem; color: #e3f3fb; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-actions .btn { font-size: 1.05rem; }

.sec { padding: clamp(32px, 6vw, 72px) 0 0; }
.sec-title { margin: 0 0 6px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 1000; color: var(--deep); }
.sec-lead { margin: 0 0 22px; color: var(--ink-2); font-size: 1.08rem; max-width: 46rem; }

.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.lcard { display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.lcard-img { position: relative; aspect-ratio: 16 / 9; background: var(--ice); }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard-n { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--lake-d); border-radius: 999px; padding: 4px 12px; font-weight: 900; font-size: 0.9rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.lcard-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lcard-body h3 { margin: 0; font-size: 1.55rem; line-height: 1.1; font-weight: 1000; color: var(--deep); }
.lcard-body p { margin: 0; color: var(--ink-2); }
.lcard-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.lcard-meta li { background: var(--ice); color: var(--lake-d); font-weight: 800; font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; }
.lcard-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; align-items: center; }
.lcard-best { color: var(--ok); font-weight: 800; font-size: 0.95rem; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.how-card { background: #fff; border-radius: 22px; padding: 20px; border: 1px solid var(--line); }
.how-card h3 { margin: 8px 0 6px; font-size: 1.2rem; color: var(--deep); }
.how-card p, .how-card ul { margin: 0; color: var(--ink-2); }
.how-card ul { padding-left: 1.1em; }
.how-ico { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: var(--ice); color: var(--lake); align-items: center; justify-content: center; }
.how-ico .ico { width: 28px; height: 28px; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: center; background: #fff; border-radius: 26px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); }
.why img { width: 100%; border-radius: 18px; display: block; }
.why h2 { margin: 0 0 8px; color: var(--deep); font-size: 1.6rem; }
.why p { margin: 0 0 10px; color: var(--ink-2); }

.foot { margin-top: clamp(40px, 7vw, 80px); padding: 26px 0 36px; background: var(--deep); color: #cfe6f4; font-size: 0.92rem; }
.foot a { color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.foot p { margin: 0 0 6px; }
.ornament-line { height: 14px; background: var(--ornament) repeat-x; background-size: 28px 14px; opacity: 0.5; margin: 0 0 18px; filter: brightness(0) invert(1); }

/* ---------- страница учителя ---------- */

.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.t-card { background: #fff; border-radius: 22px; padding: 20px 22px; border: 1px solid var(--line); }
.t-card h3 { margin: 0 0 10px; color: var(--deep); font-size: 1.25rem; }
.t-card ol, .t-card ul { margin: 0; padding-left: 1.2em; }
.t-card li { margin: 4px 0; }
.t-plan { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.t-plan th, .t-plan td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ice); vertical-align: top; }
.t-plan th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.t-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.t-tabs button[aria-selected='true'] { background: var(--lake); color: #fff; border-color: var(--lake-d); box-shadow: 0 4px 0 var(--lake-d); }
.key-ex { background: #fff; border-radius: 18px; padding: 14px 18px; border: 1px solid var(--line); margin-bottom: 12px; break-inside: avoid; }
.key-ex h4 { margin: 0 0 6px; color: var(--deep); }
.key-ex ol { margin: 0; padding-left: 1.4em; }
.key-ex li { margin: 3px 0; }
.key-ex .ans { color: var(--ok); font-weight: 800; }

/* ---------- рабочий лист для печати ---------- */

.ws { background: #fff; color: #111; font-size: 15px; line-height: 1.45; font-family: var(--font-text); }
.ws-page { width: min(190mm, 100% - 24px); margin: 0 auto; padding: 18px 0 40px; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 3px solid #0a3556; padding-bottom: 8px; margin-bottom: 14px; }
.ws-head h1 { margin: 0; font-size: 22px; color: #0a3556; }
.ws-head p { margin: 2px 0 0; color: #444; }
.ws-name { font-size: 14px; white-space: nowrap; }
.ws-ex { margin: 0 0 16px; break-inside: avoid; }
.ws-ex h2 { margin: 0 0 4px; font-size: 16px; color: #0a3556; }
.ws-ex .ws-instr { margin: 0 0 6px; color: #444; font-style: italic; }
.ws-ex ol { margin: 0; padding-left: 1.6em; }
.ws-ex li { margin: 3px 0; }
.ws-bank { display: inline-block; border: 1.5px dashed #555; border-radius: 8px; padding: 3px 10px; margin: 2px 0 6px; }
.ws-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; }
.ws-table { border-collapse: collapse; width: 100%; }
.ws-table td, .ws-table th { border: 1px solid #999; padding: 6px 8px; height: 30px; }
.ws-line { display: inline-block; min-width: 90px; border-bottom: 1px solid #333; }
.ws-key { margin-top: 24px; padding-top: 10px; border-top: 2px dashed #999; font-size: 13px; }
.ws-key h2 { font-size: 15px; }
.ws-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
@media print {
  .ws-tools, .no-print { display: none !important; }
  .ws-page { width: auto; padding: 0; }
  .ws-key { break-before: page; }
  @page { size: A4; margin: 14mm; }
}

/* карточки A/B/C/D */
.abc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px dashed #999; }
.abc-card { height: 130mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6mm; border: 1px dashed #999;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.abc-card b { font-size: 70mm; line-height: 1; font-family: 'Nunito', sans-serif; font-weight: 1000; }
.abc-ico { width: 34mm; height: 34mm; display: block; }
.abc-ico svg { width: 100%; height: 100%; }
/* паспорта гостей */
.pp-print { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.pp-card { border: 2px solid #7a1f2b; border-radius: 10px; overflow: hidden; break-inside: avoid; background: #fbfdf6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp-card-head { display: flex; justify-content: space-between; align-items: center; background: #7a1f2b; color: #f8e6b8; font-weight: 900; letter-spacing: 0.15em; padding: 4px 10px; }
.pp-card-flag { height: 18px; width: auto; border-radius: 2px; }
.pp-card-body { display: grid; grid-template-columns: 30mm 1fr; gap: 10px; padding: 10px; align-items: center; }
.pp-card-photo { width: 30mm; height: 30mm; object-fit: cover; border-radius: 6px; }
.pp-card-fields p { margin: 0 0 4px; display: flex; flex-direction: column; }
.pp-card-fields small { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7d62; }
.pp-card-fields b { font-size: 15px; }
