:root {
  --green: #0F9D58;
  --green-dark: #0A7841;
  --red: #DD2C00;
  --black: #242424;
  --paper: #FFFFFF;
  --light: #F5F5F5;
  --line: #E3E3E3;
  --muted: #696969;
  --radius: 12px;
  --shadow: 0 16px 42px rgba(36, 36, 36, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--black); background: var(--light); font-family: Lato, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.page-width { width: min(100% - 48px, 1180px); margin: 0 auto; }
.is-hidden { display: none !important; }
.modal-open { overflow: hidden; }

.site-header { background: #fff; border-top: 4px solid var(--green); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 0; }
.brand-logo { width: min(286px, 46vw); height: auto; display: block; object-fit: contain; }
.branch-contacts { display: grid; gap: 7px; justify-items: end; color: #555; font-size: 14px; line-height: 1.28; }
.contact-line { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.contact-line svg, .branch-link-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.contact-phone { color: var(--black); font-weight: 800; text-decoration-color: var(--green); text-underline-offset: 3px; }
.contact-phone:hover { color: var(--green-dark); }

.unknown-branch { background: #FFF2ED; border-bottom: 1px solid #F2CDBF; }
.unknown-branch-inner { display: flex; gap: 10px; padding: 13px 0; color: #693322; font-size: 14px; flex-wrap: wrap; }
.unknown-branch code { padding: 1px 4px; color: var(--black); background: #fff; border-radius: 3px; }

.home-layout, .survey-layout, .thanks {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(40px, 6vw, 76px);
  padding: 66px 0 78px;
}

/* У опроса левую колонку немного расширяем: длинное название бренда
   остается в своей колонке и не пересекается с карточкой формы. */
.survey-layout {
  grid-template-columns: minmax(320px, .98fr) minmax(0, 1.02fr);
  gap: clamp(42px, 5.2vw, 68px);
}
.home-copy, .intro-copy, .thanks-main { padding-top: 24px; min-width: 0; }
.eyebrow, .card-kicker { margin: 0; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 21px; height: 3px; background: var(--red); }
h1 { margin: 21px 0; max-width: 510px; color: var(--black); font-size: clamp(42px, 4.4vw, 64px); font-weight: 900; letter-spacing: -.055em; line-height: .98; }
h1 em { color: var(--green); font-style: normal; }

/* Полное название бренда требует отдельной строки; шрифт и размер адаптируются,
   чтобы заголовок не заходил на карточку на промежуточных ширинах экрана. */
.survey-intro-title {
  max-width: 100%;
  font-size: clamp(38px, 3.9vw, 58px);
  line-height: 1.01;
  overflow-wrap: anywhere;
}
.survey-intro-title em { display: inline-block; white-space: nowrap; }
.intro-text { max-width: 455px; margin: 0; color: #5D5D5D; font-size: 18px; line-height: 1.55; }
.intro-note { max-width: 420px; display: flex; align-items: flex-start; gap: 10px; margin-top: 27px; padding: 15px 16px; color: #4C4C4C; border-left: 3px solid var(--green); background: #fff; box-shadow: 0 8px 22px rgba(36, 36, 36, .04); font-size: 14px; font-weight: 700; line-height: 1.45; }
.intro-note svg { width: 19px; height: 19px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; flex: 0 0 auto; }

.branch-picker, .survey-card, .review-panel, .issue-panel, .final-panel {
  min-width: 0;
  padding: 33px;
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.branch-picker h2, .card-head h2, .review-panel h2, .issue-panel h2, .final-panel h2 { margin: 9px 0 0; font-size: 29px; letter-spacing: -.035em; line-height: 1.1; }
.picker-label { display: block; margin: 27px 0 8px; color: #454545; font-size: 13px; font-weight: 900; }
.city-select { width: 100%; min-height: 50px; padding: 0 42px 0 13px; border: 1px solid #D3D3D3; border-radius: 8px; color: var(--black); background: #fff; outline: none; font-weight: 700; transition: border-color .15s ease, box-shadow .15s ease; }
.city-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 157, 88, .13); }
.branch-list-placeholder { margin-top: 14px; padding: 15px 0 3px; color: #777; font-size: 14px; line-height: 1.45; }
.branch-list { display: grid; gap: 10px; margin-top: 14px; }
.branch-link { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid #E1E1E1; border-radius: 9px; color: var(--black); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.branch-link:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: 0 8px 17px rgba(36, 36, 36, .08); }
.branch-link-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #EEF9F2; }
.branch-link-icon svg { width: 18px; height: 18px; }
.branch-link-copy { display: grid; gap: 3px; min-width: 0; }
.branch-link-copy strong { font-size: 14px; line-height: 1.3; }
.branch-link-copy small { color: #787878; font-size: 12px; font-weight: 700; }
.branch-link-arrow { margin-left: auto; color: var(--green); font-size: 20px; font-weight: 900; }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.card-time { flex: 0 0 auto; padding: 7px 9px; color: #367D58; background: #EBF7EF; border-radius: 5px; font-size: 11px; font-weight: 900; }
.question-block { min-width: 0; margin: 0; padding: 25px 0; border: 0; border-bottom: 1px solid var(--line); }
.question-block-last { border-bottom: 0; padding-bottom: 20px; }
.question-block legend { max-width: 100%; padding: 0; color: var(--black); font-size: 17px; font-weight: 900; line-height: 1.35; }
.question-block legend b { color: var(--red); }
.required-mark { display: inline; color: var(--red); font-weight: 900; }
.required-note { margin: 0 0 13px; color: #777; font-size: 12px; font-weight: 700; }
.required-note span { color: var(--red); font-size: 15px; }
.option-grid { display: grid; gap: 9px; margin-top: 16px; }
.option-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #D9D9D9; border-radius: 8px; color: #454545; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.choice:hover { border-color: var(--green); background: #F2FBF6; }
.choice:has(input:checked) { border-color: var(--green); color: #12683B; background: #EEF9F2; box-shadow: inset 0 0 0 1px rgba(15, 157, 88, .12); }
.choice input { appearance: none; width: 17px; height: 17px; display: grid; place-content: center; flex: 0 0 auto; margin: 0; border: 1.5px solid #A7A7A7; border-radius: 50%; background: #fff; }
.choice input:checked { border-color: var(--green); background: var(--green); }
.choice input:checked::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.other-field { display: grid; gap: 7px; margin-top: 11px; color: #565656; font-size: 13px; font-weight: 800; }
.other-input, textarea, .issue-fields input { width: 100%; color: var(--black); background: #fff; border: 1px solid #D3D3D3; border-radius: 8px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.other-input, .issue-fields input { min-height: 47px; padding: 0 12px; }
textarea { min-height: 112px; margin-top: 14px; padding: 12px; resize: vertical; line-height: 1.45; }
textarea::placeholder, input::placeholder { color: #9A9A9A; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 157, 88, .13); }
.score-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; max-width: 375px; margin-top: 15px; }
.score-choice { position: relative; min-height: 49px; display: grid; place-items: center; border: 1px solid #D0D0D0; border-radius: 8px; color: #656565; background: #fff; font-size: 17px; font-weight: 900; transition: .15s ease; }
.score-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.score-choice:hover { border-color: var(--green); color: var(--green-dark); background: #F2FBF6; }
.score-choice:has(input:checked) { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 5px 11px rgba(15, 157, 88, .24); }
.score-caption { display: flex; justify-content: space-between; max-width: 375px; margin-top: 8px; color: #808080; font-size: 12px; font-weight: 700; }
.form-error { min-height: 20px; margin: 0 0 11px; color: #B12608; font-size: 13px; font-weight: 700; line-height: 1.35; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 22px; border: 1px solid transparent; border-radius: 7px; font-weight: 900; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .7; transform: none; }
.button-primary { width: 100%; color: #fff; background: var(--green); border-color: var(--green); }
.button-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button-outline { color: var(--black); background: #fff; border-color: #BFBFBF; }
.button-outline:hover { color: var(--green-dark); border-color: var(--green); background: #F5FCF8; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

.thanks { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.thanks-main > p:not(.eyebrow) { max-width: 430px; margin: 0; color: #5D5D5D; font-size: 18px; line-height: 1.55; }
.review-gate { max-width: 460px; margin-top: 31px; padding: 24px; border-left: 3px solid var(--red); background: #fff; box-shadow: 0 9px 25px rgba(36, 36, 36, .05); }
.review-gate h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.review-gate p, .review-panel > p, .issue-panel > p, .final-panel > p { margin: 11px 0 0; color: #606060; font-size: 15px; line-height: 1.5; }
.review-gate-buttons { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; margin-top: 19px; }
.review-gate-buttons .button { width: 100%; min-height: 49px; padding: 0 12px; }
.review-panel, .issue-panel, .final-panel { min-width: 0; }
.review-links { display: grid; gap: 11px; margin-top: 22px; }
.review-link { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #E0E0E0; border-radius: 9px; text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.review-link:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: 0 8px 17px rgba(36, 36, 36, .08); }
.platform-logo { width: 52px; height: 52px; display: block; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }
.review-copy { display: grid; gap: 3px; min-width: 0; }
.review-copy strong { font-size: 15px; }
.review-copy small { color: #757575; font-size: 12px; font-weight: 700; }
.review-arrow { margin-left: auto; color: var(--green); font-size: 21px; font-weight: 700; }
.missing-review-links { padding: 16px; border: 1px dashed #C8C8C8; border-radius: 8px; color: #696969; font-size: 14px; line-height: 1.45; }

.issue-panel { border-top-color: var(--red); }
.card-kicker.danger { color: var(--red); }
.issue-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 14px; margin-top: 23px; }
.issue-fields label { display: grid; gap: 7px; color: #454545; font-size: 13px; font-weight: 900; }
.field-label { display: block; margin-top: 18px; color: #454545; font-size: 13px; font-weight: 900; }
.field-name { display: inline; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 17px 0; color: #626262; font-size: 12px; line-height: 1.45; }
.consent input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.policy-link { display: inline; margin: 0; padding: 0; border: 0; color: var(--green-dark); background: transparent; font-size: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.final-panel { text-align: center; }
.checkmark { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 15px; color: #fff; background: var(--green); border-radius: 50%; font-size: 28px; font-weight: 900; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 72px; display: flex; align-items: center; gap: 12px; color: #777; font-size: 12px; font-weight: 700; }
.footer-separator { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

.policy-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; }
.policy-backdrop { position: absolute; inset: 0; background: rgba(36, 36, 36, .48); }
.policy-dialog { position: relative; z-index: 1; width: min(100%, 610px); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 34px; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.policy-dialog h2 { margin: 8px 0 16px; font-size: 27px; letter-spacing: -.03em; }
.policy-content { color: #565656; font-size: 14px; line-height: 1.55; }
.policy-content p { margin: 0 0 12px; }
.modal-close { position: absolute; right: 12px; top: 9px; width: 34px; height: 34px; border: 0; color: #666; background: transparent; font-size: 28px; line-height: 1; }
.modal-close:hover { color: var(--red); }
.modal-confirm { margin-top: 10px; }

@media (min-width: 981px) {
  .intro-copy { position: sticky; top: 32px; }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .survey-layout { grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr); gap: 42px; }
  .survey-intro-title { font-size: clamp(37px, 4.2vw, 46px); }
}

@media (max-width: 980px) {
  .home-layout, .survey-layout, .thanks { grid-template-columns: 1fr; gap: 30px; padding-top: 42px; }
  .home-copy, .intro-copy, .thanks-main { padding-top: 0; }
  .home-copy, .intro-copy { max-width: 580px; }
}

@media (max-width: 640px) {
  .page-width { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 0; align-items: flex-start; gap: 13px; padding: 13px 0; }
  .brand-logo { width: min(195px, 53vw); margin-top: 3px; }
  .branch-contacts { max-width: 44vw; gap: 5px; justify-items: start; font-size: 11px; }
  .contact-line { align-items: flex-start; gap: 5px; }
  .contact-line svg { width: 13px; height: 13px; margin-top: 1px; }
  .home-layout, .survey-layout, .thanks { padding: 32px 0 46px; gap: 25px; }
  h1 { margin: 15px 0; font-size: clamp(37px, 13vw, 52px); }
  .survey-intro-title { font-size: clamp(36px, 11vw, 48px); line-height: 1.03; }
  .intro-text, .thanks-main > p:not(.eyebrow) { font-size: 16px; }
  .intro-note { margin-top: 22px; padding: 13px 14px; }
  .branch-picker, .survey-card, .review-panel, .issue-panel, .final-panel { padding: 22px 17px; }
  .branch-picker h2, .card-head h2, .review-panel h2, .issue-panel h2, .final-panel h2, .review-gate h2 { font-size: 23px; }
  .card-head { gap: 9px; padding-bottom: 17px; }
  .card-time { padding: 6px 7px; font-size: 10px; }
  .question-block { padding: 21px 0; }
  .question-block legend { font-size: 16px; }
  .option-grid-two, .option-grid-four { grid-template-columns: 1fr; }
  .choice { min-height: 45px; }
  .score-row { gap: 6px; }
  .score-choice { min-height: 44px; }
  .score-caption { font-size: 11px; }
  .review-gate { margin-top: 24px; padding: 20px 17px; }
  .review-gate-buttons { grid-template-columns: 1fr; }
  .issue-fields { grid-template-columns: 1fr; gap: 13px; }
  .footer-inner { min-height: 62px; gap: 8px; font-size: 10px; }
  .policy-dialog { padding: 28px 20px 22px; }
}


/* Главная страница: прямой список филиалов без промежуточного выбора города */
.branch-directory { align-self: start; }
.branch-directory-note { margin: 12px 0 0; color: #666; font-size: 14px; line-height: 1.45; }
.branch-city-groups { display: grid; gap: 24px; margin-top: 24px; }
.city-group { padding-top: 20px; border-top: 1px solid #E8E8E8; }
.city-group:first-child { padding-top: 0; border-top: 0; }
.city-group-title { margin: 0; color: var(--green-dark); font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.branch-directory .branch-list { margin-top: 11px; }
.branch-directory .branch-link { min-height: 72px; }

@media (max-width: 640px) {
  .branch-city-groups { gap: 20px; margin-top: 20px; }
  .city-group { padding-top: 17px; }
  .branch-directory .branch-link { min-height: 68px; }
}
