:root {
  --blue: #1f5fbf;
  --blue-dark: #163f7d;
  --sky: #e8f1fc;
  --ink: #1c2330;
  --muted: #5b6577;
  --line: #dde3ec;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --accent: #f2a03d;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Шапка */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo span { color: var(--blue); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
}
.nav a:hover, .nav a.active { color: var(--blue); }
.header-phone {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* Герой */
.hero {
  background: linear-gradient(135deg, #163f7d 0%, #1f5fbf 55%, #4c8ae0 100%);
  color: #fff;
  padding: 80px 0 90px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 18px;
}
.hero p { font-size: 20px; margin: 0 0 28px; opacity: 0.95; }
.hero-visual {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    linear-gradient(#ffffff 0 0) center / 6px 100% no-repeat,
    linear-gradient(#ffffff 0 0) center / 100% 6px no-repeat,
    linear-gradient(160deg, rgba(255,255,255,0.55), rgba(255,255,255,0.15));
  border: 10px solid #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #1c2330;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  font-size: 17px;
  cursor: pointer;
}
.btn:hover { background: #e48c22; color: #1c2330; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* Секции */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.section .lead { color: var(--muted); margin: 0 0 36px; max-width: 720px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card img { width: 48px; height: 48px; display: block; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-item {
  border-left: 4px solid var(--blue);
  padding: 4px 0 4px 18px;
}
.why-item strong { display: block; font-size: 19px; margin-bottom: 4px; }
.why-item span { color: var(--muted); }

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}
.review p { margin: 0 0 14px; }
.review .who { font-weight: 700; }
.review .who small { font-weight: 400; color: var(--muted); }

/* Форма */
.form-box {
  background: var(--sky);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.form-box form { display: grid; gap: 14px; }
.form-box label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.form-box input {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid #b9c6d8;
  border-radius: 10px;
  background: #fff;
  width: 100%;
}

/* Внутренние страницы */
.page-head {
  background: linear-gradient(135deg, #e8f1fc 0%, #f5f7fa 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-head h1, .page-title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
}
.page-head p { color: var(--muted); margin: 0; max-width: 760px; }

.content { max-width: 820px; }
.content h2 { font-size: 26px; margin: 40px 0 10px; }
.content h2:first-child { margin-top: 0; }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 6px; }

.service-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block .swatch {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c8ae0, #163f7d);
}
.service-block .swatch.alt { background: linear-gradient(135deg, #f2a03d, #d9772a); }
.service-block .swatch.alt2 { background: linear-gradient(135deg, #7fb8a4, #2f7a63); }
.service-block .swatch.alt3 { background: linear-gradient(135deg, #b9c6d8, #5b6577); }
.service-block h2 { margin: 0 0 8px; font-size: 26px; }
.service-block p { margin: 0 0 10px; }

table.prices {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.prices th, table.prices td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
table.prices th { background: var(--sky); }
table.prices td:last-child { white-space: nowrap; font-weight: 700; }
.table-scroll { overflow-x: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h2 { margin-top: 0; font-size: 24px; }
.map-stub {
  min-height: 260px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(31,95,191,0.12) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(31,95,191,0.12) 38px 40px),
    #eef3f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.stat {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 22px;
}
.stat b { display: block; font-size: 32px; color: var(--blue); }

/* Подвал */
.site-footer {
  background: #1c2330;
  color: #c7cfdb;
  padding: 44px 0 28px;
  font-size: 15px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols h4 { color: #fff; margin: 0 0 10px; font-size: 16px; }
.edu-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #333c4c;
  color: #f2c48a;
  font-weight: 600;
}

/* Адаптив */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .form-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 18px; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 26px; }
  .cards, .why, .reviews, .contact-grid, .stats, .footer-cols { grid-template-columns: 1fr; }
  .page-head h1, .page-title { font-size: 30px; }
  .service-block { grid-template-columns: 1fr; gap: 16px; }
  .service-block .swatch { width: 72px; height: 72px; }
  .form-box { padding: 24px; }
  .nav { gap: 2px 14px; font-size: 15px; }
}
