:root {
  --red: #D31145;
  --red-dark: #b80d3b;
  --teal: #0E6E7E;
  --teal-dark: #0a5561;
  --teal-soft: #dbe9eb;
  --ink: #1c2a2d;
  --muted: #6a7a7d;
  --placeholder: #8a9699;
  --consent: #3d4d50;
  --line: #d5dddd;
  --line-card: #e3e8e8;
  --error: #c62828;
  --success: #1aa05a;
  --footer-text: #cfe4e7;
  --font: Lexend, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
input, select, button, textarea { font-family: inherit; }
h1, h2, h3, p { margin: 0; }

.header__inner, .hero, .register, .footer__inner { width: 100%; margin-left: auto; margin-right: auto; }

.header { background: #fff; }
.header__inner { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px; }
.header__logo { width: auto; }
.header__logo--vinmec { height: 40px; }
.header__logo--aia { height: 24px; }
.header__sep { width: 1px; height: 20px; background: var(--line); }

.hero {
  position: relative; height: 460px; overflow: hidden;
  margin: 0 var(--gutter); width: auto;
  border-radius: 18px; background: var(--teal-soft);
}
.hero-swiper { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-swiper .swiper-slide { overflow: hidden; }
.hero-swiper picture, .hero-swiper img { width: 100%; height: 100%; }
.hero-swiper img { object-fit: cover; }
.hero-swiper:not(.swiper-initialized) .swiper-wrapper { display: block; height: 100%; }
.hero-swiper:not(.swiper-initialized) .swiper-slide { height: 100%; }
.hero-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.hero-swiper .swiper-slide { position: relative; }
.slide__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 79, 90, .05) 15%, rgba(11, 79, 90, .88) 100%);
}
.hero-swiper .swiper-pagination { bottom: 16px; z-index: 4; }
.hero-swiper .swiper-pagination-bullet { width: 8px; height: 8px; background: #fff; opacity: .5; transition: all .3s; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; width: 24px; border-radius: 4px; }
.slide__content {
  position: absolute; left: 20px; right: 20px; bottom: 44px; z-index: 3; color: #fff; pointer-events: none;
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease .25s, transform .6s ease .25s;
}
.swiper-slide-active .slide__content, .hero-swiper:not(.swiper-initialized) .slide__content { opacity: 1; transform: none; }
.slide__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.slide__title { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: pretty; }
.slide__brand { display: block; color: #ffd166; }
.slide__subtitle { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; opacity: .95; text-wrap: pretty; }
.slide__list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.slide__list li { position: relative; padding-left: 22px; }
.slide__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.slide__list strong { color: #ffd166; font-weight: 700; }
.slide__steps { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; counter-reset: step; }
.slide__steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.slide__steps li::before { content: "0" counter(step); font-size: 11px; font-weight: 500; letter-spacing: .04em; opacity: .65; }
.slide__steps li::after {
  content: ""; width: 14px; height: 14px; margin: 0 8px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.slide__steps li:last-child { color: #ffd166; }
.slide__steps li:last-child::after { display: none; }

.register { padding: 32px var(--gutter) 40px; display: flex; justify-content: center; }
.form-card {
  width: 600px; max-width: 100%;
  background: #fff; border: 1px solid var(--line-card); border-radius: 18px;
  padding: 24px 20px; box-shadow: 0 16px 40px rgba(14, 110, 126, .12);
}
.form { display: flex; flex-direction: column; gap: 14px; }
.form[hidden] { display: none; }
.form__head { text-align: left; }
.form__title { font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.form__desc { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 6px; text-wrap: pretty; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--placeholder); }
.req { color: var(--red); }
.input, .select {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--placeholder); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a9699' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 24px center;
}
.select[data-empty="true"] { color: var(--placeholder); }
.select option { color: var(--ink); }
.input:focus, .select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 110, 126, .15); }
.has-error .input, .has-error .select { border-color: var(--error); }
.has-error .input:focus, .has-error .select:focus { box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.field__error { font-size: 12px; color: var(--error); line-height: 1.4; }
.field__error[hidden] { display: none; }

.consent {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--consent);
}
.consent input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.consent__text { display: flex; flex-direction: column; gap: 6px; }
.consent__title { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ink); }
.consent__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }
.consent__link:hover { color: var(--teal); }
.has-error .consent { color: var(--error); }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.recaptcha-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.recaptcha-wrap[hidden] { display: none; }
.recaptcha-wrap .field__error { text-align: center; }

.form-alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.form-alert[hidden] { display: none; }
.form-alert--error { background: #fdecef; color: #9c1030; border: 1px solid #f5c2cd; }
.form-alert--success { background: #e6f6ec; color: #0f6b3a; border: 1px solid #bfe6cd; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 52px; padding: 0 20px; border: 0; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: .7; cursor: not-allowed; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.form-privacy svg { flex: none; }

.success { text-align: center; padding: 56px 4px 64px; }
.success[hidden] { display: none; }
.success__icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: #e6f6ec; color: var(--success); display: flex; align-items: center; justify-content: center; }
.success__title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.success__desc { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 380px; margin: 0 auto; text-wrap: pretty; }

.benefits { padding: 0 var(--gutter) 48px; }
.benefits__head { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.section__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.section__title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.section__brand { display: block; color: var(--red); }
.section__desc { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.benefits__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.benefit {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 20px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line-card); box-shadow: 0 10px 30px rgba(14, 110, 126, .08);
}
.benefit__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.benefit__eyebrow::before { content: ""; flex: none; width: 3px; height: 14px; border-radius: 2px; background: var(--teal); }
.benefit__title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-wrap: pretty; }
.benefit__list { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--consent); }
.benefit__list li { position: relative; padding-left: 24px; }
.benefit__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230E6E7E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.benefit__list strong { color: var(--red); font-weight: 700; }
.benefit__steps { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.benefit__steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.benefit__steps li::before { content: "0" counter(step); flex: none; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--teal); }
.benefit__steps li:last-child { color: var(--red); }

.footer { background: var(--teal); color: var(--footer-text); }
.footer__inner { display: flex; flex-direction: column; gap: 6px; padding: 28px 20px 36px; font-size: 12px; line-height: 1.6; }
.footer__copy { color: #fff; }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .header__inner { height: 64px; gap: 14px; padding: 0 32px; }
  .header__logo--vinmec { height: 46px; }
  .header__logo--aia { height: 28px; }
  .header__sep { height: 26px; }

  .hero { height: 500px; border-radius: 20px; }
  .slide__overlay { background: linear-gradient(90deg, rgba(11, 79, 90, .78) 0%, rgba(11, 79, 90, .35) 45%, rgba(11, 79, 90, 0) 70%); }
  .slide__content { left: 40px; right: auto; bottom: auto; top: 50%; transform: translateY(calc(-50% + 18px)); max-width: 480px; }
  .swiper-slide-active .slide__content, .hero-swiper:not(.swiper-initialized) .slide__content { transform: translateY(-50%); }
  .slide__eyebrow { font-size: 12px; font-weight: 600; margin-bottom: 14px; }
  .slide__title { font-size: 34px; line-height: 1.12; }
  .slide__subtitle { font-size: 16px; margin-top: 14px; }
  .slide__list { margin-top: 18px; gap: 8px; font-size: 15px; }
  .slide__list li { padding-left: 26px; }
  .slide__list li::before { top: 3px; width: 18px; height: 18px; background-size: 11px; }
  .slide__steps { margin-top: 20px; row-gap: 10px; }
  .slide__steps li { font-size: 15px; gap: 8px; }
  .slide__steps li::before { font-size: 12px; }
  .slide__steps li::after { margin: 0 12px; }
  
  .register { padding: 56px 32px 48px; }
  .benefits { padding: 0 var(--gutter) 72px; }
  .benefits__head { margin-bottom: 32px; }
  .section__eyebrow { font-size: 12px; font-weight: 600; }
  .section__title { font-size: 32px; }
  .section__desc { font-size: 15px; }
  .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .benefit { padding: 26px 24px; border-radius: 20px; gap: 12px; }
  .form-card { border-radius: 20px; padding: 32px; }
  .form { gap: 16px; }
  .form__head { text-align: center; }
  .form__title { font-size: 24px; letter-spacing: 0; margin-bottom: 6px; }
  .form__desc { font-size: 13px; margin-bottom: 0; }
  .input, .select { font-size: 14px; }
  .btn { font-size: 15px; }

  .footer__inner { gap: 4px; padding: 28px 32px; font-size: 13px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 64px; }
  .header__inner { height: 72px; gap: 18px; padding: 0 64px; }
  .header__logo--vinmec { height: 52px; }
  .header__logo--aia { height: 32px; }

  .hero { height: clamp(600px, 42vw, 85vh); border-radius: 24px; }
  .slide__content { left: 56px; max-width: 640px; }
  .slide__steps { max-width: none; width: max-content; white-space: nowrap; }
        .slide__title { font-size: 44px; line-height: 1.08; }
  .slide__subtitle { font-size: 18px; }
  .slide__list { font-size: 16px; }

  .register { padding: 72px 64px 56px; }
  .benefits { padding: 0 64px 96px; }
  .benefits__grid { gap: 24px; max-width: 1180px; margin: 0 auto; }
  .benefit { padding: 30px 28px; }
  .benefit__title { font-size: 20px; }
  .benefit__list { font-size: 15px; }
  .benefit__steps li { font-size: 15px; }
  .section__brand { display: inline; }
  .footer__inner { padding: 32px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .input, .select, .swiper-pagination-bullet, .slide__content { transition: none; }
}
