:root {
  --bg: #f8f6f1;
  --bg-2: #efe8d8;
  --ink: #1c1917;
  --muted: #5c564c;
  --soft: #8a8276;
  --line: rgba(12, 77, 63, 0.12);
  --green: #0c4d3f;
  --green-2: #146354;
  --gold: #c9a227;
  --gold-soft: #efe3b8;
  --surface: #ffffff;
  --accent: #0c4d3f;
  --accent-ink: #fff;
  --font: "Inter", system-ui, sans-serif;
  --arabic: "Amiri", "Times New Roman", serif;
  --radius: 20px;
  --card-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(800px 380px at 0% 10%, rgba(12, 77, 63, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.bot-read {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--green), var(--gold));
  pointer-events: none;
}

.page { overflow-x: clip; }

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top.scrolled { box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.logo-mark {
  width: 30px;
  height: 30px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-soft) 0 28%, transparent 29%),
    conic-gradient(from 22deg, var(--gold), #e6d48a, var(--gold), #a8841a, var(--gold));
  clip-path: polygon(50% 0, 65% 20%, 90% 20%, 75% 40%, 90% 70%, 50% 55%, 10% 70%, 25% 40%, 10% 20%, 35% 20%);
  filter: drop-shadow(0 1px 0 rgba(12, 77, 63, 0.15));
}

.logo-mark {
  clip-path: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px var(--gold);
  background: #fff;
}
.logo-mark::after {
  content: "✦";
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.nav {
  display: none;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover, .nav a.is-active { color: var(--green); }

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-btn {
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn:hover { background: var(--gold-soft); }
.lang-btn.is-on { background: var(--green); color: #fff; }

.advertiser {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--soft);
  max-width: 46ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn-accent {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(12, 77, 63, 0.22);
}
.btn-accent:hover { filter: brightness(1.08); }

.btn-ghost {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--gold-soft); border-color: transparent; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.foot-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.foot-link:hover { color: var(--green); }

.btn-cta { padding: 16px 26px; }
.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.dl-ico { width: 22px; height: 22px; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 80px) clamp(16px, 4vw, 48px);
}

.pill {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1, .section-head h2, .final h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: #1a1a1a; }

.lede, .section-head p:not(.kicker) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 0 24px;
}

.hero .lede { max-width: 54ch; margin-bottom: 16px; }

.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.hero-topics li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-meta {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 0.88rem;
}

.hero-lang {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 600;
}

.phone-wrap { display: flex; justify-content: center; }

.phone {
  width: min(280px, 78vw);
  padding: 12px;
  border-radius: 36px;
  background: #111;
  box-shadow: 0 24px 50px rgba(28, 25, 23, 0.18);
}

.phone-notch {
  width: 88px;
  height: 8px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: #2a2a2a;
}

.phone-screen {
  min-height: 430px;
  padding: 28px 18px 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, #0c4d3f, #08362d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ayah-ar {
  font-family: var(--arabic);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  color: #e6c75a;
  line-height: 1.8;
  margin: 0 0 18px;
  direction: rtl;
}

.ayah-ru {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.phone-topics {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  padding: 0;
  margin: 16px 0 0;
}

.phone-topics li {
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8d48a;
  font-size: 0.72rem;
  font-weight: 700;
}

.player {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  flex-shrink: 0;
}
.play::after {
  content: "";
  position: absolute;
  left: 13px; top: 10px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #0c4d3f;
}

.wave {
  flex: 1;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 3px,
    transparent 3px 7px
  );
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: 0.9;
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 clamp(16px, 4vw, 48px) 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.trust > div {
  padding: 20px 18px;
  background: #fff;
}

.trust strong { display: block; color: var(--green); margin-bottom: 4px; }
.trust span { font-size: 0.86rem; color: var(--muted); }

section { padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px); }

.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
.section-head p:not(.kicker) { margin-left: auto; margin-right: auto; }

.kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-grid, .offline-grid, .more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-grid article, .offline-grid article, .more-grid article {
  padding: 24px;
  border-radius: var(--card-radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
}

.feat-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  margin-bottom: 12px;
}

.feature-grid h3, .offline-grid h3, .more-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-grid p, .offline-grid p, .more-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.how-flow {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
  display: grid;
  gap: 14px;
}

.how-step {
  padding: 24px 20px;
  border-radius: var(--card-radius);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.how-ico {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.how-step h3 { margin: 0 0 8px; }
.how-step p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.cta-repeat { display: flex; justify-content: center; margin-top: 36px; }

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 16px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0; padding: 0 20px 16px; color: var(--muted); line-height: 1.6; font-size: 0.94rem; }
.faq a { color: var(--green); text-decoration: underline; }

.final {
  text-align: center;
  margin: 0 clamp(16px, 4vw, 48px) 48px;
  padding: clamp(44px, 7vw, 72px) 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--green), #08362d);
  color: #fff;
}

.final .kicker { color: var(--gold); }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, 0.82); max-width: 46ch; margin: 0 auto 24px; line-height: 1.6; }
.final .btn-accent {
  background: var(--gold);
  color: #1c1917;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.final-note { margin-top: 16px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); }

.site-foot {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-foot-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 48px clamp(16px, 4vw, 48px) 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.foot-col h3 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin: 0 0 12px;
}

.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--green); }

.brand-name { font-weight: 800; margin-bottom: 8px; }
.brand-tag { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.site-foot-requisites {
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.req-grid strong { display: block; color: var(--ink); margin-bottom: 4px; }
.req-grid span { display: block; }

.site-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--soft);
}

.foot-legal-row { display: flex; gap: 16px; }
.foot-legal-row a:hover { color: var(--green); }

.dl-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(12, 77, 63, 0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.dl-float.show { opacity: 1; transform: none; pointer-events: auto; }

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 16px;
  pointer-events: none;
}

.cookie-bar[hidden] { display: none !important; }

.cookie-card {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: var(--card-radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.12);
  pointer-events: auto;
}

.cookie-card h2 { margin: 0 0 10px; font-size: 1.1rem; }
.cookie-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.cookie-card a { color: var(--green); }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-necessary, .btn-accept {
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.btn-necessary { background: #efe8d8; color: var(--ink); }
.btn-accept { background: var(--green); color: #fff; }

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 32px) 80px;
}

.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.65; font-size: 0.92rem; }
.legal-page a { color: var(--green); }

.legal-back { display: inline-block; margin-bottom: 24px; color: var(--muted); }
.legal-back:hover { color: var(--green); }

.consult-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 25, 23, 0.42);
}
.consult-overlay[hidden] { display: none !important; }

.consult-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(28, 25, 23, 0.18);
}

.consult-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.consult-close:hover { color: var(--ink); }

.consult-card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.consult-lead { margin: 0 0 8px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.consult-clock {
  margin: 0 0 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green);
}

#consult-form { display: grid; gap: 12px; }
#consult-form label { display: grid; gap: 6px; }
#consult-form label span { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
#consult-form input,
#consult-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
#consult-form input:focus,
#consult-form select:focus {
  outline: 2px solid rgba(12, 77, 63, 0.25);
  border-color: var(--green);
}

.consult-when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.consult-hint { margin: 0; font-size: 0.8rem; color: var(--soft); line-height: 1.45; }
.consult-error { margin: 0; font-size: 0.86rem; color: #b45309; }
.consult-ok { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--green); }
.consult-submit { width: 100%; margin-top: 4px; }
.consult-submit:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 520px) {
  .consult-when { grid-template-columns: 1fr; }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .more-grid { grid-template-columns: repeat(4, 1fr); }
  .offline-grid { grid-template-columns: repeat(3, 1fr); }
  .how-flow { grid-template-columns: repeat(3, 1fr); }
}

.dl-success-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.dl-success { width: min(440px, 100%); text-align: center; }
.dl-success .logo { display: inline-flex; margin-bottom: 16px; }

.dl-success-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
}

.dl-success-card h1 { font-size: 1.7rem; margin: 8px 0 12px; }
.dl-success-lead, .dl-success-hint { color: var(--muted); line-height: 1.55; }
.dl-success-hint { font-size: 0.88rem; margin-bottom: 18px; }
.dl-success-card .btn { width: 100%; }
.dl-success-back { display: inline-block; margin-top: 14px; color: var(--muted); text-decoration: underline; }
