/*
 * Оформление сайта вакансий.
 *
 * Цвета, скругления и шрифт сюда не попадают: они приходят переменными
 * из настроек, которые правит админка. Здесь только то, что настройкой
 * быть не должно — сетка, размеры, поведение при наведении.
 *
 * Файл отдаётся браузеру как есть, без сборки. Проект небольшой, а
 * лишний шаг сборки это лишнее место, где выкладка может встать.
 */

/* Шрифты лежат рядом с сайтом, а не подключаются с Google Fonts:
   лишний сторонний запрос на каждый показ и претензии по GDPR в Европе.
   Системный шрифт стоит по умолчанию и ничего не грузит вообще. */
@font-face{font-family:"Inter";src:url(/fonts/inter-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2192,U+2212,U+2215;}
@font-face{font-family:"Inter";src:url(/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Manrope";src:url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F;}
@font-face{font-family:"Manrope";src:url(/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+2116;}
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");font-weight:200 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F;}
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-4-cyrillic-wght-normal.woff2) format("woff2");font-weight:200 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+2116;}

*{box-sizing:border-box; margin:0; padding:0;}
  /* Атрибут hidden обязан выигрывать у наших display:flex и display:grid.
     Без этого «скрытый» блок с таким правилом остаётся на экране, и
     посетитель видит, например, «номер подтверждён» до подтверждения. */
  [hidden]{display:none !important;}
  html{scroll-behavior:smooth;}
  /* Шапка закреплена сверху: без этого якорь прыгает так, что заголовок
     секции оказывается под шапкой. */
  section[id],[id]{scroll-margin-top:88px;}
  body{
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
    background:var(--bg); color:var(--text);
    -webkit-font-smoothing:antialiased;
    transition:background .35s ease, color .35s ease;
    overflow-x:hidden;
  }
  img,svg{display:block; max-width:100%;}
  a{color:inherit; text-decoration:none;}
  /* color:inherit обязателен. Браузер не наследует цвет для button:
     по умолчанию у него системный buttontext, почти чёрный при любой
     теме. В светлой теме это случайно совпадало с нужным цветом, а на
     тёмной варианты ответа в квизе становились нечитаемы. */
  button{font-family:inherit; cursor:pointer; color:inherit;}
  .wrap{max-width:1120px; margin:0 auto; padding:0 24px;}
  section{padding:72px 0;}
  @media (max-width:768px){ section{padding:48px 0;} }

  h1,h2,h3,h4{letter-spacing:-0.02em; font-weight:600; line-height:1.05;}
  .eyebrow{font-size:15px; color:var(--accent); font-weight:600; margin-bottom:10px;}
  .lede{font-size:19px; color:var(--text-2); line-height:1.5; max-width:620px;}
  .center{text-align:center; margin-left:auto; margin-right:auto;}

  /* ---------- Header ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    background:color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border-bottom:1px solid var(--border);
  }
  .nav-inner{
    max-width:1120px; margin:0 auto; padding:0 24px;
    height:52px; display:flex; align-items:center; justify-content:space-between;
  }
  .logo{display:flex; align-items:center; gap:8px; font-weight:600; font-size:15px; letter-spacing:-0.01em;}
  .logo-mark{width:22px; height:22px; border-radius:7px; background:linear-gradient(135deg,var(--accent),#5ac8fa); flex:0 0 auto;}
  nav.links{display:flex; gap:28px; font-size:13px; color:var(--text-2);}
  nav.links a{transition:color .2s;}
  nav.links a:hover{color:var(--text);}
  .nav-right{display:flex; align-items:center; gap:10px;}
  .icon-btn{
    width:32px; height:32px; border-radius:50%; border:1px solid var(--border);
    background:transparent; display:flex; align-items:center; justify-content:center;
    color:var(--text); transition:background .2s, transform .15s;
  }
  .icon-btn:hover{background:var(--surface-2);}
  .icon-btn:active{transform:scale(.92);}
  .lang-switch{
    display:flex; border:1px solid var(--border); border-radius:20px; overflow:hidden; font-size:12px; font-weight:600;
  }
  .lang-switch button{
    padding:6px 11px; background:transparent; border:none; color:var(--text-2); transition:all .2s;
  }
  .lang-switch button.active{background:var(--text); color:var(--bg);}
  .btn-primary{
    background:var(--btn-bg); color:var(--btn-text); border:none; border-radius:980px;
    padding:9px 18px; font-size:13px; font-weight:500; transition:background .2s, transform .15s;
    white-space:nowrap;
  }
  .btn-primary:hover{filter:brightness(1.12);}
  .btn-primary:active{transform:scale(.97);}
  .btn-secondary{
    border:1px solid var(--border); background:transparent; color:var(--text);
    border-radius:980px; padding:9px 18px; font-size:13px; font-weight:500; transition:background .2s;
  }
  .btn-secondary:hover{background:var(--surface-2);}
  /* У кнопки-бургера три пустых span. Без размера и фона они ничего не
     рисуют, и кнопка на мобильном выглядит как пустое место: нажимать
     не на что, потому что не видно, что там что-то есть. */
  .burger{
    display:none; flex-direction:column; gap:5px;
    width:32px; height:32px; align-items:center; justify-content:center;
    border:none; background:none; color:var(--text);
  }
  .burger span{
    display:block; width:18px; height:2px; border-radius:2px; background:currentColor;
    transition:transform .25s ease, opacity .2s ease;
  }
  /* Открытое меню превращает полоски в крестик: человек должен видеть,
     чем закрыть то, что он открыл. */
  .burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
  .burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  /* ---------- Hero ---------- */
  .hero{
    padding:116px 0 24px; position:relative; overflow:hidden;
  }
  /* Слева обещание, справа форма. На узком экране форма уходит под
     текст: набирать номер, не дочитав, зачем это, никто не станет. */
  .hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;}
  @media (max-width:960px){ .hero-grid{grid-template-columns:1fr; gap:36px;} }
  .hero-form-card{
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:24px; box-shadow:0 24px 60px rgba(0,0,0,.10);
    opacity:0; transform:translateY(16px); animation:riseIn .8s cubic-bezier(.2,.7,.2,1) forwards .36s;
  }
  .hero-form-title{font-size:22px; letter-spacing:-0.02em; margin-bottom:6px;}
  .hero-form-lede{font-size:14px; color:var(--text-2); line-height:1.5; margin-bottom:16px;}
  .hero-orb{
    position:absolute; top:-220px; left:50%; transform:translateX(-50%);
    width:900px; height:900px; border-radius:50%; z-index:0;
    background:radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 65%);
    filter:blur(10px);
    opacity:0; animation:orbIn 1.6s ease forwards .1s;
  }
  @keyframes orbIn{ to{opacity:1;} }
  .hero > *:not(.hero-orb){position:relative; z-index:1;}
  .hero h1{
    font-size:clamp(2.2rem, 4.6vw, 3.6rem); font-weight:600; letter-spacing:-0.03em;
    max-width:16em; margin:0 0 20px;
    opacity:0; transform:translateY(16px); animation:riseIn .8s cubic-bezier(.2,.7,.2,1) forwards .05s;
  }
  .hero .lede{ margin:0 0 30px; font-size:19px; max-width:34em; opacity:0; transform:translateY(16px); animation:riseIn .8s cubic-bezier(.2,.7,.2,1) forwards .18s; }
  .hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; opacity:0; transform:translateY(16px); animation:riseIn .8s cubic-bezier(.2,.7,.2,1) forwards .3s; }
  .hero-ctas .btn-primary{padding:12px 26px; font-size:15px;}
  .hero-ctas .btn-secondary{padding:12px 26px; font-size:15px;}
  @keyframes riseIn{ to{opacity:1; transform:translateY(0);} }

  .stat-row{
    display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
    background:var(--border); border:1px solid var(--border); border-radius:var(--radius-md);
    overflow:hidden; margin-top:72px;
    opacity:0; animation:riseIn .8s cubic-bezier(.2,.7,.2,1) forwards .42s;
  }
  .stat-cell{background:var(--surface); padding:28px 12px;}
  .stat-num{font-size:clamp(1.5rem,3vw,2.2rem); font-weight:600; letter-spacing:-0.02em;}
  .stat-label{font-size:13px; color:var(--text-2); margin-top:4px;}
  @media (max-width:640px){ .stat-row{grid-template-columns:repeat(2,1fr);} }

  /* ---------- Two-col about ---------- */
  .split{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;}
  @media (max-width:860px){ .split{grid-template-columns:1fr; gap:36px;} }
  .art-panel{
    aspect-ratio:4/3; border-radius:var(--radius-lg); position:relative; overflow:hidden;
    background:linear-gradient(145deg, var(--surface-2), var(--surface));
    border:1px solid var(--border);
  }
  .art-panel .blob{
    position:absolute; border-radius:50%; filter:blur(2px);
  }
  .art-panel .blob.b1{width:60%; height:60%; top:-10%; right:-10%; background:linear-gradient(135deg,var(--accent),#7dd3fc); opacity:.85;}
  .art-panel .blob.b2{width:40%; height:40%; bottom:-8%; left:-8%; background:linear-gradient(135deg,#ff9f0a,#ff375f); opacity:.65;}
  .bullet-list{list-style:none; margin-top:24px; display:flex; flex-direction:column; gap:16px;}
  .bullet-list li{display:flex; gap:12px; font-size:16px; color:var(--text-2); line-height:1.5;}
  .bullet-dot{width:6px; height:6px; border-radius:50%; background:var(--accent); margin-top:9px; flex:0 0 auto;}

  /* ---------- Section headers ---------- */
  .section-head{margin-bottom:36px; max-width:640px;}
  .section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
  .section-head h2{font-size:clamp(1.8rem,4vw,2.6rem);}
  .section-head p{color:var(--text-2); font-size:17px; margin-top:12px; line-height:1.5;}

  /* ---------- Departments bento ---------- */
  .bento{
    display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:180px; gap:16px;
  }
  .bento .card{grid-column:span 2;}
  .bento .card.wide{grid-column:span 2;}
  .bento .card.tall{grid-row:span 2;}
  .bento .card.big{grid-column:span 4; grid-row:span 1;}
  @media (max-width:860px){
    .bento{grid-template-columns:repeat(2,1fr); grid-auto-rows:auto;}
    .bento .card, .bento .card.wide, .bento .card.big{grid-column:span 2; grid-row:auto; min-height:170px;}
  }
  .card{
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
    padding:28px; display:flex; flex-direction:column; justify-content:space-between;
    transition:transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  }
  .card:hover{transform:translateY(-4px); box-shadow:var(--shadow);}
  .card .ic svg{width:22px; height:22px;}
  .card .ic{
    width:40px; height:40px; border-radius:11px; background:var(--accent-soft); color:var(--accent);
    display:flex; align-items:center; justify-content:center;
  }
  .card h3{font-size:19px; margin-top:16px;}
  .card p{font-size:14px; color:var(--text-2); margin-top:6px; line-height:1.45;}
  .card .tag{font-size:12px; color:var(--accent); font-weight:600; margin-top:14px;}

  /* ---------- Quiz ---------- */
  .quiz-shell{
    max-width:640px; margin:0 auto; background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:44px; box-shadow:var(--shadow);
  }
  @media (max-width:640px){ .quiz-shell{padding:28px 22px;} }
  .quiz-progress{display:flex; gap:6px; margin-bottom:28px;}
  .quiz-progress .seg{height:3px; flex:1; border-radius:3px; background:var(--border); overflow:hidden;}
  .quiz-progress .seg i{display:block; height:100%; width:0; background:var(--accent); transition:width .4s ease;}
  /* Последний сегмент — экран результата, поэтому он другого цвета. */
  .quiz-progress .seg.final i{background:var(--star);}
  .quiz-step{display:none;}
  .quiz-step.active{display:block; animation:stepIn .35s cubic-bezier(.2,.7,.2,1);}
  @keyframes stepIn{ from{opacity:0; transform:translateX(14px);} to{opacity:1; transform:translateX(0);} }
  .quiz-step h3{font-size:22px; margin-bottom:6px;}
  .quiz-step .hint{color:var(--text-2); font-size:14px; margin-bottom:22px;}
  .opt-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
  @media (max-width:480px){ .opt-grid{grid-template-columns:1fr;} }
  /* Значок сверху, подпись снизу. Значок даёт глазу опору: выбор из
     четырёх подписей читается медленнее, чем из четырёх картинок. */
  .opt{
    border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px 14px;
    font-size:15px; font-weight:500; background:var(--surface); text-align:center;
    display:flex; flex-direction:column; align-items:center; gap:10px;
    transition:border-color .2s, background .2s, color .2s, transform .15s;
  }
  /* Вариант без значка не должен подпрыгивать относительно соседей. */
  .opt:not(:has(.opt-ic)){justify-content:center; min-height:74px;}
  .opt-ic{color:var(--text-2); transition:color .2s;}
  .opt:hover .opt-ic,
  .opt.selected .opt-ic{color:var(--accent);}
  .opt:hover{border-color:var(--accent); background:var(--accent-soft);}
  .opt.selected{border-color:var(--accent); background:var(--accent-soft); color:var(--accent);}
  .quiz-nav{display:flex; justify-content:space-between; margin-top:28px; align-items:center;}
  .quiz-back{color:var(--text-2); font-size:14px; background:none; border:none;}
  .quiz-back:hover{color:var(--text);}
  .quiz-result{text-align:center;}
  .quiz-score{
    font-size:clamp(56px, 11vw, 84px); font-weight:800; line-height:1;
    letter-spacing:-0.04em; color:var(--accent); margin:8px 0 14px;
  }
  .quiz-score-note{
    font-size:17px; line-height:1.5; color:var(--text-2);
    max-width:30em; margin:0 auto 26px;
  }
  .quiz-result h3{margin-bottom:8px;}
  .quiz-result > div > .hint{max-width:34em; margin:0 auto;}
  /* Форма внутри карточки квиза: подписи слева, как в обычной форме,
     иначе они разъезжаются от центрирования результата. */
  .quiz-form{margin-top:28px; text-align:left; padding-top:26px; border-top:1px solid var(--border);}
  /* Примечание идёт после формы, поэтому равняется по ней, а не по
     центрированному результату — иначе строка «висит» посередине. */
  .quiz-result > .fine{text-align:left;}
  .field{
    width:100%; padding:11px 14px; border-radius:var(--radius-sm); border:1px solid var(--border);
    background:var(--bg); color:var(--text); font-size:15px; margin-bottom:0; font-family:inherit;
  }
  .field:focus{outline:2px solid var(--accent); outline-offset:1px; border-color:transparent;}
  textarea.field{resize:vertical; min-height:64px;}
  .fine{font-size:12px; color:var(--text-2); margin-top:10px; line-height:1.5;}
  .fine a{color:var(--accent); text-decoration:underline;}

  /* ---------- Process ---------- */
  .steps{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
  @media (max-width:768px){ .steps{grid-template-columns:1fr;} }
  .step{
    position:relative; overflow:hidden;
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:30px 28px 32px;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .step:hover{transform:translateY(-3px); border-color:var(--accent); box-shadow:0 18px 40px rgba(0,0,0,.08);}
  /* Номер — фон, а не заголовок: он подсказывает порядок, но не должен
     спорить с названием шага. */
  .step-num{
    position:absolute; top:14px; right:22px;
    font-size:64px; font-weight:800; line-height:1; letter-spacing:-0.04em;
    color:var(--accent); opacity:.10; pointer-events:none; user-select:none;
  }
  .step-ic{
    width:56px; height:56px; border-radius:16px; margin-bottom:22px;
    background:var(--step-ic-bg); color:var(--star);
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 22px rgba(0,0,0,.16);
  }
  .step-ic svg{width:26px; height:26px;}
  .step h3{font-size:19px; margin-bottom:8px;}
  .step p{color:var(--text-2); font-size:15px; line-height:1.55;}
  @media (max-width:768px){ .step{padding:26px 22px 28px;} .step-num{font-size:52px;} }

  /* ---------- Team ---------- */
  .team-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
  @media (max-width:860px){ .team-grid{grid-template-columns:repeat(2,1fr);} }
  @media (max-width:520px){ .team-grid{grid-template-columns:1fr;} }
  /* Карточка человека: фотография сверху во всю ширину, под ней имя.
     Круглый аватар терял лицо по краям — на портретах это сразу видно. */
  .member{
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); overflow:hidden;
    display:flex; flex-direction:column;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .member:hover{transform:translateY(-3px); border-color:var(--accent); box-shadow:0 18px 40px rgba(0,0,0,.10);}
  .avatar{
    width:100%; aspect-ratio:3/4; display:flex; align-items:center; justify-content:center;
    font-size:34px; font-weight:600; color:var(--text-2); background:var(--surface-2);
  }
  .member-body{padding:20px 20px 24px;}
  .member h4{font-size:17px; letter-spacing:-0.01em;}
  /* Должность капслоком и акцентом, под ней короткая черта — так
     подпись отделяется от описания, не превращаясь в ещё один абзац. */
  .member .role{
    font-size:12px; color:var(--star); font-weight:700; margin-top:4px;
    text-transform:uppercase; letter-spacing:.08em;
  }
  .member .rule{width:38px; height:2px; background:var(--border); margin:16px 0;}
  .member p{font-size:14px; color:var(--text-2); line-height:1.55;}

  /* ---------- FAQ ---------- */
  .faq-item{border-bottom:1px solid var(--border);}
  .faq-q{
    width:100%; text-align:left; background:none; border:none; padding:22px 0;
    display:flex; justify-content:space-between; align-items:center; gap:16px;
    font-size:17px; font-weight:500; color:var(--text);
  }
  .faq-q .plus{transition:transform .3s; flex:0 0 auto; color:var(--text-2);}
  .faq-item.open .faq-q .plus{transform:rotate(45deg); color:var(--accent);}
  .faq-a{max-height:0; overflow:hidden; transition:max-height .35s ease;}
  .faq-a p{color:var(--text-2); font-size:15px; line-height:1.6; padding-bottom:22px; max-width:640px;}

  /* ---------- Reviews ---------- */
  /* Лента лежит внутри .wrap, а отрицательные поля дают карточкам
     уезжать под края контейнера, не ломая выравнивание заголовка. */
  .review-track{
    display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
    padding:0 0 8px; margin:0;
  }
  .review-track::-webkit-scrollbar{height:0;}
  .review-card{
    scroll-snap-align:start; flex:0 0 300px; background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-md); padding:24px;
  }
  .stars{color:var(--star); font-size:14px; margin-bottom:12px; letter-spacing:2px;}
  .review-card p{font-size:14.5px; color:var(--text); line-height:1.55; margin-bottom:16px;}
  .reviewer{display:flex; align-items:center; gap:10px;}
  .reviewer .initials{
    width:34px; height:34px; border-radius:50%; background:var(--surface-2); display:flex; align-items:center;
    justify-content:center; font-size:12px; font-weight:600; color:var(--text-2);
  }
  .reviewer .rname{font-size:13px; font-weight:600;}
  .reviewer .rrole{font-size:12px; color:var(--text-2);}
  /* ---------- Листалка отзывов ---------- */
  .rev-nav{display:flex; align-items:center; justify-content:center; gap:18px; margin-top:28px;}
  .rev-arrow{
    width:44px; height:44px; border-radius:50%; border:1px solid var(--border);
    background:var(--surface); color:var(--text); display:flex; align-items:center;
    justify-content:center; cursor:pointer; transition:border-color .2s, color .2s, opacity .2s;
  }
  .rev-arrow:hover:not(:disabled){border-color:var(--accent); color:var(--accent);}
  .rev-arrow:disabled{opacity:.35; cursor:default;}
  .rev-dots{display:flex; align-items:center; gap:8px;}
  .rev-dot{
    width:8px; height:8px; padding:0; border:none; border-radius:99px;
    background:var(--border); cursor:pointer; transition:width .25s ease, background .25s ease;
  }
  .rev-dot.on{width:22px; background:var(--star);}

  /* ---------- Contact ---------- */
  .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px;}
  @media (max-width:860px){ .contact-grid{grid-template-columns:1fr; gap:32px;} }
  .info-row{display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; font-size:15px;}
  .info-row .ic{color:var(--accent); flex:0 0 auto; margin-top:2px;}

  /* ---------- Юридические страницы ---------- */
  .doc{padding:132px 0 96px;}
  .doc h1{font-size:clamp(2rem, 4.4vw, 3rem); letter-spacing:-0.03em; margin:6px 0 12px;}
  .doc-updated{font-size:13px; color:var(--text-2); margin-bottom:44px;}
  /* Ширина строки как в книге: длинную строку в юридическом тексте
     глаз теряет на первом же переносе. */
  .doc-body{max-width:44em;}
  /* Раздел документа — это <section>, а у секций страницы задан
     вертикальный отступ в 88px. Здесь он не нужен. */
  .doc-sec{padding:0; margin-bottom:34px;}
  .doc-sec h2{font-size:20px; letter-spacing:-0.01em; margin-bottom:12px;}
  .doc-sec p{font-size:15.5px; line-height:1.65; color:var(--text-2); margin-bottom:12px;}
  .doc-sec p:last-child{margin-bottom:0;}
  .doc-links{display:flex; flex-wrap:wrap; gap:8px 20px; font-size:13px;}
  .doc-links a{color:var(--text-2);}
  .doc-links a:hover{color:var(--accent);}
  .doc-links .here{color:var(--text); font-weight:600;}
  @media (max-width:768px){ .doc{padding:104px 0 64px;} .doc-updated{margin-bottom:32px;} }

  /* ---------- Footer ---------- */
  footer{border-top:1px solid var(--border); padding:56px 0 32px; background:var(--bg-alt);}
  .foot-grid{display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; margin-bottom:40px;}
  @media (max-width:640px){ .foot-grid{grid-template-columns:1fr; gap:28px;} }
  .foot-grid h5{
    font-size:12px; color:var(--text-2); font-weight:700; margin-bottom:16px;
    text-transform:uppercase; letter-spacing:.08em;
  }
  .foot-desc{margin-top:16px; max-width:44ch; font-size:14px; line-height:1.6; color:var(--text-2);}
  .foot-grid ul{list-style:none; display:flex; flex-direction:column; gap:10px; font-size:14px;}
  .foot-grid ul a:hover{color:var(--accent);}
  .foot-bottom{
    border-top:1px solid var(--border); padding-top:24px; font-size:12.5px; color:var(--text-2);
    display:flex; justify-content:center; flex-wrap:wrap; gap:10px; text-align:center;
  }
  /* Пустая строка подписи не должна оставлять после себя отступ. */
  .foot-bottom span:empty{display:none;}

  /* ---------- Mobile menu ---------- */
  .mobile-menu{
    position:fixed; inset:52px 0 0 0; background:var(--bg); z-index:99; padding:32px 24px;
    display:none; flex-direction:column; gap:22px; font-size:20px; font-weight:500;
    transform:translateY(-8px); opacity:0; transition:opacity .25s, transform .25s;
  }
  .mobile-menu.show{display:flex; opacity:1; transform:translateY(0);}
  @media (max-width:760px){
    nav.links{display:none;}
    .burger{display:flex;}
  }
  @media (max-width:520px){
    .nav-right .btn-primary{display:none;}
  }

  /* ---------- Chat + exit modal ---------- */
  .chat-bubble{
    position:fixed; bottom:24px; right:24px; z-index:90;
    width:56px; height:56px; border-radius:50%; background:var(--btn-bg); color:var(--btn-text);
    display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.25);
    transition:transform .2s;
  }
  .chat-bubble:hover{transform:scale(1.06);}
  .modal-overlay{
    position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:200; display:none;
    align-items:center; justify-content:center; padding:20px;
    backdrop-filter:blur(4px);
  }
  .modal-overlay.show{display:flex;}
  .modal-card{
    background:var(--surface); border-radius:var(--radius-lg); padding:36px; max-width:420px; width:100%;
    position:relative; box-shadow:0 20px 60px rgba(0,0,0,.3);
    animation:modalIn .3s cubic-bezier(.2,.7,.2,1);
  }
  @keyframes modalIn{ from{opacity:0; transform:scale(.94) translateY(8px);} to{opacity:1; transform:scale(1) translateY(0);} }
  .modal-close{position:absolute; top:16px; right:16px; background:none; border:none; color:var(--text-2); font-size:20px;}
  .modal-card h3{font-size:22px; margin-bottom:10px;}
  .modal-card p{color:var(--text-2); font-size:14.5px; margin-bottom:20px; line-height:1.5;}

  ::selection{background:var(--accent); color:#fff;}
  :focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important;}
  }

/* ---------- Страница «Спасибо» ---------- */
.thanks-main{min-height:70vh; display:flex; align-items:center; padding:80px 0;}
.thanks-box{max-width:600px; margin:0 auto; text-align:center;}
.thanks-check{
  width:72px; height:72px; margin:0 auto 28px; border-radius:50%;
  display:grid; place-items:center; background:var(--accent-soft); color:var(--accent);
}
.thanks-box h1{font-size:clamp(1.7rem,4vw,2.3rem); margin-bottom:14px;}
.thanks-box p{color:var(--text-2); font-size:1.05rem; line-height:1.6; margin-bottom:32px;}

/* ---------- Лидформа ---------- */
/* Форма стоит в первом экране, и её высота решает, увидит ли человек
   кнопку без прокрутки. Поэтому зазоры здесь скупые. */
.lead-form{display:grid; gap:12px;}
.lead-form .fld label{
  display:block; font-size:12.5px; font-weight:600; color:var(--text); margin-bottom:5px;
}
.lead-form .fld label .opt-note{font-weight:400; color:var(--text-2);}
.fld-err{margin-top:6px; font-size:13px; color:#d93025; line-height:1.4;}
[data-theme="dark"] .fld-err{color:#ff8a80;}
.field[aria-invalid="true"]{outline:1px solid #d93025; outline-offset:0;}

.lead-form .submit{width:100%; justify-content:center; margin-top:4px;}
.lead-form .submit:disabled{
  background:var(--surface-2); color:var(--text-2); cursor:not-allowed; box-shadow:none;
}
/* Кнопка, которая не нажимается и ничего не объясняет, читается как
   поломка сайта. Под ней всегда написано, чего не хватает. */
.fld-blocked{margin-top:-6px; font-size:13px; font-weight:500; color:var(--text-2); line-height:1.5;}

/* Телефон: библиотека рисует свою обёртку, выравниваем под наши поля. */
.iti{width:100%;}
.iti__selected-country{border-radius:var(--radius-sm) 0 0 var(--radius-sm);}
.iti--separate-dial-code .iti__selected-flag{background:transparent;}

/* ---------- Подтверждение номера ---------- */
.otp{margin-top:10px; display:grid; gap:10px;}
.otp-get{width:100%; justify-content:center;}
.otp-box{
  border:1px solid var(--border); border-radius:var(--radius-sm);
  background:var(--surface-2); padding:14px;
}
.otp-box label{display:block; font-size:13px; font-weight:600; margin-bottom:6px;}
.otp-row{display:flex; gap:8px;}
.otp-row .code{width:110px; text-align:center; letter-spacing:.3em; font-weight:700;}
.otp-row .btn-primary{flex:1; justify-content:center;}
.otp-ok{
  display:flex; align-items:center; gap:10px; padding:12px 14px;
  border-radius:var(--radius-sm); background:var(--accent-soft); color:var(--accent);
  font-size:14px; font-weight:600;
}
.otp-ok .linklike{margin-left:auto;}
.linklike{
  background:none; border:0; padding:0; font-size:13px; font-weight:600;
  color:var(--accent); text-decoration:underline; text-underline-offset:2px;
}
.linklike:disabled{color:var(--text-2); text-decoration:none; cursor:default;}

/* ---------- Полоса согласия ---------- */
#consent-bar{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:95;
  max-width:640px; margin:0 auto; padding:16px 18px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); box-shadow:var(--shadow);
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
}
#consent-bar p{flex:1 1 260px; font-size:13px; line-height:1.5; color:var(--text-2); margin:0;}
.consent-btns{display:flex; gap:8px;}

/* ---------- Фотографии вместо заглушек ---------- */
.avatar.has-photo{background-size:cover; background-position:center top; color:transparent;}
.art-panel.has-photo{background-size:cover; background-position:center;}
.art-panel.has-photo .blob{display:none;}
