@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poiret+One&display=swap');

:root {
  --bg: #161311;
  --bg-soft: #1D1916;
  --text: #F4EFE7;
  --text-soft: #BDB5AC;

  --green: #354829;
  --pink: #EEB3B7;
  --brown: #4F2B1A;

  --line: rgba(244,239,231,.14);

  --font-title: "Poiret One", sans-serif;
  --font-main: "Montserrat", sans-serif;
  --font-hand: "Vasek", cursive;

  --section-y: 56px;
  --section-y-mobile: 36px;

  --container: 1180px;
}

/* =========================
   BASE
========================= */

html {
  scroll-behavior: smooth;
}

body,
#allrecords {
  margin: 0;
  background: var(--bg) !important;
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

.t-rec {
  background: transparent !important;
}

/* =========================
   CONTAINER
========================= */

.giro-container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.giro-section {
  padding: var(--section-y) 0;
}

/* =========================
   HEADINGS
========================= */

h1,
h2,
h3,
.giro-h1,
.giro-h2,
.giro-h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--text);
}

h1,
.giro-h1 {
  font-size: clamp(54px, 6vw, 92px);
  line-height: .92;
  letter-spacing: -.02em;
}

h2,
.giro-h2 {
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: .96;
}

h3,
.giro-h3 {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
}

/* =========================
   BODY TEXT
========================= */

p,
.giro-text {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-soft);
}

.giro-text-large {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--text);
}

/* =========================
   HANDWRITTEN ACCENT
========================= */

.giro-hand {
  font-family: var(--font-hand);
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1;
  color: var(--pink);
}

.giro-hand--green {
  color: var(--green);
}

/* =========================
   SMALL LABELS
========================= */

.giro-label {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
}

/* =========================
   ACCENTS
========================= */

.giro-pink {
  color: var(--pink);
}

.giro-green {
  color: var(--green);
}

/* =========================
   BUTTON
========================= */

.giro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 52px;
  padding: 0 26px;

  border: 1px solid var(--pink);
  border-radius: 2px;

  background: var(--pink);
  color: var(--bg);

  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 650;

  letter-spacing: .03em;
  text-decoration: none;

  transition: .25s ease;
}

.giro-btn:hover {
  background: transparent;
  color: var(--pink);
}

.giro-btn--dark {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.giro-btn--dark:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* =========================
   LINES
========================= */

.giro-line {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.giro-line-pink {
  width: 56px;
  height: 1px;
  background: var(--pink);
}

/* =========================
   EDITORIAL NUMBER
========================= */

.giro-number {
  font-family: var(--font-title);
  font-size: 46px;
  line-height: 1;
  color: rgba(238,179,183,.32);
}

/* =========================
   CARD
========================= */

.giro-card {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

/* =========================
   IMAGE
========================= */

.giro-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* =========================================================
   MOBILE GLOBAL
========================================================= */

@media (max-width: 640px) {

  :root {
    --section-y: var(--section-y-mobile);
  }

  .giro-container {
    width: calc(100% - 28px);
  }

  h1,
  .giro-h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  h2,
  .giro-h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  p,
  .giro-text {
    font-size: 15px;
    line-height: 1.55;
  }

  .giro-hand {
    font-size: clamp(25px, 8vw, 34px);
  }

}


/* =========================================================
   GIRO QUIZ — FINAL VISUAL OVERRIDE
   class on Tilda block: uc-giro-quiz
========================================================= */


/* =========================================================
   ОБЩАЯ КАРТОЧКА КВИЗА
========================================================= */

.uc-giro-quiz .t-quiz__quiz-wrapper{
  background:var(--bg) !important;

  border:1px solid var(--line) !important;
  border-radius:16px !important;

  overflow:hidden !important;

  box-shadow:none !important;
}


/* =========================================================
   ВЕРХНЯЯ ПАНЕЛЬ
========================================================= */

.uc-giro-quiz .t-quiz__panel,
.uc-giro-quiz .t-quiz__header{
  background:var(--pink) !important;

  border:0 !important;
  border-bottom:1px solid rgba(22,19,17,.12) !important;
}


.uc-giro-quiz .t-quiz__panel__main{
  padding-top:13px !important;
  padding-bottom:13px !important;
}


.uc-giro-quiz .t-quiz__quiz-description-text{
  font-family:var(--font-main) !important;

  font-size:9px !important;
  font-weight:650 !important;

  line-height:1.2 !important;

  letter-spacing:.14em !important;
  text-transform:uppercase !important;

  color:var(--bg) !important;

  opacity:1 !important;
}


/* =========================================================
   СОДЕРЖИМОЕ
========================================================= */

.uc-giro-quiz .t-quiz__content-padding-container,
.uc-giro-quiz .t-quiz__content-wrapper,
.uc-giro-quiz .t-quiz__main,
.uc-giro-quiz .t-quiz__screen-wrapper{
  background:var(--bg) !important;
}


.uc-giro-quiz .t-quiz__content-padding-container{
  padding-top:18px !important;
  padding-bottom:18px !important;
}


/* =========================================================
   PROGRESS
========================================================= */

.uc-giro-quiz .t-quiz__progress-bar-container{
  margin-bottom:18px !important;
}


.uc-giro-quiz .t-quiz__progressbar{
  height:3px !important;

  border-radius:999px !important;

  background:rgba(238,179,183,.14) !important;

  overflow:hidden !important;
}


.uc-giro-quiz .t-quiz__progress{
  height:3px !important;

  border-radius:999px !important;

  background:var(--pink) !important;
}


/* =========================================================
   ЗАГОЛОВОК ВОПРОСА
========================================================= */

.uc-giro-quiz .t-input-group__header{
  margin-bottom:13px !important;
}


.uc-giro-quiz .t-input-title,
.uc-giro-quiz .t-quiz__contact-form__header__title{
  max-width:760px !important;

  margin:0 !important;

  font-family:var(--font-title) !important;

  font-size:clamp(36px,3.4vw,52px) !important;
  font-weight:400 !important;

  line-height:.96 !important;
  letter-spacing:-.015em !important;

  color:var(--text) !important;
}


/* пояснение */

.uc-giro-quiz .t-input-subtitle,
.uc-giro-quiz .t-quiz__variants-hint{
  margin-top:7px !important;

  font-family:var(--font-main) !important;

  font-size:9px !important;
  font-weight:400 !important;

  line-height:1.4 !important;

  color:var(--text-soft) !important;

  opacity:.55 !important;
}


/* =========================================================
   RADIO — КАРТОЧКИ ОТВЕТОВ
========================================================= */

.uc-giro-quiz .t-radio__wrapper_button{
  display:grid !important;

  grid-template-columns:repeat(2,minmax(0,1fr)) !important;

  gap:8px !important;
}


.uc-giro-quiz .t-radio__wrapper_button .t-radio__item{
  position:relative !important;

  min-height:52px !important;

  display:flex !important;
  align-items:center !important;

  padding:10px 14px !important;

  border:1px solid var(--line) !important;
  border-radius:12px !important;

  background:var(--bg-soft) !important;

  font-family:var(--font-main) !important;

  font-size:11px !important;
  font-weight:450 !important;

  line-height:1.35 !important;

  color:var(--text) !important;

  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease !important;
}


.uc-giro-quiz .t-radio__wrapper_button .t-radio__item:hover{
  border-color:rgba(238,179,183,.75) !important;

  transform:translateY(-1px);
}


/* выбранный radio */

.uc-giro-quiz .t-radio__wrapper_button .t-radio__item:has(.t-radio:checked){
  border-color:var(--pink) !important;

  background:rgba(238,179,183,.10) !important;
}


/* radio indicator */

.uc-giro-quiz .t-radio__indicator{
  flex:0 0 auto !important;

  width:16px !important;
  height:16px !important;

  margin-right:9px !important;

  border:1px solid var(--pink) !important;

  background:transparent !important;
}


.uc-giro-quiz .t-radio__indicator:after{
  background:var(--pink) !important;
}


/* =========================================================
   CHECKBOX — КАРТОЧКИ
========================================================= */

.uc-giro-quiz .t-checkboxes__wrapper_button,
.uc-giro-quiz .t-checkboxes__wrapper{
  display:grid !important;

  grid-template-columns:repeat(2,minmax(0,1fr)) !important;

  gap:8px !important;

  margin:0 !important;
  padding:0 !important;
}


.uc-giro-quiz .t-checkboxes__item{
  margin:0 !important;
  padding:0 !important;

  border:1px solid var(--line) !important;
  border-radius:12px !important;

  background:var(--bg-soft) !important;

  overflow:hidden !important;

  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease !important;
}


.uc-giro-quiz .t-checkboxes__item:hover{
  border-color:rgba(238,179,183,.75) !important;

  transform:translateY(-1px);
}


.uc-giro-quiz .t-checkbox__control{
  width:100% !important;
  min-height:52px !important;

  display:flex !important;
  align-items:center !important;

  padding:10px 14px !important;

  font-family:var(--font-main) !important;

  font-size:11px !important;
  font-weight:450 !important;

  line-height:1.35 !important;

  color:var(--text) !important;
}


/* выбранный checkbox */

.uc-giro-quiz .t-checkboxes__item:has(.t-checkbox:checked){
  border-color:var(--pink) !important;

  background:rgba(238,179,183,.10) !important;
}


.uc-giro-quiz .t-checkbox__indicator{
  flex:0 0 auto !important;

  width:16px !important;
  height:16px !important;

  margin-right:9px !important;

  border:1px solid var(--pink) !important;
  border-radius:3px !important;

  background:transparent !important;
}


.uc-giro-quiz .t-checkbox__indicator:after{
  border-color:var(--pink) !important;
}


/* =========================================================
   "СВОЙ ВАРИАНТ"
========================================================= */

.uc-giro-quiz .t-checkboxes__ownvariant-wrapper{
  width:100% !important;
}


.uc-giro-quiz .t-checkbox__ownvariant-input-wrapper{
  flex:1 !important;
}


.uc-giro-quiz .t-input-ownanswer{
  width:100% !important;

  padding:3px 0 !important;

  border:0 !important;
  border-bottom:1px solid var(--line) !important;

  background:transparent !important;

  font-family:var(--font-main) !important;

  font-size:10px !important;

  color:var(--text) !important;
}


/* =========================================================
   CONTACT METHOD
========================================================= */

.uc-giro-quiz .t-contact-method__types-container{
  display:flex !important;

  gap:7px !important;

  margin-bottom:12px !important;
}


.uc-giro-quiz .t-contact-method__type{
  border:1px solid var(--line) !important;
  border-radius:10px !important;

  background:var(--bg-soft) !important;

  color:var(--text) !important;
}


.uc-giro-quiz .t-contact-method__type-label{
  padding:10px 14px !important;

  font-family:var(--font-main) !important;

  font-size:10px !important;

  color:var(--text) !important;
}


.uc-giro-quiz .t-contact-method__type:has(input:checked){
  border-color:var(--pink) !important;

  background:rgba(238,179,183,.10) !important;
}


/* =========================================================
   INPUT
========================================================= */

.uc-giro-quiz .t-input{
  height:50px !important;

  padding:0 14px !important;

  border:1px solid var(--line) !important;
  border-radius:10px !important;

  background:var(--bg-soft) !important;

  font-family:var(--font-main) !important;

  font-size:11px !important;

  color:var(--text) !important;

  box-shadow:none !important;
}


.uc-giro-quiz .t-input:focus{
  border-color:var(--pink) !important;
}


.uc-giro-quiz .t-input::placeholder{
  color:var(--text-soft) !important;

  opacity:.45 !important;
}


/* =========================================================
   FOOTER
========================================================= */

.uc-giro-quiz .t-quiz__footer-sticky,
.uc-giro-quiz .t-quiz__footer{
  background:var(--bg) !important;

  border-top:1px solid var(--line) !important;
}


.uc-giro-quiz .t-quiz__footer{
  padding-top:11px !important;
  padding-bottom:11px !important;
}


/* счётчик */

.uc-giro-quiz .t-quiz__counter-container,
.uc-giro-quiz .t-quiz__counter-title,
.uc-giro-quiz .t-quiz__counter{
  font-family:var(--font-main) !important;

  font-size:8px !important;
  font-weight:600 !important;

  letter-spacing:.12em !important;
  text-transform:uppercase !important;

  color:var(--pink) !important;
}


/* =========================================================
   NEXT / SUBMIT
========================================================= */

.uc-giro-quiz .t-quiz__btn_next,
.uc-giro-quiz .t-quiz__btn_submit,
.uc-giro-quiz .t-btnflex_type_button,
.uc-giro-quiz .t-btnflex_type_submit{
  min-height:46px !important;

  padding:0 19px !important;

  border:1px solid var(--pink) !important;
  border-radius:10px !important;

  background:var(--pink) !important;
  background-image:none !important;

  color:var(--bg) !important;

  font-family:var(--font-main) !important;

  font-size:9.5px !important;
  font-weight:650 !important;

  box-shadow:none !important;

  transform:none !important;
}


/* =========================================================
   BACK
========================================================= */

.uc-giro-quiz .t-quiz__btn_prev,
.uc-giro-quiz .t-btnflex_type_button2{
  min-width:46px !important;
  min-height:46px !important;

  border:1px solid var(--line) !important;
  border-radius:10px !important;

  background:transparent !important;
  background-image:none !important;

  color:var(--pink) !important;

  box-shadow:none !important;
}


/* =========================================================
   ERRORS
========================================================= */

.uc-giro-quiz .t-input-error{
  margin-top:5px !important;

  font-family:var(--font-main) !important;

  font-size:8px !important;

  color:var(--pink) !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width:640px){

  .uc-giro-quiz .t-quiz__quiz-wrapper{
    border-radius:12px !important;
  }


  .uc-giro-quiz .t-quiz__panel__main{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }


  .uc-giro-quiz .t-quiz__quiz-description-text{
    font-size:7px !important;
  }


  .uc-giro-quiz .t-quiz__content-padding-container{
    padding-top:14px !important;
    padding-bottom:14px !important;
  }


  .uc-giro-quiz .t-input-title,
  .uc-giro-quiz .t-quiz__contact-form__header__title{
    font-size:clamp(30px,8.8vw,39px) !important;

    line-height:.96 !important;
  }


  .uc-giro-quiz .t-radio__wrapper_button,
  .uc-giro-quiz .t-checkboxes__wrapper_button,
  .uc-giro-quiz .t-checkboxes__wrapper{
    grid-template-columns:1fr !important;

    gap:6px !important;
  }


  .uc-giro-quiz .t-radio__wrapper_button .t-radio__item,
  .uc-giro-quiz .t-checkbox__control{
    min-height:45px !important;

    padding:8px 11px !important;

    font-size:10px !important;
  }


  .uc-giro-quiz .t-checkboxes__item,
  .uc-giro-quiz .t-radio__wrapper_button .t-radio__item{
    border-radius:9px !important;
  }


  .uc-giro-quiz .t-contact-method__types-container{
    flex-wrap:wrap !important;
  }


  .uc-giro-quiz .t-quiz__footer{
    padding-top:9px !important;
    padding-bottom:9px !important;
  }


  .uc-giro-quiz .t-quiz__btn_next,
  .uc-giro-quiz .t-quiz__btn_submit,
  .uc-giro-quiz .t-btnflex_type_button,
  .uc-giro-quiz .t-btnflex_type_submit,
  .uc-giro-quiz .t-quiz__btn_prev,
  .uc-giro-quiz .t-btnflex_type_button2{
    min-height:44px !important;
  }

}

/* =========================================================
   GIRO QUIZ — GEOMETRY + FINAL SCREEN FIX
   Keep this LAST in the global CSS
========================================================= */

/* Do not force Tilda option wrappers into our own grid */
.uc-giro-quiz .t-radio__wrapper_button,
.uc-giro-quiz .t-checkboxes__wrapper_button,
.uc-giro-quiz .t-checkboxes__wrapper{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:stretch !important;
  gap:8px !important;
}

/* Two comfortable columns on desktop */
.uc-giro-quiz .t-radio__wrapper_button .t-radio__item,
.uc-giro-quiz .t-checkboxes__item{
  flex:0 0 calc(50% - 4px) !important;
  width:calc(50% - 4px) !important;
  max-width:calc(50% - 4px) !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

/* Let text use the whole card width */
.uc-giro-quiz .t-radio__wrapper_button .t-radio__item,
.uc-giro-quiz .t-checkbox__control{
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}

.uc-giro-quiz .t-checkbox__control{
  width:100% !important;
}

.uc-giro-quiz .t-radio__wrapper_button .t-radio__item *,
.uc-giro-quiz .t-checkbox__control *{
  word-break:normal !important;
  overflow-wrap:normal !important;
}

/* Remove the internal vertical-scroll feeling */
.uc-giro-quiz .t-quiz__quiz-wrapper,
.uc-giro-quiz .t-quiz__content-wrapper,
.uc-giro-quiz .t-quiz__content-padding-container,
.uc-giro-quiz .t-quiz__screen-wrapper,
.uc-giro-quiz .t-quiz__main{
  height:auto !important;
  max-height:none !important;
}

.uc-giro-quiz .t-quiz__content-wrapper,
.uc-giro-quiz .t-quiz__screen-wrapper{
  overflow:visible !important;
}

/* Slightly more compact questions */
.uc-giro-quiz .t-input-title{
  font-size:clamp(34px,3vw,48px) !important;
  max-width:720px !important;
}

/* =========================================================
   FINAL CONTACT SCREEN
========================================================= */

.uc-giro-quiz .t-quiz__contact-form{
  background:var(--bg) !important;
}

.uc-giro-quiz .t-quiz__contact-form__header{
  margin-bottom:14px !important;
}

.uc-giro-quiz .t-quiz__contact-form__header__title{
  max-width:470px !important;
  font-family:var(--font-title) !important;
  font-size:clamp(36px,3.2vw,50px) !important;
  font-weight:400 !important;
  line-height:.98 !important;
  color:var(--text) !important;
}

/* Subtitle under "Я уже получила ваши ответы!" */
.uc-giro-quiz .t-quiz__contact-form__header__descr,
.uc-giro-quiz .t-quiz__contact-form .t-descr{
  margin-top:10px !important;
  max-width:470px !important;
  font-family:var(--font-hand) !important;
  font-size:32px !important;
  font-weight:400 !important;
  line-height:1.05 !important;
  color:var(--pink) !important;
  opacity:.9 !important;
}

/* Contact field labels must not inherit giant quiz-title styling */
.uc-giro-quiz .t-quiz__contact-form .t-input-title{
  margin:0 0 6px !important;
  max-width:none !important;
  font-family:var(--font-main) !important;
  font-size:10px !important;
  font-weight:600 !important;
  line-height:1.25 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  color:var(--text-soft) !important;
}

/* Compact fields */
.uc-giro-quiz .t-quiz__contact-form .t-input-block{
  margin-bottom:11px !important;
}

.uc-giro-quiz .t-quiz__contact-form .t-input{
  height:48px !important;
  min-height:48px !important;
  padding:0 14px !important;
  font-size:12px !important;
  border-radius:10px !important;
}

/* Keep final form reasonably sized */
.uc-giro-quiz .t-quiz__contact-form .t-quiz__inputs-wrapper{
  gap:0 !important;
}

/* Footer stays compact */
.uc-giro-quiz .t-quiz__footer{
  padding-top:9px !important;
  padding-bottom:9px !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width:640px){

  .uc-giro-quiz .t-radio__wrapper_button,
  .uc-giro-quiz .t-checkboxes__wrapper_button,
  .uc-giro-quiz .t-checkboxes__wrapper{
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    gap:6px !important;
  }

  .uc-giro-quiz .t-radio__wrapper_button .t-radio__item,
  .uc-giro-quiz .t-checkboxes__item{
    flex:0 0 auto !important;
    width:100% !important;
    max-width:100% !important;
  }

  .uc-giro-quiz .t-input-title{
    font-size:clamp(29px,8.4vw,38px) !important;
  }

  .uc-giro-quiz .t-quiz__contact-form__header__title{
    font-size:clamp(31px,9vw,40px) !important;
  }

  .uc-giro-quiz .t-quiz__contact-form__header__descr,
  .uc-giro-quiz .t-quiz__contact-form .t-descr{
    font-size:27px !important;
        line-height:1.05 !important;

  }

  .uc-giro-quiz .t-quiz__contact-form .t-input-title{
    font-size:9px !important;
  }

  .uc-giro-quiz .t-quiz__contact-form .t-input{
    height:45px !important;
    min-height:45px !important;
  }
}

/* =========================================================
   GIRO — SYSTEM UI TYPOGRAPHY
   Только служебный интерфейс Tilda.
   Не переопределяем целиком popup / cart / catalog.
========================================================= */

.t-form,
.t-form .t-input,
.t-form textarea,
.t-form select,
.t-form button,
.t-form .t-submit,
.t-form .t-submit *,
.t-form .t-input-title,
.t-form .t-input-subtitle,
.t-form .t-input-description,
.t-form .t-input-error,
.t-form .t-form__errorbox-wrapper,
.t-form .t-form__errorbox-wrapper *,
.t-form .t-form__successbox,
.t-form .t-checkbox__control,
.t-form .t-radio__control,
.t-form .t-input-phonemask,

.t-input-group_cb,
.t-input-group_cb .t-checkbox__control,
.t-input-group_cb .t-checkbox__control span,
.t-input-group_cb .t-checkbox__control a,

.t678__form-bottom-text,
.t678__form-bottom-text *,

.t-input-error,
.t-form__errorbox-wrapper,
.t-form__errorbox-wrapper *{
  font-family:var(--font-main) !important;
}

/* Согласия и ссылки в чекбоксах */
.t-checkbox__control,
.t-checkbox__control span,
.t-checkbox__control a{
  font-family:var(--font-main) !important;
}

/* Success — системный текст */
.t-form__successbox{
  font-family:var(--font-main) !important;
}

/* Vasek — только осознанный декоративный акцент */
.giro-hand,
.giro-hand *{
  font-family:var(--font-hand) !important;
}
