:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1c1e;
  --text-soft: #3a3a3c;
  --muted: #6e6e73;
  --border: #e5e3e0;
  --error: #b3402f;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

input,
select,
button {
  font: inherit;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--text);
  color: #fff;
}

.btn--primary:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header__brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.header__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.header__nav a:hover {
  color: var(--text);
}

.header__phone {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.header__cta {
  padding: 9px 18px;
}

.hero {
  padding: 96px 0 72px;
}

.hero__kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.hero__lead {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
}

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

.section {
  padding: 40px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section__lead {
  margin: 0 0 28px;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.card h2 {
  margin: 16px 0 8px;
}

.card__meta,
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #f0efec;
  color: var(--muted);
}

.card p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.card p:last-of-type {
  margin-bottom: 0;
}

.card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 15px;
}

.card__actions {
  margin-top: 24px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form__field--full,
.form__submit,
.form__note {
  grid-column: 1 / -1;
}

.form__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form__field input,
.form__field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.form__field input:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--text);
}

.form__field input.is-invalid,
.form__field select.is-invalid {
  border-color: var(--error);
}

.form__error {
  margin: 6px 0 0;
  min-height: 1em;
  font-size: 13px;
  color: var(--error);
}

.form__submit {
  width: 100%;
  margin-top: 8px;
}

.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.form__field--checkbox + .form__field--checkbox {
  margin-top: -8px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--text);
  cursor: pointer;
}

.checkbox a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox a:hover {
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__alert {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--error);
  border-radius: 8px;
  font-size: 14px;
  color: var(--error);
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 24px 16px;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.form-success p {
  margin: 0 0 24px;
  color: var(--muted);
}

.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__name {
  font-weight: 700;
  font-size: 15px;
}

.footer__copy {
  font-size: 14px;
  color: var(--muted);
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer__links a:hover {
  color: var(--text);
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-lead {
  margin: 0;
  color: var(--muted);
}

.doc {
  max-width: 820px;
  color: var(--text-soft);
}

.doc__date {
  margin: 0 0 28px;
  color: var(--muted);
}

.doc__section h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text);
}

.doc p {
  margin: 0 0 10px;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.doc li {
  margin: 0 0 6px;
}

.doc strong {
  color: var(--text);
}

.doc a {
  color: var(--text);
}

.info-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4px 24px;
  align-items: baseline;
}

.info-list dt {
  font-weight: 600;
  font-size: 15px;
}

.info-list dd {
  margin: 0;
  color: var(--text-soft);
}

.info-list dd a {
  color: var(--text-soft);
  text-decoration: none;
}

.info-list dd a:hover {
  color: var(--text);
}

.footer__contacts a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer__contacts a:hover {
  color: var(--text);
}

@media (max-width: 800px) {
  .header__nav,
  .header__phone {
    display: none;
  }

  .header__cta {
    margin-left: auto;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .card,
  .form-card {
    padding: 24px 20px;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .info-list__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }
}
