@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria/alexandria-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria/alexandria-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #f5620e;
  --brand-dark: #d9520a;
  --brand-soft: #fff1e8;
  --brand-line: #fbd3bb;
  --dark: #120f1d;
  --ink: #12172b;
  --ink-2: #5d6478;
  --ink-3: #8d93a5;
  --line: #e7e9ef;
  --bg: #ffffff;
  --soft: #f4f5f8;
  --font: "Alexandria", system-ui, "Segoe UI", Tahoma, sans-serif;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 84px;
  --section: clamp(72px, 9vw, 120px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.9; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 300; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px; font-size: 0.98rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #2a2540; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; }

.pill { display: inline-block; padding: 3px 14px; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.85rem; font-weight: 500; }

/* Top bar + header */
.topbar { background: var(--brand); color: #fff; font-size: 0.85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 28px; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; }
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 34px; margin-inline-start: auto; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: 20px; }
.lang { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.lang:hover { color: var(--brand); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { position: relative; display: block; width: 18px; height: 2px; background: var(--ink); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--ink); transition: transform 0.2s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(64px, 9vw, 128px) clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.hero-center { text-align: center; }
.hero h1 { max-width: 920px; margin-inline: auto; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { margin: 26px auto 0; max-width: 640px; font-size: 1.1rem; line-height: 2; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: clamp(48px, 6vw, 72px) auto 0; }
.hero-services li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.hero-services svg { width: 18px; height: 18px; color: var(--brand); }

/* Sections */
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.head-center { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.head-center p { margin-top: 14px; color: var(--ink-2); }
.title { margin-top: 14px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-art { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: center; display: grid; place-items: center; }
.about-art span { position: absolute; border-radius: 50%; }
.about-art .r1 { inset: 0; background: #fff8f3; }
.about-art .r2 { inset: 12%; background: #ffeee2; }
.about-art .r3 { inset: 25%; background: #fff; border: 1px solid var(--brand-line); }
.about-art img { position: relative; width: 34%; }
.about-copy p { margin-top: 20px; color: var(--ink-2); line-height: 2; }
.about-points { margin-top: 28px; display: grid; gap: 12px; }
.about-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about-points li::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9520a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.2s; }
.service:hover { border-color: var(--brand-line); }
.service .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.service .ic svg { width: 24px; height: 24px; }
.service h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 700; }
.service p { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.9; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { position: relative; padding: 30px 26px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1rem; }
.step h3 { margin-top: 22px; font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.step p { margin-top: 12px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.95; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq-side p { margin-top: 16px; color: var(--ink-2); max-width: 380px; }
.faq-side .btn { margin-top: 28px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 28px 24px; color: var(--ink-2); line-height: 1.95; }

/* CTA */
.cta-box { padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: 18px; background: var(--dark); color: #fff; text-align: center; }
.cta-box h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.35; font-weight: 700; }
.cta-box p { margin: 16px auto 0; max-width: 620px; color: rgba(255,255,255,.66); line-height: 2; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-box .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta-box .btn-light:hover { border-color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 340px; color: var(--ink-2); line-height: 1.95; }
.footer-col h3 { font-size: 0.85rem; font-weight: 500; color: var(--ink-3); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
.footer-bottom .contacts { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom .contacts a, .footer-bottom .contacts span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.footer-bottom svg { width: 16px; height: 16px; color: var(--ink-3); }
.footer-bottom .brand-name { color: var(--brand); }

/* Page hero (products + 404) */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); text-align: center; }
.page-hero h1 { margin-top: 16px; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.25; font-weight: 700; }
.page-hero p { margin: 18px auto 0; max-width: 640px; color: var(--ink-2); line-height: 2; }

.link { font-weight: 600; color: var(--brand-dark); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* LTR */
[dir="ltr"] body { line-height: 1.7; }
[dir="ltr"] .hero h1, [dir="ltr"] .title, [dir="ltr"] .page-hero h1, [dir="ltr"] .cta-box h2 { line-height: 1.15; letter-spacing: -0.025em; }
[dir="ltr"] .hero-lead, [dir="ltr"] .about-copy p, [dir="ltr"] .step p, [dir="ltr"] .faq details p, [dir="ltr"] .service p, [dir="ltr"] .cta-box p { line-height: 1.75; }

/* Responsive */
@media (max-width: 1024px) {
  .nav { gap: 22px; }
  .services, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .topbar-tag { display: none; }
  .topbar-inner { justify-content: center; }
  .brand img { height: 38px; }
  .menu-btn { display: inline-flex; }
  .header-tools .btn { display: none; }
  .header-tools { margin-inline-start: auto; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .about, .faq-wrap { grid-template-columns: 1fr; }
  .about-art { max-width: 320px; }
}
@media (max-width: 640px) {
  .topbar-info { gap: 16px; font-size: 0.8rem; }
  .services, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .hero-services li { padding: 7px 14px; font-size: 0.85rem; }
  .faq summary { padding: 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
}

/* Products page */
.apps-list { padding-bottom: 0; }
.apps-list .container { display: grid; gap: 28px; }
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.app-face { display: grid; place-items: center; min-height: 340px; padding: 48px; }
.app-face img { width: min(340px, 80%); height: auto; }
.app-body { padding: clamp(32px, 4vw, 52px); align-self: center; }
.app-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.3; }
.app-tag { margin-top: 6px; color: var(--brand-dark); font-weight: 600; }
.app-body > p:not(.app-tag) { margin-top: 16px; color: var(--ink-2); line-height: 2; }
.app-points { margin-top: 22px; display: grid; gap: 10px; }
.app-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.95rem; }
.app-points li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 2px; background: var(--brand); }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-face { min-height: 220px; padding: 36px; }
}
.footer-bottom .contacts .social { color: var(--ink-3); }
.footer-bottom .contacts .social:hover { color: var(--brand); }
.footer-bottom .contacts .social svg { width: 20px; height: 20px; color: inherit; }


/* Brand arrow cursor */
html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3l18 9.5-7.6 2.2L11 22z' fill='%23f5620e' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto; }
