/* Квиз-лендинг Оцифровкин.
 * Токены сняты с ocifrovkin.ru (вычисленные стили): Montserrat 400 в заголовках (по просьбе заказчика вместо Raleway сайта),
 * заголовки #19352d, текст #5a5148, кнопки #ed7c23 со скруглением 10px,
 * карточки — белые с рамкой 1px #cbcbcb, поля — #f9f9f9 с рамкой #cad2dd. */

@font-face{font-family:"Montserrat";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(../fonts/montserrat-cyrillic.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(../fonts/montserrat-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}

:root{
  --orange:#ed7c23;
  --orange-dark:#c96a19;
  --title:#19352d;
  --ink:#2b2620;
  --text:#5a5148;
  --muted:#8a7f72;
  --cream:#f6f1e8;
  --dark:#0e2b26;
  --card-line:#cbcbcb;
  --line:#e6ddce;
  --field-bg:#f9f9f9;
  --field-line:#cad2dd;
  --r:10px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--text);
  font:400 16px/26px "Montserrat",-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--orange)}
h1,h2,h3,h4{color:var(--title);font-weight:400;margin:0}
p{margin:0}
.wrap{max-width:1290px;margin:0 auto;padding:0 50px}
[hidden]{display:none!important}
.accent{color:var(--orange)}

/* Кнопки — как «Рассчитать стоимость оцифровки» */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:56px;padding:14px 30px;border:0;border-radius:var(--r);cursor:pointer;
  background:var(--orange);color:#fff;font-family:inherit;font-weight:400;font-size:16px;line-height:1.3;
  text-decoration:none;transition:background .2s}
.btn:hover{background:var(--orange-dark)}
.btn:focus-visible{outline:3px solid var(--title);outline-offset:3px}
.btn[disabled]{opacity:.55;cursor:default}
.btn[disabled]:hover{background:var(--orange)}
.btn--sm{min-height:48px;padding:11px 20px;font-size:15px}
.btn--big{min-height:60px;padding:16px 36px;font-size:17px}
.btn--wide{width:100%}
.btn--ghost{background:transparent;color:var(--text);padding-left:6px;padding-right:6px}
.btn--ghost:hover{background:transparent;color:var(--title)}

/* Шапка */
.top{background:#fff;border-bottom:1px solid var(--line)}
.top_in{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px;max-width:1400px;padding-left:30px;padding-right:30px}
.top_logo{justify-self:start}
.top_logo img{width:170px}
.top_right{display:flex;align-items:center;gap:16px;white-space:nowrap}
.top_phone{display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-size:17px;line-height:1.3;white-space:nowrap}
.top_phone:hover{color:var(--orange)}
.ico{width:16px;height:16px;fill:var(--orange);flex:none}
/* Мессенджеры: круглые фирменные значки целиком, без подложки */
.msgr-links{display:flex;align-items:center;gap:10px}
.msgr-link{display:block;width:40px;height:40px;flex:none;border-radius:50%;transition:transform .15s}
.msgr-link:hover{transform:scale(1.08)}
.msgr-link img{width:100%;height:100%;border-radius:50%;object-fit:cover}
/* Разделы лендинга — в одном ряду с логотипом, как меню сайта */
/* меню посередине свободного места между логотипом и правой группой */
.top_nav{flex:1;display:flex;justify-content:center}
.top_nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.top_nav a{display:flex;align-items:center;height:44px;padding:0 11px;white-space:nowrap;font-size:13px;line-height:26px;
  text-transform:uppercase;color:var(--ink);text-decoration:none;transition:color .15s}
.top_nav a:hover{color:var(--orange)}
html{scroll-behavior:smooth}
main section{scroll-margin-top:10px}

/* 1. Оффер */
.hero{padding:0;background:var(--cream) url(../img/hero-bg.webp) left top/cover no-repeat;overflow:hidden}
.hero_in{display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:end}
.hero_text{padding:40px 0 44px;align-self:center}
.hero h1{font-size:42px;line-height:1.1}
.hero_lead{font-size:18px;line-height:30.6px;margin-top:22px;max-width:590px}
.feats{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:18px}
.feats li{display:flex;gap:18px;align-items:flex-start}
.feats svg{width:40px;height:40px;flex:none;fill:none;stroke:var(--orange);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feats h4{font-size:20px;line-height:28px}
.feats p{font-size:16px;line-height:28px;margin-top:2px;max-width:520px}
.hero_cta{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:26px}
.hero_note{font-size:14px;color:var(--muted)}
.hero_media{position:relative;justify-self:center;align-self:end}
.hero_photo{max-height:540px;width:auto}

/* Секции */
section{padding:90px 0}
.h2{font-size:40px;line-height:48.8px;text-align:center}
.h2--mt{margin-top:90px}
.sub{text-align:center;max-width:680px;margin:16px auto 0;font-size:18px;line-height:30.6px}

/* 2. Доверие */
.trust_grid{display:grid;grid-template-columns:1.6fr 1fr;gap:30px;align-items:stretch;margin-top:50px}
.trust_map{margin:0;background:var(--cream);border-radius:var(--r);padding:20px;display:flex;flex-direction:column}
.trust_map #ogeo-allmap{margin-top:0}
.stats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stats li{border:1px solid var(--card-line);border-radius:var(--r);padding:24px 22px;display:flex;flex-direction:column;justify-content:center}
.stats b{display:block;font-size:52px;font-weight:500;line-height:1.05;color:var(--orange)}
.stats span{display:block;font-size:18px;line-height:26px;margin-top:10px;color:var(--ink);font-weight:500}
/* Карта — стили ocifrovka-geo/assets/geo.css */
#ogeo-allmap{height:380px;margin-top:16px;border-radius:10px;border:1px solid #e6ddce;background:#f6f2ea;z-index:0}
#ogeo-allmap.is-loading:after{content:'Загружаем пункты…';display:block;padding:24px;color:#5a5148}
.ogeo-allmap__err{padding:24px;color:#5a5148}
.ogeo-allmap__link{margin:14px 0 0}
.ogeo-allmap__link a{color:#ed7c23}
.leaflet-container{font-family:inherit}
/* 3. Было / стало */
.proof{background:var(--cream)}
.ba{position:relative;max-width:1000px;margin:44px auto 0;aspect-ratio:1200/655;overflow:hidden;
  border-radius:var(--r);background:var(--dark);cursor:ew-resize;user-select:none;touch-action:pan-y}
.ba:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.ba_img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.ba_after{clip-path:inset(0 0 0 var(--pos))}
.ba_line{position:absolute;top:0;bottom:0;left:var(--pos);width:3px;background:#fff;transform:translateX(-50%);
  box-shadow:0 0 0 1px rgba(0,0,0,.15);pointer-events:none}
.ba_handle{position:absolute;top:50%;left:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6' fill='none' stroke='%23ed7c23' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/26px no-repeat;
  box-shadow:0 4px 18px rgba(0,0,0,.25)}
.ba_tag{position:absolute;top:16px;padding:5px 14px;border-radius:6px;background:rgba(14,43,38,.85);
  color:#fff;font-size:14px;pointer-events:none}
.ba_tag--l{left:16px}
.ba_tag--r{right:16px;background:var(--orange)}

/* Кнопка действия под блоком */
.section_cta{margin-top:36px;text-align:center}

/* Подвал — как footer-style-2 на ocifrovkin.ru */
.foot{background:#fbf9f5 url(../img/footer-bg-light.jpg) center/cover no-repeat;padding-top:110px;color:var(--text);font-weight:500}
.foot_grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding-bottom:40px}
.foot_logo img{width:170px}
.foot_about{margin-top:26px;color:var(--text);font-size:16px;line-height:26px}
.foot_head{margin:0 0 15px;padding-bottom:8px;font-size:19px;line-height:28px;font-weight:400;color:var(--ink)}
.foot_list,.foot_menu{list-style:none;margin:0;padding:0}
.foot_list li{margin:0 0 15px;font-weight:400;font-size:16px;line-height:26px;color:var(--text)}
.foot_list a,.foot_menu a{color:inherit;text-decoration:none}
.foot_list a:hover,.foot_menu a:hover{color:var(--orange);text-decoration:underline}
.foot_menu li{margin:0 0 15px;font-weight:400;font-size:16px;line-height:26px;color:var(--text)}
.ft-ico{display:inline-flex;width:20px;margin-right:8px;vertical-align:-4px;color:var(--orange)}
.ft-ico svg{width:18px;height:18px;stroke:currentColor}
.ft-note{margin-left:6px;font-size:13px;opacity:.7}
.foot_text{font-weight:400;font-size:15px;line-height:24px;margin-bottom:16px}
.foot_btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;width:100%;max-width:300px;height:48px;border:0;border-radius:8px;background:var(--orange);color:#fff;font-family:inherit;font-size:16px;font-weight:500;cursor:pointer;transition:background .15s}
.foot_btn:hover{background:var(--orange-dark)}
.msgr-links--foot{margin-top:18px}
.foot_copy{border-top:1px solid rgba(25,53,45,.1);padding:20px 0}
.foot_copy-row{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.foot_copy-text{font-size:18px;line-height:34px;font-weight:400;letter-spacing:1px;color:var(--text)}
.foot_copy-row a{font-size:14px;font-weight:400;color:var(--text)}
.foot_legal{display:block;margin-top:16px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;line-height:1.55;font-weight:400;color:#8a8a8a}

/* Страница документа (политика) */
.doc{padding:60px 0 80px;background:#fff}
.doc_in{max-width:860px}
.doc h1{font-size:40px;line-height:1.2;margin-bottom:28px}
.doc h2{font-size:24px;line-height:1.3;margin:36px 0 12px}
.doc p,.doc li{font-size:16px;line-height:27px}
.doc p+p{margin-top:12px}
.doc ul{margin:12px 0;padding-left:22px}
.doc li+li{margin-top:6px}
.doc b{color:var(--ink);font-weight:600}
.doc_back{margin-top:40px}
.doc + .foot{padding-top:0}
/* Страница с видео */
.vpage_lead{max-width:760px;font-size:17px;line-height:28px}
.vpage_grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:32px}
.vpage_grid figure{margin:0}
.vpage_grid .plyr{border-radius:var(--r);--plyr-color-main:#ed7c23;--plyr-font-family:inherit}
.vpage_grid figcaption{margin-top:10px;font-size:15px;color:var(--ink);font-weight:500}

/* Адаптив */
@media (max-width:1100px){
  .wrap{padding:0 30px}
}
@media (max-width:1000px){
  .foot_grid{grid-template-columns:1fr 1fr}
  .vpage_grid{grid-template-columns:1fr}
  .top_nav{display:none}
  .top_in{display:flex}
  .top_right{margin-left:auto}
  .trust_grid{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:760px){
  .wrap{padding:0 16px}
  section{padding:56px 0}
  .h2{font-size:30px;line-height:1.2}
  .h2--mt{margin-top:56px}
  .sub{font-size:16px;line-height:26px}
  .top_in{min-height:64px;gap:12px}
  .top_logo img{width:128px}
  .top_btn{display:none}
  .top_right{gap:12px}
  .top_phone{font-size:15px}
  /* вместо номера — круглый оранжевый значок трубки, как значки мессенджеров */
  .top_phone{width:36px;height:36px;border-radius:50%;background:var(--orange);justify-content:center;gap:0;flex:none}
  .top_phone .ico{width:18px;height:18px;fill:#fff}
  .top_phone-num{display:none}
  .top_phone:hover{background:var(--orange-dark)}
  .msgr-link{width:36px;height:36px}
  .msgr-links{gap:8px}
  .hero{background-size:auto 100%}
  .hero_in{grid-template-columns:1fr;gap:0}
  .hero_text{padding:18px 0 30px;display:flex;flex-direction:column}
  .hero h1{font-size:30px}
  .hero_cta{order:1;margin-top:22px;gap:10px}
  .hero_cta .btn{width:100%}
  .feats{order:2;margin-top:26px;gap:14px}
  .feats svg{width:32px;height:32px}
  .feats h4{font-size:18px;line-height:24px}
  .feats p{font-size:15px;line-height:23px}
  .hero_media{order:-1;width:100%;display:flex;justify-content:center;padding-top:14px}
  .hero_photo{max-height:340px}
  .stats{grid-template-columns:1fr 1fr}
  .trust_map{padding:10px}
  .stats b{font-size:36px}
  .stats span{font-size:15px;line-height:21px}
  .section_cta .btn{width:100%}
  #ogeo-allmap{height:300px}
  .foot{padding-top:56px}
  .foot_grid{grid-template-columns:1fr}
  .foot_copy-text{font-size:15px;letter-spacing:0}
  .ba_handle{width:44px;height:44px;margin:-22px 0 0 -22px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
