/* SplitDaddy — pub/brewery theme, палітра з логотипа (зелень + золото + бурштин + крем). */
:root {
  --cream: #fbf4e3;
  --cream-2: #f3e7c9;
  --green: #1c6b45;
  --green-d: #124a30;
  --green-deep: #0e3a26;
  --gold: #c89b3c;
  --gold-l: #eac66e;
  --gold-d: #9c7420;
  --amber: #e8912b;
  --amber-d: #cf7a1c;
  --ink: #2c1b0f;
  --ink-soft: #6b563f;
  --foam: #fbf3dc;
  --line: #e4d4ac;
  --shadow: 0 20px 45px -22px rgba(20, 12, 4, .55);
  --shadow-sm: 0 8px 22px -12px rgba(20, 12, 4, .4);
  --radius: 18px;
  --radius-lg: 28px;
  --f-display: "Alfa Slab One", Georgia, serif;
  --f-head: "Bitter", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p.lead { font-size: clamp(1.05rem, 2.1vw, 1.35rem); color: var(--ink-soft); }
section { padding: clamp(60px, 9vw, 116px) 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: 13px; color: var(--gold-d);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; padding: 15px 28px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-l), var(--amber));
  color: var(--ink); border-color: var(--gold-d);
  box-shadow: 0 10px 24px -10px rgba(207, 122, 28, .8), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover { background: linear-gradient(180deg, #f2d488, var(--amber-d)); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(251,244,227,.5); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(251,244,227,.1); }
.btn-ghost.on-light { color: var(--green-d); border-color: var(--green); }
.btn-ghost.on-light:hover { background: rgba(28,107,69,.08); }
.btn-lg { padding: 18px 34px; font-size: 1.15rem; }

/* Coin badge (перегук з монетою на лого) */
.coin {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 28%, #f4d791, var(--gold) 56%, var(--gold-d));
  border: 2px solid #6e4e14;
  box-shadow: inset 0 2px 5px rgba(255,255,255,.55), inset 0 -3px 6px rgba(110,78,20,.5), var(--shadow-sm);
  display: grid; place-items: center;
}
.coin svg { width: 30px; height: 30px; color: #3b2412; }
.coin.sm { width: 40px; height: 40px; }
.coin.sm svg { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 227, .9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 2px solid var(--gold);
}
.nav { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink); font-family: var(--f-head); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 4px; font-family: var(--f-head); font-weight: 700; font-size: .9rem; }
.lang a { padding: 4px 9px; border-radius: 8px; color: var(--ink-soft); }
.lang a.active { background: var(--green); color: var(--cream); }

/* Hero — фото на всю ширину з темною зелено-коричневою заливкою */
.hero {
  position: relative; color: var(--cream);
  background:
    linear-gradient(105deg, rgba(14,58,38,.92) 0%, rgba(14,58,38,.7) 45%, rgba(44,27,15,.55) 100%),
    url("/assets/img/photos/hero.jpg") center/cover no-repeat;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: clamp(64px, 10vw, 120px); }
.hero .eyebrow { color: var(--gold-l); }
.hero .eyebrow::before { background: var(--gold-l); }
.hero h1 { color: var(--cream); font-size: clamp(2.4rem, 6vw, 4.3rem); }
.hero h1 .amber { color: var(--gold-l); }
.hero p.lead { color: #efe6d0; margin: 22px 0 30px; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 30px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust b { font-family: var(--f-display); font-size: 1.7rem; color: var(--gold-l); display: block; line-height: 1; }
.hero-trust span { font-size: .85rem; color: #e2d6bd; font-weight: 600; }

/* Receipt-style chat (мокап як барний рахунок) */
.receipt {
  background: var(--foam); color: var(--ink); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(transparent, transparent 33px, rgba(196,155,60,.12) 34px);
}
.receipt-h { font-family: var(--f-head); font-weight: 800; text-align: center; padding-bottom: 10px; border-bottom: 2px dashed var(--gold); margin-bottom: 12px; letter-spacing: .05em; }
.chat { display: grid; gap: 10px; }
.bubble { border-radius: 14px; padding: 11px 15px; font-size: .98rem; max-width: 88%; }
.bubble.me { background: linear-gradient(180deg, var(--gold-l), var(--amber)); color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; font-weight: 600; }
.bubble.bot { background: #fff; border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; }
.bubble code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 5px; }

/* Sections */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.section-green { background: var(--green-deep); color: var(--cream); position: relative; }
.section-green h2, .section-green h3 { color: var(--cream); }
.section-green .muted, .section-green p { color: #d8e5db; }
.section-green .eyebrow { color: var(--gold-l); }
.section-green .eyebrow::before { background: var(--gold-l); }
.section-cream2 { background: var(--cream-2); }

.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.section-green .card { background: rgba(255,255,255,.05); border-color: rgba(234,198,110,.25); }
.section-green .card h3 { color: var(--cream); }
.section-green .card p { color: #cfe0d5; }

/* Steps */
.steps { display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
.step .coin { margin-bottom: 16px; font-family: var(--f-display); color: #3b2412; font-size: 1.4rem; }
.step h3 { margin-bottom: 6px; }
.step p { color: inherit; opacity: .9; font-size: 1rem; }
.step code, .card code, .bubble code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.step code { background: rgba(234,198,110,.18); border: 1px solid rgba(234,198,110,.4); padding: 2px 7px; border-radius: 7px; font-size: .9em; color: var(--gold-l); }

/* Split media band (фото + текст) */
.media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 3px solid var(--gold); }

/* Example receipt */
.showcase { max-width: 560px; margin-inline: auto; }

/* Stats band — фото з зеленою заливкою */
.band {
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px); text-align: center; color: var(--cream);
  background: linear-gradient(rgba(14,58,38,.9), rgba(14,58,38,.9)), url("/assets/img/photos/cheers.jpg") center/cover;
  border: 3px solid var(--gold);
}
.band .stat b { font-family: var(--f-display); display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold-l); }
.band .stat span { color: #e2d6bd; font-weight: 600; }

/* FAQ */
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 2px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-head); font-size: 1.6rem; color: var(--amber); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; font-size: 1rem; }

/* CTA */
.cta-final { text-align: center; }
.cta-final p.lead { max-width: 48ch; margin: 16px auto 30px; }

/* Footer */
.site-footer { background: var(--green-deep); color: #d8e5db; padding: 54px 0 40px; }
.site-footer .brand { color: var(--cream); }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.foot-grid nav { display: grid; gap: 10px; }
.foot-grid strong { color: var(--gold-l); font-family: var(--f-head); }
.foot-grid a { color: #d8e5db; font-weight: 500; }
.foot-grid a:hover { color: var(--cream); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(234,198,110,.25); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #b9c9be; font-size: .9rem; }

/* Legal */
.legal { max-width: 780px; margin-inline: auto; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--gold-d); font-weight: 700; font-family: var(--f-head); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .media { grid-template-columns: 1fr; }
  .hero-media, .media img { max-width: 460px; margin-inline: auto; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid-3, .grid-2, .steps, .media { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
  .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; animation: none !important; transition: none !important; } }
