/* Цвета взяты из логотипа: фиолетовый фон, синие буквы, розовая лента */
:root {
  --violet: #8f82c7;
  --violet-soft: #f3f0fb;
  --navy: #2e3a87;
  --pink: #f4c6d7;
  --pink-deep: #d9668f;
  --text: #2a2d3e;
  --muted: #6b6f85;
  --bg: #ffffff;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 20px; }
h3 { font-size: 21px; margin: 0 0 12px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ece9f6;
}
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: var(--navy); }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--text); }
.nav a:hover { color: var(--pink-deep); }
.topbar__phone { font-weight: 800; text-decoration: none; white-space: nowrap; }

/* Первый экран */
.hero { background: linear-gradient(160deg, var(--violet-soft), #fff 70%); padding: 48px 0 56px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--pink-deep); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); margin: 0 0 16px; }
.lead { font-size: 20px; }
.hero__photo { margin: 0; }
.hero__photo img { border-radius: 28px; box-shadow: 0 20px 50px rgba(46,58,135,.18); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.facts { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { background: #fff; border: 2px solid var(--pink); border-radius: 16px; padding: 10px 16px; display: flex; flex-direction: column; }
.facts b { color: var(--navy); font-size: 20px; }
.facts span { font-size: 14px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 800; text-decoration: none;
  border: 2px solid var(--navy);
}
.btn:hover { background: #222c6d; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--violet-soft); }

/* Секции */
.section { padding: 64px 0; }
.section--tint { background: var(--violet-soft); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.split--rev { grid-template-columns: 1fr 1fr; align-items: center; }
.rounded { border-radius: var(--radius); object-fit: cover; }
.split > img.rounded { aspect-ratio: 4/5; width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair img { aspect-ratio: 3/4; width: 100%; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.wide { width: 100%; aspect-ratio: 16/10; margin-bottom: 20px; }

.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 24px rgba(46,58,135,.08); }
.card--accent { background: var(--navy); color: #fff; }
.card--accent h3, .card--accent a { color: #fff; }
.big { font-size: 24px; font-weight: 800; text-decoration: none; }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "★"; position: absolute; left: 4px; color: var(--violet); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(20,22,40,.85); }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 12px; }
.lightbox__close {
  position: fixed; top: 12px; right: 16px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

/* Сведения об организации */
.info { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; margin: 0; }
.info dt, .info dd { margin: 0; padding: 14px 20px; border-bottom: 1px solid #ece9f6; }
.info dt { font-weight: 700; color: var(--muted); font-size: 15px; background: #fbfaff; }
.info ol { margin: 6px 0 0; padding-left: 22px; }
.info dt:nth-last-of-type(1), .info dd:last-of-type { border-bottom: 0; }

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Подвал */
.footer { background: var(--navy); color: #d9dcf2; padding: 36px 0; text-align: center; }
.footer img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; }
.footer b { color: #fff; }
.footer .muted { color: #aab0d8; font-size: 15px; }

/* Планшет и телефон */
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar__phone { margin-left: auto; }
  .hero__inner, .split, .split--rev, .twocol, .contacts { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .split > img.rounded { aspect-ratio: 3/2; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .section { padding: 44px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .info { grid-template-columns: 1fr; }
  .info dt { border-bottom: 0; padding-bottom: 2px; }
  .info dd { padding-top: 2px; }
}
