/* Alexey Golf Carts — public site
   White ground, fairway green, real grass. One family per script:
   Manrope (Latin, Cyrillic), IBM Plex Sans Arabic (Arabic).
   Layout uses logical properties so Arabic mirrors without a second stylesheet. */

:root {
  --bg: #ffffff;
  --surface: #f1f5ee;      /* pale fairway, a tone step off white */
  --surface-2: #e2ecda;
  --ink: #111c15;
  --muted: #4b5a50;
  --fairway: #1e4d2b;      /* actions, dark fields */
  --fairway-ink: #ffffff;
  --grass: #5b9a3c;
  --bar: #eef1ec;
  --sold: #8a948d;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --radius: 20px;
  --gap-section: clamp(96px, 12vw, 200px);

  /* five type steps */
  --t-display: clamp(44px, 8.4vw, 136px);
  --t-h2: clamp(32px, 4.2vw, 60px);
  --t-large: clamp(19px, 1.6vw, 24px);
  --t-body: 17px;
  --t-small: 14px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:lang(ar) { --font: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--grass); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 100; background: var(--fairway); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { inset-block-start: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block-start: var(--gap-section); }
h2 { font-size: var(--t-h2); }

/* ---------- buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding-inline: 30px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--fairway); color: var(--fairway-ink); }
.btn-dark:hover { background: #163b20; }
.btn-outline { background: var(--surface); color: var(--fairway); }
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { --h: 44px; padding-inline: 18px; font-size: 15px; }
.btn-wa { background: var(--fairway); color: #fff; }
.btn-wa:hover { background: #163b20; }
.btn-wide { width: 100%; }
.ico, .wa-ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--fairway); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- header bar (as sketched: one long rounded bar) ---------- */
.bar-wrap { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; background: var(--bg); }
.bar {
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  min-height: 64px; padding-inline: 24px 10px; border-radius: 999px; background: var(--bar);
}
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; margin-inline-end: auto; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bar-links { display: flex; gap: 28px; }
.bar-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.bar-links a:hover { color: var(--fairway); text-decoration: underline; text-underline-offset: 6px; }
.lang { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg); }
.lang-btn {
  min-width: 40px; height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--fairway); color: #fff; }
.lang-btn:lang(ar) { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 16px; }
@media (max-width: 900px) {
  .bar-links { display: none; }
  .bar { gap: 8px; padding-inline: 18px 8px; min-height: 58px; }
  .bar .btn-wa span { display: none; }
  .bar .btn-wa { width: 44px; padding: 0; }
  .wordmark { font-size: 16px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(calc(100svh - 76px), 940px);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.hero-copy {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(48px, 9vh, 110px) var(--gutter) 0;
  display: grid; justify-items: center; gap: clamp(24px, 3vw, 36px);
}
.hero h1 { font-size: var(--t-display); line-height: .95; max-width: 14ch; }
:lang(ru) .hero h1 { font-size: clamp(38px, 7.4vw, 120px); max-width: 15ch; }
:lang(ar) .hero h1 { line-height: 1.15; }
.hero-stage { position: relative; min-height: clamp(340px, 52vh, 560px); }
.hero-grass {
  position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 88%;
  object-fit: cover; object-position: center top;
  animation: hero-zoom 30s var(--ease) both;
  transform-origin: 50% 100%;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-carts { position: absolute; inset: 0; }
.hero-cart { position: absolute; bottom: 7%; display: grid; justify-items: center; gap: 14px; text-decoration: none; }
.hero-cart img { width: 100%; height: auto; filter: drop-shadow(0 24px 18px rgba(20, 40, 20, .28)); transition: transform .5s var(--ease); } /* taste-skill-ignore: ground contact shadow / floating overlay */
.hero-cart:hover img { transform: translateY(-6px); }
.hero-cart--a { inset-inline-start: 9%; width: min(31vw, 500px); bottom: 6%; }
.hero-cart--b { inset-inline-end: 9%; width: min(28vw, 450px); bottom: 14%; }
.tag {
  display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--bar);
  font-size: 15px; font-weight: 500; color: var(--ink); max-width: 100%; text-align: center; line-height: 1.3;
}
.tag[hidden] { display: none; }
.hero-cart:hover .tag { background: var(--fairway); color: #fff; }
@media (max-width: 700px) {
  .hero { min-height: calc(100svh - 70px); }
  .hero-stage { min-height: 56svh; }
  .hero-cart--a { width: 84vw; inset-inline-start: -10vw; bottom: 4%; z-index: 2; }
  .hero-cart--b { width: 64vw; inset-inline-end: -18vw; bottom: 30%; }
  .hero-cart--a .tag { margin-inline-start: 14vw; }
  .hero-cart--b .tag { display: none; }
  .tag { font-size: 14px; }
}

/* ---------- catalogue ---------- */
.cat-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 32px 40px; }
.chip {
  min-height: 44px; padding-inline: 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font-weight: 500; font-size: 15px;
  transition: background-color .2s;
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--fairway); color: #fff; }
.chip-select {
  appearance: none; min-height: 44px; padding-inline: 20px 44px; border-radius: 999px; border: 0;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111c15' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
  font: 500 15px var(--font); color: var(--ink); cursor: pointer;
}
[dir="rtl"] .chip-select { padding-inline: 44px 20px; background-position: left 18px center; }
.chip-select.on { background-color: var(--fairway); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 20px; }
.card { position: relative; display: grid; gap: 16px; }
.card-tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.card-tile.is-cutout::after { /* every cart parks on grass */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 34%;
  background: url(/img/grass.webp) center 0 / 220% auto no-repeat;
}
.card-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-tile.is-cutout img {
  z-index: 1; inset: auto 9% 7% 9%; width: 82%; height: 82%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 14px 10px rgba(20, 40, 20, .25)); /* taste-skill-ignore: ground contact shadow / floating overlay */
}
.card:hover .card-tile img { transform: scale(1.04); }
.card-badge {
  position: absolute; z-index: 2; inset-block-start: 14px; inset-inline-start: 14px;
  padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
}
.card-badge.reserved { background: #fff; color: var(--ink); }
.card-body { display: grid; gap: 2px; }
.card-title { font-size: var(--t-large); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.card-price { font-size: var(--t-large); font-weight: 600; color: var(--fairway); white-space: nowrap; }
.card-facts { color: var(--muted); font-size: 16px; margin-block-start: 4px; }
.card-share {
  position: absolute; z-index: 4; inset-block-start: 12px; inset-inline-end: 12px;
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: #fff; color: var(--fairway); cursor: pointer; transition: transform .2s var(--ease), background-color .2s;
}
.card-share:hover { background: var(--fairway); color: #fff; }
.card-share:active { transform: scale(.92); }
.card-share svg { width: 20px; height: 20px; fill: currentColor; }
.card.is-sold .card-tile img { opacity: .45; filter: grayscale(1); }
.card.is-sold .card-price { color: var(--muted); text-decoration: line-through; }
.empty { padding: 48px 0; font-size: var(--t-large); display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }

/* ---------- brands ---------- */
.brands h2 { margin-block-end: 40px; }
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.brand { display: grid; gap: 14px; border: 0; background: none; padding: 0; text-align: start; cursor: pointer; }
.brand-field { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; padding: 12%; background: var(--surface); transition: background-color .3s; }
.brand:nth-child(even) .brand-field { background: var(--fairway); }
.brand-field img { width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.brand:hover .brand-field img { transform: translateY(-6px) scale(1.04); }
.brand-name { font-size: var(--t-large); font-weight: 600; }
.brand-count { color: var(--muted); font-size: 16px; margin-inline-start: 10px; font-weight: 400; }
@media (max-width: 700px) { .brand-tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .brand-field { padding: 10%; } }

/* ---------- quality ---------- */
.quality-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quality-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.quality-photo img { width: 100%; height: 100%; object-fit: cover; }
.quality-text h2 { margin-block-end: 40px; }
.checks { display: grid; gap: 4px; }
.checks li {
  display: flex; gap: 16px; align-items: center; padding: 20px 0;
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em;
}
.checks li::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--fairway) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (max-width: 800px) {
  .quality-layout { grid-template-columns: 1fr; }
  .quality-photo { aspect-ratio: 4 / 3; }
}

/* ---------- where ---------- */
.where-layout { display: grid; grid-template-columns: 5fr 1fr 6fr; }
.where-media { grid-column: 1; }
.where-frame { position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.where-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.where-frame img.on { opacity: 1; }
.where-text { grid-column: 3; }
.where-text h2 { margin-block-end: 40px; }
.where-list { display: grid; }
.where-item {
  display: flex; width: 100%; align-items: center; gap: 18px; padding: 18px 0; border: 0; background: none; text-align: start; cursor: pointer;
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--muted);
  transition: color .25s;
}
.where-item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); flex: none; transition: background-color .25s, transform .25s; }
.where-item[aria-current="true"] { color: var(--ink); }
.where-item[aria-current="true"]::before { background: var(--grass); transform: scale(1.5); }
.where-item img { display: none; }
.note { margin-block-start: 32px; color: var(--muted); font-size: 16px; max-width: 46ch; }
@media (max-width: 800px) {
  .where-layout { grid-template-columns: 1fr; }
  .where-media { display: none; }
  .where-text { grid-column: 1; }
  .where-list { gap: 28px; }
  .where-item { display: grid; gap: 12px; padding: 0; color: var(--ink); cursor: default; font-size: 22px; }
  .where-item::before { display: none; }
  .where-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); order: -1; }
}

/* ---------- how buying works: a green field, three verbs ---------- */
.how { margin-block-start: var(--gap-section); background: var(--fairway); color: #fff; padding-block: clamp(80px, 10vw, 160px); }
.how h2 { margin-block-end: clamp(48px, 6vw, 96px); }
.how-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-panels > li { container-type: inline-size; }
.how-verb { display: block; font-size: min(clamp(56px, 6.4vw, 104px), 18cqi); white-space: nowrap; font-weight: 600; letter-spacing: -0.05em; line-height: .95; color: #fff; }
:lang(ar) .how-verb { letter-spacing: 0; line-height: 1.2; }
.how-line { margin-block-start: 20px; font-size: var(--t-large); line-height: 1.4; color: #d9e8d0; max-width: 22ch; }
@media (max-width: 600px) { .how-panels { grid-template-columns: 1fr; gap: 48px; } }
.how-cta { margin-block-start: clamp(56px, 6vw, 96px); background: #fff; color: var(--fairway); }
.how-cta:hover { background: var(--surface-2); }
@media (max-width: 600px) { .how-cta { width: 100%; } }

/* ---------- contact: card on a photograph ---------- */
.contact { position: relative; min-height: 92svh; display: flex; align-items: flex-start; justify-content: flex-end; padding: clamp(24px, 5vw, 64px) var(--gutter); }
.contact-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-card {
  position: relative; width: min(420px, 100%); background: #fff; border-radius: var(--radius);
  padding: 32px; display: grid; gap: 24px;
}
.contact-card h2 { font-size: clamp(30px, 2.6vw, 40px); }
.contact-dl { display: grid; gap: 14px; }
.contact-dl div { display: flex; justify-content: space-between; gap: 16px; }
.contact-dl dt { color: var(--muted); }
.contact-dl dd { font-weight: 600; text-align: end; }
.contact-dl a { text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.contact-actions { display: grid; gap: 10px; }
@media (max-width: 700px) {
  .contact { min-height: 0; display: block; padding: 0; }
  .contact-photo { position: relative; height: 56svh; }
  .contact-card { margin: -96px var(--gutter) 0; width: auto; }
}

/* ---------- footer ---------- */
.footer { position: relative; padding-block-start: clamp(80px, 10vw, 160px); overflow: hidden; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-block-end: clamp(40px, 6vw, 80px); }
.footer-menu a { font-size: var(--t-large); font-weight: 600; text-decoration: none; display: inline-block; transition: transform .25s var(--ease), color .2s; }
.footer-menu a:hover { color: var(--fairway); transform: translateX(6px); }
[dir="rtl"] .footer-menu a:hover { transform: translateX(-6px); }
.footer-name { font-size: clamp(44px, 10.4vw, 168px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; white-space: nowrap; }
.footer-small { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-block: 28px 0; color: var(--muted); font-size: var(--t-small); position: relative; z-index: 2; }
.footer-small a { color: var(--muted); }
.footer-grass {
  height: clamp(120px, 16vw, 220px); margin-block-start: -12px;
  background: url(/img/grass.webp) center top / max(100%, 900px) auto repeat-x;
  transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: skewX(-1.2deg); } to { transform: skewX(1.2deg); } }

/* ---------- floating WhatsApp (phones) ---------- */
.fab-wa {
  position: fixed; z-index: 60; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; display: none; place-items: center;
  background: var(--fairway); color: #fff; box-shadow: 0 8px 24px rgba(17, 28, 21, .28); /* it floats */ /* taste-skill-ignore: ground contact shadow / floating overlay */
}
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; }
@media (max-width: 900px) { .fab-wa { display: grid; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 500; max-width: calc(100vw - 32px);
  box-shadow: 0 8px 24px rgba(17, 28, 21, .25); /* taste-skill-ignore: ground contact shadow / floating overlay */
}

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- phone catalogue: two columns, one-row filters ---------- */
@media (max-width: 600px) {
  .cat-head { align-items: center; }
  .cat-head .btn { --h: 44px; padding-inline: 16px; font-size: 14px; }
  .filters { margin-block: 24px 28px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip, .chip-select { flex: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 32px 10px; }
  .card { gap: 10px; }
  .card-tile { border-radius: 14px; }
  .card-title, .card-price { font-size: 16px; }
  .card-facts { font-size: 14px; }
  .card-share { width: 38px; height: 38px; inset-block-start: 8px; inset-inline-end: 8px; }
  .card-share svg { width: 16px; height: 16px; }
  .card-badge { inset-block-start: 8px; inset-inline-start: 8px; font-size: 13px; padding: 4px 10px; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 11vw; }
  :lang(ru) .hero h1 { font-size: 9.4vw; }
}
