/* Self-hosted Google Fonts (variable, subsets cyrillic + latin) */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/Montserrat-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/Montserrat-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600 700;font-display:swap;src:url('../fonts/CormorantGaramond-600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600 700;font-display:swap;src:url('../fonts/CormorantGaramond-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Marck Script';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/MarckScript-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Marck Script';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/MarckScript-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ============================================================
   Лендинг-форма для рекламы (поддомен). Токены и компоненты —
   те же, что на основном сайте (src/css/styles.css), чтобы вид
   совпадал; лишнее в сборку не тянем — страница должна открываться
   быстро, на неё идёт платный трафик.
   ============================================================ */
:root {
  --bg: #FFF7EE;
  --white: #FFFFFF;
  --purple: #5C347A;
  --purple-dark: #47265F;
  --purple-deep: #43265B;
  --lavender: #A981B8;
  --lavender-bg: #F2E5EF;
  --brown-title: #512C20;
  --text: #28252A;
  --text-soft: #5E5860;
  --line: #EED8CE;

  --font-ui: 'Montserrat', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Marck Script', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Страница: фото на весь экран, поверх — карточка --- */
.page { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; overflow: hidden; }
.page__bg { position: absolute; inset: 0; z-index: 0; }
.page__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* Затемнение под карточкой: на фото есть светлые участки, без него текст теряется */
.page::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(67, 38, 91, 0.42) 0%, rgba(67, 38, 91, 0.28) 45%, rgba(67, 38, 91, 0.5) 100%);
}
.page__inner { position: relative; z-index: 2; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }

/* --- Карточка с формой (как на основном сайте, но по центру) --- */
.form-card {
  position: relative;
  background: rgba(255, 252, 248, 0.96); border-radius: 26px; padding: 30px 30px 22px;
  box-shadow: 0 16px 50px rgba(75, 44, 83, 0.28); backdrop-filter: blur(4px);
}
.form-card__branch { position: absolute; right: 8px; top: 4px; width: 66px; height: 60px; pointer-events: none; opacity: .9; }
.brand { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.brand:hover { color: var(--purple-dark); }
.form-card__title { font-family: var(--font-display); font-weight: 700; font-size: 31px; line-height: 1; color: var(--brown-title); padding-right: 40px; }
.form-card__script { font-family: var(--font-script); font-size: 34px; line-height: 1; color: #694186; margin-top: 2px; }
.form-card__text { font-size: 15px; line-height: 1.5; margin-top: 16px; color: var(--text); }
.form-card form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.form-card .btn { height: 56px; font-size: 17px; border-radius: 12px; margin-top: 4px; box-shadow: none; }
.form-card__safe { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 11.5px; color: var(--text-soft); margin-top: 14px; text-align: center; }
.form-card__safe svg { width: 14px; height: 14px; color: var(--purple); flex: none; }
.form-card__safe a:hover { text-decoration: underline; }

/* --- Поля --- */
.field { position: relative; }
.field svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--purple); pointer-events: none; }
.field input {
  width: 100%; height: 58px; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  padding: 0 16px 0 54px; font-family: inherit; font-size: 16px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #8F8792; }
.field input:focus { border-color: var(--lavender); box-shadow: 0 0 0 4px rgba(169, 129, 184, 0.18); }
.field input.is-invalid { border-color: #D98A87; box-shadow: 0 0 0 4px rgba(217, 138, 135, 0.18); }
.field--hint input { height: 64px; padding: 0 16px 20px 54px; }
.field__hint { position: absolute; left: 54px; bottom: 10px; font-size: 11px; line-height: 1; color: #9A929C; pointer-events: none; }
.field--hint input:not(:placeholder-shown) + .field__hint { display: none; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--purple); color: var(--white);
  font-weight: 600; font-size: 18px; line-height: 1;
  border: 0; border-radius: 12px; height: 60px; padding: 0 34px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px rgba(92, 52, 122, 0.22);
}
.btn:hover { background: var(--purple-dark); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--block { width: 100%; }
/* «Детальніше» — второстепенное действие, поэтому контурная кнопка на фото */
.btn--ghost {
  width: 100%; background: rgba(255, 252, 248, 0.14); color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.85); box-shadow: none;
  backdrop-filter: blur(4px); font-size: 17px; height: 56px;
}
.btn--ghost:hover { background: rgba(255, 252, 248, 0.26); }

/* --- Состояния формы --- */
.lead-form__hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.lead-form__error { margin: 0; font-size: 13px; line-height: 1.4; color: #B3413E; background: #FDEDEC; border: 1px solid #F3C9C7; border-radius: 12px; padding: 10px 14px; }
.lead-form__success { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--lavender-bg); color: var(--purple-deep); display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; font-weight: 500; }
.lead-form__success svg { width: 28px; height: 28px; flex: none; color: var(--purple); }
.lead-form__success p { margin: 0; }

@media (max-width: 400px) {
  .page { padding: 20px 14px; }
  .form-card { padding: 24px 22px 18px; border-radius: 22px; }
  .form-card__title { font-size: 27px; }
  .form-card__script { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
