:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f5f2ee;
  --ink: #111111;
  --muted: #6f6f6f;
  --line: #d9d4ce;
  --accent: #111111;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.phone-link {
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 10px 14px;
  font: inherit;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.hero h1,
.page-hero h1,
.success-page h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-photo {
  align-self: stretch;
  min-height: 520px;
  background: #151515;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 34px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #2c2c2c;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 74px);
}

.section h2,
.document h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: 0;
}

.section h3 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.section p,
.document p,
.document li {
  font-size: 18px;
  line-height: 1.62;
}

.text-stack p {
  margin: 0 0 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #fff;
}

.service-card h3 {
  margin-top: 0;
  font-size: 26px;
  line-height: 1.12;
}

.service-card a {
  margin-top: auto;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.portrait-inline {
  width: min(360px, 100%);
  margin-top: 34px;
  background: #111;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.certificate-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.certificate-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.telegram-section {
  max-width: 100%;
  background: var(--soft);
}

.telegram-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.telegram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.telegram-post {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
}

.telegram-post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eee;
}

.telegram-post div {
  padding: 20px;
}

.telegram-post p {
  font-size: 16px;
  line-height: 1.5;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
}

.contact-section {
  text-align: center;
}

.lead-form {
  max-width: 820px;
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.lead-form.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lead-form label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--muted);
  font-size: 14px;
}

.lead-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 0;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.lead-form .button {
  margin-top: 22px;
}

.form-note,
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.form-status {
  min-height: 22px;
  color: var(--ink);
  font-weight: 700;
}

.separator {
  margin: 48px 0 54px;
  font-size: 42px;
  line-height: 1;
}

.contact-large {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 150px) 20px clamp(44px, 7vw, 90px);
}

.page-hero.compact {
  padding-bottom: 28px;
}

.large-text {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.clean-list {
  margin: 18px 0;
  padding-left: 20px;
}

.clean-list li {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.5;
}

.info-band {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-band div {
  padding: clamp(32px, 5vw, 60px);
  background: var(--soft);
  text-align: center;
}

.info-band span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.info-band strong,
.price {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 400;
}

.payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-card .button {
  margin-top: 0;
}

.document {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 100px) 20px;
}

.document h1 {
  margin-bottom: 40px;
}

.document h2 {
  margin: 34px 0 12px;
  font-size: 26px;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-page section {
  max-width: 760px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
  padding: 14px 16px;
  background: #111;
  color: #fff;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
}

.cookie-banner button {
  border: 1px solid #fff;
  background: #fff;
  color: #111;
  padding: 8px 16px;
  cursor: pointer;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero,
  .split,
  .payment-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-photo {
    min-height: 440px;
  }

  .service-grid,
  .telegram-grid,
  .certificate-grid,
  .lead-form,
  .lead-form.wide,
  .info-band {
    grid-template-columns: 1fr;
  }

  .lead-form .button {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .brand {
    white-space: normal;
  }

  .hero h1,
  .page-hero h1,
  .success-page h1 {
    font-size: 48px;
  }

  .hero-photo {
    min-height: 360px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .contact-large {
    font-size: 28px;
  }
}
