:root {
  color-scheme: dark;
  --page: #131d59;
  --ink: #f5f8ff;
  --muted: #d0daff;
  --accent: #a6caff;
  --gutter: clamp(16px, 4vw, 42px);
  font-family: Geist, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  overflow-anchor: none;
  overscroll-behavior-y: none;
  scroll-padding-top: 78px;
  scrollbar-width: none;
}
:root::-webkit-scrollbar { display: none; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 7% 2%, #728dff, transparent 50%),
    radial-gradient(ellipse at 85% 75%, #5244a4, transparent 60%), #172d85;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
button, label, input[type="range"] { -webkit-tap-highlight-color: transparent; }
button, a, input[type="range"] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: #101b54; background: var(--accent); }
#aura { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; visibility: hidden; }
#aura[data-ready] { visibility: visible; }
.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(rgb(11 18 64 / .58), transparent);
  pointer-events: none;
}
.wordmark { font-family: Doto, 'Courier New', monospace; font-weight: 900; font-variation-settings: 'ROND' 100; }
.header-brand { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 44px;
  font: 700 30px/1 Geist, Arial, sans-serif; letter-spacing: -.045em; pointer-events: auto; }
.header-brand img { display: block; width: 34px; height: auto; }
.site-nav, .contacts, .languages { display: flex; align-items: center; }
.site-nav { gap: 16px; }
.site-nav :is(a, button), .menu-toggle { pointer-events: auto; }
.contact, .languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.site-nav :is(a, button):hover { background: rgb(230 239 255 / .13); }
.site-nav :is(a, button):active { background: rgb(230 239 255 / .25); }
.contact-email, .mail-options button { border: 0; background: transparent; color: inherit; }
.menu-toggle {
  display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; color: var(--ink); background: rgb(14 23 76 / .58);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle[aria-expanded=true] { background: rgb(222 233 255 / .21); }
.mail-group { position: relative; }
.mail-options {
  position: absolute; z-index: 1; top: calc(100% + 6px); right: 0; display: grid;
  min-width: 192px; padding: 5px; border-radius: 15px; background: rgb(16 24 68 / .95);
  box-shadow: 0 10px 28px #060d3f5c; pointer-events: auto;
  opacity: 1; translate: 0 0; visibility: visible; transition: opacity .2s ease, translate .2s ease, visibility .2s;
}
.mail-options[inert] { opacity: 0; translate: 0 -6px; visibility: hidden; pointer-events: none; }
.mail-options :is(button, a) { display: flex; align-items: center; min-height: 42px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 13px; }
.email-status:not([data-manual]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.email-status[data-manual] { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.contact-call { background: rgb(231 240 255 / .11); padding-inline: 14px; margin-inline-start: 4px; }
.contact [data-dot-icon], .contact svg { display: block; width: 17px; height: 17px; }
.languages { color: var(--muted); gap: 1px; }
.languages a { font: 800 14px Doto, monospace; }
.languages [aria-current] { color: var(--ink); font-weight: 700; }
.languages > span { opacity: .6; }
#cycle { position: relative; padding-block: var(--runway, 0px); }
#cycle > section { position: relative; }
.hero {
  min-height: 100lvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 84px var(--gutter) 52px;
  text-align: center;
}
.hero-mark { width: 88px; height: auto; margin-bottom: 15px; }
h1, h2, h3, p { margin: 0; }
.hero h1 {
  font-size: 90px;
  line-height: 1;
  text-shadow: 0 1px 16px #18225e;
}
.hero h1 > span { display: block; min-width: 2.25em; text-align: center; translate: 4px 0; }
.hero-intro { max-width: 415px; margin-top: 26px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.hero-intro span { display: block; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 360px); gap: 8px; margin-top: 23px; }
.portfolio-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 5px; border-radius: 999px;
  background: rgb(14 23 84 / .52); font-size: clamp(12px, 3.6vw, 14px); font-weight: 600; white-space: nowrap; transition: background-color .2s ease; }
.hero-arrow { width: 16px; height: 16px; flex: none; }
.portfolio-button:hover { background: rgb(36 49 115 / .88); }
.portfolio-button.is-primary { background: var(--ink); color: #141e53; }
.portfolio-button.is-primary:hover { background: #d7e6ff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#dot-field { display: block; width: 100%; height: max(100lvh, 48vw); }
.dot-call { position: absolute; top: var(--dot-call-top, 50%); left: 50%;
  translate: -50% 0; width: 168px; height: 46px; border-radius: 999px; pointer-events: none; }
.dot-section[data-call-ready] .dot-call { pointer-events: auto; }
.dot-section[data-call-ready] .dot-call:hover { box-shadow: 0 0 22px #b3c8ff70; }
.booking-dialog { width: min(860px, calc(100% - 22px)); height: min(600px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: #101638;
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .26s ease, transform .26s ease, display .26s allow-discrete, overlay .26s allow-discrete; }
.booking-dialog[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
.booking-dialog::backdrop { background: #080f3200; backdrop-filter: blur(0); transition: background .26s ease, backdrop-filter .26s ease; }
.booking-dialog[open]::backdrop { background: #080f32bd; backdrop-filter: blur(8px); }
@starting-style {
  .booking-dialog[open] { opacity: 0; transform: translateY(14px) scale(.98); }
  .booking-dialog[open]::backdrop { background: #080f3200; backdrop-filter: blur(0); }
}
.booking-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 14px 7px 18px; }
.booking-header h2 { font-size: clamp(15px, 3vw, 20px); }
.booking-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffffff16; font-size: 24px; }
.booking-close:hover { background: #ffffff28; }
.booking-body { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-inline: 12px; }
.booking-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; }
.booking-frame iframe { display: block; margin-inline: auto; }
.booking-external { align-self: flex-end; padding: 14px 18px; font-size: 13px; color: var(--muted); text-decoration: underline; }
html:has(.booking-dialog[open]) { overflow: hidden; }
@media (max-width: 700px) {
  .site-header { gap: 4px; padding-inline: max(9px, env(safe-area-inset-left)) max(9px, env(safe-area-inset-right)); }
  .menu-toggle { display: grid; }
  .site-nav {
    position: absolute; inset: 100% max(9px, env(safe-area-inset-right)) auto auto; width: min(256px, calc(100% - 18px));
    display: grid; gap: 5px; max-height: calc(100dvh - 90px); overflow: auto; padding: 8px;
    background: rgb(16 24 68 / .95); border-radius: 19px; box-shadow: 0 14px 35px #050d3b6b;
    pointer-events: auto; opacity: 1; translate: 0 0; visibility: visible; transition: opacity .2s ease, translate .2s ease, visibility .2s;
  }
  .site-nav[inert] { pointer-events: none; opacity: 0; translate: 0 -8px; visibility: hidden; }
  .contacts { display: grid; gap: 2px; }
  .contacts .contact { justify-content: flex-start; width: 100%; padding-inline: 12px; border-radius: 11px; margin: 0; }
  .languages { justify-content: center; border-top: 1px solid #d7e6ff28; }
  .mail-options { position: relative; inset: auto; min-width: 0; padding: 0; margin-inline: 9px; max-height: 150px; overflow: hidden;
    box-shadow: none; border-radius: 11px; background: rgb(223 234 255 / .08); transition: max-height .23s ease, opacity .2s ease, translate .2s ease, visibility .2s; }
  .mail-options[inert] { max-height: 0; }
}
@media (max-width: 420px) {
  .hero-intro { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .booking-dialog::backdrop { transition: none; }
}

.about-section { width:min(952px, calc(100% - 2 * var(--gutter))); margin:0 auto; padding-bottom:clamp(76px,12vw,142px);
 display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(28px,6vw,76px); align-items:start; }
.about-eyebrow { font-size:11px; letter-spacing:.13em; text-transform:uppercase; opacity:.65; }
.about-intro h2 { margin:12px 0; max-width:16ch; font-size:clamp(26px,3.3vw,38px); line-height:1.1; letter-spacing:-.035em; }
.about-intro p { margin:0; max-width:43ch; font-size:15px; line-height:1.65; color:#e0e7ff; }
.about-offer { padding:24px; border:1px solid #ffffff40; border-radius:24px; background:#eff3ff16; backdrop-filter:blur(18px); }
.about-offer h3 { font-size:16px; margin:0 0 16px; }
.about-offer ul { list-style:none; padding:0; margin:0; display:grid; gap:13px; font-size:14px; line-height:1.45; }
.about-offer li { padding-left:16px; position:relative; }
.about-offer li::before { content:''; position:absolute; left:0; top:.55em; width:4px; height:4px; border-radius:50%; background:#c3d8ff; }
.about-contact { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin-top:20px; padding:10px 14px; border-radius:13px; background:#eff3ff; color:#1d3069; font-size:13px; font-weight:600; }
.dot-call { left:calc(50% - 80px); width:148px; }
.dot-telegram { position:absolute; top:var(--dot-call-top,50%); left:calc(50% + 6px);
 width:148px; height:46px; border:0; border-radius:999px; background:transparent; pointer-events:none; }
.dot-section[data-call-ready] .dot-telegram { pointer-events:auto; }
.dot-section[data-call-ready] .dot-telegram:hover { box-shadow:0 0 22px #b3c8ff70; }
@media(max-width:700px) { .about-section { width:calc(100% - 40px); grid-template-columns:1fr; gap:24px; } .about-offer { padding:20px; } }

/* On phones both particle buttons stay inside the taller ring. */
@media(max-width:520px) {
 .dot-call, .dot-telegram { left:50%; translate:-50% 0; width:168px; }
 .dot-telegram { top:calc(var(--dot-call-top,50%) + 58px); }
}

.about-booking-pitch { margin:20px 0 0; padding-top:18px; border-top:1px solid #ffffff30; color:#e0e7ff; font-size:13px; line-height:1.55; }
.about-booking { margin-top:16px; }
.about-contact.is-secondary { margin-top:8px; background:#ffffff12; color:#eff3ff; border:1px solid #ffffff40; }
.about-contact.is-secondary:hover { background:#ffffff25; }
.dot-call { width:200px; }
.dot-telegram { left:calc(50% + 32px); }
@media(max-width:520px) {
 .dot-call, .dot-telegram { left:50%; width:190px; }
}
