/* hanaha.world — main stylesheet (RTL, Hebrew) */
:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --muted: #7a8396;
  --line: #ece4d8;
  --brand: #0e7c6b;
  --brand-dark: #0a5c50;
  --brand-soft: #e3f3ef;
  --accent: #ff6b3d;
  --accent-soft: #fff0ea;
  --sun: #ffc93c;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(29, 36, 51, .08);
  --shadow-sm: 0 3px 10px rgba(29, 36, 51, .06);
  --maxw: 1180px;
  --font-body: "Heebo", "Segoe UI", Arial, sans-serif;
  --font-head: "Heebo", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 700; margin-top: 1.8em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; right: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { right: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo img { width: 38px; height: 38px; }
.logo span b { color: var(--accent); font-weight: 700; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 400; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 18px; }
  .main-nav a { border-radius: var(--radius-sm); padding: 12px 14px; }
}

/* Hero (home) */
.hero { padding: 48px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: #c2410c; font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 700; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.stats div { font-size: .9rem; color: var(--muted); }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 28px; } }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card a.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card a.card-link:hover { text-decoration: none; }
.card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 14px; }
.card .meta { margin-top: auto; font-size: .82rem; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 12px; background: var(--accent-soft); }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

.band { background: linear-gradient(135deg, var(--brand) 0%, #13a08a 100%); color: #fff; border-radius: 28px; padding: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.band h2 { color: #fff; margin: 0 0 10px; }
.band p { color: rgba(255,255,255,.9); margin: 0; }
.band ul { margin: 0; padding: 0 20px 0 0; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 26px 20px; } }

/* Article */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; }
.article-head { padding: 18px 0 8px; max-width: 860px; }
.article-head .lead { font-size: 1.17rem; color: var(--ink-soft); }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.article-hero { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 32px; }
.article-hero img { width: 100%; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 44px; align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static !important; order: -1; } }
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-right: 22px; padding-left: 0; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose h2 { scroll-margin-top: 90px; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; text-align: center; }
.toc { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.toc h4 { font-size: 1rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0 18px 0 0; font-size: .92rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-soft); }

.callout { border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; border-right: 5px solid var(--brand); background: var(--brand-soft); }
.callout.warn { border-color: var(--accent); background: var(--accent-soft); }
.callout.sun { border-color: var(--sun); background: #fff8e1; }
.callout strong:first-child { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: right; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f1e8; font-family: var(--font-head); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 48px 4px 0; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; right: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.disclaimer { font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 32px; }

/* Pages (about/contact/privacy) */
.page-head { padding: 36px 0 10px; }
.page-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 700; color: var(--brand-dark); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { font-size: 1.3rem; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; }
.publisher-list { margin: 18px 0 28px; padding: 0; }
.publisher-list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.publisher-list dt { font-weight: 700; color: var(--ink-soft); }
.publisher-list dd { margin: 0; }
.footer-legal { font-style: normal; font-size: .88rem; line-height: 1.65; color: #94a0b2; margin: 14px 0 8px; }
.footer-contact { margin: 0 0 14px; font-size: .9rem; line-height: 1.7; }

/* Footer */
.site-footer { background: #17202c; color: #c9d1dd; margin-top: 60px; padding: 48px 0 24px; font-size: .94rem; }
.site-footer a { color: #e7ecf3; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { display: flex; gap: 10px; align-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.footer-logo img { width: 34px; height: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #94a0b2; }
.linklike { background: none; border: 0; color: #e7ecf3; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 16px; right: 16px; left: 16px; max-width: 560px; margin-right: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 50px rgba(29,36,51,.22); padding: 20px 22px; z-index: 200; display: none; }
.cookie-banner.show { display: block; animation: up .35s ease; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner h3 { margin: 0 0 6px; font-size: 1.1rem; }
.cookie-banner p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .95rem; }
@media (min-width: 640px) { .cookie-banner { right: 24px; bottom: 24px; } }

/* Coupon codes */
.coupons-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; margin: 4px 0 36px; }
.coupons-box h2 { margin-top: 0; }
.coupons-box h3 { margin: 1.3em 0 .7em; scroll-margin-top: 90px; }
.coupons-box, .coupon, .lang-block, #faq { scroll-margin-top: 90px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.quick-links a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--ink); font-weight: 700; }
.quick-links a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.coupon:target { box-shadow: 0 0 0 3px var(--brand); }
.coupons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coupons.small { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .coupons, .coupons.small { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .coupons, .coupons.small { grid-template-columns: minmax(0, 1fr); } .coupons-box { padding: 16px; } }
.coupon { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.coupon.hot { border-color: var(--accent); background: var(--accent-soft); }
.coupon-off { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.coupon-cond { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.coupon-code { display: flex; align-items: stretch; border: 1.5px solid var(--brand); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.coupon-code code { flex: 1; font: 700 1.1rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; padding: 11px 12px; color: var(--brand-dark); text-align: center; }
.copy-btn { background: var(--brand); color: #fff; border: 0; font: 700 .9rem var(--font-body); padding: 0 14px; cursor: pointer; }
.copy-btn:hover { background: var(--brand-dark); }
.copy-btn.done { background: var(--accent); }
.coupons-note { font-size: .9rem; color: var(--ink-soft); margin: 18px 0 0; line-height: 1.6; }
.lang-block { text-align: left; }
.prose .lang-block ul { padding-left: 22px; padding-right: 0; }
