/* GoldExpress website — شركة الراتب للبرمجة. Light by default (as the product's website), dark on request. */

/* Lemonada for the text, the Arabic font's Latin digits beside it (as in the product) */
@font-face { font-family: "GX"; src: url("fonts/lemonada-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "GX"; src: url("fonts/lemonada.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GX"; src: url("fonts/lemonada-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "GX"; src: url("fonts/lemonada-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GX"; src: url("fonts/digits.woff") format("woff"); font-weight: 300; font-display: swap; unicode-range: U+0030-0039; }
@font-face { font-family: "GX"; src: url("fonts/digits.woff") format("woff"); font-weight: 400; font-display: swap; unicode-range: U+0030-0039; }
@font-face { font-family: "GX"; src: url("fonts/digits.woff") format("woff"); font-weight: 600; font-display: swap; unicode-range: U+0030-0039; }
@font-face { font-family: "GX"; src: url("fonts/digits.woff") format("woff"); font-weight: 700; font-display: swap; unicode-range: U+0030-0039; }

:root {
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --line: #EAE4DA;
  --line-2: #D9CFBD;
  --text: #1F1C17;
  --text-2: #4A443B;
  --muted: #686156;
  --accent: #85601F;
  --gold: #C7A052;
  --gold-soft: #F8F0DE;
  --bar: #201F1D;
  --bar-text: #F1E6CC;
  --ok: #13784A;
  --bad: #C23434;
  --shadow: 0 1px 2px rgba(31, 28, 23, .05), 0 8px 24px -12px rgba(31, 28, 23, .12);
  --btn-gold: linear-gradient(180deg, #E2C47E 0%, #C7A052 55%, #B38C3D 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0E0D0B;
  --surface: #171512;
  --surface-2: #13120F;
  --line: rgba(231, 185, 92, .14);
  --line-2: rgba(231, 185, 92, .3);
  --text: #F6F4EF;
  --text-2: #D9CFBD;
  --muted: #A79D8B;
  --accent: #E7B95C;
  --gold-soft: rgba(231, 185, 92, .1);
  --bar: #151412;
  --ok: #5FCB8E;
  --bad: #F08B80;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "GX", "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
svg.i { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 860px; }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.5; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, filter .2s; }
.btn svg.i { width: 20px; height: 20px; }
.btn.lg { padding: 13px 26px; font-size: 16px; }
.btn.sm { padding: 7px 16px; font-size: 14px; }
.btn-gold { background: var(--btn-gold); color: #1A1610; border-color: #B38C3D; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { background: var(--gold-soft); border-color: var(--gold); }

/* ---------- header (dark like the product's bar, so the logo sits on dark) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bar); border-bottom: 1px solid rgba(199, 160, 82, .35); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.links { display: flex; align-items: center; gap: 2px; margin-inline-start: 18px; margin-inline-end: auto; }
.links a:not(.btn) { position: relative; padding: 8px 14px; color: #E9E1D2; font-size: 14.5px; border-radius: 8px; transition: color .2s, background .2s; }
.links a:not(.btn):hover { color: #F3D486; background: rgba(255, 255, 255, .05); }
.links a.cur { color: #F3D486; }
.links a.cur::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); }
.only-menu { display: none !important; }
.theme { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #F1E6CC; background: transparent; border: 1px solid rgba(241, 230, 204, .2); }
.theme:hover { border-color: var(--gold); color: #F3D486; }
.theme svg.i { width: 20px; height: 20px; }
.theme .sun { display: none; }
[data-theme="dark"] .theme .sun { display: block; }
[data-theme="dark"] .theme .moon { display: none; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(241, 230, 204, .2); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #F1E6CC; transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.nav.open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- reveal and line drawing ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.in .draw, .draw.in { stroke-dashoffset: 0; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 6vw, 88px); }
.sec.tight { padding-top: 12px; }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-head.start { margin-inline: 0; text-align: start; margin-bottom: 28px; }
.label { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.55; font-weight: 700; }
h2 { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.55; font-weight: 700; margin-bottom: 10px; }
.sub { font-size: clamp(15px, 1.2vw, 17px); color: var(--text-2); line-height: 2; }
.page-head { padding: clamp(44px, 5vw, 72px) 0 36px; text-align: center; }
.page-head .wrap { max-width: 820px; }
.page-head h1 { margin-bottom: 10px; }
.page-head.dark { color: #F6F4EF; background-color: #13120F; padding: clamp(60px, 7vw, 104px) 0; }
.page-head.dark .label, .page-head.dark .accent { color: #E7B95C; }
.page-head.dark .sub { color: #D9CFBD; }
.ph-ring { text-align: start; background: linear-gradient(to left, #13120F 42%, rgba(19, 18, 15, .6) 62%, rgba(19, 18, 15, 0) 84%), url("img/photo-ring.webp") left center / auto 100% no-repeat, #13120F; }
.page-head.ph-ring .wrap { max-width: 1200px; }
.ph-in { max-width: 600px; }
.ph-texture { background: linear-gradient(rgba(19, 18, 15, .25), rgba(19, 18, 15, .45)), url("img/photo-texture.webp") center / cover no-repeat, #13120F; }
.page-head.dark .board { background: rgba(20, 19, 17, .72); border: 1px solid rgba(199, 160, 82, .4); }
.sec-gap { height: 36px; }

/* ---------- home: hero ---------- */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kicker { display: inline-block; font-size: 14px; color: var(--muted); padding: 4px 12px; border-radius: 8px; background: var(--gold-soft); }
.kicker b { color: var(--accent); font-weight: 600; }
.hero h1 { margin: 16px 0 14px; font-size: clamp(28px, 2.9vw, 42px); }
@media (min-width: 1101px) { .hero h1 span { white-space: nowrap; } }
.hero h1 span { display: block; }
.lead { max-width: 560px; font-size: clamp(15px, 1.2vw, 17px); line-height: 2.05; color: var(--text-2); }
.lead b { color: var(--text); }
.lead em { font-style: normal; color: var(--accent); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.facts svg.i { width: 18px; height: 18px; color: var(--accent); }
.hero-visual { position: relative; padding: 34px 0 34px 30px; }
.hero-visual::before { content: ""; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(160deg, #F3EAD8, #EADBBE); }
[data-theme="dark"] .hero-visual::before { background: linear-gradient(160deg, #1D1A16, #15130F); border: 1px solid var(--line); }
.laptop { position: relative; width: 88%; margin-inline-start: auto; margin-inline-end: 6%; }
.laptop .lid { padding: 9px 9px 12px; border-radius: 14px 14px 6px 6px; background: #1B1A18; border: 1px solid #3A3631; box-shadow: 0 30px 50px -24px rgba(31, 28, 23, .45); }
.laptop .lid img { border-radius: 5px; }
.laptop .deck { position: relative; height: 13px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #CFCAC1, #A8A196); }
.laptop .deck::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 5px; translate: -50% 0; border-radius: 0 0 6px 6px; background: #8E877C; }
.phone { position: relative; padding: 7px; border-radius: 36px; background: #1B1A18; border: 1px solid #3A3631; box-shadow: 0 24px 40px -18px rgba(31, 28, 23, .5); }
.phone .glass { border-radius: 29px; overflow: hidden; background: #F7F5F1; }
.hero-phone { position: absolute; left: 4%; bottom: 18px; width: 27%; }

/* ---------- home: before / after ---------- */
.strike-title s { position: relative; text-decoration: none; color: var(--muted); white-space: nowrap; }
.strike-title s::after { content: ""; position: absolute; inset-inline: -3px; top: 56%; height: 4px; border-radius: 3px; background: var(--bad); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease) .4s; }
.strike-title s:last-of-type::after { transition-delay: .8s; }
.in .strike-title s::after { transform: scaleX(1); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-col { padding: 24px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.after { border-color: var(--line-2); }
.ba-art { position: relative; height: 150px; display: grid; place-items: center; margin-bottom: 14px; }
.ba-art svg { height: 140px; width: auto; }
.tag { position: absolute; top: 0; right: 0; padding: 2px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.tag.bad { color: var(--bad); background: rgba(194, 52, 52, .08); }
.tag.good { color: var(--ok); background: rgba(19, 120, 74, .09); }
.ba-col li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; }
.ba-col li::before { content: ""; flex: none; width: 20px; height: 20px; background-position: center; background-repeat: no-repeat; background-size: 20px; }
.before li { color: var(--muted); }
.before li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='%23C23434' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.after li::before { background-image: 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='%2313784A' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- home: stories, explore ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.story { padding: 22px 0; border-top: 1px solid var(--line); }
.story .q { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.story p:not(.q) { font-size: 15px; color: var(--text-2); }
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.go { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: border-color .2s; }
.go:hover { border-color: var(--gold); }
.go-img { display: block; aspect-ratio: 16 / 8.5; overflow: hidden; border-bottom: 1px solid var(--line); background: #F1ECE2; }
.go-img img { width: 100%; object-fit: cover; object-position: top right; }
.go b { padding: 16px 18px 2px 52px; font-size: 18px; }
.go > span:not(.go-img) { padding: 0 18px 18px 52px; font-size: 14.5px; color: var(--text-2); }
.go i { position: absolute; left: 16px; bottom: 16px; color: var(--accent); }
.go i svg.i { width: 22px; height: 22px; }

/* ---------- call to action band ---------- */
.cta-band { color: var(--bar-text); background: linear-gradient(to left, #201F1D 36%, rgba(32, 31, 29, .72) 60%, rgba(32, 31, 29, .18) 100%), url("img/photo-shop.webp") left 62% / cover no-repeat, #201F1D; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 64px; flex-wrap: wrap; }
.cta-band h2 { color: #FBF6EA; font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 4px; }
.cta-band p { color: #CBBFA8; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-line { color: #F1E6CC; border-color: rgba(241, 230, 204, .3); }
.cta-band .btn-line:hover { background: rgba(255, 255, 255, .06); }

/* ---------- features ---------- */
.rows { display: grid; gap: clamp(56px, 7vw, 96px); }
.row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.row:nth-child(even) .row-text { order: 2; }
.r-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px; color: var(--accent); background: var(--gold-soft); }
.r-ic svg.i { width: 24px; height: 24px; }
.ticks li { position: relative; padding: 7px 28px 7px 0; font-size: 15.5px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; right: 0; top: 13px; width: 18px; height: 18px; background: 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='%23A9822F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.row-media { position: relative; }
.row-media.shots { padding: 0 0 40px 40px; }
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.phone.mini { position: absolute; left: 0; bottom: 0; width: 24%; padding: 5px; border-radius: 26px; }
.phone.mini .glass { border-radius: 21px; }
.row-media.art { display: grid; place-items: center; padding: 30px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-height: 280px; }
.tag-art { width: 100%; max-width: 420px; }
.statement { width: 100%; max-width: 380px; }
.laser { animation: laser 2.8s ease-in-out infinite; }
@keyframes laser { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(96px); } }
.plain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.plain-grid li, .plain-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.plain-grid li > svg.i, .plain-list li > svg.i { width: 26px; height: 26px; color: var(--accent); margin-top: 3px; }
.plain-grid b, .plain-list b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.plain-grid span, .plain-list span { display: block; font-size: 14.5px; color: var(--text-2); line-height: 1.9; }

/* ---------- how it works: system map ---------- */
.sysmap { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 1000 / 620; }
.sys-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.paths path { stroke: #C7A052; stroke-opacity: .55; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; transition: stroke-opacity .3s, stroke-width .3s; }
.paths path[data-node="price"], .paths path[data-node="barcode"], .paths path[data-node="scale"] { animation-direction: reverse; }
.paths path.hot { stroke-opacity: 1; stroke-width: 2.8; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.sparks circle { fill: #A9822F; }
[data-theme="dark"] .sparks circle { fill: #F3D486; }
.hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center; background: var(--bar); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.hub img { width: 78%; }
.node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 236px; z-index: 2; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .3s; }
.node.hot, .node:hover { border-color: var(--gold); }
.n-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--gold-soft); }
.n-ic svg.i { width: 22px; height: 22px; }
.node b { font-size: 14.5px; line-height: 1.6; }
.node small { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 48px; counter-reset: p; }
.pillars li { padding-top: 18px; border-top: 2px solid var(--gold); counter-increment: p; }
.pillars li::before { content: "0" counter(p); display: block; font-size: 13px; font-weight: 700; color: var(--accent); }
.pillars b { display: block; font-size: 17px; margin-bottom: 2px; }
.pillars p { font-size: 14.5px; color: var(--text-2); }

/* ---------- how it works: quick sale ---------- */
.sale-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.steps li { display: flex; gap: 16px; padding: 14px 16px; margin-bottom: 8px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: background .3s, border-color .3s; }
.steps li.on { background: var(--bg); border-color: var(--line-2); }
.s-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--accent); background: var(--gold-soft); transition: background .3s, color .3s; }
.steps li.on .s-ic { background: var(--gold); color: #1A1610; }
.steps b { display: block; font-size: 17px; }
.steps p { font-size: 14.5px; color: var(--text-2); }
.note { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--ok); }
.sale-visual { display: grid; place-items: center; }
.phone.big { width: 280px; }

/* ---------- how it works: devices ---------- */
.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 32px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 9px; background: none; font-size: 14.5px; cursor: pointer; white-space: nowrap; color: var(--text-2); transition: background .25s, color .25s; }
.tabs button.on { background: var(--gold); color: #1A1610; font-weight: 600; }
.pane { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.pane[hidden] { display: none; }
.pane.on { animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pane-text h3 { font-size: 24px; line-height: 1.6; margin-bottom: 8px; }
.pane-text p { font-size: 15.5px; color: var(--text-2); line-height: 2; margin-bottom: 8px; }
.monitor .bezel { padding: 9px; border-radius: 14px; background: #1B1A18; border: 1px solid #3A3631; box-shadow: var(--shadow); }
.monitor .bezel img { border-radius: 5px; }
.monitor .neck { width: 16%; height: 30px; margin: 0 auto; background: linear-gradient(180deg, #8E877C, #B9B2A6); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.monitor .stand { width: 34%; height: 8px; margin: 0 auto; border-radius: 0 0 10px 10px; background: #A8A196; }
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.browser .bar { height: 32px; display: flex; align-items: center; gap: 12px; padding: 0 12px; direction: ltr; background: #EFEBE3; border-bottom: 1px solid #E2DBCE; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #E5735F; }
.dots i:nth-child(2) { background: #E7B95C; } .dots i:nth-child(3) { background: #5FBF7A; }
.url { flex: 1; height: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; background: #fff; color: #686156; font-size: 11.5px; }
.url svg.i { width: 11px; height: 11px; color: #85601F; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.phones .phone { width: 30%; max-width: 200px; }
.phones .phone.mid { width: 34%; max-width: 230px; translate: 0 -20px; }
.modes { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 56px; }
.mode { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: opacity .4s, border-color .4s; }
.mode svg { width: 46%; flex: none; height: auto; }
.mode h3 { font-size: 19px; margin-bottom: 2px; }
.mode p { font-size: 14.5px; color: var(--text-2); }
.modes[data-on="off"] .m-off, .modes[data-on="on"] .m-on { border-color: var(--gold); }
.modes[data-on="off"] .m-on, .modes[data-on="on"] .m-off { opacity: .45; }
.leds circle { animation: blink 1.4s steps(2) infinite; }
.leds circle + circle { animation-delay: -.7s; }
@keyframes blink { 50% { opacity: .25; } }
.switch { position: relative; width: 84px; height: 44px; border-radius: 999px; cursor: pointer; background: var(--surface); border: 1px solid var(--line-2); }
.switch .knob { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); transition: transform .4s var(--ease); }
.switch[aria-checked="true"] .knob { transform: translateX(-40px); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-art { display: grid; place-items: center; border-radius: 16px; background: linear-gradient(180deg, #FBF7EE, #EFE3C9); min-height: 300px; }
[data-theme="dark"] .calc-art { background: linear-gradient(180deg, #1D1A16, #13110E); }
.calc-art svg { width: 100%; max-width: 400px; --r-hi: #FFF0C2; --r-mid: #E2B24E; --r-lo: #A97A22; --r-dark: #6E4C12; }
.lcd { font-family: "GX", monospace; letter-spacing: 1.5px; }
.ring { transform-box: fill-box; transform-origin: 50% 100%; }
.ring.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.sparkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.calc-form { display: grid; gap: 12px; align-content: center; }
.field > span, .lead-form label > span { display: block; margin-bottom: 5px; font-size: 13px; color: var(--muted); }
.calc input, .calc select, .lead-form input, .lead-form select {
  width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; -moz-appearance: textfield;
}
.calc input { text-align: left; }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input:focus, .calc select:focus, .lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 160, 82, .2); }
.calc select, .lead-form select { appearance: none; -webkit-appearance: none; padding-inline-end: 34px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23A9822F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 10px center / 18px no-repeat; }
.chips-k { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-k button { min-width: 42px; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s; }
.chips-k button:hover { border-color: var(--gold); }
.chips-k button.on { background: var(--gold); border-color: #B38C3D; color: #1A1610; font-weight: 700; }
.calc .chips-k input { width: 64px; height: 38px; font-size: 15px; text-align: center; }
.calc .chips-k input.on { border-color: #B38C3D; background: var(--gold-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out { display: flex; flex-direction: column; gap: 8px; }
.eq { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: background .4s; }
.eq.flash { background: var(--gold-soft); }
.eq .n { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--gold-soft); }
.eq > div { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; }
.eq small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.eq b { font-size: 17px; font-weight: 600; white-space: nowrap; }
.eq .f { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cs { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 600; }
.total { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--bar); color: #F1E6CC; }
.total small { display: block; font-size: 13px; color: #CBBFA8; }
.total b { font-size: 28px; font-weight: 700; color: #F3D486; white-space: nowrap; }
.fine { font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ---------- calculator: prices ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ticker { padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.t-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.t-head small { display: block; font-size: 13px; color: var(--muted); }
.t-head b { font-size: 30px; font-weight: 700; line-height: 1.4; }
.up { padding: 2px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ok); background: rgba(19, 120, 74, .09); white-space: nowrap; }
.chart { width: 100%; height: auto; margin: 8px 0 4px; overflow: visible; }
[data-theme="dark"] .chart g { stroke: rgba(246, 244, 239, .07); }
.t-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.t-foot span { display: inline-flex; align-items: center; gap: 6px; }
.t-foot svg.i { color: var(--accent); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 2px; font-size: 16.5px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 19px; line-height: 1; color: var(--accent); background: var(--gold-soft); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2px 18px; font-size: 15px; line-height: 2; color: var(--text-2); }
.faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- about and contact ---------- */
.board { display: inline-grid; justify-items: center; margin-top: 26px; padding: 18px 36px; border-radius: 16px; background: var(--bar); color: #F1E6CC; }
.board small { font-size: 13.5px; color: #CBBFA8; }
.board b { font-size: clamp(26px, 3vw, 36px); line-height: 1.6; color: #F3D486; }
.board span { font-size: 15px; color: #E7B95C; }
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; counter-reset: r; }
.road li { padding-top: 16px; border-top: 2px solid var(--gold); counter-increment: r; }
.road li::before { content: "0" counter(r); display: block; font-size: 13px; font-weight: 700; color: var(--accent); }
.road b { display: block; font-size: 17px; }
.road p { font-size: 14.5px; color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contacts { display: grid; gap: 12px; margin: 22px 0; }
.contacts a { display: inline-flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; }
.contacts a:hover { color: var(--accent); }
.ci { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--gold-soft); }
.ci svg.i { width: 22px; height: 22px; }
.qr { display: flex; align-items: center; gap: 16px; }
.qr-box { width: 112px; padding: 6px; border-radius: 12px; color: #1A1610; background: #fff; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr small { font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.lead-form { display: grid; gap: 12px; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lead-form h3 { font-size: 20px; line-height: 1.6; margin-bottom: 2px; }
.lead-form input::placeholder { color: #A79D8B; }
.lead-form input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(194, 52, 52, .12); }
.lead-form .btn { margin-top: 4px; width: 100%; }
.mail-alt { text-align: center; font-size: 13.5px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.form-msg { min-height: 1em; font-size: 13.5px; text-align: center; color: var(--bad); }
.form-msg.ok { color: var(--ok); }

/* ---------- footer ---------- */
.foot { background: var(--bar); color: #CBBFA8; padding: 44px 0 0; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand img { width: 160px; margin-bottom: 8px; }
.foot-brand p { font-size: 14px; line-height: 2; }
.foot-brand b { color: #E7B95C; font-weight: 600; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.foot-links a, .foot-contact a { font-size: 14.5px; color: #E9E1D2; }
.foot-links a:hover, .foot-contact a:hover { color: #F3D486; }
.foot-contact { display: grid; gap: 10px; }
.foot-contact a { display: inline-flex; align-items: center; gap: 10px; }
.foot-contact svg.i { color: #E7B95C; }
.copy { margin-top: 32px; padding-block: 18px; text-align: center; font-size: 13px; color: #8F8676; border-top: 1px solid rgba(255, 255, 255, .07); }
.wa-fab { position: fixed; left: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25D366; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35); }
.wa-fab svg.i { width: 28px; height: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-art { grid-column: 1 / -1; min-height: 260px; }
  .calc-art svg { max-width: 360px; }
  .node { width: 190px; padding: 8px 10px; }
  .node small { display: none; }
  .n-ic { grid-row: auto; width: 34px; height: 34px; }
}
@media (max-width: 980px) {
  .links { display: none; }
  .burger { display: block; }
  .theme { margin-inline-start: auto; }
  .nav.open .links { display: flex; position: absolute; top: var(--nav-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px 16px 18px; background: var(--bar); border-bottom: 1px solid rgba(199, 160, 82, .35); }
  .nav.open .links a:not(.btn) { padding: 12px 10px; font-size: 16px; }
  .nav.open .links a.cur::after { display: none; }
  .nav.open .only-menu { display: inline-flex !important; margin-top: 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .facts { justify-content: center; }
  .hero-visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .ba { grid-template-columns: 1fr; }
  .stories, .explore, .plain-grid { grid-template-columns: 1fr 1fr; }
  .row, .sale-grid, .price-grid, .pane, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .row:nth-child(even) .row-text { order: 0; }
  .pane-text { text-align: center; }
  .pane-text .ticks { display: inline-block; text-align: start; }
  .modes { grid-template-columns: 1fr; justify-items: center; }
  .mode { width: 100%; }
  .switch { transform: rotate(90deg); margin: -2px 0; }
  .road { grid-template-columns: 1fr 1fr; gap: 26px 28px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sysmap { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sys-lines { display: none; }
  .hub { position: relative; left: auto; top: auto; translate: none; grid-column: 1 / -1; justify-self: center; width: 170px; margin-bottom: 8px; }
  .node { position: relative; left: auto; top: auto; translate: none; width: auto; }
  .node small { display: block; grid-column: 2; }
  .n-ic { grid-row: span 2; }
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .tabs button svg.i { display: none; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .wrap { padding-inline: 18px; }
  .brand img { height: 40px; }
  .hide-sm { display: none; }
  .hero h1 { font-size: 29px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-visual { padding: 18px 0 18px 14px; }
  .stories, .explore, .plain-grid, .road { grid-template-columns: 1fr; }
  .sysmap { grid-template-columns: 1fr; }
  .row-media.shots { padding: 0 0 28px 24px; }
  .row-media.art { padding: 18px; min-height: 0; }
  .calc { grid-template-columns: 1fr; padding: 14px; }
  .total b { font-size: 24px; }
  .mode { flex-direction: column; text-align: center; }
  .mode svg { width: 78%; }
  .phones { gap: 8px; }
  .phone.big { width: 240px; }
  .lead-form { padding: 18px; }
  .lead-form .two { grid-template-columns: 1fr; }
  .contacts a { font-size: 16px; }
  .board { padding: 14px 22px; }
  .cta-band-actions .btn { flex: 1 1 100%; }
  .cta-band { background: linear-gradient(rgba(32, 31, 29, .78), rgba(32, 31, 29, .92)), url("img/photo-shop.webp") left center / cover no-repeat, #201F1D; }
  .ph-ring { text-align: center; background: linear-gradient(rgba(19, 18, 15, .55), rgba(19, 18, 15, .82)), url("img/photo-ring.webp") 30% center / cover no-repeat, #13120F; }
  .foot-in { grid-template-columns: 1fr; }
  .foot { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .strike-title s::after { transform: scaleX(1); }
}
