/* Общий слой для вторичных страниц (school.html, partners.html).
   Лендинг (index.html) НЕ линкует этот файл — там CSS инлайном, чтобы главная не зависела от загрузки. */
*{ margin:0; padding:0; box-sizing:border-box; }
:root{
  --bg:#0a0a0f; --surface:#12121a; --surface2:#1a1a26;
  --accent:#c9a96e; --accent-light:#e2c992;
  --text:#f0ede6; --text-dim:#8a8694; --line:rgba(255,255,255,0.07);
  --r:18px; --maxw:1180px;
}
html{ scroll-behavior:smooth; }
body{ font-family:'Manrope',sans-serif; background:var(--bg); color:var(--text); line-height:1.6; overflow-x:hidden; }
h1,h2,h3,.serif{ font-family:'Cormorant Garamond',serif; font-weight:500; line-height:1.1; }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
section{ padding:88px 0; }
.eyebrow{ font-size:0.72rem; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--accent); }
.h2{ font-size:clamp(2rem,4.5vw,3rem); margin:14px 0 10px; }
.lead{ color:var(--text-dim); max-width:640px; font-weight:300; }
.center{ text-align:center; } .center .lead{ margin:0 auto; }

.btn{ display:inline-flex; align-items:center; gap:8px; padding:15px 30px; border-radius:40px; font-weight:600; font-size:0.92rem; cursor:pointer; border:1px solid transparent; transition:.2s; }
.btn-primary{ background:linear-gradient(135deg,var(--accent),#b8923e); color:#0a0a0f; }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(201,169,110,.25); }
.btn-ghost{ border-color:rgba(255,255,255,.18); color:var(--text); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }

header{ position:sticky; top:0; z-index:100; background:rgba(10,10,15,.85); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; }
.logo img{ height:44px; width:auto; display:block; }
.nav-right{ display:flex; align-items:center; gap:24px; }
.nav-right .back{ font-size:0.86rem; color:var(--text-dim); }
.nav-right .back:hover{ color:var(--text); }
.nav-right .btn{ padding:11px 22px; }
@media(max-width:560px){ .logo img{ height:36px; } .nav-right{ gap:14px; } .nav-right .back span{ display:none; } }

.intro{ padding-top:60px; padding-bottom:20px; }
.grid{ display:grid; gap:20px; }
.cards-2{ grid-template-columns:repeat(2,1fr); }
.cards-3{ grid-template-columns:repeat(3,1fr); }
@media(max-width:820px){ .cards-3{ grid-template-columns:1fr; } }
@media(max-width:720px){ .cards-2{ grid-template-columns:1fr; } }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:28px; transition:.2s; }
.card:hover{ border-color:rgba(201,169,110,.3); transform:translateY(-3px); }
.card .ic{ color:var(--accent); margin-bottom:16px; height:34px; display:flex; align-items:center; }
.card .ic svg{ width:34px; height:34px; }
.card h3{ font-size:1.5rem; margin-bottom:6px; }
.card p{ font-size:0.9rem; color:var(--text-dim); margin-bottom:18px; }
.card .btn{ margin-top:auto; }
.split2{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media(max-width:820px){ .split2{ grid-template-columns:1fr; gap:32px; } }
.tag{ display:inline-block; font-size:0.68rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--accent); margin-bottom:12px; }
.icn{ fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

.form{ display:grid; gap:14px; max-width:520px; }
.form input,.form textarea,.form select{ width:100%; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:12px; color:var(--text); font-family:inherit; font-size:0.92rem; }
.form textarea{ resize:vertical; min-height:90px; }
.form input:focus,.form textarea:focus,.form select:focus{ outline:none; border-color:var(--accent); }
.consent{ display:flex; align-items:flex-start; gap:8px; font-size:0.82rem; color:var(--text-dim); line-height:1.45; cursor:pointer; }
.consent input{ margin-top:3px; flex:none; width:auto; }
.form-msg{ font-size:0.88rem; margin-top:12px; display:none; }

footer{ border-top:1px solid var(--line); padding:40px 0; }
.foot{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:0.84rem; color:var(--text-dim); }
.foot a:hover{ color:var(--accent); }
.foot .links{ display:flex; gap:18px; flex-wrap:wrap; }
footer .logo img{ height:38px; opacity:.9; }
