:root {
  color-scheme: light dark;
  --bg: #f3f6fb;
  --ink: #12151c;
  --muted: #7d8796;
  --card: #ffffff;
  --line: #e6ebf2;
  --blue: #2f6bff;
  --shadow: 0 10px 28px rgba(28, 52, 96, 0.06);
  --shadow-lg: 0 16px 40px rgba(28, 52, 96, 0.12);
  --chip: #f2f4f8;
  --on: #111318;
  --on-ink: #ffffff;
  --art: #f4f6fa;
  --nav: #3c4656;
  --glass: rgba(255, 255, 255, 0.34);
  --glass-line: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 12px 40px rgba(40, 70, 140, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --glass-btn: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] {
  color-scheme: light dark;
  --bg: #f3f6fb;
  --ink: #12151c;
  --muted: #7d8796;
  --card: #ffffff;
  --line: #e6ebf2;
  --blue: #2f6bff;
  --shadow: 0 10px 28px rgba(28, 52, 96, 0.06);
  --shadow-lg: 0 16px 40px rgba(28, 52, 96, 0.12);
  --chip: #f2f4f8;
  --on: #111318;
  --on-ink: #ffffff;
  --art: #f4f6fa;
  --nav: #3c4656;
  --glass: rgba(255, 255, 255, 0.34);
  --glass-line: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 12px 40px rgba(40, 70, 140, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --glass-btn: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] {
  color-scheme: light dark;
  --bg: #0e1218;
  --ink: #f2f5f8;
  --muted: #9aa6b6;
  --card: #171d27;
  --line: #2a3342;
  --blue: #7aa2ff;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --chip: #222a36;
  --on: #f4f7fb;
  --on-ink: #12151c;
  --art: #121820;
  --nav: #d5dde8;
  --glass: rgba(16, 22, 34, 0.38);
  --glass-line: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --glass-btn: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 88% -6%, rgba(120, 176, 255, 0.95), transparent 68%),
    radial-gradient(480px 340px at 104% 22%, rgba(186, 160, 255, 0.7), transparent 70%),
    radial-gradient(700px 320px at 0% 110%, rgba(140, 190, 255, 0.75), transparent 72%),
    radial-gradient(560px 280px at 82% 118%, rgba(210, 180, 255, 0.65), transparent 70%);
}

html[data-theme="dark"] .wash {
  background:
    radial-gradient(520px 360px at 92% -4%, rgba(47, 90, 180, 0.35), transparent 68%),
    radial-gradient(640px 280px at 8% 108%, rgba(70, 90, 160, 0.28), transparent 72%);
}

.sheet {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--card);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  min-height: 58px;
  padding: 8px 8px 8px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(32px) saturate(1.9);
  -webkit-backdrop-filter: blur(32px) saturate(1.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  flex: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 16px;
}

.nav > a {
  color: var(--nav);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.15s ease, transform 0.12s ease;
}

.nav > a:hover { color: var(--ink); }

.nav > a:active { transform: scale(0.96); }

.login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px !important;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-btn);
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.login:hover { background: var(--chip); }

.login:active {
  transform: scale(0.96);
  box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.12);
}

button.login {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-btn);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}

.seg button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.seg button.is-on {
  background: var(--on);
  color: var(--on-ink);
  box-shadow: 0 4px 12px rgba(17, 19, 24, 0.18);
}

.seg button:hover:not(.is-on) { color: var(--ink); }

.seg button:active { transform: scale(0.94); }

.hero { margin: 42px 4px 28px; }

.hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero h1 .name { color: var(--blue); }

button.login.is-user {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  justify-content: center;
  gap: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

button.login.is-user:hover,
button.login.is-user:active {
  background: transparent;
  box-shadow: none;
}

button.login.is-user img,
button.login .avatar {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

button.login .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

html[dir="rtl"] .arr {
  transform: rotate(-135deg);
}

h2 {
  margin: 0 0 12px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.services ul,
.grid,
.gta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.services ul { grid-template-columns: 1fr; }

.svc,
.tile,
.panel {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
}

.svc {
  position: relative;
  border-radius: 18px;
  padding: 16px 16px 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.svc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.svc:active { transform: scale(0.985); }

.hit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.hit img {
  grid-column: 1;
  display: block;
  width: auto;
  max-width: 210px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.hit img.for-dark { display: none; }

.copy { grid-column: 1; margin-top: 8px; }

.copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.go {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc:hover .go {
  transform: translateX(3px);
  background: var(--chip);
  color: var(--ink);
}

.sub {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

a.sub { text-decoration: underline; text-underline-offset: 2px; }

a.sub:hover { color: var(--ink); }

.play { margin-top: 28px; }

.panel {
  border-radius: 22px;
  padding: 14px 14px 6px;
}

.kicker {
  display: inline-block;
  margin: 2px 6px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.kicker:hover { color: var(--ink); }

.gta { grid-template-columns: 1fr; }

.gta a,
.tile {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  padding: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.panel .gta a {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px;
}

.gta img,
.art {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--art);
}

.art {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.art img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 84%;
  object-fit: contain;
}

.tile.photo .art img,
.tile.dark .art img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.tile.dark .art { background: #141414; }

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px 4px;
}

.meta strong {
  font-size: 14.5px;
  font-weight: 600;
  min-width: 0;
}

.arr {
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--muted);
  border-top: 1.8px solid var(--muted);
  transform: rotate(45deg);
  flex: none;
  margin-right: 4px;
  transition: transform 0.16s ease;
}

.gta a:hover,
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.panel .gta a:hover { box-shadow: none; transform: translateY(-2px); }

.gta a:hover .arr,
.tile:hover .arr { transform: rotate(45deg) translate(2px, -2px); }

.gta a:active,
.tile:active,
.svc:active { transform: scale(0.98); }

.grid { margin-top: 14px; }

.foot {
  margin: 28px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.foot a { color: inherit; }

body.login-open { overflow: hidden; }

.pop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(18, 28, 48, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pop.is-on { display: grid; }

.pop-card {
  width: min(340px, 100%);
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.pop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 8px 16px;
}

.pop-bar strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.pop-note {
  margin: 0;
  padding: 0 16px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.pop-note[hidden] { display: none; }

.pop-x {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--glass-btn);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.pop-x:hover { background: var(--chip); }

.pop-x:active { transform: scale(0.96); }

.pop-card iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  background: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection { background: #d5e4ff; color: #12151c; }

html[data-theme="dark"] ::selection { background: #243656; color: #f2f5f8; }

html[data-theme="dark"] .svc img.for-light,
html[data-theme="dark"] .hit img.for-light { display: none; }

html[data-theme="dark"] .svc img.for-dark,
html[data-theme="dark"] .hit img.for-dark { display: block; }

@media (min-width: 720px) {
  .services ul,
  .gta { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .hero h1 { font-size: 52px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .top {
    border-radius: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav { justify-content: flex-start; }
}

@media (max-width: 719px) {
  .sheet { width: min(1080px, calc(100% - 20px)); }

  .top {
    border-radius: 22px;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .nav { justify-content: flex-start; }

  .hero { margin-top: 28px; }

  .hero h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

