/* Anketa: full-viewport photo + white column (Figma-aligned) */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: 'PT Root UI', sans-serif;
  /* Figma desktop frame «Black»: подложка под фото при letterbox */
  background-color: #000000;
}

.anketa-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #000000;
  background-image: url(/assets/anketa/rectangle2107-22c6ba36c85eb2b8157c699bcce8876f28d6ac10ebfa2b75ae528636281edd20.png);
  background-repeat: no-repeat;
  background-size: cover;
  /* По умолчанию до десктопного брейкпоинта */
  background-position: center center;
}

.anketa-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  background: transparent;
}

/* Мобилка: верхний блок под фото (масштаб как Figma 720×361) */
.anketa-hero-gap {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 720 / 361;
  min-height: 180px;
}

.anketa-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 24px 40px;
  background: #ffffff;
}

.anketa-panel-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

/* Типографика — ориентиры из макетов (PT Root + Druk заголовок) */
.anketa-brand {
  margin: 0;
  font-weight: 450;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.08em;
}

.anketa-title {
  margin: 0;
  font-family: 'DrukCyr', 'Arial Black', sans-serif;
  font-weight: 500;
  font-size: clamp(34.5px, 9.43vw, 41.4px);
  line-height: 1.06;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

.anketa-title__line {
  display: block;
}

.anketa-subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.42;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #000000;
}

.anketa-info {
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

.anketa-prompt {
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  color: #000000;
}

.anketa-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.anketa-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.anketa-form .field {
  width: 100%;
}

.anketa-channel-note {
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #000000;
}

.anketa-flash-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: #7f1d1d;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.anketa-consents {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.anketa-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.anketa-consent__input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #000000;
  cursor: pointer;
}

.anketa-consent__label {
  font-family: 'PT Root UI', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
}

.anketa-consent__link {
  font-weight: 700;
  text-decoration: underline;
  color: #000000;
}

.anketa-consent__link:hover {
  opacity: 0.82;
}

.anketa-input {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-family: 'PT Root UI', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.anketa-input::placeholder {
  color: #777777;
}

.anketa-input:focus {
  border-color: #8a9440;
  box-shadow: 0 0 0 3px rgba(169, 179, 78, 0.22);
}

.anketa-actions {
  margin-top: 4px;
  width: 100%;
}

/* CTA: Figma mobile «green» #ABB546 */
.anketa-btn {
  width: 100%;
  height: 52px;
  padding: 14px 24px;
  background: #abb546;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'PT Root UI', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.2s ease, background 0.2s ease;
}

.anketa-btn:hover {
  background: #989f3d;
  opacity: 1;
  transform: translateY(-1px);
}

.anketa-btn:active {
  background: #858b35;
  transform: translateY(0);
}

.anketa-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.anketa-btn:disabled:hover {
  background: #abb546;
  opacity: 0.42;
  transform: none;
}

.anketa-success {
  font-size: 16px !important;
}

.anketa-telegram-btn {
  display: block;
  text-decoration: none;
  text-align: center;
  margin-top: 4px;
}

/* Phone input in anketa */
.anketa-form .phone-input-container .anketa-input,
.anketa-form .phone-input-container select.anketa-input {
  height: 44px;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.02em;
}

.anketa-form .phone-input-container select.anketa-input {
  padding: 8px 12px;
  color: #000000;
  background-color: #ffffff;
  -webkit-appearance: menulist;
  appearance: menulist;
}

.anketa-form .phone-input-container select.anketa-input option {
  font-size: 14px;
  padding: 4px 8px;
  color: #000000;
  background-color: #ffffff;
}

@media (min-width: 900px) {
  /* Десктоп: общий фон на весь экран; слева узкая полоска фото, затем белая колонка */
  .anketa-page {
    flex-direction: row;
    align-items: stretch;
  }

  .anketa-hero-gap {
    display: none;
  }

  .anketa-panel {
    flex: 0 0 38%;
    max-width: 520px;
    min-width: 300px;
    min-height: 100dvh;
    min-height: 100svh;
    /* Вся белая колонка дальше от левого края экрана (полоска фона шире) */
    margin-left: clamp(28px, 4.5vw, 150px);
    justify-content: center;
    padding: 56px 40px 64px;
  }

  .anketa-panel-inner {
    max-width: 360px;
    gap: 28px;
  }

  .anketa-brand {
    font-size: 12px;
    line-height: 14px;
    margin-bottom: -14px;
  }

  /* +50% к базовому десктопному заголовку */
  .anketa-title {
    font-size: clamp(58.65px, 4.3125vw, 72.45px);
    line-height: 1.05;
  }

  .anketa-subtitle {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.025em;
  }

  .anketa-channel-note {
    font-size: 11px;
    line-height: 1.42;
  }

  .anketa-form {
    gap: 22px;
  }

  .anketa-fields {
    gap: 12px;
  }

  .anketa-btn {
    height: 56px;
    font-size: 18px;
  }

  /*
   * Figma desktop: frame 1440×853, fill #000000;
   * image 1084 — 1827×1024 @ left -18px (сдвиг слоя);
   * Rectangle 2107 — 1456×853 @ left 1px (видимая фотозона).
   * В CSS: cover + горизонталь в проекции -18px от центра при эталоне 1440 → 1.25vw.
   */
  .anketa-bg {
    display: block;
    background-color: #000000;
    background-position: calc(50% - 1.25vw) center;
  }
}

@media (max-width: 899px) {
  /*
   * Figma mobile: frame 720×1438, fill #FFFFFF;
   * Rectangle 2104/2107 — 720×361 (герой);
   * форма Frame 131 — width 646px, left inset 37px;
   * поля: h 61.52px, gap 15.38px, border 1.538px #EBEBEB, radius 15.381px;
   * кнопка: h 92px, #ABB546, type 23.79px / 34px lh.
   *
   * Верх страницы — только полоса с фото; ниже — белая зона с формой (без полноэкранного фона).
   */
  html,
  body {
    background-color: #ffffff;
  }

  .anketa-bg {
    display: none;
  }

  .anketa-page {
    background: #ffffff;
  }

  .anketa-hero-gap {
    background-color: #000000;
    background-image: url(/assets/anketa/rectangle2107-22c6ba36c85eb2b8157c699bcce8876f28d6ac10ebfa2b75ae528636281edd20.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
  }

  .anketa-panel {
    background: #ffffff;
    padding: 29px clamp(40px, 6.5vw, 48px) 56px;
    flex: 1 1 auto;
  }

  .anketa-panel-inner {
    max-width: 646px;
    gap: 0;
  }

  .anketa-brand {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  .anketa-title {
    font-weight: 400;
    font-size: 65px;
    line-height: 0.9;
    margin-bottom: 20px;
  }

  .anketa-subtitle,
  .anketa-channel-note {
    font-weight: 700;
    /* −15% к прежним 10px / 13px на мобилке */
    font-size: calc(10px * 0.85);
    line-height: calc(13px * 0.85);
    letter-spacing: 0;
  }

  .anketa-subtitle {
    margin-bottom: 44px;
  }

  .anketa-form {
    gap: 0;
  }

  .anketa-fields {
    gap: 12px;
  }

  .anketa-channel-note {
    margin-top: 44px;
    margin-bottom: 24px;
  }

  .anketa-consents {
    gap: 14px;
    margin-bottom: 8px;
  }

  .anketa-consent__label {
    font-size: 12px;
    line-height: 1.42;
  }

  .anketa-actions {
    margin-top: 16px;
  }

  .anketa-input {
    min-height: 0;
    height: auto;
    padding: 14px 18px;
    border: 1.5381px solid #ebebeb;
    border-radius: 12px;
    /* min 16px — iOS; верхняя граница ниже, чем в Figma 61px — компактнее */
    font-size: clamp(16px, 2.6vw, 18px);
    line-height: 22px;
    letter-spacing: -0.03em;
  }

  .anketa-form .phone-input-container {
    gap: 12px;
  }

  .anketa-form .phone-input-container .anketa-input,
  .anketa-form .phone-input-container select.anketa-input {
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1.5381px solid #ebebeb;
    border-radius: 12px;
    font-size: clamp(16px, 2.6vw, 18px);
    line-height: 22px;
    letter-spacing: -0.03em;
  }

  .anketa-form .phone-input-container select.anketa-input {
    padding: 14px 10px;
    -webkit-appearance: menulist;
    appearance: menulist;
  }

  .anketa-btn {
    min-height: 0;
    height: auto;
    padding: 16px 20px;
    border-radius: 12px;
    background: #abb546;
    font-size: clamp(16px, 2.8vw, 18px);
    line-height: 1.25;
  }

  .anketa-btn:hover {
    background: #989f3d;
  }

  .anketa-btn:active {
    background: #858b35;
  }

  .anketa-input:focus {
    box-shadow: 0 0 0 3px rgba(171, 181, 70, 0.25);
  }

  /* Успех: при gap: 0 у inner нужны отступы между блоками */
  .anketa-panel-inner .anketa-success {
    margin-bottom: 12px;
  }

  .anketa-panel-inner .anketa-prompt {
    margin-bottom: 16px;
  }
}
