/* =========================================================================
   ОСНОВА — фирменная дизайн-система
   Цвета: оранжевый #ff6031 · кремовый #fffde9 · лайм #e5eead · тёмный #1a1712
   Шрифт: Inter Tight
   ========================================================================= */

:root {
  --orange: #ff6031;
  --orange-600: #e8410f;
  --cream: #fffde9;
  --cream-2: #fbf6dd;
  --lime: #e5eead;
  --ink: #1a1712;
  --ink-soft: #3a352c;
  --muted: #6f6a5d;
  --line: #e7e1c9;
  --line-dark: #34302a;
  --white: #ffffff;

  --grad-warm: linear-gradient(150deg, #e5eead 0%, #ffb27a 45%, #ff6031 100%);
  --grad-ribbon: linear-gradient(180deg, #ff6031 0%, #ffb27a 60%, #e5eead 100%);

  --radius: 28px;
  --radius-sm: 16px;
  --radius-lg: 40px;
  --shadow: 0 24px 60px -30px rgba(26, 23, 18, 0.35);
  --shadow-sm: 0 8px 30px -18px rgba(26, 23, 18, 0.4);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--orange); color: var(--cream); }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.center { text-align: center; }
.mw-720 { max-width: 720px; }
.mw-820 { max-width: 820px; }
.mw-920 { max-width: 920px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 22px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.on-dark .kicker { color: #ffb27a; }

.h-display { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--ink-soft); line-height: 1.5; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange); color: var(--cream); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { transform: translateY(-2px); background: #000; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.on-dark .btn--ghost { border-color: rgba(255,253,233,.45); color: var(--cream); }
.on-dark .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- emblem / logo ---------- */
.emblem { display: inline-block; width: auto; height: 1em; color: currentColor; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-lockup .emblem { height: 34px; }
.brand-word { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.brand-sub { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display:block; margin-top: 3px; font-weight: 500; }
.on-dark .brand-lockup, .on-dark .brand-word { color: var(--cream); }
.on-dark .brand-sub { color: rgba(255,253,233,.6); }

/* ribbon-bookmark decorative motif (orange gradient with white sparkle) */
.ribbon {
  width: 52px; height: 74px; border-radius: 6px 6px 0 0;
  background: var(--grad-ribbon);
  -webkit-mask: var(--ribbon-mask); mask: var(--ribbon-mask);
  position: relative; flex: none;
}
.ribbon-wrap { position: relative; width: 52px; height: 74px; }
.ribbon-wrap svg { display:block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,233,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--ink-soft); transition: background .15s, color .15s; }
.nav a:hover, .nav a.is-active { background: var(--ink); color: var(--cream); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero__inner { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(120px, 16vw, 220px); position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; margin-bottom: 26px; }
.hero__lead { max-width: 46ch; }
.hero__meta { display:flex; flex-wrap: wrap; gap: 14px; align-items:center; margin-top: 34px; }
.hero__side { position: absolute; top: clamp(48px,8vw,96px); right: var(--gutter); text-align: right; z-index: 3; }
.hero__side .motto { font-weight: 600; font-size: 1.05rem; }
.hero__side .loc { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.hero__glow {
  position: absolute; inset: auto -10% -35% -10%; height: 70%;
  background: var(--grad-warm); z-index: 1; filter: saturate(1.05);
}
.arch { position: absolute; left: 0; right: 0; width: 100%; height: clamp(70px, 10vw, 130px); z-index: 2; display:block; }
.arch svg { width: 100%; height: 100%; display: block; }
.hero .arch { bottom: -1px; }

/* ---------- hero split + фотографии ---------- */
.hero--split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__text { position: relative; z-index: 3; }
.hero__media { position: relative; z-index: 3; }
.hero__media img { width: 100%; height: auto; display: block; }
.photo-wide { width: 100%; max-width: 1040px; height: auto; margin: 0 auto; display: block; }
@media (max-width: 860px) {
  .hero--split { grid-template-columns: 1fr; }
  .hero__media { max-width: 540px; margin-top: 4px; }
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px); position: relative; overflow: hidden;
}
.card--cream { background: var(--cream-2); }
.card--pad-lg { padding: clamp(28px, 4vw, 48px); }
.card h3 { margin-bottom: 12px; }
.card .num { font-size: 1rem; font-weight: 600; color: var(--orange-600); letter-spacing: .04em; }

.value-card { padding: 26px 24px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: .98rem; color: var(--muted); }

.focus-card { background: var(--ink); color: var(--cream); border: 0; }
.focus-card .icon { width: 46px; height: 58px; margin-bottom: 22px; }
.focus-card p { color: rgba(255,253,233,.72); }

/* utp list */
.utp-item { display: grid; grid-template-columns: 92px 1fr; gap: clamp(16px,3vw,44px); padding: clamp(26px,3vw,40px) 0; border-top: 1px solid var(--line); align-items: start; }
.utp-item:last-child { border-bottom: 1px solid var(--line); }
.utp-item .num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; color: var(--orange); letter-spacing: -.03em; }
.utp-item h3 { font-size: clamp(1.3rem,2.2vw,1.8rem); margin-bottom: 12px; }
.utp-item p { color: var(--ink-soft); max-width: 68ch; margin: 0; }

/* stages */
.stage { display:grid; grid-template-columns: 150px 1fr 1fr; gap: clamp(14px,2vw,32px); padding: 26px 0; border-top: 1px solid var(--line-dark); align-items: start; }
.stage:first-of-type { border-top: 0; }
.stage .age { font-weight:600; color: var(--orange); }
.stage .st-name { font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.stage .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,253,233,.5); display:block; margin-bottom: 6px; }
.stage p { color: rgba(255,253,233,.8); margin: 0; font-size: .98rem; }

/* ---------- dark section ---------- */
.on-dark { background: var(--ink); color: var(--cream); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark .lead { color: rgba(255,253,233,.78); }
.on-dark .muted { color: rgba(255,253,233,.55); }

/* chips */
.chips { display:flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-weight: 500; }
.on-dark .chip { border-color: rgba(255,253,233,.25); }

/* speech bubble */
.bubble { background: var(--cream-2); border-radius: var(--radius); padding: clamp(26px,4vw,48px); position: relative; }
.bubble::after { content:""; position:absolute; left: 54px; bottom: -18px; width: 40px; height: 26px; background: var(--cream-2); border-radius: 0 0 24px 0; clip-path: path("M0,0 C20,0 40,8 40,26 C20,26 0,14 0,0 Z"); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(48px,7vw,90px) 40px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer a { color: rgba(255,253,233,.75); }
.site-footer a:hover { color: var(--cream); }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,253,233,.5); margin-bottom: 16px; }
.footer-nav { display:flex; flex-direction: column; gap: 10px; }
.footer-bottom { position: relative; margin-top: 48px; padding: 24px 28px 0 0; border-top: 1px solid var(--line-dark); display:flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .84rem; color: rgba(255,253,233,.5); }
.site-footer .footer-admin-link { position: absolute; right: 0; bottom: 0; display: block; width: 16px; height: 16px; color: #16140f; }
.site-footer .footer-admin-link:hover { color: #16140f; }
.footer-admin-link svg { display: block; width: 16px; height: 16px; }

/* =========================================================================
   Раздел «Сведения об образовательной организации»
   ========================================================================= */
.page-head { background: var(--cream-2); border-bottom: 1px solid var(--line); padding-block: clamp(40px,6vw,72px) clamp(32px,4vw,52px); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--orange-600); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

.sv-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px,4vw,56px); align-items: start; }
.sv-nav { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--white); }
.sv-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: sv; }
.sv-nav a { display:flex; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: .95rem; color: var(--ink-soft); line-height: 1.3; transition: background .15s, color .15s; }
.sv-nav a .n { color: var(--orange-600); font-weight: 600; flex: none; }
.sv-nav a:hover { background: var(--cream-2); }
.sv-nav a.is-active { background: var(--ink); color: var(--cream); }
.sv-nav a.is-active .n { color: #ffb27a; }

.sv-content h1 { font-size: clamp(1.7rem,3.4vw,2.6rem); margin-bottom: 8px; }
.sv-block { margin-bottom: 40px; }
.sv-block > h2 { font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display:inline-block; }
.field-row { display:grid; grid-template-columns: 300px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.field-row dt { color: var(--muted); font-size: .95rem; }
.field-row dd { margin: 0; font-weight: 500; }
.field-stack { padding: 0 0 14px; }
.field-stack dt { color: var(--muted); font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }

table.sv-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sv-table th, .sv-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.sv-table th { background: var(--cream-2); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }

.doc-list { list-style: none; margin: 0; padding: 0; display:grid; gap: 12px; }
.doc {
  display:flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); transition: border-color .15s, transform .15s;
}
.doc:hover { border-color: var(--orange); transform: translateY(-1px); }
.doc__icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--cream-2); display:grid; place-items:center; color: var(--orange-600); }
.doc__body { flex: 1; min-width: 0; }
.doc__title { font-weight: 600; font-size: 1rem; }
.doc__meta { font-size: .84rem; color: var(--muted); margin-top: 3px; }
.doc__ecp { display:inline-flex; align-items:center; gap:6px; font-size:.76rem; color: var(--orange-600); font-weight:600; }
.doc-empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: .95rem; background: var(--cream-2); }

.sv-cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.sv-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: var(--white); transition: transform .15s, border-color .15s; }
.sv-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.sv-card .n { font-size: .8rem; color: var(--orange-600); font-weight: 600; }
.sv-card h3 { font-size: 1.02rem; margin-top: 8px; line-height: 1.25; }

.notice { background: #fff6e9; border: 1px solid #ffd9a8; border-radius: var(--radius-sm); padding: 18px 20px; font-size: .95rem; color: var(--ink-soft); }
.notice strong { color: var(--orange-600); }

/* =========================================================================
   Админ-панель
   ========================================================================= */
.admin-body { background: #f4f1e4; }
.admin-top { background: var(--ink); color: var(--cream); padding: 14px 0; position: sticky; top: 0; z-index: 40; }
.admin-top__inner { display:flex; align-items:center; justify-content: space-between; gap: 16px; }
.admin-top a { color: rgba(255,253,233,.8); }
.admin-top a:hover { color: var(--cream); }
.admin-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border:1px solid rgba(255,253,233,.3); border-radius: 999px; }

.admin-wrap { display:grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-block: 28px; }
.admin-side { position: sticky; top: 84px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.admin-side .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 12px 6px; }
.admin-side a { display:block; padding: 9px 12px; border-radius: 10px; font-size: .92rem; color: var(--ink-soft); }
.admin-side a:hover { background: var(--cream-2); }
.admin-side a.is-active { background: var(--ink); color: var(--cream); }

.admin-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px,3vw,36px); min-height: 60vh; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 6px; }
.admin-main h2 { font-size: 1.15rem; margin: 28px 0 14px; }

.form-field { margin-bottom: 18px; }
.form-field label { display:block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-field .hint { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.form-field input[type=text], .form-field input[type=password], .form-field textarea, .form-field input:not([type]) {
  width: 100%; font: inherit; font-size: .96rem; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fdfcf4; color: var(--ink); transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--orange); }
.form-field textarea { min-height: 100px; resize: vertical; line-height: 1.5; }

.list-editor { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; background: #fbf9ef; }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; background: var(--white); position: relative; }
.list-item__head { display:flex; justify-content: space-between; align-items:center; margin-bottom: 10px; }
.list-item__num { font-weight: 600; color: var(--orange-600); font-size: .88rem; }

.btn-row { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mini { font: inherit; font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: .15s; }
.mini:hover { border-color: var(--ink); }
.mini--danger { color: #b3261e; border-color: #f0c4c0; }
.mini--danger:hover { background: #b3261e; color: #fff; border-color: #b3261e; }
.mini--add { border-style: dashed; color: var(--orange-600); border-color: var(--orange); }
.mini--add:hover { background: var(--orange); color: var(--cream); }

.docs-admin { display:grid; gap: 10px; margin: 10px 0 20px; }
.doc-admin { display:flex; align-items:center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.doc-admin__body { flex:1; min-width:0; }
.doc-admin__title { font-weight: 600; font-size: .95rem; }
.doc-admin__meta { font-size: .8rem; color: var(--muted); }

.upload-box { border: 1px dashed var(--orange); border-radius: var(--radius-sm); padding: 18px; background: #fff8ef; margin-bottom: 14px; }
.slot-hint { display:inline-block; background: var(--cream-2); border:1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .8rem; margin: 4px 6px 4px 0; }

.flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.flash--ok { background: #e7f6e7; border: 1px solid #b6e0b6; color: #1f6b1f; }
.flash--err { background: #fbe6e4; border: 1px solid #f0bdb8; color: #a3241b; }

.login-wrap { min-height: 100vh; display:grid; place-items:center; padding: 24px; background: var(--grad-warm); }
.login-card { background: var(--cream); border-radius: var(--radius); padding: clamp(28px,4vw,44px); width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.login-card .brand-lockup { margin-bottom: 26px; }

.sticky-save { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 16px 0; margin: 24px -1px -1px; display:flex; gap: 12px; justify-content: flex-end; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .sv-layout { grid-template-columns: 1fr; }
  .sv-nav { position: static; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stage { grid-template-columns: 1fr; gap: 6px; }
  .stage .st-name { margin-top: 4px; }
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 4px;
  }
  .site-header.open .nav a { width: 100%; }
  .hero__side { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .utp-item { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; gap: 4px; }
  .field-row dt { font-size: .82rem; }
}

/* print — для распечатки сведений */
@media print {
  .site-header, .site-footer, .sv-nav, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .sv-layout { grid-template-columns: 1fr; }
  .doc { break-inside: avoid; }
}
