  @font-face {
    font-family: 'Bague Sans';
    src: url('../fonts/BagueSans-Regular.woff2') format('woff2'),
         url('../fonts/BagueSans-Regular.woff')  format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'Bague Sans';
    src: url('../fonts/BagueSans-UltraBlack.woff2') format('woff2'),
         url('../fonts/BagueSans-UltraBlack.woff')  format('woff');
    font-weight: 900; font-style: normal; font-display: swap;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    /* Токены из skillui — gril.one design system */
    --green:      #00af40;
    --dark-green: #1D5632;
    --green-mid:  #b3e6c8;
    --bg:         #F4F5F4;
    --white:      #ffffff;
    --text:       #1E2420;
    --gray:       #666666;
    --border:     #e2e2e2;
    --shadow-card:  0 3px 6px rgba(0,0,0,.14);
    --shadow-float: 0 8px 16px rgba(51,51,51,.16);
    --r:          24px;
    --r-card:     24px;
    --r-input:    8px;
  }

  body {
    font-family: 'Bague Sans', 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
  }

  /* ══ ШАПКА ══════════════════════════════════════════ */
  .site-header {
    background: var(--dark-green);
    padding: 22px 20px 22px;
    text-align: center;
    flex-shrink: 0;
  }
  .site-header img {
    display: block;
    margin: 0 auto;
    max-width: 185px;
    height: auto;
  }
  .site-header .logo-fallback {
    display: inline-block;
    color: #fff;
    font-size: 22px; font-weight: 900; letter-spacing: 1px;
  }

  /* ══ ЗАГОЛОВОК ФОРМЫ ════════════════════════════════ */
  .form-title {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 20px;
  }

  /* ══ КОНТЕЙНЕР ═══════════════════════════════════════ */
  .container {
    flex: 1;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 16px 32px;
  }

  /* ══ КАРТОЧКИ ════════════════════════════════════════ */
  .card {
    background: var(--white);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 24px 22px;
    margin-bottom: 10px;
  }

  .card-title {
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dark-green);
    margin-bottom: 20px;
    font-family: 'Bague Sans', 'Montserrat', sans-serif;
  }
  .card-title::after {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--green);
    margin-top: 6px;
  }

  /* ══ ПОЛЯ ════════════════════════════════════════════ */
  .field-group { margin-bottom: 16px; }
  .field-group:last-child { margin-bottom: 0; }

  label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--text); margin-bottom: 6px;
  }
  label .req { color: var(--green); margin-left: 1px; }

  input[type="text"], input[type="tel"], select, textarea {
    width: 100%; padding: 10px 12px;
    font-family: 'Bague Sans', 'Montserrat', sans-serif;
    font-size: 14px; color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--r-input);
    background: var(--white);
    outline: none;
    transition: border-color 0.12s;
    appearance: none; -webkit-appearance: none;
  }
  input[type="text"]:focus, input[type="tel"]:focus,
  select:focus, textarea:focus { border-color: var(--green); }

  input[type="text"]:focus-visible, input[type="tel"]:focus-visible,
  select:focus-visible, textarea:focus-visible {
    border-color: var(--green);
    outline: 2px solid rgba(0,174,66,0.25);
    outline-offset: 1px;
  }
  input[type="text"]:focus:not(:focus-visible),
  input[type="tel"]:focus:not(:focus-visible),
  select:focus:not(:focus-visible),
  textarea:focus:not(:focus-visible) { outline: none; }

  input.error, select.error, textarea.error {
    border-color: #d0392b; background: #fff8f8;
  }

  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%231D5632' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px; cursor: pointer;
  }

  textarea { resize: vertical; min-height: 88px; }

  /* ══ ВОПРОСЫ ═════════════════════════════════════════ */
  .question-item {
    padding: 13px 0;
    border-bottom: 1px solid #EEEEEE;
  }
  .question-item:first-child { padding-top: 0; }
  .question-item:last-child  { border-bottom: none; padding-bottom: 0; }

  .question-label {
    font-size: 13px; font-weight: 400;
    color: var(--text); line-height: 1.6;
    margin-bottom: 10px;
  }

  .yesno-group { display: flex; gap: 8px; }
  .yesno-option { flex: 1; position: relative; }
  .yesno-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
  .yesno-option label {
    display: flex; align-items: center; justify-content: center;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; color: var(--gray);
    margin: 0; user-select: none;
    background: var(--white);
  }
  .yesno-option input[type="radio"]:checked + label {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
  }

  /* ══ ОШИБКИ / ПОДСКАЗКИ ══════════════════════════════ */
  .field-error {
    font-size: 11px; font-weight: 400;
    color: #c0392b; margin-top: 5px; display: none;
  }
  .field-error.show { display: block; }
  .hint { font-size: 11px; color: var(--gray); margin-top: 4px; }

  /* ══ КНОПКА ОТПРАВКИ ═════════════════════════════════ */
  .submit-btn {
    width: 100%; padding: 15px;
    background: var(--green); color: #fff;
    font-family: 'Bague Sans', 'Montserrat', sans-serif;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.4px;
    border: none; border-radius: var(--r);
    cursor: pointer; min-height: 52px;
  }
  .submit-btn:hover { background: #009e3a; }
  .submit-btn:focus-visible { outline: 3px solid var(--dark-green); outline-offset: 3px; }
  .submit-btn:disabled { background: #b0b0b0; cursor: not-allowed; }


  /* ══ ЭКРАН УСПЕХА ════════════════════════════════════ */
  .success-screen { text-align: center; padding: 36px 20px; }
  .success-icon {
    width: 64px; height: 64px;
    background: #eef8f2; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px; color: var(--green);
  }
  .success-screen h2 {
    font-size: 20px; font-weight: 700;
    color: var(--dark-green); margin-bottom: 8px;
  }
  .success-screen p { font-size: 14px; color: var(--gray); line-height: 1.65; }

  /* ══ АЛЕРТЫ ══════════════════════════════════════════ */
  .alert-banner {
    background: #fff8f8; border: 1.5px solid #f5c0c0;
    border-radius: var(--r-input); padding: 13px 15px;
    margin-bottom: 10px; font-size: 13px;
    color: #b94a48; line-height: 1.5;
  }
  .alert-banner.warn { background: #fffaf0; border-color: #f6d78a; color: #7a5c00; }

  /* ══ МОДАЛЬНОЕ ОКНО ══════════════════════════════════ */
  .modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.48); z-index: 200;
    align-items: center; justify-content: center; padding: 16px;
  }
  .modal-overlay.show { display: flex; }
  .modal-box {
    background: var(--white); border-radius: var(--r-card);
    border-top: 4px solid var(--green);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 30px 26px 22px;
    max-width: 380px; width: 100%; text-align: center;
  }
  .modal-icon { font-size: 38px; margin-bottom: 10px; }
  .modal-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; line-height: 1.35; }
  .modal-row {
    display: flex; gap: 8px; align-items: baseline;
    justify-content: center; margin-bottom: 5px; font-size: 14px;
  }
  .modal-label { color: var(--gray); font-weight: 400; }
  .modal-value { color: var(--text); font-weight: 700; }
  .modal-hint { margin-top: 12px; font-size: 12px; color: var(--gray); line-height: 1.55; }
  .modal-ok {
    margin-top: 20px; padding: 10px 36px;
    background: var(--green); color: #fff;
    font-family: 'Bague Sans', 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
    border: none; border-radius: 20px; cursor: pointer;
  }
  .modal-ok:hover { background: #009e3a; }

  /* ══ ОВЕРЛЕЙ ОТПРАВКИ ════════════════════════════════ */
  .sending-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(255,255,255,0.9); z-index: 100;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 14px;
  }
  .sending-overlay.show { display: flex; }
  .spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--green-mid);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ══ REDUCED MOTION ══════════════════════════════════ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
    .spinner { animation: none; }
  }

  /* ══ ЗАГРУЗКА ФАЙЛА ═════════════════════════════════ */
  .file-upload-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .file-upload-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-input);
    font-size: 13px; font-weight: 700;
    color: var(--dark-green);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    white-space: nowrap;
  }
  .file-upload-btn:hover { border-color: var(--green); background: #f4fdf7; }
  .file-upload-btn input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }
  .file-name { font-size: 12px; color: var(--gray); }

  /* ══ ПРОГРЕСС ЗАПОЛНЕНИЯ (тонкая линия сверху) ══════ */
  .top-progress {
    position: sticky; top: 0; z-index: 100;
    height: 3px; width: 100%;
    background: rgba(0,0,0,0.06);
  }
  .top-progress-fill {
    height: 100%; width: 0;
    background: var(--green);
    transition: width 0.25s ease;
  }

  /* ══ АДАПТИВ ══════════════════════════════════════════ */
  @media (max-width: 480px) {
    .site-header { padding: 18px 16px 18px; }
    .container { padding: 20px 12px 24px; }
    .card { padding: 20px 16px; }
  }
