:root {
  --paper: #fbf7f1;
  --paper-strong: #fffdf9;
  --ink: #211a1d;
  --muted: #6d6264;
  --line: #e2d8cf;
  --berry: #8f263f;
  --berry-dark: #5c1428;
  --teal: #1e6f68;
  --clay: #c16a4a;
  --mist: #eaf0ea;
  --shadow: 0 24px 80px rgba(44, 26, 25, 0.12);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 241, 0.9);
  border-bottom: 1px solid rgba(226, 216, 207, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.header-phone {
  text-decoration: none;
}

.nav a:hover,
.header-phone:hover {
  color: var(--berry);
}

.header-phone {
  color: var(--berry-dark);
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 73px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 5vw, 72px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(251, 247, 241, 0.96) 0%, rgba(251, 247, 241, 0.88) 50%, rgba(234, 240, 234, 0.9) 100%);
}

.hero__content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 82px);
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
}

.hero__lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero__actions,
.contact__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button--primary {
  color: #fff;
  background: var(--berry);
}

.button--primary:hover {
  background: var(--berry-dark);
}

.button--ghost {
  color: var(--berry-dark);
  background: transparent;
  border-color: var(--line);
}

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

.hero__facts div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero__facts dt {
  color: var(--berry);
  font-weight: 800;
}

.hero__facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero__photo {
  position: relative;
  margin: 0;
}

.hero__photo img {
  width: 100%;
  min-height: 520px;
  max-height: 720px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(70px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section__head--wide {
  max-width: 890px;
}

.section__head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
}

.section--intro {
  background: var(--paper-strong);
}

.audience-grid,
.price-grid,
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.audience-card,
.price-card {
  min-height: 280px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-number {
  display: block;
  margin-bottom: 44px;
  color: var(--clay);
  font-weight: 900;
}

.audience-card p,
.price-card p {
  color: var(--muted);
}

.methods {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.methods__text p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.method-list span {
  padding: 12px 16px;
  color: var(--teal);
  background: var(--mist);
  border: 1px solid #cfdcd4;
  border-radius: 6px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #2a2426;
  color: #fff;
}

.split__content {
  max-width: 720px;
}

.split__content p,
.clean-list {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.certificate img {
  width: min(100%, 620px);
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.clean-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding-left: 22px;
  border-left: 3px solid var(--clay);
}

.evenings {
  background: #fff8f5;
}

.evenings__layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr 0.85fr;
  gap: 18px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.evenings__photo {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 8px;
}

.evenings__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background: var(--berry-dark);
  border-radius: 8px;
}

.evenings__panel p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.education {
  background: var(--paper-strong);
}

.docs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-grid figure {
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f6f4f1;
  border-radius: 6px;
}

.docs-grid figcaption {
  margin-top: 14px;
  color: var(--muted);
}

.price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card {
  min-height: auto;
}

.price-card--accent {
  border-color: rgba(143, 38, 63, 0.3);
  box-shadow: var(--shadow);
}

.price-card__meta {
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 800;
}

.price-card__value {
  margin: 18px 0;
  color: var(--berry);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--mist);
}

.contact__content {
  max-width: 620px;
}

.contact__content p {
  color: var(--muted);
  font-size: 18px;
}

.contact__content a:not(.button) {
  color: var(--berry-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(30, 111, 104, 0.22);
  border-color: var(--teal);
}

.form-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 600;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-hidden {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--berry);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #211a1d;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .methods,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__photo {
    order: -1;
  }

  .hero__photo img {
    min-height: 360px;
    max-height: 520px;
  }

  .hero__facts,
  .audience-grid,
  .evenings__layout,
  .price-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .evenings__photo--second {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .header-phone {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .hero__facts {
    gap: 12px;
  }

  .audience-card,
  .price-card,
  .contact-form {
    padding: 22px;
  }

  .price-card__value {
    font-size: 38px;
  }
}
