:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1f242d;
  --muted: #5f6571;
  --line: #e4e7ee;
  --yellow: #ffd335;
  --yellow-deep: #f5bf00;
  --red: #ee1c25;
  --dark: #121722;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.logo-city {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.menu {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  text-decoration: none;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.45);
}

.page {
  padding-top: 24px;
  padding-bottom: 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.hero-offer {
  padding: 30px 32px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 211, 53, 0.26), transparent 44%),
    linear-gradient(135deg, #1a1f2d 0%, #0f131c 100%);
  color: #fff;
  box-shadow: 0 22px 42px rgba(14, 20, 31, 0.28);
}

.label {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 211, 53, 0.18);
  color: #ffd335;
  border: 1px solid rgba(255, 211, 53, 0.42);
  font-size: 17px;
  font-weight: 700;
}

h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-offer p {
  margin: 0;
  max-width: 640px;
  color: #d5dae3;
  line-height: 1.5;
}

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

.point {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #c9d0dd;
  line-height: 1.35;
}

.point-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  background: rgba(255, 211, 53, 0.14);
  margin-bottom: 6px;
}

.point-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.point-title {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.point-text {
  display: block;
  font-size: 13px;
  color: #c9d0dd;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.btn-small {
  padding: 10px 14px;
  font-size: 14px;
}

.lead-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 16px 34px rgba(13, 18, 31, 0.09);
}

.lead-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.lead-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.lead-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

#leadForm {
  scroll-margin-top: 160px;
}

#advantages,
#requirements {
  scroll-margin-top: 160px;
}

#apply {
  scroll-margin-top: 160px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #5a6270;
}

input {
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #f1b400;
  box-shadow: 0 0 0 4px rgba(255, 211, 53, 0.18);
}

button {
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-deep));
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.96);
}

.msg {
  min-height: 20px;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.msg-ok {
  color: #0f766e;
}

.msg-error {
  color: #dc2626;
}

.privacy {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8a93a3;
}

.consent-row {
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #ee1c25;
}

.consent-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #5f6571;
  font-weight: 500;
}

.consent-label a {
  color: inherit;
  text-decoration: underline;
}

.section {
  margin-top: 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}

h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
}

.tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  min-height: 168px;
  border-radius: 16px;
  border: 1px solid #e2e7f0;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fafbfe 100%);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 211, 53, 0.26);
  color: #9a7400;
  border: 1px solid rgba(245, 191, 0, 0.45);
  font-size: 22px;
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.1;
}

.tile h4 {
  margin: 12px 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.tile p {
  margin: 0;
  color: #5f6674;
  line-height: 1.4;
}

.requirements-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.req-card {
  border-radius: 16px;
  border: 1px solid #e2e7f0;
  background: #fff;
  padding: 16px;
}

.req-num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #ffd335;
  font-size: 12px;
  font-weight: 800;
}

.req-card p {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.3;
}

.steps {
  background: linear-gradient(135deg, #ffd335, #f8c700);
}

.steps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.steps-row {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: visible;
}

.step {
  width: 300px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #eceff5;
  background: #fff;
  box-shadow: 0 6px 14px rgba(16, 20, 29, 0.08);
  padding: 12px;
  display: block;
  position: relative;
}

.step::after {
  content: "➜";
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #121722;
  color: #ffd335;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 3;
}

.step:nth-child(3)::after,
.step:nth-child(5)::after {
  display: none;
}

.step-num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #121722;
  color: #ffd335;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 211, 53, 0.22);
  font-size: 16px;
  margin-left: 8px;
  margin-bottom: 8px;
}

.step-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.step-text h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #0f172a;
  line-height: 1.2;
}

.step-text p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.footer {
  background: #10141d;
  color: #c4cad3;
}

.footer-inner {
  padding: 26px 20px 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-inner > div:last-child {
  justify-self: end;
  text-align: right;
}

.footer-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.footer-text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.thanks-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

.thanks-modal.is-open {
  display: block;
}

.thanks-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 19, 0.58);
}

.thanks-modal__dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 10vh auto 0;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.thanks-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.thanks-modal__label {
  margin: 0 0 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thanks-modal__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.thanks-modal__text {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.45;
}

.thanks-modal__btn {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .steps-row {
    justify-content: center;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
  }

  .menu {
    width: 100%;
    order: 3;
    overflow: auto;
    white-space: nowrap;
  }

  .page {
    padding-top: 14px;
  }

  .hero-offer,
  .lead-card,
  .section {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

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

  .steps-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .step {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .footer-inner > div:last-child {
    justify-self: start;
    text-align: left;
  }
}
