/* ============ ТОКЕНЫ (тёмная «люкс» тема) ============ */
:root {
  --bg-color: #1e1e1e;
  --card-bg-color: #2b2b2b;
  --primary-text-color: #e0e0e0;
  --secondary-text-color: #a0a0a0;
  --accent-color: #c5b398;
  --accent-deep: #a39075;
  --border-color: #444444;
  font-family: 'Montserrat', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--primary-text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============ ФОНОВАЯ ГАЛЕРЕЯ ============ */
.background-gallery-fixed {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  transform: translateZ(0);
}
.background-gallery-fixed .gallery-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 15s ease-out;
  transform: scale(1);
}
.background-gallery-fixed .gallery-item.active {
  opacity: 1;
  transform: scale(1.1);
}
/* кинематографичная виньетка */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,.3) 0%, rgba(0,0,0,.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ============ КОНТЕЙНЕР ============ */
.form-page-container {
  max-width: 700px;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

/* ============ ШАПКА / ЛОГО ============ */
.header { text-align: center; margin-bottom: 30px; opacity: 0; }
.logo-word {
  display: inline-flex;
  flex-direction: column;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7em;
  font-weight: 500;
  letter-spacing: .18em;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,.5);
  line-height: 1.25;
}
.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: .5em;
  color: var(--accent-color);
  text-transform: uppercase;
}

/* ============ ЗАГОЛОВОК ============ */
.title-container {
  text-align: center;
  margin-bottom: 50px;
  opacity: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 30px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.main-title {
  font-size: 2.5em;
  font-weight: 300;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-shadow: 0 4px 10px rgba(0,0,0,.8);
}
.title-divider { width: 100px; height: 1px; background: rgba(255,255,255,.3); margin: 15px auto; }
.title-season { font-size: 1.5em; font-weight: 300; margin-bottom: 20px; color: var(--accent-color); }
.title-subtitle {
  font-size: 1.1em;
  color: rgba(255,255,255,.9);
  font-weight: 300;
  text-shadow: 0 2px 5px rgba(0,0,0,.8);
}
.title-small { font-size: .9em; opacity: .8; }

/* ============ СТЕКЛЯННАЯ КАРТОЧКА ============ */
.form-card {
  background: rgba(30,30,30,.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(197,179,152,.2);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  opacity: 0;
}

/* ============ ГРУППЫ ПОЛЕЙ ============ */
.form-group { margin-bottom: 40px; opacity: 0; }
.form-group label {
  display: block;
  margin-bottom: 15px;
  font-size: 1em;
  font-weight: 500;
  color: #fff;
}
.field-hint { font-size: .8em; color: rgba(255,255,255,.6); margin: -10px 0 10px; }
.email-note { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 5px; line-height: 1.4; }
.email-note a { color: var(--accent-color); border-bottom: 1px solid var(--accent-color); text-decoration: none; }

/* ============ ПОЛЯ С ПОДЧЁРКИВАНИЕМ ============ */
.input-wrapper { position: relative; }
input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  border-radius: 0;
  color: #fff;
  font-size: 1.2em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  transition: all .3s ease;
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus {
  outline: none;
  border-bottom-color: transparent;
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #2b2b2b inset;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}
input.error { border-bottom-color: #ff6b6b; box-shadow: 0 1px 0 0 #ff6b6b; }
input::placeholder { color: rgba(255,255,255,.35); }

/* золотая линия фокуса */
.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all .4s ease;
  transform: translateX(-50%);
}
input:focus + .input-focus-line,
.iti:focus-within + .input-focus-line { width: 100%; }

/* intl-tel-input в тёмной теме */
/* телефонная группа должна лежать ПОВЕРХ следующих полей,
   иначе выпадающий список стран уходит под Email */
.phone-group { position: relative; z-index: 20; }
.iti { width: 100%; }
.iti input[type="tel"] { padding-left: 52px; }
.iti__flag-container { z-index: 30; }
.iti__selected-flag { background: transparent !important; }
.iti__country-list {
  z-index: 40;
  background: #26241f;
  border: 1px solid rgba(197,179,152,.35);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.7);
  color: var(--primary-text-color);
  max-height: 240px;
  width: min(340px, 82vw);
  margin-top: 6px;
  padding: 6px 0;
  overflow-x: hidden;
}
.iti__country { padding: 9px 14px; font-size: .92em; }
.iti__divider { border-bottom: 1px solid rgba(255,255,255,.12); }
.iti__country:hover, .iti__country.iti__highlight { background: rgba(197,179,152,.18); }
.iti__country-name { color: var(--primary-text-color); }
.iti__dial-code { color: var(--secondary-text-color); }
.iti__arrow { border-top-color: rgba(255,255,255,.6); }
.iti__country-list::-webkit-scrollbar { width: 8px; }
.iti__country-list::-webkit-scrollbar-track { background: transparent; }
.iti__country-list::-webkit-scrollbar-thumb { background: rgba(197,179,152,.4); border-radius: 99px; }

/* ============ РАДИО-КАРТОЧКИ ============ */
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.radio-group--single { grid-template-columns: 1fr; }
.radio-card { position: relative; cursor: pointer; margin-bottom: 0 !important; }
.radio-card input { position: absolute; opacity: 0; cursor: pointer; }
.radio-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: rgba(255,255,255,.7);
  transition: all .3s ease;
  text-align: center;
  min-height: 80px;
  font-weight: 400;
}
.radio-group--single .radio-content { min-height: 56px; }
.radio-card:hover .radio-content {
  background: rgba(255,255,255,.1);
  border-color: rgba(197,179,152,.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,.2);
}
.radio-card input:checked + .radio-content {
  background: rgba(197,179,152,.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(197,179,152,.2);
}

/* ============ РАЗДЕЛИТЕЛЬ ============ */
.form-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,179,152,.35), transparent);
  margin: 40px 0;
  opacity: 0;
}

/* ============ ПЕРЕКЛЮЧАТЕЛЬ ТЕЛЕФОН/TELEGRAM ============ */
.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.phone-head label { margin-bottom: 0; }
.contact-switch {
  position: relative;
  display: flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 3px;
}
.switch-selection {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: rgba(197,179,152,.25);
  border: 1px solid var(--accent-color);
  border-radius: 999px;
  transition: transform .3s ease;
}
.contact-switch.tg .switch-selection { transform: translateX(100%); }
.switch-option {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.switch-option svg { width: 17px; height: 17px; fill: rgba(255,255,255,.55); transition: fill .3s; }
.switch-option.active svg { fill: var(--accent-color); }

/* ============ ЧЕКБОКС ПОЛИТИКИ ============ */
.privacy-checkbox-group { margin-bottom: 10px; }
.privacy-label-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 0 !important;
}
.privacy-real-checkbox { position: absolute; opacity: 0; }
.privacy-custom-box {
  flex: 0 0 auto;
  display: inline-block;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 2px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 5px;
  position: relative;
  transition: all .25s ease;
}
.privacy-custom-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #1e1e1e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s ease;
}
.privacy-real-checkbox:checked + .privacy-custom-box {
  background: var(--accent-color);
  border-color: var(--accent-color);
}
.privacy-real-checkbox:checked + .privacy-custom-box::after { transform: rotate(45deg) scale(1); }
.privacy-label-container:hover .privacy-custom-box { border-color: var(--accent-color); }
.privacy-text-label { font-size: .85em; font-weight: 300; color: rgba(255,255,255,.75); }
.privacy-text-label a { color: var(--accent-color); text-decoration: none; border-bottom: 1px solid rgba(197,179,152,.5); }

/* ============ КНОПКА ============ */
.submit-btn {
  width: 100%;
  padding: 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, #c5b398 0%, #a39075 100%);
  color: #1e1e1e;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 10px 30px rgba(197,179,152,.3);
  opacity: 0;
}
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(197,179,152,.5);
  filter: brightness(1.1);
}
.submit-btn:disabled { opacity: .55 !important; cursor: not-allowed; transform: none; }

/* ============ СООБЩЕНИЯ ============ */
.form-message { margin-top: 25px; text-align: center; font-size: .95em; }
.form-message.success { color: #9fd6a5; }
.form-message.error { color: #ff8f8f; }
.error-msg { display: block; color: #ff8f8f; font-size: .8em; margin-top: 6px; }
.error-msg:empty { display: none; }

/* ============ ЭКРАН «СПАСИБО» ============ */
.thanks { text-align: center; padding: 30px 0 10px; }
.thanks__mark {
  width: 70px; height: 70px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9em; font-weight: 700; color: #1e1e1e;
  background: linear-gradient(135deg, #c5b398, #a39075);
  box-shadow: 0 10px 30px rgba(197,179,152,.4);
}
.thanks__title { font-size: 1.6em; font-weight: 300; color: #fff; letter-spacing: 1px; margin-bottom: 14px; }
.thanks__text { color: rgba(255,255,255,.75); font-weight: 300; }

/* ============ КНОПКИ МЕССЕНДЖЕРОВ ============ */
.msgr-block {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  opacity: 0;
}
.msgr-note { font-size: .9em; font-weight: 300; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.msgr-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-msgr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-msgr:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn-msgr--wa {
  background: linear-gradient(135deg, #c5b398 0%, #a39075 100%);
  color: #1e1e1e;
  box-shadow: 0 10px 30px rgba(197,179,152,.3);
}
.btn-msgr--wa:hover { box-shadow: 0 15px 40px rgba(197,179,152,.5); }
.btn-msgr--tg {
  background: #fff;
  color: #1e1e1e;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
@media (max-width: 480px) {
  .msgr-buttons { flex-direction: column; }
  .btn-msgr { width: 100%; }
}

/* ============ ФУТЕР КАРТОЧКИ ============ */
.site-footer {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.company-name { font-size: .85em; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer-mail { font-size: .85em; color: var(--accent-color); text-decoration: none; }
.footer-mail:hover { text-decoration: underline; }

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.animate-up { animation: fadeInUp .8s ease forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ МОБИЛЬНАЯ ВЕРСИЯ ============ */
@media (max-width: 768px) {
  .form-page-container { padding: 40px 15px; }
  .form-card { padding: 30px 22px; }
  .main-title { font-size: 1.9em; }
  .radio-group { grid-template-columns: 1fr; }
  .radio-content { min-height: 56px; }
  .phone-head { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .animate-up, .form-card, .header, .title-container, .form-group,
  .form-section-divider, .submit-btn { opacity: 1 !important; }
}
