:root {
  color-scheme: light;
  --night: #11172a;
  --ink: #141c32;
  --muted: #4c5971;
  --paper: #f5f6fa;
  --white: #fff;
  --line: #dce1ed;
  --accent: #334bd0;
  --accent-dark: #2739a9;
  --light-blue: #b9c6ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.3rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.58 system-ui, sans-serif; }
:root[dir=rtl] body { font-family: Tahoma, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
select { font: inherit; }
select { cursor: pointer; }
:focus-visible { outline: 3px solid #5773ff; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; inset: .7rem auto auto 1rem; z-index: 3; background: white; padding: .6rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; background: var(--accent); color: white; font: 850 .95rem/1 system-ui,sans-serif; letter-spacing: -.055em; }
nav, .header-actions, .hero-actions { display: flex; align-items: center; gap: 1.25rem; }
nav { color: var(--muted); font-weight: 650; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: .6rem 1.15rem; text-align: center; border: 1px solid transparent; border-radius: 7px; color: white; background: var(--accent); font-weight: 740; }
.button:hover { background: var(--accent-dark); }
.header-cta { min-height: 41px; font-size: .9rem; }
.language { position: relative; }
.language::after { content: ""; position: absolute; width: .44rem; height: .44rem; border-inline-end: 2px solid; border-bottom: 2px solid; transform: translateY(-70%) rotate(45deg); top: 50%; inset-inline-end: .9rem; pointer-events: none; }
[dir=rtl] .language::after { transform: translateY(-70%) rotate(-45deg); }
select { appearance: none; border: 1px solid #c8d1e1; border-radius: 7px; background: white; min-height: 43px; color: var(--ink); padding: .5rem 2rem .5rem .75rem; padding-inline: .75rem 2rem; }
.language select { font-size: .9rem; font-weight: 650; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 570px; color: #fff; background: var(--night); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: url(hero.webp) 100% 54% / auto 126% no-repeat; }
[dir=rtl] .hero::before { transform: scaleX(-1); }
.hero::after { background: linear-gradient(90deg,#11172a 4%,#11172af0 28%,#11172a53 59%,#11172a00 88%); }
[dir=rtl] .hero::after { background: linear-gradient(270deg,#11172a 4%,#11172af0 28%,#11172a53 59%,#11172a00 88%); }
.hero-inner { padding-block: 5rem; }
.hero-copy { max-width: 690px; }
h1,h2,h3,h4,p { margin: 0; }
h1 { font-size: clamp(3rem, 6.2vw, 5.65rem); font-weight: 760; line-height: 1.05; letter-spacing: -.076em; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--light-blue); }
[dir=rtl] h1 { font-size: clamp(2.6rem, 5.45vw, 5.1rem); line-height: 1.22; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] h4 { letter-spacing: normal; }
.hero p { color: #dce3f7; margin-block: 1.35rem 1.85rem; max-width: 30rem; font-size: 1.1rem; }
.hero-actions { gap: .65rem; flex-wrap: wrap; }
.light { background: #c6d0ff; color: #182453; }
.light:hover { background: #e0e5ff; }
.ghost { background: #11172a3d; border-color: #c1ccea80; }
.ghost:hover { background: #283351; }
.services-section, .process-section, .contact-section { padding-block: clamp(3.35rem, 7vw, 6.25rem); }
.section-heading { margin-bottom: 1.8rem; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); font-weight: 760; line-height: 1.14; letter-spacing: -.06em; }
.section-heading p, .contact-copy p { margin-top: .65rem; max-width: 38rem; color: var(--muted); }
.service-group + .service-group { margin-top: clamp(1.65rem, 4vw, 2.6rem); }
.service-group .group-title { margin-bottom: .8rem; font-size: 1.15rem; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: clamp(1.1rem, 2.4vw, 1.85rem); border: 1px solid var(--line); border-radius: 13px; background: white; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #edf0ff; color: #344bc5; border-radius: 10px; font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
h3,h4 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -.035em; }
.service p { color: var(--muted); margin-top: .6rem; }
ul { margin-block: .8rem 1.2rem; padding-inline-start: 1.2rem; }
li::marker { color: var(--accent); }
.process-section { background: #e9edfa; }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.step { padding-block: 1.05rem 0; border-top: 2px solid #acb8e9; }
.step p { margin-top: .5rem; color: var(--muted); }
.contact-section { background: var(--night); color: white; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.25rem, 5vw, 4rem); align-items: start; }
.contact-copy p { color: #dce3f7; }
.contact-form { display: grid; gap: .9rem; }
.contact-form label { display: grid; gap: .4rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid #a8b6d4;
  border-radius: .55rem;
  padding: .7rem .85rem;
  background: #fff;
  color: var(--night);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-status { color: #dce3f7; margin: 0; }
.contact-extra[hidden], .contact-status[hidden] { display: none; }
.mobile-contact { display: none; }
footer { background: white; }
.footer-inner { min-height: 84px; }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 2.5rem); }
  .services-grid { gap: .7rem; }
  .hero::before { background-position: 70% 50%; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem 1rem; padding-block: .7rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-inner nav { grid-column: 1/-1; grid-row: 2; flex-wrap: wrap; gap: .45rem 1.15rem; border-top: 1px solid var(--line); padding-top: .35rem; }
  nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .header-cta { display: none; }
  nav .mobile-contact { display: inline-flex; }
  .hero { min-height: 480px; }
  .hero-inner { padding-block: 4rem; }
  .hero::before { background-size: auto 100%; background-position: 58% 50%; }
  .hero::after, [dir=rtl] .hero::after { background: linear-gradient(0deg,#11172aef,#11172aad 64%,#11172a69); }
  .services-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.service-demo { margin-block-start: auto; }

.agency-inbox { padding-block: 2rem; }
.agency-inbox h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin-block: 1rem; }
.agency-inbox article { border-block-start: 1px solid #bcc7df; padding-block: 1rem; }
.agency-inbox article h2 { font-size: 1.25rem; }
.agency-inbox article p { text-align: start; color: var(--muted); }
.agency-inbox nav { display: flex; gap: 1rem; }
.inquiry-message { white-space: pre-wrap; overflow-wrap: anywhere; }
