:root {
  --bg: #f7f4ed;
  --bg-alt: #efebe2;
  --card: #f1ede4;
  --dark: #343b30;
  --text: #1e1f1b;
  --muted: #6d6a60;
  --line: #d8d2c4;
  --serif: "Literata", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--serif); }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.title { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; font-weight: 400; margin-bottom: 12px; }
.lead { color: var(--muted); max-width: 640px; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; font-size: 14px; border: 1px solid transparent; border-radius: 2px; transition: background .2s, color .2s; }
.btn_dark { background: var(--dark); color: #fff; }
.btn_dark:hover { background: #262c23; }
.btn_line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn_line:hover { background: #fff; color: var(--dark); }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 13px 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* У файла логотипа белый фон и поля: обрезаем через object-fit, белый убираем через multiply */
.brand img { display: block; aspect-ratio: 2.05; object-fit: cover; mix-blend-mode: multiply; }
.logo { display: flex; align-items: center; gap: 12px; }
/* Монета вырезана из logo.webp: фон масштабирован так, что круг занимает 44px */
.logo__coin { width: 44px; height: 44px; border-radius: 50%; background: url(logo.webp) -4.8px -10.7px / 101.7px auto no-repeat; }
.logo b { font: 700 24px var(--sans); letter-spacing: .02em; color: #10306a; }
.logo b span { color: #c9a03c; }
.nav { display: flex; gap: 40px; font-size: 13px; }
.nav a:hover { color: var(--muted); }
.lang { display: flex; gap: 14px; font-size: 11px; }
.lang a { color: var(--muted); opacity: .6; }
.lang a[aria-current] { color: var(--text); opacity: 1; border-bottom: 1px solid currentColor; }
.burger { display: none; background: none; border: 0; color: inherit; cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.hero__text { padding: 48px; padding-inline-start: max(48px, calc((100vw - 1200px) / 2 + 48px)); align-self: center; }
.hero h1 { font-size: clamp(34px, 3.6vw, 44px); line-height: 1.12; font-weight: 400; margin-bottom: 18px; }
.hero p { max-width: 460px; margin-bottom: 30px; }
.hero__buttons { display: flex; gap: 26px; flex-wrap: wrap; }
.hero__media { background: url(hero.webp) center 60% / cover; }

.facts { display: grid; grid-template-columns: 1fr 1fr 1.4fr; padding-top: 24px; padding-bottom: 32px; }
.fact { border-inline-start: 1px solid var(--line); padding: 4px 24px; }
.fact b { display: block; font-weight: 400; font-size: 22px; }
.fact_text b { font-size: 15px; padding-top: 6px; }
.fact span { font-size: 12px; color: var(--muted); }

/* Services */
.section { padding: 80px 0; }
.services { background: #faf8f3; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.card { background: var(--card); padding: 28px 30px 30px; }
.card svg { margin-bottom: 20px; }
.card h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--muted); }

/* Approach */
.approach { background: linear-gradient(90deg, var(--dark) 45%, rgba(52,59,48,.8) 68%, rgba(52,59,48,.45) 100%), url(approach.webp) right center / cover; color: #fff; }
[dir=rtl] .approach { background: linear-gradient(270deg, var(--dark) 45%, rgba(52,59,48,.8) 68%, rgba(52,59,48,.45) 100%), url(approach.webp) left center / cover; }
.approach__inner { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: center; }
.approach .lead { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 28px; }
.approach__list { list-style: none; max-width: 260px; }
.approach__list li { display: flex; gap: 18px; align-items: center; font-size: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.approach__list li:last-child { border-bottom: 0; }
.approach__list li::before { content: ""; width: 14px; height: 1px; background: rgba(255,255,255,.6); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 28px; list-style: none; counter-reset: step; }
.step { position: relative; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--text); border-radius: 50%; background: var(--bg); position: relative; z-index: 1; margin-bottom: 16px; font-size: 14px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 15px; inset-inline-start: 30px; inset-inline-end: -24px; border-top: 1px dotted var(--muted); }
.step h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 12px; color: var(--muted); }

/* Brands */
.brands { background: var(--bg-alt); }
.brands__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 14px; }
.brand { display: grid; place-items: center; height: 96px; background: #fbfaf6; border: 1px solid var(--line); font: 500 22px var(--sans); letter-spacing: .02em; }
.brand_italic { font-style: italic; font-weight: 700; }
.brand_serif { font-family: var(--serif); font-weight: 400; }
.brand img { height: 78px; }
.brands small { font-size: 11px; color: var(--muted); }

/* Contacts */
.contacts__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.contacts .lead { margin-bottom: 28px; }
.contacts__list { list-style: none; border-inline-start: 1px solid var(--line); padding-inline-start: 48px; align-self: center; }
.contacts__list li { display: flex; gap: 16px; align-items: center; font-size: 14px; padding: 8px 0; }

/* Arabic: в Literata нет арабских букв, разрядка ломает связное письмо */
[dir=rtl] body { font-family: "Literata", "Noto Naskh Arabic", Georgia, serif; }
[dir=rtl] .eyebrow { letter-spacing: 0; font-size: 13px; }

@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav a { padding: 10px 0; font-size: 15px; }
  .header.is-open .nav { display: flex; }
  .burger { display: block; }
  .header__inner { gap: 16px; }
  .lang { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero__text { padding: 40px 24px; }
  .hero__media { min-height: 260px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .approach, [dir=rtl] .approach { background: linear-gradient(rgba(52,59,48,.88), rgba(52,59,48,.88)), url(approach.webp) center / cover; }
  .approach__inner, .contacts__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step { padding-inline-start: 46px; }
  .step::before { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
  .step:not(:last-child)::after { top: 30px; bottom: -20px; inset-inline-start: 15px; inset-inline-end: auto; border-top: 0; border-inline-start: 1px dotted var(--muted); }
  .brands__list { grid-template-columns: 1fr 1fr; }
  .contacts__list { border-inline-start: 0; padding-inline-start: 0; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .header__inner { gap: 12px; }
  .logo { gap: 8px; }
  .logo b { font-size: 19px; }
  .lang { gap: 10px; }
  .cards { grid-template-columns: 1fr; }
  .brand { height: 76px; font-size: 18px; }
  .brand img { height: 62px; }
}
