/* ====================== ДИЗАЙН-ТОКЕНЫ САЙТА ====================== */
:root {
    --blue: #00ACF9;
    /* основной акцент / кнопки */
    --blue-dark: #0091d6;
    --blue-soft: #EAF7FE;
    /* светлая подложка */
    --green: #00D74C;
    /* Max */
    --orange: #FF8053;
    /* акцент-подсветка */
    --ink: #000000;
    --ink-70: #464646;
    --ink-45: #828282;
    --line: #E8E8E8;
    --bg: #F7F7F7;
    --white: #FFFFFF;
    --r-card: 30px;
    --r-btn: 17px;
    --r-sm: 16px;
    --shadow: 0 6px 30px rgba(0, 0, 0, .05);
    --font: 'Gilroy', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --maxw: 1180px;
    --pad: 20px;
    /* боковые поля контейнера */
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right))
}

/* ====================== ГЕРОЙ ====================== */
.hero {
    padding: 28px 0 0
}

.hero__card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--r-card);
    padding: 56px 60px 50px;
    text-align: center;
    box-shadow: var(--shadow);
}

/* чертёжная сетка — фирменный «инженерный» фон */
.hero__card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 172, 249, .07) 0%, rgba(0, 172, 249, 0) 62%),
        repeating-linear-gradient(0deg, rgba(0, 172, 249, .09) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(0, 172, 249, .09) 0 1px, transparent 1px 34px);
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero__in {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 100px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 26px
}

.tick {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 12px rgba(0, 172, 249, .13), 0 0 0 26px rgba(0, 172, 249, .06);
    animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both
}

.tick svg {
    width: 46px;
    height: 46px
}

.tick path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw .5s .3s forwards ease-out
}

@keyframes pop {
    from {
        transform: scale(.5);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0
    }
}

h1 {
    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -.01em
}

h1 .accent {
    color: var(--blue)
}

.hero__sub {
    font-size: 18px;
    color: var(--ink-70);
    font-weight: 500;
    margin: 0 auto 30px;
    max-width: 620px
}

.hero__sub b {
    color: var(--ink);
    font-weight: 700
}

/* таймер */
.timer {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: var(--bg);
    border-radius: 22px;
    padding: 16px 26px;
    margin-bottom: 8px
}

.timer__num {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    min-width: 104px;
    text-align: center
}

.timer__lbl {
    font-size: 13px;
    color: var(--ink-45);
    text-align: left;
    font-weight: 500;
    line-height: 1.35;
    max-width: 190px
}

.timer.is-done .timer__num {
    font-size: 22px;
    color: var(--blue)
}

.hero__note {
    font-size: 13px;
    color: var(--ink-45);
    margin-top: 14px
}

/* ====================== ОБЩИЕ БЛОКИ ====================== */
section {
    margin-top: 22px
}

.card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 44px 50px;
    box-shadow: var(--shadow)
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.01em
}

.lead {
    font-size: 16px;
    color: var(--ink-70);
    font-weight: 500;
    margin: 0 0 30px;
    max-width: 720px
}

/* МЕССЕНДЖЕРЫ */
.msg {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: center
}

.msg h2 {
    margin-bottom: 12px
}

.msg__btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--r-btn);
    padding: 17px 30px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: .2s;
    border: none;
    cursor: pointer;
    font-family: inherit
}

.btn svg {
    width: 20px;
    height: 20px;
    flex: none
}

.btn--tg {
    background: var(--blue)
}

.btn--tg:hover {
    box-shadow: 0px 0px 10px 0px rgba(0, 172, 249, 0.5);
    color: #00acf9;
    background-color: #fff
}

.btn--max {
    background: var(--green)
}

.btn--max:hover {
    box-shadow: 0px 0px 10px 0px rgba(0, 215, 76, 0.5);
    color: #00d74c;
    background-color: #fff
}

.btn--ghost {
    background: var(--white);
    color: var(--blue);
    box-shadow: inset 0 0 0 1.5px var(--blue)
}

.btn--ghost:hover {
    background: var(--blue);
    color: #fff
}

.btn--orange {
    background: var(--orange)
}

.btn--orange:hover {
    background: var(--white);
    color: var(--orange);
    box-shadow: inset 0 0 0 1.5px var(--orange)
}

.msg__hint {
    font-size: 13px;
    color: var(--ink-45);
    margin-top: 16px
}

/* ----- Мокап переписки (HTML/CSS, без картинки) ----- */
.chat {
    background: var(--bg);
    border-radius: 26px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px var(--line)
}

.chat__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 14px;
    border-bottom: 1px solid var(--line)
}

.chat__ava {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: none;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 17px
}

.chat__dot {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg)
}

.chat__name {
    display: block;
    font-size: 14.5px;
    font-weight: 700
}

.chat__status {
    display: block;
    font-size: 12px;
    color: var(--blue);
    font-weight: 600
}

.chat__tg {
    margin-left: auto;
    width: 30px;
    height: 30px;
    color: var(--blue)
}

.chat__tg svg {
    width: 26px;
    height: 26px
}

.chat__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 4px 14px
}

.bub {
    position: relative;
    max-width: 84%;
    font-size: 13.5px;
    line-height: 1.42;
    font-weight: 500;
    padding: 11px 14px 20px;
    border-radius: 16px
}

.bub--in {
    background: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05)
}

.bub--out {
    background: var(--blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 6px
}

.bub__t {
    position: absolute;
    right: 12px;
    bottom: 6px;
    font-size: 10.5px;
    font-weight: 600;
    opacity: .55;
    display: inline-flex;
    align-items: center;
    gap: 3px
}

.bub__t svg {
    width: 13px;
    height: 13px
}

.chat__input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 100px;
    padding: 9px 10px 9px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05)
}

.chat__plus {
    color: var(--ink-45);
    width: 20px;
    height: 20px;
    flex: none
}

.chat__plus svg {
    width: 20px;
    height: 20px
}

.chat__field {
    flex: 1;
    font-size: 13.5px;
    color: var(--ink-45);
    font-weight: 500
}

.chat__send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    flex: none
}

.chat__send svg {
    width: 16px;
    height: 16px;
    margin-left: -1px
}

/* ДОВЕРИЕ */
.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.tcard {
    background: var(--bg);
    border-radius: 22px;
    padding: 28px 26px
}

.tcard__n {
    font-size: 36px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 10px
}

.tcard__t {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px
}

.tcard__d {
    font-size: 14px;
    color: var(--ink-70);
    font-weight: 500
}

.trust__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-70)
}

.chip svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--blue)
}

/* ФУТЕР */
.foot {
    margin: 26px 0 0;
    text-align: center
}

.foot__btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================== АДАПТИВ ======================
   Брейкпоинты: 1024 (планшет) · 760 (крупный мобайл) · 560 (мобайл) · 400 (узкий)
   Типографика частично на clamp() — плавно масштабируется между ними.
--------------------------------------------------------- */
h1 {
    font-size: clamp(23px, 5.6vw, 42px)
}

h2 {
    font-size: clamp(20px, 3.4vw, 28px)
}

.hero__sub {
    font-size: clamp(15px, 1.9vw, 18px)
}

.tcard__n {
    font-size: clamp(28px, 4.4vw, 36px)
}

@media (max-width:1024px) {
    .msg {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .card {
        padding: 36px 32px
    }

    .hero__card {
        padding: 44px 32px 40px
    }

    .chat {
        max-width: 520px;
        margin: 0 auto
    }
}

@media (max-width:760px) {
    section {
        margin-top: 14px
    }

    .hero {
        padding-top: 14px
    }

    .hero__card {
        padding: 32px 20px 30px;
        border-radius: 24px
    }

    .card {
        padding: 26px 20px;
        border-radius: 24px
    }

    :root {
        --pad: 14px
    }

    .badge {
        margin-bottom: 20px;
        padding: 8px 16px;
        font-size: 12.5px
    }

    .tick {
        width: 74px;
        height: 74px;
        margin-bottom: 20px;
        box-shadow: 0 0 0 9px rgba(0, 172, 249, .13), 0 0 0 19px rgba(0, 172, 249, .06)
    }

    .tick svg {
        width: 34px;
        height: 34px
    }

    .hero__sub {
        margin-bottom: 24px
    }

    .lead {
        margin-bottom: 22px
    }

    /* таймер на всю ширину */
    .timer {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
        gap: 14px;
        border-radius: 20px
    }

    .timer__num {
        font-size: 30px;
        min-width: 92px
    }

    .timer__lbl {
        max-width: none;
        flex: 1
    }

    /* кнопки мессенджеров — в столбик, крупный тап-таргет */
    .msg__btns {
        flex-direction: column;
        gap: 10px;
        margin-top: 22px
    }

    .btn {
        width: 100%;
        padding: 16px 18px;
        min-height: 54px;
        font-size: 15px
    }

    .foot__btns {
        flex-direction: column;
        gap: 10px;
        align-items: stretch
    }

    /* мокап переписки компактнее */
    .chat {
        padding: 12px;
        border-radius: 22px;
        max-width: none
    }

    .chat__ava {
        width: 38px;
        height: 38px;
        font-size: 15px
    }

    .bub {
        max-width: 92%;
        font-size: 13px;
        padding: 10px 12px 19px
    }

    .chat__body {
        padding: 13px 2px 12px;
        gap: 7px
    }

    /* карточки доверия: число слева, текст справа — короче по высоте */
    .trust {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .tcard {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 18px 18px;
        border-radius: 20px
    }

    .tcard__n {
        flex: none;
        min-width: 86px;
        margin-bottom: 0;
        line-height: 1.05
    }

    .tcard__t {
        font-size: 14.5px;
        margin-bottom: 2px
    }

    .tcard__d {
        font-size: 13.5px
    }

    .trust__row {
        gap: 8px;
        margin-top: 18px
    }

    .chip {
        padding: 9px 14px;
        font-size: 13px
    }

    .foot {
        margin: 16px 0 0
    }
}

@media (max-width:560px) {
    .hero__note {
        font-size: 12.5px
    }

    .msg__hint {
        font-size: 12.5px
    }

    .chip {
        width: 100%;
        justify-content: flex-start
    }

    .foot__sep {
        margin: 0 5px
    }

    .tcard {
        flex-direction: column;
        gap: 6px
    }

    .tcard__n {
        min-width: 0
    }
}

@media (max-width:400px) {
    :root {
        --pad: 12px
    }

    .hero__card {
        padding: 28px 16px 26px
    }

    .card {
        padding: 22px 16px
    }

    .timer {
        flex-direction: column;
        gap: 6px;
        text-align: center
    }

    .timer__num {
        font-size: 32px
    }

    .timer__lbl {
        text-align: center
    }

    .bub {
        max-width: 96%
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}