/* Избушка-Займушка. Сначала телефон, с 900px — компьютер. */
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 600;font-display:swap;src:url("../fonts/golos-text-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 600;font-display:swap;src:url("../fonts/golos-text-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Rubik";font-style:normal;font-weight:500 800;font-display:swap;src:url("../fonts/rubik-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Rubik";font-style:normal;font-weight:500 800;font-display:swap;src:url("../fonts/rubik-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Знак рубля: в основных наборах его нет, берём из расширенного и только его */
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 600;font-display:swap;src:url("../fonts/golos-text-latin-ext.woff2") format("woff2");unicode-range:U+20BD}
@font-face{font-family:"Rubik";font-style:normal;font-weight:500 800;font-display:swap;src:url("../fonts/rubik-latin-ext.woff2") format("woff2");unicode-range:U+20BD}

:root{
  --mist:#EEF3EC; --ink:#17332A; --muted:#4A6156; --line:#D5DED3; --field:#F7FAF6; --field-line:#B9C7BC;
  --amber:#F5A623; --amber-deep:#C27F0E; --berry:#B93A24; --leaf:#1F6B4A; --leaf-soft:#E3EDE2; --on-dark:#C6D6CB;
  --head:"Rubik",system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--mist);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.45}
img,svg{display:block;max-width:100%}
a{color:var(--ink)}
a:hover{color:#0D211A}
h1,h2,h3,p,ul,ol{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
.wrap{width:100%;max-width:640px;margin:0 auto;padding:0 20px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px}
.nb{white-space:nowrap}

/* Шапка */
.top__row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:14px;padding-bottom:14px}
.brand{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none}
.brand__ic{width:32px;height:32px;flex:none}
.brand__name{font-family:var(--head);font-weight:800;font-size:clamp(15px,4.4vw,17px);letter-spacing:-.2px;white-space:nowrap}
.top__nav{display:none}
.online{display:inline-flex;align-items:center;flex:none;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:600;white-space:nowrap}
.online i{width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--leaf)}

/* Первый экран */
.hero{padding:8px 0 28px}
.hero__grid{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;align-items:end;
  grid-template-areas:"kicker kicker" "title hut" "form form" "perks perks"}
.kicker{grid-area:kicker;justify-self:start;display:flex;align-items:center;gap:8px;margin-bottom:14px;padding:6px 12px;border-radius:14px;background:var(--ink);color:var(--mist);font-size:12.5px;font-weight:500;line-height:1.3}
.kicker svg{width:14px;height:14px;flex:none;fill:none;stroke:var(--amber);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hero__title{grid-area:title;min-width:0}
h1{font-family:var(--head);font-weight:800;font-size:clamp(25px,7.6vw,30px);line-height:1.12;letter-spacing:-.5px}
.slogan{margin-top:10px;font-size:15px;line-height:1.35;font-weight:600;color:var(--berry)}
.hero__hut{grid-area:hut;width:clamp(104px,33vw,140px);height:auto;margin-right:-6px}

.form{grid-area:form;display:flex;flex-direction:column;gap:12px;margin-top:18px;padding:18px;border-radius:20px;box-shadow:0 10px 24px rgba(23,51,42,.10);scroll-margin-top:16px}
.form__title{display:none;font-family:var(--head);font-weight:800;font-size:22px;letter-spacing:-.3px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:600}
.field input{width:100%;height:52px;padding:0 14px;border:1.5px solid var(--field-line);border-radius:12px;background:var(--field);color:var(--ink);font:inherit;font-size:16px}
.field input::placeholder{color:#5E7268;opacity:1}
.field input:focus{outline:none;border-color:var(--leaf);box-shadow:0 0 0 3px rgba(31,107,74,.18)}
.field input.is-bad{border-color:var(--berry);box-shadow:0 0 0 3px rgba(185,58,36,.14)}
.form__msg{padding:10px 12px;border-radius:10px;background:#FBEAE6;color:#8E2414;font-size:13.5px;font-weight:500}
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;padding:0 20px;border:0;border-radius:14px;background:var(--amber);color:var(--ink);font-family:var(--head);font-weight:700;font-size:18px;text-decoration:none;cursor:pointer;box-shadow:0 4px 0 var(--amber-deep);transition:transform .08s,box-shadow .08s,background .15s}
.btn:hover{background:#FFB73A;color:var(--ink)}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--amber-deep)}
.btn[disabled]{opacity:.7;cursor:progress}
.agree{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.4;color:var(--muted);cursor:pointer}
.agree input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--leaf)}
.agree.is-bad span{color:#8E2414}

.perks{grid-area:perks;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}
.perks li{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12px;font-weight:500;line-height:1.3}
.perks svg{width:22px;height:22px;flex:none;fill:none;stroke:var(--leaf);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Разделы */
.sec{padding:32px 0}
.sec--white{background:#fff}
.sec h2,.final h2{font-family:var(--head);font-weight:800;font-size:24px;line-height:1.2;letter-spacing:-.3px}
.sec h2{margin-bottom:18px}
.sec h3{font-family:var(--head);font-weight:700;font-size:17px;line-height:1.25}

.steps{display:flex;flex-direction:column;gap:10px}
.steps li{display:flex;gap:14px;padding:16px}
.steps__n{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;background:var(--ink);color:var(--amber);font-family:var(--head);font-weight:800;font-size:18px}
.steps p{margin-top:4px;font-size:14px;color:var(--muted)}

.trust{display:grid;gap:14px}
.trust li{display:flex;align-items:flex-start;gap:12px}
.trust__ic{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--leaf-soft)}
.trust__ic svg{width:20px;height:20px;fill:none;stroke:var(--leaf);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.trust p{padding-top:2px;font-size:14px}

.why{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.why li{padding:14px}
.why svg{width:28px;height:28px;fill:none;stroke:var(--berry);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.why h3{margin:8px 0 4px}
.why p{font-size:13px;line-height:1.4;color:var(--muted)}

.faq{display:grid;gap:8px;max-width:760px}
.faq details{border:1px solid var(--line);border-radius:14px;background:var(--field)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 16px;font-size:15px;font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:9px;height:9px;margin-right:4px;border-right:2.4px solid var(--ink);border-bottom:2.4px solid var(--ink);transform:translateY(-3px) rotate(45deg);transition:transform .15s}
.faq details[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.faq details p{padding:0 16px 16px;font-size:14px;color:var(--muted)}

.final{display:flex;align-items:center;gap:24px;padding:24px;border-radius:22px;background:var(--ink);color:var(--mist)}
.final__text{flex:1;display:flex;flex-direction:column;gap:10px;min-width:0}
.final p{margin-bottom:6px;font-size:15px;color:var(--on-dark)}
.final .btn{min-height:54px}
.final__hut{display:none}

/* Подвал */
.foot{padding:24px 0 28px;background:var(--ink);color:var(--on-dark);font-size:12px;line-height:1.5}
.foot p+p{margin-top:12px}
.foot a{color:var(--mist)}
.foot strong{color:var(--mist);font-weight:600}
.foot__brand{font-family:var(--head);font-weight:800;font-size:16px;color:var(--mist)}

/* Экран «Заявка принята» и политика */
.page{min-height:100vh;display:flex;flex-direction:column}
.thanks{flex:1;display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:12px;padding-bottom:32px;text-align:center}
.thanks__hut{width:190px;height:auto}
.thanks__card{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:440px;padding:22px 18px;border-radius:20px;box-shadow:0 10px 24px rgba(23,51,42,.10)}
.thanks__badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--leaf-soft);font-size:13px;font-weight:600}
.thanks__badge svg{width:16px;height:16px;fill:none;stroke:var(--leaf);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.thanks h1{font-size:28px;line-height:1.15}
.thanks__card p{font-size:15px;color:var(--muted)}
.thanks .btn{gap:8px;padding:0 12px;font-size:clamp(14px,4.2vw,16px);white-space:nowrap}
.thanks .btn svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--ink);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.thanks__note{max-width:440px;font-size:12.5px;color:var(--muted)}
.doc{padding-top:8px;padding-bottom:40px}
.doc h1{margin:14px 0 16px;font-size:clamp(22px,6vw,30px)}
.doc h2{margin:22px 0 6px;font-family:var(--head);font-weight:700;font-size:18px}
.doc p{font-size:15px}
.doc p+p{margin-top:10px}
.doc__back{display:inline-block;font-weight:600}

@media (max-width:359px){
  .online__word{display:none}
  .wrap{padding:0 16px}
  .final{padding:20px}
  .sec h2,.final h2{font-size:21px}
}

@media (min-width:900px){
  body{font-size:16px}
  .wrap{max-width:1216px;padding:0 32px}
  .top__row{padding-top:20px;padding-bottom:20px}
  .brand__ic{width:40px;height:40px}
  .brand__name{font-size:22px}
  .top__nav{display:flex;gap:28px;margin-left:auto;margin-right:18px;font-size:15px;font-weight:500}
  .top__nav a{text-decoration:none}
  .top__nav a:hover{text-decoration:underline}
  .online{padding:8px 14px;font-size:14px}

  .hero{padding:16px 0 40px}
  .hero__grid{grid-template-columns:minmax(0,1fr) 300px 380px;column-gap:32px;align-items:start;
    grid-template-areas:"kicker kicker form" "title title form" "perks hut form"}
  .kicker{margin-bottom:18px;padding:8px 14px;font-size:14px}
  .kicker svg{width:16px;height:16px}
  h1{font-size:clamp(40px,4.6vw,58px);line-height:1.06;letter-spacing:-1.4px}
  .slogan{margin-top:12px;font-size:22px;line-height:1.3}
  .hero__hut{width:270px;margin:8px 0 0;justify-self:center;align-self:end}
  .form{align-self:center;gap:14px;margin-top:0;padding:28px;border-radius:24px;box-shadow:0 16px 36px rgba(23,51,42,.12)}
  .form__title{display:block}
  .field label{font-size:14px}
  .field input{height:54px;padding:0 16px}
  .btn{min-height:60px;font-size:19px}
  .agree{font-size:12.5px}
  .perks{display:flex;flex-direction:column;gap:14px;margin-top:32px;align-self:start}
  .perks li{flex-direction:row;gap:12px;text-align:left;font-size:17px}
  .perks svg{width:40px;height:40px;padding:9px;border-radius:12px;background:#fff;border:1px solid var(--line)}

  .sec{padding:48px 0}
  .sec h2,.final h2{font-size:32px}
  .sec h2{margin-bottom:24px}
  .sec h3{font-size:18px}
  .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .steps li{padding:18px}
  .steps__n{width:40px;height:40px;font-size:20px}
  .trust{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 32px}
  .trust p{font-size:16px}
  .why{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .why li{padding:20px}
  .why p{font-size:14px}
  .faq summary{font-size:17px;padding:10px 20px}
  .faq details p{padding:0 20px 18px;font-size:15px}
  .final{padding:36px 44px}
  .final p{font-size:18px}
  .final .btn{align-self:flex-start;width:auto;min-width:280px}
  .final__hut{display:block;width:190px;height:auto;flex:none}
  .foot{padding:32px 0 36px;font-size:13px}
  .foot p{max-width:900px}
}
