/* ============================================================
   ВизаФранция — стили лендинга
   Палитра: navy #0E1B33, France blue #0055A4, red #EF4135
   ============================================================ */
:root {
  --navy: #0E1B33;
  --navy-2: #16264D;
  --blue: #0055A4;
  --blue-bright: #2F7DE1;
  --red: #EF4135;
  --red-dark: #D73328;
  --green: #1FAF54;
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --text: #1A2338;
  --muted: #5B6B8C;
  --line: #E3E9F4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 27, 51, .10);
  --shadow-lg: 0 24px 60px rgba(14, 27, 51, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 50px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: #EEF2FA; }
.section--dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__head p { color: var(--muted); font-size: 17px; margin: 0; }
.section__head--light p { color: #B9C6E2; }
.section__head--left { text-align: left; margin: 0 0 28px; }

/* ------------------------------ Кнопки ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(239, 65, 53, .35); }
.btn--red:hover { background: var(--red-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #00468A; }
.btn--green { background: var(--green); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--wide { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ------------------------------ Шапка ------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 27, 51, .92);
  backdrop-filter: blur(10px);
  color: #fff;
}
.header__row { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.logo__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(140deg, var(--blue), var(--blue-bright)); color: #fff; }
.logo__accent { color: #7FB3F0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #CBD6EC; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: #fff; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__cta .btn--red { padding: 10px 18px; font-size: 15px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 20%, #12295C 70%, #0F3D7C 100%);
  color: #fff;
  padding: 84px 0 64px;
}
.hero--photo { background: var(--navy); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero--photo .hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 20, 40, .93) 0%, rgba(10, 20, 40, .82) 42%, rgba(10, 20, 40, .45) 100%);
}
.hero__tower {
  position: absolute; right: -40px; bottom: -30px; width: min(52vw, 620px);
  color: rgba(255, 255, 255, .06);
}
.tricolor { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: flex; }
.tricolor::before, .tricolor::after { content: ""; flex: 1; }
.tricolor::before { background: var(--blue); }
.tricolor::after { background: var(--red); }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: rgba(47, 125, 225, .18); border: 1px solid rgba(127, 179, 240, .4);
  color: #A9CDF5; font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero__accent { color: #8FBAF2; }
.hero__subtitle { font-size: 19px; color: #D5E1F6; max-width: 560px; }
.form-card--hero { justify-self: end; width: 100%; }
.hero__stats { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 34px; margin-top: 26px; }
.stat {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 15.5px; font-weight: 600; color: #D9E4F7; max-width: 320px;
}
.stat__check { flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/10px no-repeat;
  transform: translateY(2px);
}

/* ------------------------------ Формы ------------------------------ */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); color: var(--text); }
.form-card { padding: 30px 28px; }
.form-card__head h2 { font-size: 22px; color: var(--text); }
.form-card__head p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.req { color: var(--red); }
.field input, .field textarea, .quiz input[type="text"], .quiz input[type="tel"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: #FBFCFE; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .quiz input:focus {
  border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 125, 225, .14);
}
.field input.invalid, .field textarea.invalid { border-color: var(--red); }
.field textarea { resize: vertical; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; }
.radio span {
  display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--muted); background: #fff; transition: .15s;
}
.radio input:checked + span { border-color: var(--blue); color: var(--blue); background: #EDF4FD; }
.radio input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47, 125, 225, .2); }
.form-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-note a { color: var(--blue); }
.form-status { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; }
.form-status--ok { display: block; background: #E5F7EC; color: #157A3C; }
.form-status--err { display: block; background: #FDEBE9; color: #B3271D; }

/* ------------------------------ Услуги ------------------------------ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card--popular { border: 2px solid var(--blue); }
.service-card__badge {
  position: absolute; top: -13px; left: 22px; padding: 4px 12px;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.service-card__desc { color: var(--muted); font-size: 15px; flex: none; }
.service-card__price { font-size: 21px; font-weight: 800; color: var(--blue); margin: 6px 0 14px; }
.service-card__features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; flex: 1; }
.service-card__features li { display: flex; gap: 9px; font-size: 14.5px; color: var(--text); }
.service-card__features li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  background: #E5F7EC url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231FAF54" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/10px no-repeat;
}

/* ------------------------------ Шаги ------------------------------ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.step__n { display: inline-block; font-size: 30px; font-weight: 800; color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  -webkit-background-clip: text; background-clip: text; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ------------------------------ Почему мы ------------------------------ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefits-grid--4 { grid-template-columns: repeat(4, 1fr); }
.benefit { background: var(--card); border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.benefit h3 { color: var(--blue); font-size: 16px; letter-spacing: .03em; text-transform: uppercase; }
.benefit p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------------- Раздел документов: текст + узкое фото ---------------------- */
.docs-top {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px; align-items: center; margin-bottom: 34px;
}
.docs-top__text h2 { text-align: left; margin-bottom: 14px; }
.docs-top__text p { color: var(--muted); margin: 0; }
.docs-img {
  display: block; width: 100%; margin: 0;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-card--bottom { max-width: 560px; margin: 44px auto 0; }

/* ------------------------------ Квиз ------------------------------ */
.quiz-wrap { max-width: 760px; }
.quiz-card { padding: 34px 34px 28px; }
.quiz__progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.quiz__progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); transition: width .3s ease; }
.quiz__step-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.quiz__title { font-size: 22px; margin-bottom: 20px; }
.quiz__options { display: grid; gap: 10px; }
.quiz__option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; transition: border-color .12s, background .12s; background: #FBFCFE;
}
.quiz__option:hover { border-color: var(--blue-bright); background: #F3F8FE; }
.quiz__option input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.quiz__option.selected { border-color: var(--blue); background: #EDF4FD; }
.quiz__nav { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quiz__hint { font-size: 13px; color: var(--muted); }
.quiz__back { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 10px; }
.quiz__back:hover { color: var(--text); }
.quiz__contacts { display: grid; gap: 14px; }
.quiz-success { text-align: center; padding: 30px 10px; }
.quiz-success__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: #E5F7EC; display: grid; place-items: center; color: var(--green); }

/* ------------------------------ Аккордеон ------------------------------ */
.accordion { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.acc-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 17px 20px; cursor: pointer; font-weight: 700; font-size: 16.5px;
  list-style: none; user-select: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s; margin-top: -4px;
}
.acc-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.acc-item__count { font-size: 13px; font-weight: 700; color: var(--blue); background: #EDF4FD;
  border-radius: 999px; padding: 3px 10px; }
.acc-body { padding: 0 20px 18px; color: var(--muted); }
.acc-body ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0; }
.acc-body li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; }
.acc-body li::before { content: "—"; color: var(--blue); flex: none; }
/* термины и описания в два столбца 1:4, ширина одинакова во всех строках */
.acc-body li.doc-row { display: grid; grid-template-columns: 1fr 4fr; column-gap: 20px; align-items: start; }
.acc-body li.doc-row::before { content: none; }
.doc-row__term { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.5; }
.doc-row__text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.docs-cta { text-align: center; margin-top: 34px; }
.docs-cta p { font-size: 18px; font-weight: 700; }

/* ------------------------------ Контакты ------------------------------ */
#contacts { padding: 36px 0; }
#contacts .section__head { margin-bottom: 14px; }
#contacts h2 { margin-bottom: 0; }
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
/* два столбца: слева обычные подписи, справа жирные значения; строки одной высоты */
.contacts { display: grid; gap: 7px; margin: 0; max-width: 660px; }
.contacts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.contacts dt { color: var(--muted); font-weight: 400; font-size: 15.5px; line-height: 1.4; }
.contacts dd { margin: 0; font-weight: 700; font-size: 15.5px; line-height: 1.4; word-break: break-word; }
.contacts dd a { color: var(--text); text-decoration: none; }
.contacts dd a:hover { color: var(--blue); }
.contacts__messengers { display: flex; gap: 10px; }

/* ------------------------------ Футер ------------------------------ */
.footer { background: var(--navy); color: #9FB0CF; padding: 26px 0 20px; font-size: 13.5px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer__brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { color: #9FB0CF; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin: 0 0 4px; }
.footer__legal--last { margin-bottom: 0; }

/* ------------------------------ Плавающие кнопки ------------------------------ */
.floating { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 60; }
.floating__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .15s;
}
.floating__btn:hover { transform: scale(1.08); }
.floating__btn--tg { background: #229ED9; }
.floating__btn--phone { background: var(--red); }

/* ------------------------------ Админка ------------------------------ */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: #EEF2FA; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-table tr:hover td { background: #FAFCFF; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--new { background: #FDEBE9; color: #B3271D; }
.badge--done { background: #E5F7EC; color: #157A3C; }
.admin-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 18px 0; }

/* ------------------------------ Адаптив ------------------------------ */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 56px; }
  .hero__stats { grid-template-columns: repeat(2, auto); }
  .contacts-grid { grid-template-columns: 1fr; gap: 36px; }
  .docs-top { grid-template-columns: 1fr; gap: 26px; }
  .docs-img { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 14px 20px 20px;
    background: var(--navy); border-bottom: 2px solid var(--blue);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; }
  .burger { display: block; }
  .hide-mobile { display: none; }
  .header__cta .btn--red { padding: 9px 14px; font-size: 14px; }
  .services-grid, .steps, .benefits-grid { grid-template-columns: 1fr; }
  .contacts > div { grid-template-columns: 125px minmax(0, 1fr); }
  .acc-body li.doc-row { grid-template-columns: 1fr; gap: 2px; }
  .section { padding: 54px 0; }
  .form-card { padding: 24px 20px; }
  .quiz-card { padding: 24px 18px; }
  .hero__tower { right: -120px; }
  .floating { right: 12px; bottom: 12px; }
}

:focus-visible { outline: 3px solid rgba(47, 125, 225, .55); outline-offset: 2px; }
::selection { background: #CFE2FA; }

/* honeypot-поле против ботов: скрыто от людей, видно ботам */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
