html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background: #fff;
}
@font-face {
    font-family: 'Montserrat';
    font-display: swap;
    src: url('Montserrat-VariableFont_wght.ttf');
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #F5FAFD;
    padding: 10px 0;
}
.header-logo {
    width: 56px;
    height: 56px;
}
.header-content {
    display: flex;
    align-items: center;
}
.htext {
    font-size: 14px;
    color: #333;
}

/* ===== HEADINGS ===== */
.heading1 {
    text-align: center;
    margin: 20px auto;
    max-width: 1000px;
    padding: 0 16px;
}
.heading1 h1, .heading1 h2 {
    margin: 0 0 15px 0;
}
.purpleText {
    color: #6667CA;
    font-weight: 800;
}

/* ===== BLOCKS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 45px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}
.block {
    padding: 15px;
    background-color: #F5FAFD;
    border: 1px solid #E8EDF0;
    border-radius: 12px;
    position: relative;
    text-align: center;
}
.innerContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.logo {
    vertical-align: middle;
    width: 160px;
    height: 70px;
    object-fit: contain;
}
.stripe {
    height: 2px;
    background-color: #E0F4FB;
    margin: 20px auto;
    width: 80%;
}
.text {
    line-height: 24px;
    font-size: 15px;
}
.text ul {
    padding-left: 15px;
    text-align: left;
}
.companyButton {
    display: flex;
    justify-content: center;
    text-decoration: none;
    background-color: #1371CF;
    color: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 15px auto 10px auto;
    max-width: 200px;
}
.companyButton:hover {
    background-color: #45CCEE;
}

/* ===== HIGHLIGHT FOR PROSTO ===== */
.prosto-highlight {
    border: 3px solid #1371CF;
    background: linear-gradient(135deg, #e0f7ff, #ffffff);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: orange;
    color: white;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 0 8px 0 8px;
    font-size: 12px;
}
.leader {
    font-weight: bold;
    color: #ff9800;
}
.social-proof {
    font-size: 13px;
    color: gray;
}

/* ===== TRUST BLOCK ===== */
.protected {
    display: flex;
    align-items: center;
    background-color: #0ea001;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.heading3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 10px;
}

/* ===== REVIEWS + SOCIAL PROOF ===== */
.reviews {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reviews p {
    margin: 0;
    font-size: 14px;
}

/* ===== GUARANTEES & INFO ===== */
.guarantees {
    text-align: center;
    padding: 20px;
    background: #f5fafd;
    font-size: 16px;
}

/* ===== HOW TO SECTION ===== */
.HowTo {
    background: linear-gradient(90deg, rgb(33, 106, 189) 0%, rgb(74, 75, 175) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}
.HowToContainer {
    max-width: 1000px;
    margin: auto;
}
.heading2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
}
.HowTo-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.HowTo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.HowTo-block img {
    width: 55px;
    height: 55px;
}
.RefButton {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: #1371CF;
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin: 20px auto;
}
.RefButton:hover {
    background-color: #45CCEE;
}

/* ===== FINAL CTA ===== */
.promo-marquee {
    background: yellow;
    font-weight: bold;
    padding: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.cta-final {
    text-align: center;
    margin: 30px auto;
}
.cta-final .RefButton {
    width: 100%;
    max-width: 900px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1C1C1C;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footercontent {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
.footerblock {
    color: white;
    max-width: 800px;
}
.footerblock span {
    font-size: 18px;
    font-weight: bold;
}
.footertext {
    font-size: 13px;
    line-height: 18px;
}
.line {
    height: 2px;
    background-color: #466585;
    margin: 8px 0 12px 0;
}

/* ===== TIMER ===== */
#timer {
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
    background: #fff3f3;
    padding: 5px 12px;
    border: 2px solid #ff0000;
    border-radius: 8px;
    display: inline-block;
    animation: blinkTimer 1s infinite;
}
@keyframes blinkTimer {
    0% { box-shadow: 0 0 10px rgba(255,0,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,0,0,0.8); }
    100% { box-shadow: 0 0 10px rgba(255,0,0,0.5); }
}

/* ===== STICKY MOBILE BTN ===== */
.sticky-mobile-btn {
    display: none;
}
.sticky-mobile-btn a {
    background: red;
    color: white;
    display: block;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 900px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .HowTo-content {
        grid-template-columns: 1fr;
    }
    .heading3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 500px) {
    h1, h2 {
        font-size: 90%;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .header-content {
        margin-bottom: 10px;
    }
    .container {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    .block {
        width: 100%;
        margin-bottom: 10px;
    }
    .logo {
        width: 120px;
        height: 52px;
    }
    .RefButton {
        width: 100%;
    }
    .sticky-mobile-btn {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
    }
}

/* === AI-ПІДБІР === */
.ai-pick{
  background: linear-gradient(135deg,#1f60c9 0%, #6b5cff 100%);
  color:#fff; padding:32px 16px; margin:20px 0 30px 0;
}
.ai-pick__inner{ max-width: 1000px; margin:0 auto; text-align:center; }
.ai-pick__title{ font-size:28px; margin:0 0 8px 0; }
.ai-pick__subtitle{ font-size:18px; font-weight:800; margin:0 0 6px 0; }
.ai-pick__desc{ opacity:.95; margin:0 auto 18px auto; max-width:760px; line-height:1.5; }
.ai-pick__cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:10px 0 6px 0; }
.ai-pick__disclaimer{ font-size:12px; opacity:.9; margin:8px 0 14px 0; }
.ai-pick__back{ margin-top:6px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px; font-weight:700; text-decoration:none;
  border:2px solid transparent; min-width:190px; cursor:pointer;
}
.btn:focus{ outline:2px solid #fff; outline-offset:2px; }
.btn--tg{ background:#229ED9; color:#fff; }
.btn--tg:hover{ background:#1a86ba; }
.btn--viber{ background:#7360F2; color:#fff; }
.btn--viber:hover{ background:#5f4fe0; }
.btn--ghost{ background:transparent; color:#fff; border-color:#fff; }
.btn--ghost:hover{ background:rgba(255,255,255,.12); }

/* === EXIT-POP === */
.exit-pop[hidden]{ display:none; }
.exit-pop__backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.4); backdrop-filter:saturate(140%) blur(2px);
}
.exit-pop__dialog{
  position:fixed; left:50%; top:50%; transform:translate(-50%,-50%);
  background:#fff; color:#222; width:min(520px,92vw); border-radius:16px; padding:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.exit-pop__title{ margin:0 0 8px 0; font-size:22px; }
.exit-pop__text{ margin:0 0 14px 0; line-height:1.5; }
.exit-pop__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.exit-pop__actions .btn{ flex:1 1 160px; }
.exit-pop__close{
  position:absolute; right:10px; top:10px; background:#f2f2f2; border:0; border-radius:10px;
  width:32px; height:32px; cursor:pointer;
}
.exit-pop__close:hover{ background:#e7e7e7; }

/* === МОБІЛЬНІ ФІКСИ / MOBILE-FIRST === */
/* Перший екран в межах 100vh та видимий CTA */
@media (max-width: 900px){
  .heading1 { padding-top: 8px; }
  .promo-marquee{ position:sticky; top:0; z-index:5; }
}
/* Контраст, доступність, тайпографіка */
a, .companyButton, .RefButton{ outline-offset:2px; }
a:focus, .companyButton:focus, .RefButton:focus{ outline:2px solid #1371CF; }

/* Краще стиснення сітки карток на мобільних */
@media (max-width: 500px){
  .ai-pick{ padding:24px 12px; }
  .ai-pick__title{ font-size:22px; }
  .ai-pick__subtitle{ font-size:16px; }
  .ai-pick__desc{ font-size:14px; }
}

/* Збереження існуючого мобільного CTA знизу екрана */
.sticky-mobile-btn{ z-index: 1000; }
.sticky-mobile-btn a{ font-size:16px; }


/* ========= МОБАЙЛ FIX PACK ========= */

/* 1) Базова стабільність розмітки */
*,
*::before,
*::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* 2) Хедер: перенос та вирівнювання на вузьких екранах */
@media (max-width: 600px){
  .header { gap: 10px; padding: 10px 12px; }
  .header-content { margin: 0 !important; gap: 12px; }
  .header > div:last-child {
    margin: 0 !important;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 13px;
  }
  .header-logo { width: 48px; height: 48px; }
}

/* 3) Головні заголовки/відступи — не стискаємо занадто */
@media (max-width: 500px){
  h1, h2 { font-size: 100%; } /* прибираємо 90%, щоб текст не «ламався» */
  .heading1 { padding: 0 12px; margin: 16px auto; }
}

/* 4) Сітка оферів: повна ширина без зайвого обмеження */
@media (max-width: 900px){
  .container { padding: 0 12px; }
  .innerContent {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 500px){
  .container{
    grid-template-columns: 1fr;
    max-width: 100%;         /* ← заміна 380px */
    width: 100%;
    padding: 0 12px;
    gap: 12px;
  }
  .block{
    width: 100%;
    margin: 0;
    padding: 14px;
  }
  .logo { width: 140px; height: 60px; } /* трохи менше, щоб не виповзало */
  .text{ font-size: 14px; line-height: 22px; }
  .companyButton{ width: 100%; max-width: none; }
}

/* 5) «Плашки довіри» зверху (heading3) з інлайновими стилями */
@media (max-width: 900px){
  .heading3 { padding: 0 12px; }
}
@media (max-width: 700px){
  .heading3 > div{ grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 500px){
  .heading3 > div{ grid-template-columns: 1fr !important; gap: 12px !important; }
  .heading3 > div > div{
    max-width: 100% !important; width: 100% !important; padding: 14px !important;
  }
}

/* 6) Блок «HOW TO» — тримаємо читабельність */
@media (max-width: 500px){
  .HowTo { padding: 28px 12px; }
  .heading2 { font-size: 22px; margin-bottom: 18px; }
  .HowTo-content { gap: 12px; }
  .HowTo-block img { width: 48px; height: 48px; }
}

/* 7) Фінальний CTA та промо-рядок */
@media (max-width: 500px){
  .promo-marquee { padding: 10px 12px; margin: 12px 0 16px; }
  .cta-final { margin: 20px auto; padding: 0 12px; }
  .cta-final .RefButton{ max-width: 100%; }
}

/* 8) Футер — читабельність і відступ під «липку» кнопку */
@media (max-width: 500px){
  .footer { padding: 20px 12px 80px; } /* extra bottom для sticky кнопки */
  .footercontent{ gap: 12px; }
  .footerblock span{ font-size: 16px; }
  .footertext{ font-size: 12.5px; line-height: 18px; }
}

/* 9) Sticky mobile CTA — щоб не перекривав контент */
.sticky-mobile-btn{ z-index: 1000; }
.sticky-mobile-btn a{ font-size: 16px; }

/* 10) Блок AI-підбір — компактніший на мобільному */
@media (max-width: 500px){
  .ai-pick{ padding: 20px 12px; margin: 16px 0 24px; }
  .ai-pick__title{ font-size: 22px; }
  .ai-pick__subtitle{ font-size: 16px; }
  .ai-pick__desc{ font-size: 14px; }
  .btn{ min-width: auto; width: 100%; }
}

/* 11) Попап — адаптивна ширина та великі тач-зони */
@media (max-width: 500px){
  .exit-pop__dialog{ width: calc(100vw - 24px); padding: 16px; }
  .exit-pop__actions{ gap: 8px; }
  .exit-pop__actions .btn{ flex: 1 1 100%; }
  .exit-pop__close{ width: 36px; height: 36px; }
}
