:root {
  --ink: #0F1B2D;
  --ink-2: #24304A;
  --ink-3: #3A4456;
  --muted: #5A6578;
  --line: #E4E0D6;
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --accent: #F5B700;
  --accent-ink: #0F1B2D;
  --on-dark: #FFFFFF;
  --on-dark-2: #D5DCE7;
  --danger: #B42318;
  --ok-bg: #E3F4E8;
  --ok: #1E7A3C;
  --radius: 16px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.5; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #8A6400; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 18px; padding: 14px 30px; min-height: 56px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn-ghost { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--on-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 44px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.pill-accent:hover { color: var(--accent-ink); filter: brightness(1.05); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #F0EEE8; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }

/* ---------- header ---------- */
.hdr { background: var(--ink); color: var(--on-dark); position: sticky; top: 0; z-index: 20; }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; }
.logo:hover { color: var(--on-dark); }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.logo-text { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: .3px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.nav-link { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.nav-link:hover { color: var(--accent); }
.langs { display: inline-flex; border: 1px solid #3A4A63; border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.langs a { color: var(--on-dark); text-decoration: none; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; }
.langs a.on { background: var(--on-dark); color: var(--ink); }
.langs a:not(.on):hover { background: #22324B; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); }
.hero-bg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 560px; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg img:first-child { border-right: 2px solid var(--ink); }
.hero-bg img.tash { object-position: center 30%; }
.hero-card { position: absolute; inset: 0; margin: auto; height: fit-content; max-width: 720px; width: calc(100% - 32px); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: var(--on-dark); background: rgba(15, 27, 45, .74); padding: 40px 48px; border-radius: 20px; }
.hero-card h1 { font-size: clamp(30px, 4.4vw, 52px); }
.hero-card p { font-size: 18px; color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* ---------- feed ---------- */
.feed { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.feed-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.feed-head h2 { font-size: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-media { background: #DCD6C8; }
.card-media .media { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.card-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { font-size: 26px; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body p { color: var(--ink-3); font-size: 16px; line-height: 1.6; }
.more { font-weight: 600; margin-top: 4px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- post ---------- */
.post { padding-top: 36px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.post h1 { font-size: clamp(30px, 4.6vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); background: #EFEBE1; padding: 10px 14px; border-radius: 10px; }
.post-media { border-radius: var(--radius); overflow: hidden; background: #DCD6C8; }
.post-media .media { width: 100%; height: auto; }
.post-text { font-size: 18px; line-height: 1.75; color: var(--ink-2); display: flex; flex-direction: column; gap: 16px; overflow-wrap: anywhere; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 22px 24px; background: var(--ink); border-radius: var(--radius); color: var(--on-dark); }
.cta-title { font-family: var(--head); font-size: 20px; font-weight: 700; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.back { font-weight: 600; }
.notfound { align-items: flex-start; min-height: 50vh; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--on-dark-2); }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; font-size: 15px; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr-brand { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--on-dark); }
.ftr-label { color: var(--on-dark); font-weight: 600; }
.ftr-phone { color: var(--accent); font-family: var(--head); font-size: 30px; font-weight: 700; text-decoration: none; }
.ftr-phone:hover { color: var(--accent); }
.ftr a { color: var(--on-dark-2); }
.credit { font-size: 12px; color: #9AA6B8; }

/* ---------- floating call ---------- */
.fab { display: none; position: fixed; right: 16px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--ink); align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(15, 27, 45, .3); }
.fab:hover { color: var(--ink); }

/* ---------- order dialog ---------- */
.dlg { border: 0; padding: 22px 22px 28px; width: min(480px, calc(100% - 32px)); border-radius: 20px; color: var(--ink); background: var(--card); }
.dlg::backdrop { background: rgba(15, 27, 45, .6); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dlg-head h2 { font-size: 24px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9C4B8; border-radius: 12px; color: var(--ink); background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--danger); font-size: 14px; }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 12px 0 4px; }
.done[hidden], .err[hidden], .form[hidden] { display: none; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.done h3 { font-size: 22px; }
.done p { color: var(--ink-3); }
.done-phone { font-family: var(--head); font-weight: 700; font-size: 30px; text-decoration: none; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .hdr-in { padding-top: 10px; padding-bottom: 10px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { font-size: 18px; }
  .nav { gap: 10px; }
  .nav-link, .nav .pill { display: none; }
  .hero-bg { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: 520px; }
  .hero-bg img:first-child { border-right: 0; border-bottom: 2px solid var(--ink); }
  .hero-card { padding: 24px 20px; gap: 14px; border-radius: 16px; }
  .hero-card p { font-size: 15px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; font-size: 17px; }
  .feed { padding-top: 36px; gap: 20px; }
  .feed-head h2 { font-size: 26px; }
  .card-body { padding: 18px; }
  .card-body h3 { font-size: 20px; }
  .card-body p { font-size: 15px; }
  .post-text { font-size: 17px; }
  .fab { display: inline-flex; }
  .dlg { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; padding: 20px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
