  :root{
    --navy:#152340;
    --navy-2:#22385F;
    --cream:#FBF9F4;
    --cream-2:#F3EEE1;
    --white:#FFFFFF;
    --graphite:#2B2E33;
    --graphite-soft:#666A6F;
    --brass:#AC8452;
    --brass-light:#C9A470;
    --line: rgba(21,35,64,0.14);
    --line-gold: rgba(172,132,82,0.45);
    --radius: 2px;
    --maxw: 1180px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Golos Text', sans-serif;
    background:var(--white);
    color:var(--graphite);
    font-size:16px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'PT Serif', serif;
    font-weight:700;
    letter-spacing:-0.01em;
    color:var(--navy);
  }
  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}

  .eyebrow{
    font-family:'Golos Text', sans-serif;
    font-size:12px;
    letter-spacing:0.22em;
    text-transform:uppercase;
    color:var(--brass);
    font-weight:700;
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
  }
  .eyebrow::before{
    content:"";
    width:28px; height:1px; background:var(--brass);
    display:inline-block;
  }
  .eyebrow.center{ justify-content:center; }
  .eyebrow.center::before{ display:none; }

  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding:16px 30px;
    font-size:14px; font-weight:700;
    letter-spacing:0.04em; text-transform:uppercase;
    border-radius:var(--radius);
    border:1px solid transparent;
    cursor:pointer;
    transition:all .25s ease;
    white-space:nowrap;
  }
  .btn-primary{ background:var(--navy); color:var(--white); }
  .btn-primary:hover{ background:var(--navy-2); }
  .btn-outline{ background:transparent; color:var(--navy); border-color:var(--navy); }
  .btn-outline:hover{ background:var(--navy); color:var(--white); }

  /* ===== LOGO LOCKUP (real crest + wordmark) ===== */
  .lockup{ display:flex; align-items:center; justify-content:center; gap:22px; }
  .lockup .crest-img{ height:56px; width:auto; }
  .lockup .word-block{ text-align:left; line-height:1.25; }
  .lockup .word-block.right{ text-align:left; }
  .lockup .small-word{
    font-family:'PT Serif', serif; font-size:13px; letter-spacing:0.16em;
    text-transform:uppercase; color:var(--navy);
  }
  .lockup .big-word{
    font-family:'PT Serif', serif; font-size:26px; letter-spacing:0.1em;
    text-transform:uppercase; color:var(--navy); font-weight:700;
  }
  .lockup .rule{ width:56px; height:1px; background:var(--brass); margin:5px 0; }

  .logo-mini{ display:flex; align-items:center; gap:12px; }
  .logo-mini img{ height:34px; width:auto; }
  .logo-mini .word{ font-family:'PT Serif', serif; font-size:17px; letter-spacing:0.12em; text-transform:uppercase; color:var(--navy); }

  /* ===== TOPBAR ===== */
  .topbar{
    position:sticky; top:0; z-index:30;
    background:var(--white);
    border-bottom:1px solid var(--line);
    padding:18px 0;
  }
  .topbar .wrap{ display:flex; align-items:center; justify-content:space-between; }
  .topbar nav{ display:flex; gap:34px; font-size:13px; letter-spacing:0.03em; color:var(--graphite-soft); }
  .topbar nav a:hover{ color:var(--navy); }
  @media (max-width:900px){ .topbar nav{ display:none; } }

  /* ===== HERO ===== */
  .hero{
    background:var(--white);
    padding:76px 0 88px;
    text-align:center;
    border-bottom:1px solid var(--line);
  }
  .hero .lockup{ margin-bottom:44px; gap:32px; }
  .hero .lockup .crest-img{ height:190px; }
  .hero .lockup .big-word{ font-size:36px; }
  .hero .lockup .small-word{ font-size:15px; }
  @media (max-width:600px){
    .hero .lockup{ flex-direction:column; gap:14px; }
    .hero .lockup .crest-img{ height:140px; }
    .hero .lockup .word-block{ text-align:center; }
  }
  .hero h1{
    font-size:clamp(30px, 4.4vw, 50px);
    line-height:1.16;
    max-width:840px;
    margin:0 auto 22px;
  }
  .hero p.lead{
    color:var(--graphite-soft);
    font-size:18px;
    max-width:560px;
    margin:0 auto 40px;
  }
  .hero .cta-row{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-bottom:24px; }
  .hero .fine{ color:var(--graphite-soft); font-size:13.5px; }
  .hero .fine strong{ color:var(--navy); font-weight:700; }
  .hero-photo-band{
    margin-top:64px;
    display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:14px;
  }
  @media (max-width:760px){ .hero-photo-band{ grid-template-columns:1fr 1fr; } }
  .ph{
    border:1px solid var(--line);
    background:var(--cream);
    display:flex; align-items:center; justify-content:center; text-align:center;
    padding:14px;
    font-size:11px; letter-spacing:0.04em; text-transform:uppercase;
    color:var(--graphite-soft);
  }
  .hero-photo-band .ph{ aspect-ratio:4/3; }
  .hero-photo-band .ph:first-child{ aspect-ratio:auto; }

  /* ===== SECTION generic ===== */
  section{ padding:100px 0; }
  section + section{ border-top:1px solid var(--line); }
  .section-head{ max-width:680px; margin-bottom:60px; }
  .section-head h2{ font-size:clamp(26px,3.2vw,38px); line-height:1.18; }
  .section-head p{ color:var(--graphite-soft); font-size:17px; margin-top:16px; }

  /* ===== BLOCK 2 — 5 differences ===== */
  .why-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
  }
  .why-card{
    background:var(--white);
    padding:44px 34px;
    min-height:220px;
    display:flex; flex-direction:column; justify-content:space-between;
  }
  .why-card .num{
    font-family:'PT Serif', serif; font-style:italic;
    color:var(--brass); font-size:15px; margin-bottom:24px;
  }
  .why-card h3{ font-size:20px; margin-bottom:12px; }
  .why-card p{ color:var(--graphite-soft); font-size:15px; }
  .why-card.large{ grid-column:span 2; border-top:3px solid var(--navy); }
  @media (max-width:860px){
    .why-grid{ grid-template-columns:1fr; }
    .why-card.large{ grid-column:span 1; }
  }

  /* ===== BLOCK 3 — how it works ===== */
  .how{ background:var(--cream); }
  .how-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:72px; }
  @media (max-width:900px){ .how-grid{ grid-template-columns:1fr; gap:48px; } }
  .subject-list{ list-style:none; }
  .subject-list li{
    display:flex; justify-content:space-between; align-items:baseline;
    padding:15px 0; border-bottom:1px solid var(--line);
    font-size:16px;
  }
  .subject-list li span.tag{
    font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--brass); border:1px solid var(--brass); padding:3px 9px; border-radius:20px;
  }
  .format-block{ margin-bottom:34px; }
  .format-block h4{ font-size:15px; letter-spacing:0.04em; text-transform:uppercase; color:var(--navy); margin-bottom:14px; }
  .format-block ul{ list-style:none; }
  .format-block li{ padding-left:18px; position:relative; margin-bottom:9px; color:var(--graphite-soft); font-size:15px; }
  .format-block li::before{ content:"—"; position:absolute; left:0; color:var(--brass); }
  .legal-note{
    margin-top:20px; padding:18px 20px; background:var(--white);
    border-left:2px solid var(--brass); font-size:13px; color:var(--graphite-soft); line-height:1.55;
  }

  /* ===== BLOCK 4 — environment ===== */
  .env-grid{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:1px;
    background:var(--line); border:1px solid var(--line);
  }
  @media (max-width:960px){ .env-grid{ grid-template-columns:repeat(2,1fr); } }
  .env-card{
    background:var(--white);
    padding:28px 22px;
  }
  .env-card h3{ color:var(--navy); font-size:16px; margin-bottom:10px; font-family:'PT Serif',serif; }
  .env-card h3::before{ content:"—"; color:var(--brass); margin-right:6px; }
  .env-card p{ color:var(--graphite-soft); font-size:14px; }
  .photo-strip{
    margin-top:1px;
    display:grid; grid-template-columns:repeat(6,1fr); gap:1px;
    background:var(--line); border:1px solid var(--line); border-top:none;
  }
  @media (max-width:860px){ .photo-strip{ grid-template-columns:repeat(2,1fr);} }
  .photo-strip .ph{ aspect-ratio:3/4; border:none; background:var(--cream); }

  /* ===== BLOCK 5 — proof ===== */
  .stat-strip{
    display:grid; grid-template-columns:repeat(6,1fr);
    border-top:1px solid var(--line); border-bottom:1px solid var(--line);
    margin-bottom:80px;
  }
  @media (max-width:900px){ .stat-strip{ grid-template-columns:repeat(3,1fr); } }
  .stat{ padding:30px 20px; border-right:1px solid var(--line); }
  .stat:last-child{ border-right:none; }
  .stat .n{ font-family:'PT Serif',serif; font-size:30px; color:var(--navy); }
  .stat .l{ font-size:12.5px; color:var(--graphite-soft); margin-top:6px; }

  .team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; margin-bottom:80px; }
  @media (max-width:900px){ .team-grid{ grid-template-columns:repeat(2,1fr); } }
  .team-card .ph{ aspect-ratio:4/5; margin-bottom:16px; }
  .team-card h4{ font-family:'PT Serif',serif; font-size:17px; color:var(--navy); }
  .team-card .role{ font-size:13px; color:var(--brass); margin-bottom:8px; }
  .team-card p{ font-size:13.5px; color:var(--graphite-soft); }

  .achieve-row{ display:flex; flex-wrap:wrap; gap:12px; }
  .achieve-tag{
    border:1px solid var(--line-gold); padding:10px 18px; font-size:14px; color:var(--navy); border-radius:30px;
  }

  /* ===== BLOCK 6 — admission voyage ===== */
  .admission{ background:var(--cream); }
  .route{ position:relative; margin-top:24px; }
  .route-line{
    position:absolute; left:29px; top:14px; bottom:14px; width:1px;
    background:repeating-linear-gradient(to bottom, var(--brass) 0 6px, transparent 6px 12px);
  }
  @media (max-width:760px){ .route-line{ left:23px; } }
  .stop{ display:grid; grid-template-columns:60px 1fr; gap:28px; padding:26px 0; position:relative; }
  @media (max-width:760px){ .stop{ grid-template-columns:48px 1fr; gap:18px; } }
  .stop .mark{
    width:60px; height:60px; border-radius:50%;
    background:var(--white); border:1px solid var(--brass);
    display:flex; align-items:center; justify-content:center;
    font-family:'PT Serif',serif; font-size:20px; color:var(--brass);
    position:relative; z-index:1;
  }
  @media (max-width:760px){ .stop .mark{ width:48px; height:48px; font-size:16px; } }
  .stop h3{ font-size:19px; margin-bottom:8px; }
  .stop p{ color:var(--graphite-soft); font-size:15px; max-width:640px; }
  .admission-quote{
    margin-top:56px; padding:40px; background:var(--white); color:var(--navy);
    font-family:'PT Serif',serif; font-size:22px; line-height:1.5; font-style:italic;
    border-left:3px solid var(--brass); border-top:1px solid var(--line); border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  }

  /* ===== BLOCK 7 — pricing ===== */
  .price-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid var(--line); margin-bottom:44px; }
  @media (max-width:900px){ .price-grid{ grid-template-columns:1fr; } }
  .price-card{ padding:42px 34px; border-right:1px solid var(--line); }
  .price-card:last-child{ border-right:none; }
  .price-card.featured{ border:2px solid var(--navy); margin:-1px; position:relative; }
  .price-card .tier{ font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--brass); margin-bottom:18px; }
  .price-card h3{ font-size:22px; margin-bottom:14px; }
  .price-card p.desc{ color:var(--graphite-soft); font-size:14.5px; margin-bottom:26px; min-height:66px; }
  .price-card .price{ font-family:'PT Serif',serif; font-size:26px; color:var(--navy); }
  .price-card .price small{ font-size:13px; font-weight:400; color:var(--graphite-soft); font-family:'Golos Text',sans-serif; }

  .scholarship{
    display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
    padding:44px; background:var(--cream); margin-bottom:88px; border:1px solid var(--line);
  }
  @media (max-width:860px){ .scholarship{ grid-template-columns:1fr; } }
  .scholarship h3{ font-size:20px; margin-bottom:14px; }
  .scholarship p{ color:var(--graphite-soft); font-size:15px; }

  /* ===== Final CTA / form ===== */
  .final-cta{ background:var(--cream); }
  .final-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
  @media (max-width:900px){ .final-grid{ grid-template-columns:1fr; gap:44px; } }
  .final-cta p{ color:var(--graphite-soft); font-size:16px; max-width:440px; }
  .form-card{ background:var(--white); border:1px solid var(--line); padding:34px; }
  .form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
  @media (max-width:520px){ .form-row{ grid-template-columns:1fr; } }
  .form-card input, .form-card select, .form-card textarea{
    width:100%; background:var(--white); border:1px solid var(--line);
    padding:13px 14px; color:var(--graphite); font-family:'Golos Text',sans-serif; font-size:14px;
    border-radius:var(--radius);
  }
  .form-card input::placeholder, .form-card textarea::placeholder{ color:#9AA0A6; }
  .form-card .full{ grid-column:1 / -1; margin-bottom:14px; }
  .form-card .btn-primary{ width:100%; margin-top:6px; }

  /* ===== FOOTER ===== */
  footer{ background:var(--white); border-top:2px solid var(--navy); padding:30px 0; }
  footer .wrap{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--graphite-soft); flex-wrap:wrap; gap:12px; }

/* ===== HERO PHOTO CARDS / TILDA READY ===== */

.hero-photo-band.kovcheg-gallery {
  align-items: stretch;
}

.hero-photo-band .photo-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 280px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: 'Golos Text', sans-serif;
  color: var(--white);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  appearance: none;
  -webkit-appearance: none;
}

.hero-photo-band .photo-card:first-child {
  aspect-ratio: auto;
}

.hero-photo-band .photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(21, 35, 64, 0.16);
  border-color: rgba(172, 132, 82, 0.55);
}

.hero-photo-band .photo-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.hero-photo-band .photo-card:hover img {
  transform: scale(1.06);
}

.hero-photo-band .photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21, 35, 64, 0.55),
    rgba(21, 35, 64, 0.08) 58%,
    rgba(21, 35, 64, 0.02)
  );
  pointer-events: none;
}

.hero-photo-band .photo-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.hero-photo-band .photo-card span::after {
  content: "↗";
  margin-left: 8px;
  color: var(--brass);
  font-size: 13px;
}

/* ===== LIGHTBOX ===== */

.kovcheg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 16, 28, 0.86);
}

.kovcheg-lightbox.is-active {
  display: flex;
}

.kovcheg-lightbox-content {
  width: min(1120px, 100%);
  animation: kovchegLightboxIn .25s ease;
}

.kovcheg-lightbox-content img {
  width: 100%;
  max-height: 82vh;
  display: block;
  object-fit: contain;
  background: #111;
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.kovcheg-lightbox-title {
  margin-top: 14px;
  text-align: center;
  color: #fff;
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.kovcheg-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 34px;
  line-height: 42px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.kovcheg-lightbox-close:hover {
  transform: scale(1.06);
  background: var(--cream);
}

@keyframes kovchegLightboxIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .hero-photo-band.kovcheg-gallery {
    grid-template-columns: 1fr;
  }

  .hero-photo-band .photo-card,
  .hero-photo-band .photo-card img {
    min-height: 230px;
  }

  .kovcheg-lightbox {
    padding: 16px;
  }

  .kovcheg-lightbox-close {
    top: 12px;
    right: 12px;
  }
  
  
}

.achievements-block {
    max-width: 930px;
    margin: 0 auto;
    color: #243247;
    font-family: Georgia, "Times New Roman", serif;
  }

  .section-head .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #a08b6c;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .section-head .eyebrow::before {
    width: 23px;
    height: 1px;
    background: currentColor;
    content: "";
  }

  .section-head h2 {
    margin: 0;
    color: #243247;
    line-height: 1.16;
  }

  .achieve-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Тег остаётся span, но получает поведение доступной кнопки. */
  .achieve-tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 16px;
    border: 1px solid #dfd7ca;
    border-radius: 999px;
    background: #fff;
    color: #334052;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    user-select: none;
  }

  .achieve-tag:hover,
  .achieve-tag:focus-visible,
  .achieve-tag.is-active {
    border-color: #a08b6c;
    background: #a08b6c;
    color: #fff;
    outline: none;
  }

  .achieve-tag:hover { transform: translateY(-1px); }

  /* Панель появляется непосредственно под строкой с выбранной кнопкой. */
  .achievement-gallery {
    display: none;
    width: 100%;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e9e3da;
  }

  .achievement-gallery.is-open { display: block; }

  .achievement-gallery__title {
    margin: 0 0 15px;
    color: #243247;
    font-size: 20px;
    line-height: 1.25;
  }

  .achievement-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .achievement-card {
    overflow: hidden;
    border: 1px solid #e4ddd3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(37, 43, 48, .06);
  }

  .achievement-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    object-fit: cover;
    background: #eee8df;
  }

  .achievement-card__body { padding: 12px 13px 14px; }

  .achievement-card__caption {
    margin: 0;
    color: #334052;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
  }

  .achievement-card__type {
    display: inline-block;
    margin-bottom: 6px;
    color: #a08b6c;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  @media (max-width: 680px) {
    .achievement-gallery__grid { grid-template-columns: 1fr; }
    .achieve-row { gap: 8px; }
    .achieve-tag { min-height: 36px; padding: 8px 13px; font-size: 12px; }
  }
  
  /* Плавное увеличение фото при наведении */
.achievement-card img.achievement-card__media {
  transition: transform .35s ease;
}

.achievement-card:hover img.achievement-card__media {
  transform: scale(1.35);
}

.achievement-card {
  overflow: hidden;
  border: 1px solid #e4ddd3;
  border-radius: 10px;
  background: #fff;
}
.team-card {
  overflow: hidden;
}

.team-card p {
  overflow: hidden;
  word-break: break-word;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* количество видимых строк */
}

/* Полный текст после нажатия */
.team-card p.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

/* Кнопка «Подробнее» */
.team-more {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a08b6c;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-more:hover {
  color: #243247;
}
.team-card .ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background-color: #eee8df;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}