/* fotokarpat.com.ua — простая светлая тема: одна колонка текста, синий акцент, шрифт Onest */

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/static/fonts/onest-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/static/fonts/onest-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #FFFFFF;
    --ink: #14171F;
    --text: #2A2F3A;
    --muted: #5B6270;
    --line: #E4E7EC;
    --soft: #F5F7FA;
    --blue: #1F5FE0;
    --blue-hover: #1A4FBF;
    --blue-soft: #EEF3FD;
    --link: #1A56CF;
    --ok: #12805C;
    --warn: #B54708;
    --warn-soft: #FFF5EB;
    --night: #0C1B30;
    --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --wrap: 1120px;
    --col: 760px;
    --gut: 24px;
    --hdr-h: 64px;
    --r: 12px;
}
@media (max-width: 767px) {:root {--gut: 16px; --hdr-h: 58px;}}

*, *::before, *::after {box-sizing: border-box;}
* {margin: 0; padding: 0;}
html {-webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px);}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;} *, *::before, *::after {transition: none !important;}}
body {min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; overflow-x: hidden;}
@media (max-width: 767px) {body {font-size: 16px; line-height: 1.6;}}
img, svg {display: block; max-width: 100%;}
a {color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px;}
a:hover {color: var(--blue-hover);}
:focus-visible {outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px;}
b, strong {color: var(--ink); font-weight: 700;}
.wrap {width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut);}
.skip {position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600;}
.skip:focus {top: 8px; color: #fff;}

/* ---------- кнопки */
.btn {display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font: 600 15px/1.2 var(--font); text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;}
.btn svg {width: 16px; height: 16px; flex: 0 0 auto;}
.btn--primary {background: var(--blue); color: #fff;}
.btn--primary:hover {background: var(--blue-hover); color: #fff;}
.btn--ghost {border-color: var(--line); background: #fff; color: var(--ink);}
.btn--ghost:hover {border-color: #C5CAD3; color: var(--ink);}
.btn--lg {min-height: 52px; padding: 0 26px; font-size: 16px;}
.btn--block {display: flex; width: 100%;}

/* ---------- шапка: тёмная, под фирменный логотип 1win (светлое «win») */
.hdr {position: sticky; top: 0; z-index: 30; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, 0.08);}
.hdr__in {display: flex; align-items: center; gap: 32px; height: var(--hdr-h);}
.logo {display: inline-flex; align-items: center; flex: 0 0 auto; padding: 4px 0; text-decoration: none;}
.logo img {width: 81px; height: 37px;}
.hdr__nav {flex: 1 1 auto;}
.hdr__nav ul {display: flex; gap: 22px; list-style: none;}
.hdr__nav a {color: #C3CDDB; font-size: 15px; font-weight: 500; text-decoration: none;}
.hdr__nav a:hover {color: #fff;}
.hdr__act {display: flex; gap: 8px; margin-left: auto;}
.hdr .btn--ghost {border-color: rgba(255, 255, 255, 0.22); background: transparent; color: #fff;}
.hdr .btn--ghost:hover {border-color: rgba(255, 255, 255, 0.5); color: #fff;}
.hdr :focus-visible, .ftr :focus-visible {outline-color: #fff;}
@media (max-width: 1023px) {.hdr__nav {display: none;}}
@media (max-width: 479px) {.hdr__login {display: none;} .hdr .btn {min-height: 40px; padding: 0 16px;} .logo img {width: 70px; height: 32px;}}

/* ---------- первый экран */
.hero {background: var(--soft); border-bottom: 1px solid var(--line);}
.hero__grid {display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 40px;}
.hero__kicker {margin-bottom: 14px; color: var(--muted); font-size: 14px; font-weight: 500;}
.hero__kicker span {display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--link); font-weight: 700;}
.hero h1 {color: var(--ink); font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em;}
.hero__lead {max-width: 600px; margin-top: 18px; color: var(--muted); font-size: 18.5px; line-height: 1.6;}
.hero__cta {display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;}
.hero__fine {margin-top: 14px; color: var(--muted); font-size: 13.5px;}

.offer {padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -28px rgba(20, 23, 31, 0.35);}
.offer__label {color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;}
.offer__value {margin-top: 4px; color: var(--blue); font-size: 60px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;}
.offer__sub {margin-top: 4px; color: var(--ink); font-weight: 600;}
.offer ul {margin: 18px 0 20px; list-style: none; font-size: 15px;}
.offer li {display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line);}
.offer li span {color: var(--muted);}
.offer__note {margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center;}

.facts {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding-bottom: 48px;}
.facts li {padding: 4px 20px; border-left: 1px solid var(--line);}
.facts li:first-child {padding-left: 0; border-left: 0;}
.facts b {display: block; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;}
.facts span {color: var(--muted); font-size: 14.5px; line-height: 1.4;}

@media (max-width: 1023px) {
    .hero__grid {grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px;}
}
/* планшет: карточка бонуса на всю ширину, депозиты во второй колонке */
@media (min-width: 640px) and (max-width: 1023px) {
    .offer {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-content: start;}
    .offer > * {grid-column: 1;}
    .offer ul {grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0;}
    .offer .btn {margin-top: 18px;}
    .offer__note {text-align: left;}
}
@media (max-width: 767px) {
    .hero__grid {padding-top: 28px; padding-bottom: 28px; gap: 24px;}
    .hero__lead {margin-top: 14px; font-size: 16.5px;}
    .hero__cta {margin-top: 22px;}
    .hero__cta .btn {flex: 1 1 100%;}
    .offer {padding: 22px 18px 18px;}
    .offer__value {font-size: 52px;}
    .facts {grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; padding-bottom: 32px;}
    .facts li {padding: 2px 0 2px 14px;}
    .facts li:nth-child(odd) {padding-left: 0; border-left: 0;}
    .facts b {font-size: 22px;}
    .facts span {font-size: 13.5px;}
}

/* ---------- статья */
.article {max-width: calc(var(--col) + var(--gut) * 2); margin: 0 auto; padding: 40px var(--gut) 72px;}
@media (max-width: 767px) {.article {padding-top: 24px; padding-bottom: 48px;}}

.toc {margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;}
.toc summary {display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none;}
.toc summary::-webkit-details-marker {display: none;}
.toc summary::after {content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s;}
.toc[open] summary::after {transform: rotate(-135deg) translateX(-3px);}
.article .toc ol {column-count: 2; column-gap: 32px; margin: 0; padding: 0 20px 16px 50px; font-size: 15.5px; line-height: 1.5;}
.article .toc li {margin: 0; padding: 4px 0 4px 2px; break-inside: avoid;}
.article .toc li::marker {color: var(--muted); font-size: 14px; font-weight: 500;}
.toc a {color: var(--text); text-decoration: none;}
.toc a:hover {color: var(--link); text-decoration: underline;}
@media (max-width: 599px) {.article .toc ol {column-count: 1; padding-left: 46px;} .toc summary {padding: 14px 16px;}}

.sec {padding-top: 48px;}
.sec + .sec {margin-top: 8px; border-top: 1px solid var(--line);}
@media (max-width: 767px) {.sec {padding-top: 36px;}}
.article h2 {margin-bottom: 16px; color: var(--ink); font-size: clamp(24px, 3vw, 30px); font-weight: 800; line-height: 1.22; letter-spacing: -0.02em;}
.article h3 {margin: 30px 0 10px; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.3;}
@media (max-width: 767px) {.article h3 {margin-top: 26px; font-size: 18.5px;}}
.article p, .article ul, .article ol {margin-bottom: 16px;}
.article .lead {color: var(--ink); font-size: 19px; line-height: 1.6;}
@media (max-width: 767px) {.article .lead {font-size: 17px;}}
.article ul, .article ol {padding-left: 22px;}
.article li {margin-bottom: 8px; padding-left: 4px;}
.article li:last-child {margin-bottom: 0;}
.article ul li::marker {color: var(--blue);}
.article ol li::marker {color: var(--blue); font-weight: 700;}

/* нумерованные шаги */
.article ol.steps {padding-left: 0; list-style: none; counter-reset: step;}
.article ol.steps > li {position: relative; margin-bottom: 12px; padding-left: 44px; counter-increment: step;}
.article ol.steps > li::before {content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--link); font-size: 14.5px; font-weight: 700; line-height: 1;}

/* таблицы */
.tbl {margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch;}
.tbl table {width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5;}
.tbl caption {padding: 12px 16px; color: var(--muted); font-size: 13.5px; text-align: left; caption-side: top; border-bottom: 1px solid var(--line);}
.tbl th, .tbl td {padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;}
.tbl tr:last-child > * {border-bottom: 0;}
.tbl thead th {background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap;}
.tbl tbody th {color: var(--ink); font-weight: 600;}
.tbl .num {white-space: nowrap; font-variant-numeric: tabular-nums;}
.tbl .yes {color: var(--ok); font-weight: 600;}
@media (max-width: 767px) {.tbl table {font-size: 15px;} .tbl th, .tbl td {padding: 10px 12px;}}
/* на телефоне таблицы с 3+ колонками становятся карточками */
@media (max-width: 559px) {
    .tbl--stack {border: 0; border-radius: 0; overflow: visible;}
    .tbl--stack table, .tbl--stack tbody, .tbl--stack tr, .tbl--stack th, .tbl--stack td {display: block; width: 100%;}
    .tbl--stack caption {display: block; padding: 0 0 8px; border: 0;}
    .tbl--stack thead {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;}
    .tbl--stack tr {margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);}
    .tbl--stack tr:last-child {margin-bottom: 0;}
    .tbl--stack tbody th {padding: 0 0 6px; border: 0; font-size: 16px;}
    .tbl--stack td {display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 10px; padding: 6px 0; border: 0; border-top: 1px solid var(--line);}
    .tbl--stack td::before {content: attr(data-label); color: var(--muted); font-size: 13.5px; font-weight: 600;}
}

/* узкий телефон: двухколоночные таблицы — заголовок строки над текстом */
@media (max-width: 479px) {
    .tbl--kv thead {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;}
    .tbl--kv table, .tbl--kv tbody, .tbl--kv tr, .tbl--kv th, .tbl--kv td {display: block; width: 100%;}
    .tbl--kv tr {padding: 12px 14px; border-bottom: 1px solid var(--line);}
    .tbl--kv tr:last-child {border-bottom: 0;}
    .tbl--kv th, .tbl--kv td {padding: 0; border: 0;}
    .tbl--kv tbody th {margin-bottom: 2px;}
}

@media (max-width: 479px) {.tbl--money thead th {white-space: normal;} .tbl--money th, .tbl--money td {padding: 10px;}}

/* примечания и плашки */
.note {margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; background: var(--blue-soft); font-size: 16px;}
.note--warn {border-left-color: var(--warn); background: var(--warn-soft);}
.article .note p {margin: 0;}
.article .note p + p {margin-top: 8px;}

.cta {display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft);}
.article .cta p {margin: 0; color: var(--ink); font-weight: 700; line-height: 1.4;}
.cta small {display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; font-weight: 400;}
.cta .btn {flex: 0 0 auto;}
@media (max-width: 599px) {.cta {flex-direction: column; align-items: stretch; padding: 18px 16px;} .cta .btn {width: 100%;}}

.src {color: var(--muted); font-size: 14.5px;}

/* FAQ */
.faq {border-top: 1px solid var(--line);}
.faq details {border-bottom: 1px solid var(--line);}
.faq summary {display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none;}
.faq summary::-webkit-details-marker {display: none;}
.faq summary::after {content: "+"; display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--blue); font-size: 20px; font-weight: 500; line-height: 1; transition: transform 0.2s;}
.faq details[open] summary::after {transform: rotate(45deg);}
.article .faq h3 {margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4;}
.faq__a {padding: 0 44px 16px 0;}
.article .faq__a p {margin: 0; color: var(--text);}
@media (max-width: 599px) {.faq__a {padding-right: 0;} .article .faq h3 {font-size: 16px;}}

/* ---------- подвал */
.ftr {padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--night); color: #9FAABB; font-size: 14.5px; line-height: 1.6;}
.ftr__top {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);}
.ftr__nav {display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none;}
.ftr__nav a {color: #DCE3EC; font-weight: 500; text-decoration: none;}
.ftr__nav a:hover {color: #fff; text-decoration: underline;}
.ftr__text {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; padding-top: 22px;}
.ftr__age {display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border: 2px solid #DCE3EC; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 800;}
.ftr__copy {margin-top: 22px; font-size: 13.5px;}
@media (max-width: 767px) {.ftr {padding-top: 32px;} .ftr__text {grid-template-columns: minmax(0, 1fr);}}

/* ---------- мобильная панель */
.mbar {position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px -16px rgba(20, 23, 31, 0.35); transform: translateY(110%); transition: transform 0.2s ease;}
.mbar p {color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.3;}
.mbar p b {display: block; color: var(--blue); font-size: 18px; font-weight: 800;}
@media (max-width: 1023px) {.mbar {display: flex;} body.mbar-on .mbar {transform: none;}}
@media (max-width: 359px) {.mbar p {font-size: 13px;} .mbar p b {font-size: 17px;} .mbar .btn {padding: 0 14px; font-size: 14px;}}

/* ---------- 404 */
.page-404 {display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;}
.page-404 main {flex: 1 0 auto;}
.e404 {max-width: calc(620px + var(--gut) * 2); padding-top: 72px; padding-bottom: 80px; text-align: center;}
.e404 .e404__code {margin: 0; color: var(--blue); font-size: clamp(88px, 16vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -0.04em;}
.e404 h1 {margin-top: 14px; color: var(--ink); font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; line-height: 1.25;}
.e404 p {margin-top: 12px; color: var(--muted);}
.e404__cta {display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px;}
@media (max-width: 559px) {.e404 {padding-top: 48px; padding-bottom: 56px;} .e404__cta .btn {flex: 1 1 100%;}}

@media print {.hdr, .mbar, .hero__cta, .offer .btn, .cta {display: none !important;} .hero {background: #fff;}}
