/* ============================================================
   Стиль і покер — main.css
   Базові стилі шаблону + типографіка тексту + CTA-кнопки
   ============================================================ */

:root {
    --red: #d63e3e;
    --red-dark: #b32f2f;
    --fg: #1d1d1d;
    --muted: #6b6b6b;
    --line: #e2e2e2;
    --soft: #faf8f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--fg);
    font-size: 17px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color .2s;
}

a:hover,
a:focus {
    color: var(--red-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Шапка ---------- */

header {
    position: relative;
    background: #1b1b1b url("../img/header_bg.jpg") center/cover no-repeat;
    padding: 64px 0 56px;
    text-align: center;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 100%);
}

header .container {
    position: relative;
    z-index: 2;
}

.header__logo-img {
    width: 260px;
    max-width: 72%;
}

.header__tagline {
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    margin: 18px auto 22px;
    max-width: 30em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}

/* ---------- CTA-кнопки ---------- */

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, .18);
    transition: background-color .2s;
}

.cta:hover,
.cta:focus {
    background: var(--red-dark);
    color: #fff;
    text-decoration: none;
}

.cta:active {
    box-shadow: none;
    transform: translateY(1px);
}

.cta-lg {
    min-height: 54px;
    padding: 14px 32px;
    font-size: 19px;
}

.cta-wrap {
    margin: 26px 0 30px;
    text-align: center;
}

/* ---------- Якірні кнопки під шапкою ---------- */

.anchors {
    padding: 22px 0 6px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.anchors .row {
    margin-left: -6px;
    margin-right: -6px;
}

.anchors [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.action-link {
    display: block;
    position: relative;
    margin: 0 auto 12px;
    max-width: 200px;
    padding: 11px 8px;
    background: var(--red);
    border: 1px solid var(--red);
    overflow: hidden;
    text-decoration: none;
}

.action-link .link-content {
    position: relative;
    z-index: 3;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .35s;
}

.blip-link .blip,
.blip-link .blip-click {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all .35s;
}

.blip-link.red .blip {
    background: #fff;
}

.blip-link.red .blip-click {
    background: var(--red);
}

.blip-link:hover .blip {
    width: 375px;
    height: 375px;
}

.blip-link:hover .link-content,
.blip-link:focus .link-content {
    color: var(--red);
}

.action-link:hover,
.action-link:focus {
    text-decoration: none;
}

/* ---------- Контент ---------- */

.content {
    padding: 38px 0 20px;
}

.content h1 {
    font-size: 2.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 46px 0 14px;
    padding-top: 22px;
    border-top: 2px solid var(--line);
    scroll-margin-top: 14px;
}

.content h3 {
    font-size: 1.16rem;
    font-weight: 700;
    margin: 26px 0 10px;
}

.content p {
    margin: 0 0 16px;
}

.content .lead {
    font-size: 1.08rem;
    color: var(--muted);
    font-weight: 400;
}

.content ul,
.content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.content li {
    margin-bottom: 8px;
}

.content strong {
    font-weight: 700;
}

.note {
    border-left: 3px solid var(--red);
    background: var(--soft);
    padding: 14px 16px;
    margin: 0 0 22px;
    color: #4a4a4a;
    font-size: .97rem;
}

/* ---------- Зміст ---------- */

.toc {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 18px 6px;
    margin: 0 0 30px;
}

.toc__title {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.toc ul {
    columns: 2;
    column-gap: 26px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .95rem;
}

.toc li {
    margin-bottom: 6px;
    break-inside: avoid;
}

/* ---------- Таблиці ---------- */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.table-wrap table {
    min-width: 34rem;
    margin: 0;
    font-size: .93rem;
}

.table-wrap th,
.table-wrap td {
    padding: 9px 11px;
    border-top: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.5;
}

.table-wrap tr:first-child th,
.table-wrap tr:first-child td {
    border-top: none;
    background: var(--soft);
    font-weight: 700;
}

/* ---------- Футер ---------- */

.footer {
    padding: 44px 0 34px;
    background: var(--soft);
    border-top: 1px solid var(--line);
}

.partners {
    align-items: center;
    margin-bottom: 26px;
}

.partners div {
    text-align: center;
    padding: 8px 6px;
}

.partners img {
    max-height: 34px;
    width: auto;
    opacity: .75;
}

.footer__text {
    font-size: .86rem;
    color: var(--muted);
    text-align: center;
    max-width: 52em;
    margin: 0 auto;
}

.footer__text p {
    margin-bottom: 8px;
}

/* ---------- Мобільні ---------- */

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 40px 0 36px;
    }

    .header__tagline {
        font-size: 17px;
    }

    .content {
        padding: 28px 0 12px;
    }

    .content h1 {
        font-size: 1.62rem;
    }

    .content h2 {
        font-size: 1.32rem;
        margin-top: 36px;
    }

    .content h3 {
        font-size: 1.1rem;
    }

    .toc ul {
        columns: 1;
    }

    .footer {
        padding: 32px 0 26px;
    }
}

@media (max-width: 380px) {
    .cta {
        padding: 12px 14px;
        font-size: 15px;
    }

    .cta-lg {
        padding: 13px 18px;
        font-size: 17px;
    }

    .action-link {
        padding: 10px 6px;
    }

    .action-link .link-content {
        font-size: 14px;
    }
}

/* ---------- Підказка про горизонтальний скрол таблиць (лише мобільні) ---------- */

.table-hint {
    display: none;
}

@media (max-width: 767px) {
    .table-hint {
        display: block;
        margin: 0 0 6px;
        font-size: .82rem;
        color: var(--muted);
    }
}
