/* ===================================================================
   «Новое созвездие» — токены и общие стили
   Палитра и шрифты выведены из логотипа школы.
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  --cream:        #F5F1E6;
  --cream-soft:   #FBF9F4;
  --cream-deep:   #ECE4D2;
  --green:        #22433B;
  --green-deep:   #16302A;
  --green-mute:   #4C6560;
  --gold:         #AF8B4D;
  --gold-light:   #CC9C4A;
  --gold-pale:    #C9A77C;
  --line:         rgba(34,67,59,0.14);
  --line-gold:    rgba(175,139,77,0.35);

  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 2px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--green);
  font-family:var(--sans);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  position:relative;
}
body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:2000;
  pointer-events:none;
  opacity:0.035;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

::selection{ background:var(--gold-pale); color:var(--green-deep); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

/* ---------- Typography ---------- */

.eyebrow{
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:400;
  color:var(--green);
  margin:0;
  letter-spacing:.01em;
}

h1{ font-size:clamp(38px,6vw,68px); line-height:1.04; letter-spacing:-0.01em; }
h2{ font-size:clamp(28px,3.8vw,42px); line-height:1.14; letter-spacing:-0.005em; }
h3{ font-size:20px; line-height:1.3; }

p{ margin:0 0 1em; color:var(--green-mute); }
p:last-child{ margin-bottom:0; }

.lede{
  font-size:19px;
  line-height:1.65;
  color:var(--green-mute);
}

/* ---------- Ornament (signature ring motif, echoes the mark) ---------- */

.ornament{
  width:64px;
  height:20px;
  margin:18px 0 0;
}
.ornament.center{ margin-left:auto; margin-right:auto; }

/* ---------- Buttons / links ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 28px;
  font-family:var(--sans);
  font-size:13px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-radius:999px;
  border:1px solid var(--green);
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(22,48,42,0.16); }
.btn:active{ transform:translateY(0); box-shadow:none; }
.btn-primary{
  background:var(--green);
  color:var(--cream-soft);
}
.btn-primary:hover{ background:var(--green-deep); border-color:var(--green-deep); }

.btn-ghost{
  background:transparent;
  color:var(--green);
  border-color:var(--line-gold);
}
.btn-ghost:hover{ border-color:var(--gold); background:rgba(175,139,77,0.08); }

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--green);
  border-bottom:1px solid var(--line-gold);
  padding-bottom:2px;
  transition:border-color .2s ease, color .2s ease, gap .2s ease;
}
.link-arrow:hover{ border-color:var(--gold); gap:12px; color:var(--gold); }

/* ---------- Scroll progress ---------- */

.scroll-progress{
  position:fixed;
  top:0; left:0;
  height:3px;
  width:0%;
  background:linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  z-index:100;
  transition:width .1s linear;
}

/* ---------- Header ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:transparent;
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s ease;
}
.site-header::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(245,241,230,0.94);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  z-index:-1;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:88px;
  transition:height .3s ease;
}
.site-header.scrolled{ box-shadow:0 8px 24px rgba(22,48,42,0.08); }
.site-header.scrolled .container{ height:66px; }
.site-header.scrolled .brand-word small{ opacity:0; max-height:0; }

/* ---------- Marquee ticker ---------- */

.marquee{
  background:var(--green-deep);
  color:var(--gold-light);
  overflow:hidden;
  white-space:nowrap;
  border-bottom:1px solid rgba(175,139,77,0.25);
}
.marquee-track{
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:9px 0;
  font-size:11px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  --marquee-n:2;
  animation:marquee-scroll 32s linear infinite;
  will-change:transform;
}
.marquee-track span{ flex:none; }
.marquee-dot{ color:var(--gold); font-size:9px; }
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(calc(-100% / var(--marquee-n))); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation:none; }
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand-mark{ width:38px; height:38px; flex:none; }
.brand-word{
  font-family:var(--serif);
  font-size:20px;
  letter-spacing:.03em;
  line-height:1.1;
}
.brand-word small{
  display:block;
  font-family:var(--sans);
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
  margin-top:3px;
}

@media (max-width:420px){
  .brand-word{ font-size:16px; }
  .brand-word small{ display:none; }
}

.nav-primary{
  display:flex;
  align-items:center;
  gap:28px;
  flex-shrink:0;
}
.nav-primary ul{
  display:flex;
  gap:22px;
  list-style:none;
  margin:0; padding:0;
  flex-wrap:nowrap;
}
.nav-primary a{
  font-size:12px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  position:relative;
  padding-bottom:6px;
  white-space:nowrap;
}
.nav-primary a::after{
  content:'';
  position:absolute; left:0; right:100%; bottom:0;
  height:1px; background:var(--gold);
  transition:right .25s ease;
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after{ right:0; }
.nav-primary a[aria-current="page"]{ color:var(--gold); }

.nav-toggle{
  display:none;
  width:40px; height:40px;
  border:1px solid var(--line-gold);
  background:none;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex:none;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:'';
  display:block;
  width:18px; height:1px;
  background:var(--green);
  position:relative;
  transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

.site-header .container{ flex-wrap:nowrap; }
.brand{ flex:none; }

@media (max-width: 1100px){
  .nav-primary{
    position:fixed; inset:88px 0 0 0;
    z-index:60;
    background-color:#FBF9F4;
    box-shadow:0 12px 24px rgba(22,48,42,0.12);
    flex-direction:column;
    align-items:flex-start;
    padding:36px 32px;
    transform:translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav-primary.open{ opacity:1; visibility:visible; transform:translateY(0); }
  .nav-primary ul{ flex-direction:column; gap:22px; }
  .nav-primary a{ font-size:15px; }
  .nav-toggle{ display:flex; }
}

/* ---------- Hero ---------- */

.hero{
  position:relative;
  padding:88px 0 96px;
  overflow:hidden;
}
.hero .container{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:64px;
  align-items:center;
}
.hero-copy .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:26px;
  padding:8px 18px 8px 14px;
  border:1px solid var(--line-gold);
  border-radius:999px;
  background:rgba(175,139,77,0.06);
}
.hero-copy .eyebrow::before{
  content:'';
  width:6px; height:6px; border-radius:50%;
  background:var(--gold-light);
  animation:pulse 2.4s ease-in-out infinite;
}
.hero-copy h1{ margin-bottom:24px; font-size:clamp(42px,7.2vw,84px); }
.hero-copy .lede{ max-width:46ch; margin-bottom:34px; }
.hero-actions{ display:flex; gap:18px; flex-wrap:wrap; }

.hero-figure{
  position:relative;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:-8%;
}
.hero-figure::before{
  content:'';
  position:absolute;
  inset:8%;
  background:radial-gradient(circle, rgba(175,139,77,0.28) 0%, rgba(201,167,124,0.12) 45%, transparent 72%);
  filter:blur(28px);
  z-index:-1;
}
.hero-rings{ position:absolute; inset:0; width:100%; height:100%; will-change:transform; }
.hero-figure-inner{
  position:relative;
  text-align:center;
  font-family:var(--serif);
}
.hero-figure-num{
  font-size:clamp(72px,9vw,108px);
  line-height:1;
  background:linear-gradient(135deg, var(--green) 20%, var(--gold) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-figure-label{
  margin-top:6px;
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--gold);
}

@media (max-width:900px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-figure{ order:-1; max-width:280px; margin:0 auto 8px; }
}

/* ---------- Sections ---------- */

section{ padding:88px 0; }
.section-tight{ padding:64px 0; }
.section-alt{
  background:var(--cream-deep);
  clip-path:polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
}
.section-dark{
  background:var(--green);
  color:var(--cream);
  clip-path:polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
}
.section-dark p{ color:rgba(245,241,230,0.72); }
.section-dark .eyebrow{ color:var(--gold-light); }
.section-dark h2,.section-dark h1{ color:var(--cream); }

.section-head{
  max-width:640px;
  margin-bottom:52px;
}
.section-head.centered{ margin-left:auto; margin-right:auto; text-align:center; }

hr.rule{
  border:none;
  border-top:1px solid var(--line);
  margin:0;
}

/* ---------- Stat strip ---------- */

.stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  background:var(--cream-soft);
  border:1px solid var(--line-gold);
  border-radius:10px;
  box-shadow:0 20px 48px rgba(22,48,42,0.10);
  margin-top:-64px;
  position:relative;
  z-index:2;
}
.stat{
  padding:30px 18px;
  text-align:center;
  border-left:1px solid var(--line-gold);
}
.stat:first-child{ border-left:none; }

.stat-num{
  font-family:var(--serif);
  font-size:32px;
  background:linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.stat-label{
  margin-top:6px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--green-mute);
}
@media (max-width:900px){
  .stats{ grid-template-columns:repeat(3,1fr); }
  .stat:nth-child(3n+1){ border-left:none; }
  .stat:nth-child(n+4){ border-top:1px solid var(--line-gold); }
}

@media (max-width:700px){
  .stats{ grid-template-columns:1fr; margin-top:-40px; border-radius:8px; }
  .stat{ border-left:none; border-top:1px solid var(--line-gold); }
  .stat:first-child{ border-top:none; }
}

/* ---------- Directions grid ---------- */

.grid-directions{
  counter-reset:dir-card;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-flow:dense;
  gap:1px;
  background:var(--line-gold);
  border:1px solid var(--line-gold);
}
.direction-card{
  counter-increment:dir-card;
  background:var(--cream-soft);
  padding:38px 32px;
  position:relative;
  overflow:hidden;
  transition:background .25s ease, transform .3s ease, box-shadow .3s ease;
}
.direction-card:hover{
  background:var(--cream);
  transform:translateY(-6px);
  box-shadow:0 16px 32px rgba(22,48,42,0.10);
  z-index:1;
}
.direction-card::after{
  content:counter(dir-card, decimal-leading-zero);
  position:absolute;
  right:-6px; bottom:-28px;
  font-family:var(--serif);
  font-size:96px;
  line-height:1;
  color:var(--green);
  opacity:0.05;
  pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
}
.direction-card:hover::after{ opacity:0.09; transform:translateY(-4px); }
.direction-index{
  font-family:var(--serif);
  font-size:14px;
  color:var(--gold);
  letter-spacing:.06em;
  position:relative;
}
.direction-card h3{ margin:16px 0 10px; position:relative; }
.direction-card p{ font-size:14.5px; position:relative; }

.direction-card.featured{
  grid-column:span 2;
  grid-row:span 2;
  padding:44px 40px;
  background:var(--green);
  color:var(--cream);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.direction-card.featured .direction-index{ color:var(--gold-light); font-size:16px; }
.direction-card.featured h3{ font-size:clamp(24px,2.6vw,30px); margin-top:20px; }
.direction-card.featured p{ font-size:15.5px; color:rgba(245,241,230,0.75); max-width:36ch; }
.direction-card.featured::after{ color:var(--cream); opacity:0.06; font-size:140px; }
.direction-card.featured:hover{ background:var(--green-deep); }
.direction-card.featured:hover::after{ opacity:0.1; }

@media (max-width:900px){
  .grid-directions{ grid-template-columns:1fr 1fr; }
  .direction-card.featured{ grid-column:span 2; grid-row:span 1; }
}
@media (max-width:600px){
  .grid-directions{ grid-template-columns:1fr; }
  .direction-card.featured{ grid-column:span 1; }
}

/* ---------- About split ---------- */

.split{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:72px;
  align-items:start;
}
@media (max-width:900px){
  .split{ grid-template-columns:1fr; gap:40px; }
}

.quote-block{
  border-left:2px solid var(--gold);
  padding-left:28px;
  position:relative;
}
.quote-block::before{
  content:'“';
  position:absolute;
  top:-64px; left:-8px;
  font-family:var(--serif);
  font-size:180px;
  line-height:1;
  color:var(--gold);
  opacity:0.14;
  pointer-events:none;
}
@media (max-width:900px){
  .quote-block::before{ top:-30px; font-size:96px; }
}
.quote-block p{
  font-family:var(--serif);
  font-size:clamp(24px,2.8vw,32px);
  line-height:1.45;
  color:var(--green);
  font-style:italic;
  position:relative;
}

/* ---------- Branch cards ---------- */

.branches{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
@media (max-width:800px){ .branches{ grid-template-columns:1fr; } }

.branch-card{
  background:var(--cream-soft);
  border:1px solid var(--line);
  padding:38px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.branch-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 32px rgba(22,48,42,0.10);
  border-color:var(--line-gold);
}
.branch-card .eyebrow{ margin-bottom:14px; }
.branch-card h3{ margin-bottom:14px; }
.branch-meta{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid var(--line);
  font-size:14px;
  color:var(--green-mute);
}
.branch-meta div + div{ margin-top:8px; }

.map-frame{
  width:100%;
  height:280px;
  border:1px solid var(--line);
  margin-top:22px;
  filter:sepia(8%) saturate(85%);
}

/* ---------- News ---------- */

.news-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-gold); border:1px solid var(--line-gold); }
.news-card{ background:var(--cream-soft); padding:32px; transition:transform .3s ease, box-shadow .3s ease; }
.news-card:hover{ transform:translateY(-6px); box-shadow:0 16px 32px rgba(22,48,42,0.10); }
.news-date{ font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); font-weight:600; }
.news-card h3{ margin:14px 0 10px; font-size:18px; }
.news-card p{ font-size:14px; }
@media (max-width:900px){ .news-list{ grid-template-columns:1fr; } }

/* ---------- CTA band ---------- */

.cta-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.cta-band h2{ max-width:520px; }

/* ---------- Contact cards on contacts page ---------- */

.contact-row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.contact-row:last-child{ border-bottom:none; }
.contact-row .ico{ width:20px; height:20px; flex:none; color:var(--gold); }
.contact-row a:hover{ color:var(--gold); }
.phone-list{ display:flex; flex-direction:column; gap:4px; }

/* ---------- Footer ---------- */

.site-footer{
  background:var(--green-deep);
  color:rgba(245,241,230,0.75);
  padding:64px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:48px;
  padding-bottom:44px;
  border-bottom:1px solid rgba(245,241,230,0.14);
}
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr; gap:32px; } }

.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand .brand-mark{ width:32px; height:32px; }
.footer-brand span{ font-family:var(--serif); color:var(--cream); font-size:18px; }
.site-footer p{ color:rgba(245,241,230,0.6); font-size:14.5px; max-width:36ch; }

.footer-title{
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold-light);
  margin-bottom:18px;
}
.footer-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; font-size:14.5px; }
.footer-links a:hover{ color:var(--gold-light); }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  padding-top:24px;
  font-size:12.5px;
  color:rgba(245,241,230,0.45);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero{
  padding:64px 0 56px;
  border-bottom:1px solid var(--line-gold);
}
.page-hero .eyebrow{ margin-bottom:16px; }
.page-hero h1{ max-width:16ch; }
.page-hero .lede{ margin-top:20px; max-width:60ch; }

/* ---------- Badge (in development) ---------- */

.badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 16px;
  border:1px solid var(--line-gold);
  font-size:11px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:22px;
}
.badge .dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--gold-light);
  animation:pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:.35; }
}
@media (prefers-reduced-motion: reduce){ .badge .dot{ animation:none; } }

/* ---------- Benefits grid ---------- */

.benefits{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:var(--line-gold);
  border:1px solid var(--line-gold);
}
.benefit-card{ background:var(--cream-soft); padding:34px 36px; transition:transform .3s ease, box-shadow .3s ease; }.benefit-card:hover{ transform:translateY(-6px); box-shadow:0 16px 32px rgba(22,48,42,0.10); }
.benefit-card h3{ margin-bottom:10px; }.benefit-card p{ font-size:14.5px; }
@media (max-width:700px){ .benefits{ grid-template-columns:1fr; } }

/* ---------- Header nav CTA button ---------- */

.btn-small{ padding:10px 22px; font-size:11.5px; }

/* ---------- Forms ---------- */

.form{ max-width:680px; }
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 24px;
}
.field{ display:flex; flex-direction:column; gap:9px; margin-bottom:26px; }
.field.full{ grid-column:1/-1; }

.field label{
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--green-mute);
}

input[type="text"],
input[type="tel"],
select,
textarea{
  font-family:var(--sans);
  font-size:15px;
  padding:13px 16px;
  border:1px solid var(--line-gold);
  background:var(--cream-soft);
  color:var(--green);
  border-radius:var(--radius);
  width:100%;
}
textarea{ resize:vertical; min-height:110px; }
select{ appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23AF8B4D'><path d='M5 8l5 5 5-5'/></svg>"); background-repeat:no-repeat; background-position:right 14px center; background-size:14px; padding-right:40px; }

input:focus, select:focus, textarea:focus{
  outline:2px solid var(--gold);
  outline-offset:1px;
  border-color:var(--gold);
}

.radio-group{ display:flex; gap:22px; flex-wrap:wrap; padding-top:2px; }
.radio-option{
  display:flex; align-items:center; gap:9px;
  font-size:14.5px; color:var(--green);
  cursor:pointer;
}
.radio-option input{ accent-color:var(--gold); width:16px; height:16px; }

.consent-field{ margin-bottom:20px; }
.field label.consent-option{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:11px;
  font-size:14px;
  font-weight:400;
  line-height:1.55;
  letter-spacing:0;
  text-transform:none;
  color:var(--green-mute);
  cursor:pointer;
}
.consent-option input{
  flex:0 0 auto;
  width:16px;
  height:16px;
  margin:3px 0 0;
  accent-color:var(--gold);
}
.consent-text{
  display:block;
  min-width:0;
}
.consent-text a{
  color:var(--green);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--line-gold);
  text-underline-offset:3px;
}
.consent-text a:hover{ color:var(--gold); }

.form-status{
  margin-top:20px;
  padding:16px 20px;
  font-size:14px;
  border:1px solid var(--line-gold);
  display:none;
}
.form-status.show{ display:block; }
.form-status.success{ color:var(--green); border-color:var(--gold); background:rgba(175,139,77,0.08); }
.form-status.error{ color:#9B4632; border-color:#9B4632; background:rgba(155,70,50,0.06); }

.form-note{ font-size:13px; color:var(--green-mute); margin-top:18px; max-width:52ch; }
.form-actions{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:6px; }
.form-secondary-action{
  background:none; border:none; padding:0;
  font-family:var(--sans); font-size:13px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--green-mute);
  border-bottom:1px solid var(--line-gold);
  cursor:pointer;
}
.form-secondary-action:hover{ color:var(--gold); border-color:var(--gold); }

@media (max-width:700px){
  .form-grid{ grid-template-columns:1fr; }
}

/* ---------- News page ---------- */

.news-page-grid{
  display:flex;
  flex-direction:column;
  gap:1px;
  background:var(--line-gold);
  border:1px solid var(--line-gold);
}
.news-page-item{
  background:var(--cream-soft);
  padding:30px 36px;
  display:grid;
  grid-template-columns:130px 1fr;
  gap:28px;
  transition:background .25s ease, padding-left .25s ease;
}
.news-page-item:hover{ background:var(--cream); padding-left:42px; }
.news-page-item .news-date{ align-self:start; padding-top:2px; }
.news-page-item h3{ margin-bottom:8px; }
.news-page-item p{ font-size:14.5px; }
.news-empty{
  background:var(--cream-soft);
  padding:64px 36px;
  text-align:center;
}
.news-empty p{ max-width:44ch; margin:0 auto; }

@media (max-width:640px){
  .news-page-item{ grid-template-columns:1fr; gap:8px; }
}

/* ---------- Reveal on scroll ---------- */

.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform:translateY(0); }

/* Staggered child reveal for card grids — each card fades in slightly
   after the previous one once the grid itself scrolls into view. */
.grid-directions .direction-card,
.benefits .benefit-card,
.news-list .news-card,
.branches .branch-card,
.stats .stat{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal.in .direction-card,
.reveal.in .benefit-card,
.reveal.in .news-card,
.reveal.in .branch-card,
.reveal.in .stat{
  opacity:1;
  transform:translateY(0);
}
.reveal.in .direction-card:nth-child(1),.reveal.in .benefit-card:nth-child(1),.reveal.in .news-card:nth-child(1),.reveal.in .branch-card:nth-child(1),.reveal.in .stat:nth-child(1){ transition-delay:.03s; }
.reveal.in .direction-card:nth-child(2),.reveal.in .benefit-card:nth-child(2),.reveal.in .news-card:nth-child(2),.reveal.in .branch-card:nth-child(2),.reveal.in .stat:nth-child(2){ transition-delay:.10s; }
.reveal.in .direction-card:nth-child(3),.reveal.in .benefit-card:nth-child(3),.reveal.in .news-card:nth-child(3),.reveal.in .branch-card:nth-child(3),.reveal.in .stat:nth-child(3){ transition-delay:.17s; }
.reveal.in .direction-card:nth-child(4),.reveal.in .benefit-card:nth-child(4){ transition-delay:.24s; }
.reveal.in .direction-card:nth-child(5),.reveal.in .benefit-card:nth-child(5){ transition-delay:.31s; }
.reveal.in .direction-card:nth-child(6){ transition-delay:.38s; }

@media (prefers-reduced-motion: reduce){
  .grid-directions .direction-card,
  .benefits .benefit-card,
  .news-list .news-card,
  .branches .branch-card,
  .stats .stat{ transition-delay:0s !important; }
}

/* ---------- Watermark divider ---------- */

.watermark{
  overflow:hidden;
  padding:8px 0 28px;
  text-align:center;
  pointer-events:none;
  user-select:none;
}
.watermark span{
  display:inline-block;
  font-family:var(--serif);
  font-size:clamp(48px,10vw,140px);
  line-height:1;
  letter-spacing:.02em;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:1px var(--line-gold);
  text-stroke:1px var(--line-gold);
}

/* ---------- Documents / organization info page ---------- */
.doc-intro{
  background:var(--cream-soft);
    border:1px solid var(--line);
      padding:28px 32px;
        margin-bottom:8px;
        }
        .doc-intro p{ font-size:14.5px; }
        .doc-intro p + p{ margin-top:10px; }
        .doc-grid{
          display:grid;
            grid-template-columns:1fr;
              gap:1px;
                background:var(--line-gold);
                  border:1px solid var(--line-gold);
                  }
                  .doc-category{
                    background:var(--cream-soft);
                      padding:32px 36px;
                        display:grid;
                          grid-template-columns:56px 1fr;
                            gap:22px;
                              transition:background .25s ease;
                              }
                              .doc-category:hover{ background:var(--cream); }
                              .doc-category-num{
                                font-family:var(--serif);
                                  font-size:26px;
                                    color:var(--gold);
                                      line-height:1.2;
                                      }
                                      .doc-category h3{ margin-bottom:6px; }
                                      .doc-category-note{ font-size:14px; color:var(--green-mute); margin-bottom:14px; max-width:60ch; }
                                      .doc-group + .doc-group{ margin-top:22px; }
                                      .doc-group-title{
                                        font-size:11.5px;
                                          font-weight:600;
                                            letter-spacing:.12em;
                                              text-transform:uppercase;
                                                color:var(--green-mute);
                                                  margin-bottom:8px;
                                                  }
                                                  .doc-list{ list-style:none; margin:0; padding:0; }
                                                  .doc-list li{
                                                    display:flex;
                                                      align-items:center;
                                                        justify-content:space-between;
                                                          gap:16px;
                                                            padding:12px 0;
                                                              border-bottom:1px solid var(--line);
                                                              }
                                                              .doc-list li:last-child{ border-bottom:none; }
                                                              .doc-title{
                                                                font-weight:600;
                                                                  font-size:14.5px;
                                                                    color:var(--green-deep);
                                                                      line-height:1.4;
                                                                      }
                                                                      .doc-open{
                                                                        flex-shrink:0;
                                                                          display:inline-flex;
                                                                            align-items:center;
                                                                              gap:6px;
                                                                                padding:7px 18px;
                                                                                  border-radius:999px;
                                                                                    border:1px solid var(--line-gold);
                                                                                      font-family:var(--sans);
                                                                                        font-size:11px;
                                                                                          font-weight:600;
                                                                                            letter-spacing:.1em;
                                                                                              text-transform:uppercase;
                                                                                                color:var(--gold);
                                                                                                  white-space:nowrap;
                                                                                                    transition:background .2s ease, color .2s ease, border-color .2s ease;
                                                                                                    }
                                                                                                    .doc-open:hover{
                                                                                                      background:var(--gold);
                                                                                                        border-color:var(--gold);
                                                                                                          color:var(--cream-soft);
                                                                                                          }
                                                                                                          .doc-category .badge{ margin-bottom:0; }
                                                                                                          @media (max-width:700px){
                                                                                                            .doc-category{ grid-template-columns:1fr; gap:10px; }
                                                                                                            }
                                                                                                            @media (max-width:520px){
                                                                                                              .doc-list li{ flex-wrap:wrap; gap:10px; }
                                                                                                                .doc-open{ padding:6px 14px; }
                                                                                                                }

/* ---------- Обложки и фотогалереи новостей ---------- */
.news-card{ text-decoration:none; color:inherit; display:block; }
.news-card-cover{ width:100%; height:160px; object-fit:cover; border-radius:var(--radius); margin-bottom:16px; display:block; }
.news-page-item{ text-decoration:none; color:inherit; }
.news-thumb{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius); margin-bottom:10px; display:block; }

.news-post{ max-width:760px; }
.news-post h1{ margin-top:10px; }
.news-post-cover{ width:100%; max-height:420px; object-fit:cover; border-radius:var(--radius); margin:24px 0; display:block; }
.news-post-text p{ font-size:16px; line-height:1.7; margin:0 0 16px; }
.news-back{ color:var(--gold); font-weight:600; text-transform:uppercase; font-size:12px; letter-spacing:.1em; }

.news-images-simple{ display:flex; gap:12px; margin:28px 0; }
.news-images-simple img{ flex:1; height:260px; object-fit:cover; border-radius:var(--radius); min-width:0; }

.news-gallery{ position:relative; margin:28px 0; border-radius:var(--radius); overflow:hidden; background:var(--cream-deep); }
.news-gallery .gallery-track{ display:flex; transition:transform .35s ease; }
.news-gallery .gallery-slide{ width:100%; flex-shrink:0; height:380px; object-fit:cover; display:block; }
.gallery-nav{ position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; border:1px solid var(--line-gold); background:rgba(251,249,244,0.9); color:var(--green-deep); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:18px; line-height:1; transition:background .2s ease, color .2s ease; }
.gallery-nav:hover{ background:var(--gold); color:var(--cream-soft); border-color:var(--gold); }
.gallery-prev{ left:12px; }
.gallery-next{ right:12px; }
.gallery-dots{ position:absolute; bottom:12px; left:0; right:0; display:flex; justify-content:center; gap:7px; }
.gallery-dot{ width:8px; height:8px; border-radius:50%; background:rgba(251,249,244,0.7); border:1px solid var(--line-gold); cursor:pointer; padding:0; }
.gallery-dot.active{ background:var(--gold); border-color:var(--gold); }

@media (max-width:640px){
  .news-images-simple{ flex-direction:column; }
  .news-images-simple img{ height:220px; }
  .news-gallery .gallery-slide{ height:240px; }
}

/* Блоки содержимого новости (редактор новостей в админке) */
.news-post::after{ content:""; display:table; clear:both; }
.news-block-heading{ font-family:var(--serif); font-size:24px; color:var(--green-deep); margin:32px 0 14px; clear:both; }
.news-block-image{ margin:20px 0 28px; }
.news-block-image img{ width:100%; height:auto; border-radius:var(--radius); display:block; }
.news-block-image figcaption{ font-size:13px; color:var(--green-mute); margin-top:8px; text-align:center; }
.news-block-image.size-small{ max-width:300px; }
.news-block-image.size-medium{ max-width:480px; }
.news-block-image.size-large{ max-width:100%; clear:both; }
.news-block-image.align-left{ float:left; margin:6px 26px 20px 0; }
.news-block-image.align-right{ float:right; margin:6px 0 20px 26px; }
.news-block-image.align-center:not(.size-large){ margin-left:auto; margin-right:auto; clear:both; }
.news-post .news-gallery{ clear:both; }
@media (max-width:640px){
  .news-block-image.align-left,
  .news-block-image.align-right{ float:none; margin:20px auto; max-width:100%; }
}

/* ===================================================================
   Версия для слабовидящих
=================================================================== */

.a11y-bar{
  position:relative;
  background:var(--green-deep);
  border-bottom:1px solid var(--line-gold);
}
.a11y-bar-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
  display:flex;
  justify-content:flex-end;
}
.a11y-toggle{
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 6px;
  background:none;
  border:none;
  color:var(--gold-light);
  font-family:var(--sans);
  font-size:12px;
  font-weight:500;
  letter-spacing:.02em;
  cursor:pointer;
  transition:color .2s ease;
}
.a11y-toggle:hover,
.a11y-toggle[aria-expanded="true"]{ color:var(--cream); }
.a11y-eye{ width:16px; height:16px; flex:none; }

.a11y-panel{
  position:absolute;
  right:32px;
  top:100%;
  width:min(340px, calc(100vw - 48px));
  background:var(--cream-soft);
  border:1px solid var(--line-gold);
  box-shadow:0 16px 40px rgba(22,48,42,0.2);
  padding:18px 20px 16px;
  z-index:300;
}
.a11y-group{ margin-bottom:14px; }
.a11y-group:last-of-type{ margin-bottom:16px; }
.a11y-group-label{
  display:block;
  font-size:11px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:8px;
}
.a11y-btn-row{ display:flex; gap:8px; }
.a11y-fs-btn{
  flex:1;
  padding:8px 0;
  background:var(--cream);
  border:1px solid var(--line);
  color:var(--green);
  font-family:var(--sans);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  border-radius:2px;
}
.a11y-fs-btn:nth-child(2){ font-size:15px; }
.a11y-fs-btn:nth-child(3){ font-size:17px; }
.a11y-fs-btn.active{ background:var(--green-deep); color:var(--cream-soft); border-color:var(--green-deep); }

.a11y-theme-btn{
  flex:1;
  height:34px;
  border:1px solid var(--line);
  cursor:pointer;
  border-radius:2px;
  font-weight:700;
  font-family:var(--sans);
}
.a11y-theme-btn.active{ outline:2px solid var(--gold); outline-offset:2px; }
.a11y-swatch-default{ background:var(--cream); color:var(--green); }
.a11y-swatch-bw{ background:#fff; color:#000; border-color:#000; }
.a11y-swatch-wb{ background:#000; color:#fff; }
.a11y-swatch-blue{ background:#EDE6D2; color:#0B3D91; }

.a11y-checks{ display:flex; flex-direction:column; gap:8px; font-size:13px; color:var(--green); margin-bottom:14px; }
.a11y-checks label{ display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:400; }
.a11y-checks input{ width:16px; height:16px; margin:0; flex:none; }

.a11y-reset{
  width:100%;
  padding:9px 0;
  background:none;
  border:1px solid var(--line);
  color:var(--green-mute);
  font-family:var(--sans);
  font-size:12px;
  cursor:pointer;
  border-radius:2px;
  transition:border-color .2s ease, color .2s ease;
}
.a11y-reset:hover{ border-color:var(--gold); color:var(--gold); }

@media (max-width:640px){
  .a11y-bar-inner{ padding:0 16px; justify-content:center; }
  .a11y-toggle span{ display:none; }
  .a11y-panel{ right:16px; left:16px; width:auto; }
}

/* ---------- Масштаб текста ---------- */
html.a11y-fs-1{ zoom:1.15; }
html.a11y-fs-2{ zoom:1.32; }

/* ---------- Межбуквенный интервал ---------- */
html.a11y-spacing body{ letter-spacing:.03em; word-spacing:.09em; }
html.a11y-spacing p{ line-height:1.8; }

/* ---------- Подчёркивание ссылок ---------- */
html.a11y-underline a{ text-decoration:underline !important; text-underline-offset:3px; }

/* ---------- Цветовые схемы ----------
   Сайт использует одни и те же переменные (--green, --gold и т.д.) то как
   цвет текста, то как цвет фона (тёмные секции, футер, кнопки) — поэтому
   точечная подмена значений переменных даёт коллизии («чёрный на чёрном»)
   в любом месте, где роль переменной не совпала с ожиданием. Чтобы гарантированно
   избежать этого при любой вёрстке, схемы «чёрным по белому» и «белым по
   чёрному» не подменяют переменные, а принудительно переопределяют цвета
   через универсальный селектор (bw) или инвертируют весь рендер целиком
   через CSS-фильтр (wb) — оба способа не зависят от того, где именно
   переменная использована. Схема «синим по бежевому» мягче остальных и
   остаётся на подмене переменных, поэтому у неё отдельные точечные фиксы. */

html.a11y-theme-bw body::before,
html.a11y-theme-wb body::before,
html.a11y-theme-blue body::before{ display:none; }

/* Чёрным по белому — максимальный контраст: принудительно всё в чёрно-белое */
html.a11y-theme-bw body,
html.a11y-theme-bw body *{
  background-color:#fff !important;
  background-image:none !important;
  color:#000 !important;
  border-color:#000 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  outline-color:#000 !important;
}
html.a11y-theme-bw a{ color:#00248F !important; text-decoration:underline !important; }
html.a11y-theme-bw img:not(.a11y-eye){ filter:grayscale(1) contrast(1.2); }
html.a11y-theme-bw ::selection{ background:#000 !important; color:#fff !important; }
html.a11y-theme-bw .scroll-progress{ background:#000 !important; }
/* Свотчи в самой панели — исключение, это образцы схем, а не контент */
html.a11y-theme-bw .a11y-swatch-default{ background:#F5F1E6 !important; color:#22433B !important; }
html.a11y-theme-bw .a11y-swatch-bw{ background:#fff !important; color:#000 !important; }
html.a11y-theme-bw .a11y-swatch-wb{ background:#000 !important; color:#fff !important; }
html.a11y-theme-bw .a11y-swatch-blue{ background:#EDE6D2 !important; color:#0B3D91 !important; }
html.a11y-theme-bw .a11y-fs-btn.active,
html.a11y-theme-bw .btn-primary{ background:#000 !important; color:#fff !important; }

/* Белым по чёрному — инверсия рендера целиком, застрахована от любых коллизий */
html.a11y-theme-wb{ background:#000; }
html.a11y-theme-wb body{
  filter:invert(1) hue-rotate(180deg);
  background:#fff;
}
html.a11y-theme-wb img,
html.a11y-theme-wb svg,
html.a11y-theme-wb video{ filter:invert(1) hue-rotate(180deg); }

/* Синим по бежевому — мягкий вариант, на переменных */
html.a11y-theme-blue{
  --cream:#EDE6D2; --cream-soft:#F5F0DE; --cream-deep:#E1D7B9;
  --green:#0B3D91; --green-deep:#082B66; --green-mute:#1A4FA0;
  --gold:#0B3D91; --gold-light:#1A4FA0; --gold-pale:#3D6BC7;
  --line:rgba(11,61,145,0.3); --line-gold:rgba(11,61,145,0.45);
}
html.a11y-theme-blue a{ text-decoration:underline; }
html.a11y-theme-blue ::selection{ background:#0B3D91; color:#fff; }
html.a11y-theme-blue .marquee-track,
html.a11y-theme-blue .a11y-bar{ background:#082B66 !important; color:#EDE6D2 !important; }
html.a11y-theme-blue .marquee-dot{ color:#EDE6D2 !important; }
html.a11y-theme-blue .a11y-toggle{ color:#EDE6D2 !important; }
html.a11y-theme-blue .btn-primary{ background:#0B3D91 !important; color:#fff !important; border-color:#0B3D91 !important; }
html.a11y-theme-blue .site-footer,
html.a11y-theme-blue .direction-card.featured,
html.a11y-theme-blue .section-dark{
  background:#082B66 !important;
  --gold:#EDE6D2; --gold-light:#F5F0DE; --gold-pale:#EDE6D2;
}
 
