:root {
  --bg: #fbfcfa;
  --surface: #ffffff;
  --surface-soft: #edf2ed;
  --ink: #1b2420;
  --muted: #5b6761;
  --line: #d8ded7;
  --accent: #2f6f66;
  --accent-dark: #1f514b;
  --olive: #7a7d35;
  --plum: #5d3d57;
  --shadow: 0 18px 45px rgba(27, 36, 32, 0.08);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 222, 215, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(27, 36, 32, 0.07);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.footer-brand {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a,
.telegram-link,
.site-footer a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.telegram-link:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-actions {
  gap: 12px;
  min-width: max-content;
}

.telegram-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

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

.button-ghost:hover,
.button-secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 44px 0 0;
}

.hero-copy {
  max-width: 650px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 5.8vw, 72px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.18;
  font-weight: 800;
}

.hero-note {
  max-width: 555px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  position: relative;
  align-self: center;
  height: min(47vw, 520px);
  min-height: 430px;
  overflow: hidden;
  border-radius: 48% 0 0 48%;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fact {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(27, 36, 32, 0.72);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-fact strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.hero-fact span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-strip div {
  padding: 24px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.split-section,
.about-section,
.services-section,
.process-section,
.booking-section {
  padding: 64px 0;
}

.about-section,
.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.split-section {
  display: block;
}

.section-heading.compact {
  position: static;
  max-width: 730px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.about-copy p,
.booking-copy p,
.terms-note {
  color: var(--muted);
  font-size: 16px;
}

.request-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.request-list article {
  min-height: 200px;
  padding: 28px 28px 24px 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.request-list article + article {
  padding-left: 28px;
}

.request-list article:last-child {
  border-right: 0;
}

.request-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: var(--accent);
}

.request-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.request-list p,
.service-card p,
.service-card li,
.process-list span,
.site-footer p {
  color: var(--muted);
}

.about-section {
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy {
  max-width: 520px;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.principles span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.education-panel {
  display: block;
  min-height: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(27, 36, 32, 0.06);
}

.education-panel h3 {
  margin-bottom: 22px;
  font-size: 24px;
}

.education-panel ul {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding-left: 19px;
}

.education-panel li {
  color: var(--muted);
}

.education-panel a {
  color: var(--ink);
  font-weight: 600;
}

.education-panel a:hover {
  color: var(--accent);
}

.education-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(27, 36, 32, 0.06);
}

.service-card.primary {
  border-color: rgba(47, 111, 102, 0.45);
  background: #fdfefd;
}

.service-card h3 {
  font-size: 24px;
}

.price {
  color: var(--accent-dark);
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
}

.service-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 22px;
}

.service-card li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

.service-card .button {
  margin-top: auto;
}

.terms-note {
  max-width: 860px;
  margin: 22px 0 0;
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.process-list li::before {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--olive);
  border-radius: 50%;
  color: var(--olive);
  font-size: 18px;
  font-weight: 800;
  counter-increment: steps;
  content: counter(steps);
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 21px;
  left: 58px;
  right: -8px;
  border-top: 1px dashed rgba(122, 125, 53, 0.55);
  content: "";
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 8px;
  font-size: 16px;
}

.process-list span {
  color: var(--muted);
  font-size: 14px;
}

.booking-section {
  align-items: stretch;
  padding-bottom: 74px;
}

.booking-copy {
  align-self: center;
}

.contact-box {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-box a {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.booking-form input {
  height: 48px;
  padding: 0 14px;
}

.booking-form textarea {
  resize: vertical;
  min-height: 118px;
  padding: 13px 14px;
}

.booking-form input:focus,
.booking-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 102, 0.14);
}

.booking-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.consent a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 36px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 24px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.2;
}

.site-footer a,
.site-footer span {
  display: block;
}

.site-footer a {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  max-width: 320px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
}

.legal-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 8px;
  }

  .hero,
  .about-section,
  .booking-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    height: 520px;
    min-height: 0;
    border-radius: var(--radius);
  }

  .trust-strip,
  .request-list,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }

  .request-list article,
  .request-list article + article {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .request-list article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .request-list article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .service-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .process-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    align-items: center;
    gap: 12px;
  }

  .header-actions {
    width: auto;
    justify-content: space-between;
  }

  .main-nav,
  .telegram-link {
    display: none;
  }

  .section {
    width: calc(100% - 24px);
  }

  .hero {
    gap: 20px;
    padding-top: 28px;
  }

  h1 {
    font-size: 42px;
    line-height: 0.96;
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-note,
  .section-heading p,
  .about-copy p,
  .booking-copy p,
  .terms-note {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button,
  .booking-form .button {
    width: 100%;
  }

  .hero-media {
    order: -1;
    height: 250px;
    min-height: 0;
    border-radius: var(--radius);
  }

  .hero-media img {
    object-position: center 30%;
  }

  .hero-fact {
    display: none;
  }

  .trust-strip,
  .request-list,
  .process-list {
    grid-template-columns: 1fr;
  }

  .split-section,
  .about-section,
  .services-section,
  .process-section,
  .booking-section {
    padding: 62px 0;
  }

  .request-list article,
  .request-list article + article,
  .service-card,
  .booking-form,
  .site-footer {
    padding: 22px;
  }

  .request-list article,
  .request-list article:nth-child(odd),
  .request-list article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .request-list article:last-child {
    border-bottom: 0;
  }

  .education-panel {
    min-height: 0;
    padding: 24px;
  }

  .process-list li {
    min-height: 0;
  }

  .process-list li::before {
    margin-bottom: 14px;
  }
}
