@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Golos+Text:wght@400;500;600&display=swap');

  :root{
    --ink:#0B2545;
    --navy:#13315C;
    --blue:#134074;
    --bright:#3A86C8;
    --pulse:#19A78E;
    --mist:#EAF1F8;
    --paper:#FFFFFF;
    --line:#D5E0EC;
    --muted:#56697C;
    --maxw:1080px;
    --radius:14px;
  }
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{
    margin:0;
    font-family:"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    color:var(--ink);
    background:var(--paper);
    line-height:1.6;
    font-size:18px;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.display{font-family:"Manrope",Arial,sans-serif;line-height:1.12;letter-spacing:-0.01em}
  p{margin:0 0 1em}
  strong{font-weight:600;color:var(--blue)}
  a{color:var(--bright)}
  .wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

  /* ---------- ECG signature ---------- */
  .ecg{display:block;width:100%;height:60px}
  .ecg path{
    fill:none;stroke:var(--pulse);stroke-width:2.4;
    vector-effect:non-scaling-stroke;
    stroke-linecap:round;stroke-linejoin:round;
  }
  .ecg--hero path{stroke:rgba(255,255,255,.85);stroke-width:2.6}
  .trace path{
    stroke-dasharray:1600;stroke-dashoffset:1600;
    animation:trace 2.4s ease-out forwards;
  }
  @keyframes trace{to{stroke-dashoffset:0}}

  /* ---------- header ---------- */
  .topbar{background:var(--ink);color:#fff}
  .topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px}
  .brand{display:flex;align-items:center;gap:10px;font-family:"Manrope";font-weight:800;font-size:20px;letter-spacing:.01em;color:#fff;text-decoration:none}
  .brand .logo{display:inline-flex;width:40px;height:40px;border-radius:9px;overflow:hidden;flex:0 0 auto}
  .brand .logo svg{width:100%;height:100%;display:block}
  .topbar .phone{color:#fff;text-decoration:none;font-weight:600;white-space:nowrap}
  .topbar .phone span{color:var(--bright)}

  /* ---------- hero ---------- */
  .hero{background:linear-gradient(160deg,var(--ink) 0%,var(--navy) 60%,var(--blue) 100%);color:#fff;position:relative;overflow:hidden}
  .hero .wrap{padding-top:64px;padding-bottom:8px}
  .eyebrow{font-family:"Manrope";font-weight:700;text-transform:uppercase;letter-spacing:.14em;font-size:13px;color:var(--pulse);margin-bottom:18px}
  .hero h1{font-size:clamp(32px,5vw,54px);font-weight:800;margin:0 0 22px;max-width:18ch}
  .hero .lead{font-size:clamp(18px,2.2vw,22px);color:#D8E4F2;max-width:60ch;margin-bottom:30px}
  .hero-ecg{margin-top:18px}
  .cta-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-bottom:8px}
  .btn{
    display:inline-flex;align-items:center;gap:10px;
    font-family:"Manrope";font-weight:700;font-size:17px;
    padding:16px 28px;border-radius:50px;text-decoration:none;border:0;cursor:pointer;
    transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
  }
  .btn-primary{background:var(--pulse);color:#06231d}
  .btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(25,167,142,.4)}
  .btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.4)}
  .btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.08)}
  .hero .note{font-size:14px;color:#9FB4CC;margin-top:14px}

  /* ---------- sections ---------- */
  .section{padding:74px 0}
  .section--mist{background:var(--mist)}
  .section h2{font-size:clamp(26px,3.4vw,38px);font-weight:800;margin:0 0 14px;max-width:22ch}
  .section .sub{color:var(--muted);max-width:62ch;margin-bottom:38px;font-size:19px}
  .kicker{font-family:"Manrope";font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:12px;color:var(--bright);margin-bottom:14px}

  .grid{display:grid;gap:22px}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:26px}
  .section--mist .card{background:#fff}
  .card h3{font-size:20px;font-weight:700;margin:0 0 8px;color:var(--ink)}
  .card p{margin:0;color:var(--muted);font-size:16.5px}
  .card .tag{display:inline-block;font-family:"Manrope";font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--pulse);margin-bottom:14px}
  /* тёмная карточка (акцент — главный инструмент) */
  .card--dark{background:linear-gradient(165deg,var(--ink),var(--navy));border-color:transparent}
  .card--dark h3{color:#fff}
  .card--dark p{color:#C9D8EA}
  .section--mist .card--dark{background:linear-gradient(165deg,var(--ink),var(--navy))}

  /* lead block (role meaning) */
  .feature{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:start}
  .feature ul{list-style:none;padding:0;margin:18px 0 0}
  .feature li{position:relative;padding-left:30px;margin-bottom:16px;color:var(--ink)}
  .feature li::before{content:"";position:absolute;left:0;top:11px;width:14px;height:14px;border-radius:50%;border:3px solid var(--pulse)}

  /* numbers strip */
  .basecard{background:var(--navy);color:#fff;border-radius:18px;padding:40px;display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:center}
  .basecard .big{font-family:"Manrope";font-weight:800;font-size:clamp(48px,7vw,76px);line-height:1;color:#fff}
  .basecard .big span{color:var(--pulse)}
  .basecard p{margin:0;color:#C9D8EA;font-size:17px;max-width:46ch}

  /* requirements */
  .req{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 40px}
  .req .item{display:flex;gap:14px;align-items:flex-start}
  .req .item svg{flex:0 0 auto;margin-top:3px}
  .req .item p{margin:0}

  /* money */
  .money{background:var(--ink);color:#fff;border-radius:18px;padding:44px}
  .money h2{color:#fff}
  .money .sub{color:#C9D8EA}
  .money .points{display:grid;grid-template-columns:repeat(2,1fr);gap:18px 40px;margin-top:10px}
  .money .points div{padding-left:26px;position:relative;color:#E4EDF7}
  .money .points div::before{content:"›";position:absolute;left:0;top:-1px;color:var(--pulse);font-weight:800;font-size:20px}

  /* final CTA */
  .final{text-align:center;background:linear-gradient(160deg,var(--blue),var(--ink));color:#fff}
  .final h2{color:#fff;margin-left:auto;margin-right:auto}
  .final .sub{color:#CFE0F2;margin-left:auto;margin-right:auto}
  .contact-card{display:inline-flex;flex-direction:column;align-items:center;gap:6px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:26px 40px;margin-top:8px}
  .contact-card .name{font-family:"Manrope";font-weight:700;font-size:18px}
  .contact-card .role{color:#A7BDD6;font-size:15px}
  .contact-card .tel{font-family:"Manrope";font-weight:800;font-size:30px;color:#fff;text-decoration:none;margin-top:10px;letter-spacing:.01em}

  footer{background:var(--ink);color:#8FA6BF;font-size:14px;padding:30px 0;text-align:center}

  /* ---------- apply form (Webform mount) ---------- */
  /* In the Drupal theme the .apply wrapper holds {{ drupal_entity('webform','zayavka') }}.
     These rules are written to be lifted 1:1 into landing.css of site 2. */
  .apply-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:32px;align-items:start;margin-top:8px;text-align:left}
  .apply{background:#fff;border-radius:18px;padding:34px 32px;box-shadow:0 18px 50px rgba(7,22,40,.28)}
  .apply h3{font-size:22px;font-weight:800;margin:0 0 6px;color:var(--ink)}
  .apply .form-intro{color:var(--muted);font-size:16px;margin:0 0 22px}
  .apply .field{margin-bottom:18px}
  .apply label{display:block;font-family:"Manrope";font-weight:700;font-size:14px;color:var(--ink);margin-bottom:7px}
  .apply label .opt{color:var(--muted);font-weight:500}
  .apply label .req-mark{color:var(--pulse)}
  /* ГРАБЛЯ №12: чекбокс и кнопку исключаем из общего правила полей */
  .apply input:not([type=checkbox]):not([type=submit]):not([type=radio]),
  .apply textarea{
    width:100%;font-family:inherit;font-size:16.5px;color:var(--ink);
    background:#fff;border:1.5px solid var(--line);border-radius:12px;
    padding:13px 15px;transition:border-color .15s ease,box-shadow .15s ease;
  }
  .apply textarea{min-height:96px;resize:vertical;line-height:1.5}
  .apply input:not([type=checkbox]):not([type=submit]):not([type=radio]):focus,
  .apply textarea:focus{outline:0;border-color:var(--bright);box-shadow:0 0 0 3px rgba(58,134,200,.18)}
  .apply ::placeholder{color:#9AAABB}
  .apply .consent{display:flex;gap:12px;align-items:flex-start;margin:6px 0 22px}
  .apply .consent input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;margin-top:2px;accent-color:var(--pulse);cursor:pointer}
  .apply .consent label{font-family:"Golos Text";font-weight:400;font-size:14px;line-height:1.5;color:var(--muted);margin:0}
  .apply .consent a{color:var(--bright);text-decoration:underline}
  .apply .btn-primary{width:100%;justify-content:center;font-size:18px}
  .apply .form-note{font-size:13px;color:var(--muted);text-align:center;margin:14px 0 0}
  /* «Спасибо» — оформление подтверждения (тоже переносится в тему) */
  .apply .form-success{display:none;text-align:center;padding:18px 6px}
  .apply .form-success .ok{width:54px;height:54px;border-radius:50%;background:rgba(25,167,142,.12);display:inline-flex;align-items:center;justify-content:center;margin-bottom:14px}
  .apply .form-success h3{font-size:22px;margin-bottom:8px}
  .apply .form-success p{color:var(--muted);font-size:16px;margin:0}
  .apply.is-sent form{display:none}
  .apply.is-sent .form-success{display:block}
  /* contact aside (звонок как альтернатива форме) */
  .apply-aside{color:#fff;padding-top:6px}
  .apply-aside .or{font-family:"Manrope";font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:12px;color:var(--pulse);margin-bottom:12px}
  .apply-aside p{color:#CFE0F2;font-size:16px;margin:0 0 20px}
  .apply-aside .contact-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:0;padding:22px 26px;text-align:left}
  .apply-aside .contact-card .tel{font-size:26px}

  /* ---------- cookie consent ---------- */
  .cookie{position:fixed;left:0;right:0;bottom:0;z-index:1000;background:var(--ink);color:#E4EDF7;border-top:1px solid rgba(255,255,255,.12);box-shadow:0 -8px 30px rgba(7,22,40,.35)}
  .cookie[hidden]{display:none}
  .cookie__wrap{max-width:var(--maxw);margin:0 auto;padding:16px 24px;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
  .cookie__text{margin:0;font-size:14.5px;line-height:1.5;flex:1 1 340px;color:#CFE0F2}
  .cookie__text a{color:var(--bright);text-decoration:underline}
  .cookie__btns{display:flex;gap:10px;align-items:center;flex:0 0 auto}
  .cookie__accept{padding:11px 28px;font-size:15px}
  .cookie__decline{background:transparent;border:1.5px solid rgba(255,255,255,.35);color:#fff;font-family:"Manrope";font-weight:700;font-size:15px;padding:10px 22px;border-radius:50px;cursor:pointer;transition:border-color .15s ease,background .15s ease}
  .cookie__decline:hover{border-color:#fff;background:rgba(255,255,255,.08)}
  @media (max-width:680px){.cookie__wrap{padding:14px 18px;gap:14px}.cookie__btns{width:100%}.cookie__accept,.cookie__decline{flex:1;text-align:center;justify-content:center}}

  /* focus + motion */
  a:focus-visible,.btn:focus-visible{outline:3px solid var(--pulse);outline-offset:3px}
  @media (prefers-reduced-motion:reduce){
    .trace path{animation:none;stroke-dashoffset:0}
    html{scroll-behavior:auto}
  }

  /* responsive */
  @media (max-width:860px){
    .grid-3,.grid-2,.feature,.req,.money .points,.apply-grid{grid-template-columns:1fr}
    .apply{padding:26px 22px}
    .feature{gap:28px}
    .basecard{grid-template-columns:1fr;gap:18px;padding:30px}
    .section{padding:54px 0}
    .topbar .wrap{flex-direction:row}
    .brand{font-size:18px}
    body{font-size:17px}
  }

/* ====================================================================
   ВСТРОЕННАЯ ВЕБФОРМА DRUPAL (Webform id = zayavka)
   Базовые поля/textarea/кнопка ловятся селекторами выше
   (.apply input:not(...), .apply textarea, .apply .btn-primary).
   Ниже — добивка под структуру Webform (.form-item, .form-type-checkbox,
   .webform-confirmation). ⚠ Если на сайте 1 есть проверенный блок
   оформления вебформы — можно вставить его 1:1 вместо этого (playbook §5.1).
   ==================================================================== */
.apply .webform-submission-form{margin:0}
.apply .form-item{margin-bottom:18px}
.apply .form-item > label{display:block;font-family:"Manrope";font-weight:700;font-size:14px;color:var(--ink);margin-bottom:7px}
.apply .form-actions{margin-top:6px}
.apply .form-actions .button{width:100%;justify-content:center;font-size:18px}
.apply .form-type-checkbox,.apply .js-form-type-checkbox{display:flex;gap:12px;align-items:flex-start;margin:6px 0 18px}
.apply .form-type-checkbox input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;margin-top:2px;accent-color:var(--pulse);cursor:pointer}
.apply .form-type-checkbox label,.apply label.option{font-family:"Golos Text";font-weight:400;font-size:14px;line-height:1.5;color:var(--muted);margin:0}
.apply .form-type-checkbox a,.apply label.option a{color:var(--bright);text-decoration:underline}
.apply .webform-confirmation{text-align:center;padding:18px 6px}
.apply .webform-confirmation__message h3{font-size:22px;margin:0 0 8px;color:var(--ink)}
.apply .webform-confirmation__message p{color:var(--muted);font-size:16px;margin:0}
.apply .webform-confirmation__back{display:none}
.contact-card .email{font-family:"Golos Text",system-ui,sans-serif;font-size:15px;color:#A7BDD6;text-decoration:none;margin-top:6px;letter-spacing:.01em;word-break:break-word}
.contact-card .email:hover{text-decoration:underline}
.contact-card .ext{font-size:.62em;font-weight:600;white-space:nowrap;letter-spacing:0}
