/* ============================================================
   Марина Довганишина — репетитор по английскому для школьников
   Стиль по мотивам lingua-learning.com: serif-заголовки,
   sans-текст, фиолетовый акцент, много воздуха.
   ============================================================ */

:root {
  --accent: #6559a3;
  --accent-dark: #4e4484;
  --accent-light: #ece9f6;
  --text: #333;
  --muted: #777;
  --line: #e6e6e6;
  --bg: #fff;
  --bg-soft: #f7f6fb;
  --serif: "Tinos", "Times New Roman", Georgia, serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; color: #222; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 2px solid var(--accent);
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: var(--accent); border-color: #fff; }
.btn--light:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--accent-dark); }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; color: #222; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; display: block; }
.logo__sub { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: #222; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.socials { display: flex; gap: 6px; align-items: center; }
.socials a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #555; }
.socials a:hover { background: var(--accent-light); color: var(--accent); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #222; margin: 5px 0; transition: transform .2s, opacity .2s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero главной ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #3f3670 0%, #6559a3 55%, #8b7fc4 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 45% 85%, #fff 0 1.5px, transparent 2.5px);
  background-size: 160px 160px, 220px 220px, 130px 130px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; padding: 72px 24px 80px; }
.hero__kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.hero__lead { font-size: 1.15rem; opacity: .95; max-width: 560px; margin-bottom: 30px; }
.hero__photo { justify-self: center; }
.hero__photo img {
  width: 300px; border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  border: 6px solid rgba(255,255,255,.15);
}

/* ---------- баннер внутренних страниц ---------- */
.banner {
  position: relative; color: #fff; text-align: center; padding: 70px 24px 60px;
  background: linear-gradient(135deg, #3f3670 0%, #6559a3 60%, #8b7fc4 100%);
}
.banner h1 { color: #fff; margin: 0 0 10px; }
.banner p { margin: 0; opacity: .9; }
.banner__check {
  width: 54px; height: 54px; margin: -27px auto 0; position: relative; z-index: 2;
  background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.banner__check svg { width: 26px; height: 26px; fill: var(--accent); }

/* ---------- секции ---------- */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__title { text-align: center; margin-bottom: 40px; }
.section__title h2 { margin-bottom: 8px; }
.section__title p { color: var(--muted); margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose .lead { font-size: 1.25rem; font-family: var(--serif); color: #222; }

/* списки с иконками */
.list-icons { list-style: none; padding: 0; margin: 0 0 1.4em; }
.list-icons li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.list-icons li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-light) center/14px no-repeat;
}
.list-icons--bolt li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236559a3'><path d='M13 2 3 14h7l-1 8 10-12h-7z'/></svg>");
}
.list-icons--check li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236559a3'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
}

/* факты о формате */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 2em; }
.fact { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.fact b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1.2; }
.fact span { font-size: .9rem; color: var(--muted); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* сайдбар */
.sidebar { display: grid; gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card h3 { font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.card li:last-child { border-bottom: 0; }
.card li a { color: #333; }
.card li a:hover { color: var(--accent); }
.card--accent { background: var(--accent-light); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 4px 12px; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; font-size: .85rem; }

/* видеовизитка */
.video-wrap { max-width: 860px; margin: 0 auto; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #2f2a52, #4e4484); box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 24px;
}
.video__play { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; border: 2px solid rgba(255,255,255,.5); }
.video__play svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }
.video__placeholder p { margin: 0; opacity: .85; }

/* цены */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: #fff; text-align: center; position: relative; }
.price--featured { border-color: var(--accent); box-shadow: 0 16px 40px rgba(101,89,163,.12); }
.price__kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.price h3 { margin-bottom: 6px; }
.price__meta { color: var(--muted); margin-bottom: 18px; }
.price__amount { font-family: var(--serif); font-size: 2.6rem; color: var(--accent); line-height: 1; margin-bottom: 20px; }
.price__amount small { font-size: 1.1rem; color: var(--muted); font-family: var(--sans); }
.price ul { text-align: left; list-style: none; padding: 0; margin: 0 0 24px; }
.price li { padding: 5px 0 5px 26px; position: relative; font-size: .95rem; }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.note { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 32px auto 0; max-width: 860px; }

/* документы */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.doc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.doc__thumb { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; cursor: zoom-in; }
.doc__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.doc__thumb:hover img { transform: scale(1.04); }
.doc__thumb::after {
  content: "Увеличить"; position: absolute; right: 10px; bottom: 10px; font-size: .75rem; padding: 4px 10px;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 3px; opacity: 0; transition: opacity .2s;
}
.doc__thumb:hover::after { opacity: 1; }
.doc__thumb--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: default; font-size: .9rem; }
.doc__thumb--empty:hover::after { opacity: 0; }
.doc__body { padding: 18px 20px 20px; }
.doc__body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.doc__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.doc__meta b { color: var(--accent); font-weight: 600; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,32,.92); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; box-shadow: 0 30px 80px rgba(0,0,0,.6); border-radius: 4px; }
.lightbox__btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; padding: 10px; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn svg { width: 36px; height: 36px; fill: currentColor; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; opacity: .85; font-size: .9rem; padding: 0 60px; }

/* контакты */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 48px; }
.contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: #333; transition: border-color .2s, transform .15s; }
.contact:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent); }
.contact svg { width: 36px; height: 36px; fill: var(--accent); margin: 0 auto 12px; display: block; }
.contact b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.contact span { font-size: .9rem; color: var(--muted); }
.checklist { background: var(--bg-soft); border-radius: var(--radius); padding: 28px 32px; }
.checklist ol { margin: 0; padding-left: 1.3em; }
.checklist li { padding: 4px 0; }

/* CTA-полоса */
.cta { background: linear-gradient(135deg, #4e4484, #6559a3); color: #fff; text-align: center; padding: 64px 24px; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { opacity: .9; max-width: 640px; margin: 0 auto 28px; }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .85rem; color: var(--muted); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--muted); text-decoration: underline; }
.footer a:hover { color: var(--accent); }
.footer .socials { justify-content: flex-end; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 56px 24px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__photo { order: -1; }
  .hero__photo img { width: 220px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer .socials { justify-content: flex-start; }
}
@media (max-width: 760px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.3rem; }
  h2 { font-size: 1.65rem; }
  .header__inner { min-height: 68px; gap: 16px; }
  .logo__sub { display: none; }
  .logo__name { font-size: 1.15rem; }
  .logo__mark { width: 34px; height: 34px; }
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .header .socials { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .lightbox { padding: 16px; }
}
