/* SWS visual system – light theme, motion, product UI */

:root {
  --navy: #0b1f3a;
  --navy-2: #123056;
  --navy-3: #1a4068;
  --blue: #1a8cff;
  --blue-2: #3db4ff;
  --violet: #6b5cff;
  --blue-soft: #e8f3ff;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #162033;
  --muted: #4d5d73;
  --line: #d7e3f0;
  --ok: #1a7a4c;
  --warn: #9a6b00;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(11, 31, 58, 0.08);
  --max: 1120px;
  --header-h: 60px;
  --header-bg: rgba(255, 255, 255, 0.72);
  --glow: rgba(26, 140, 255, 0.35);
  --grid: rgba(18, 48, 86, 0.06);
  --input-bg: #fff;
  --input-border: #b9c9db;
  --logo-light: none;
  --logo-dark: block;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans", "Liberation Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(700px 280px at 8% -8%, rgba(26, 140, 255, 0.16), transparent 60%),
    radial-gradient(560px 240px at 92% 8%, rgba(107, 92, 255, 0.12), transparent 55%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.float-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.float-dots span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.35;
  animation: floaty 14s linear infinite;
}

.float-dots span:nth-child(2) { left: 18%; top: 40%; animation-duration: 18s; background: var(--violet); }
.float-dots span:nth-child(3) { left: 72%; top: 22%; animation-duration: 16s; }
.float-dots span:nth-child(4) { left: 88%; top: 70%; animation-duration: 20s; background: var(--violet); }
.float-dots span:nth-child(1) { left: 8%; top: 18%; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #0b1f3a;
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: min-height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-compact {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}

.site-header.is-compact .header-inner {
  min-height: 52px;
}

.site-header.is-compact .logo img {
  height: 36px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-h);
  gap: 12px;
  flex-wrap: nowrap;
}

.wrap.header-inner {
  width: min(1360px, calc(100% - 24px));
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo img,
.footer-logo img {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(168px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-logo img {
  height: 56px;
  max-width: min(280px, 100%);
}

.logo-on-dark { display: none; }
.logo-on-light { display: block; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.burger {
  width: 16px;
  height: 12px;
  display: grid;
  gap: 3px;
}

.burger i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  flex-wrap: nowrap;
}

.site-nav .logo,
.site-nav .nav-logo,
.site-nav .footer-logo {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
}

.site-nav li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.86rem;
  position: relative;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 2px;
}

.btn-inquiry {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.86rem;
}

.site-nav .header-tools {
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(120deg, #2a98ff, #5b6dff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 140, 255, 0.28);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--blue);
}

.btn-download {
  background: linear-gradient(180deg, #19c37e, #0f9a62);
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 154, 98, 0.28);
}

.btn-download:hover { color: #fff; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lead,
.hero-copy .hero-actions,
.hero-copy .meta-row {
  animation: rise 0.7s ease both;
}

.hero-copy h1 { animation-delay: 0.08s; }
.hero-copy .lead { animation-delay: 0.16s; }
.hero-copy .hero-actions { animation-delay: 0.24s; }
.hero-copy .meta-row { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  transform-style: preserve-3d;
}

.hero-scene {
  width: 100%;
  height: auto;
}

.hero-scene .pulse {
  animation: dash 8s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -220; }
}

.code-window {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: min(260px, 70%);
  background: #0b1f3a;
  color: #cfe6ff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.28);
  font-family: ui-monospace, "Liberation Mono", monospace;
  font-size: 0.72rem;
  transform: translateZ(24px);
}

.code-window strong {
  display: block;
  color: #8ad0ff;
  margin-bottom: 6px;
}

.code-window .line { opacity: 0; animation: typein 4.8s ease infinite; }
.code-window .line:nth-child(2) { animation-delay: 0.4s; }
.code-window .line:nth-child(3) { animation-delay: 0.9s; }
.code-window .line:nth-child(4) { animation-delay: 1.4s; color: #7dffa8; }

@keyframes typein {
  0%, 8% { opacity: 0; }
  18%, 80% { opacity: 1; }
  100% { opacity: 0.35; }
}

section { padding: 56px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.muted { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-left { transform: translateX(-18px); }
.reveal-right { transform: translateX(18px); }
.reveal-left.is-in,
.reveal-right.is-in { transform: none; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 16px 36px var(--glow);
}

.card img.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.card:hover img.icon {
  transform: translateY(-3px) rotate(-6deg);
}

.card a.more,
.btn-more {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  margin-top: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  opacity: 0.45;
}

.t-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}

.t-step .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  margin-bottom: 10px;
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.t-step h3 { font-size: 0.98rem; }
.t-step p { display: none; margin: 0; color: var(--muted); font-size: 0.9rem; }
.t-step.is-on,
.t-step:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 24px var(--glow);
}

.t-step.is-on p,
.t-step:hover p,
.t-step:focus-visible p { display: block; }

.why-list,
.region-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li,
.region-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
}

.ring circle {
  fill: none;
  stroke-width: 7;
}

.ring .track { stroke: var(--line); }
.ring .bar {
  stroke: url(#metricGrad);
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.metric.is-in .bar { animation: fillring 1.1s ease forwards; }
.metric:nth-child(2) .bar { animation-delay: 0.1s; }
.metric:nth-child(3) .bar { animation-delay: 0.2s; }
.metric:nth-child(4) .bar { animation-delay: 0.3s; }

@keyframes fillring {
  to { stroke-dashoffset: 48; }
}

.picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.picker-options button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.picker-options button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--navy);
}

.picker-out {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  min-height: 140px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.cta-band {
  background: linear-gradient(135deg, #0b1f3a, #15508a 55%, #4b3fd6);
  background-size: 160% 160%;
  animation: band 10s ease infinite;
  color: #fff;
  border-radius: 24px;
  padding: 36px;
}

@keyframes band {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-band h2,
.cta-band p { color: #fff; }

.cta-band .btn-ghost { color: #0b1f3a; }

.contact-grid,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
}

textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 14px; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-note { font-size: 0.92rem; color: var(--muted); }
.form-status { min-height: 1.4em; font-weight: 700; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); animation: pop 0.4s ease; }

@keyframes pop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: auto; margin-top: 4px; }

.breadcrumbs {
  padding: 16px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #8aa0b8;
}

.page-hero { padding: 24px 0 8px; }

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.software-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  overflow-x: hidden;
}

.software-card {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px 14px;
  min-width: 0;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px var(--glow);
}

.software-card .shot {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  background: #e8f3ff;
}

.software-card h2 {
  font-size: 1.12rem;
  margin: 0 0 2px;
}

.product-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.badge-demo { background: #fff4d6; color: #7a5600; }
.badge-soon { background: var(--blue-soft); color: #0b63c2; }
.badge-beta { background: #efe7ff; color: #4b2d9a; }
.badge-ready { background: #e4f7ec; color: #146c3a; }
.badge-free { background: #d9f7e8; color: #0d7a4a; }

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.meta-table th,
.meta-table td {
  text-align: left;
  padding: 6px 8px 6px 0;
  vertical-align: top;
}

.hash {
  font-family: ui-monospace, "Liberation Mono", monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.hash-copy {
  margin-left: 8px;
  font: inherit;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.warn-box {
  background: #fff7e6;
  border: 1px solid #f0d48a;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  color: #5c4300;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card .detail { display: none; }

.tech-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 16px;
  background: rgba(11, 31, 58, 0.88);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.portfolio-card:hover .tech-overlay,
.portfolio-card:focus-within .tech-overlay {
  opacity: 1;
  transform: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tag {
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.62);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: modalin 0.22s ease;
}

@keyframes modalin {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: var(--blue-soft);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.site-footer {
  background: #0b1f3a;
  color: #d7e6f7;
  padding: 40px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer a { color: #8ad0ff; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }

.legal {
  border-top: 1px solid #24466d;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: #0b1f3a;
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  display: none;
  max-width: 720px;
  margin-inline: auto;
}

.cookie-banner.is-visible { display: block; }

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
}

.lang-switch a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  min-height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.header-phone {
  display: inline-flex;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  min-height: 36px;
  align-items: center;
  padding: 0 8px;
  font-size: 0.86rem;
}

.contact-bar {
  display: none;
}

.contact-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text);
}

.contact-bar svg {
  width: 22px;
  height: 22px;
}

.contact-bar .c-phone { color: #0b63c2; }
.contact-bar .c-viber { color: #7360f2; }
.contact-bar .c-wa { color: #128c4b; }
.contact-bar .c-tg { color: #1a8cff; }

@media (min-width: 961px) {
  .header-phone { display: inline-flex; align-items: center; }
}

@media (max-width: 768px) {
  :root { --bar-h: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--bar-h); }
  .contact-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: max(6px, env(safe-area-inset-left, 0px));
    padding-right: max(6px, env(safe-area-inset-right, 0px));
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px rgba(11, 31, 58, 0.12);
  }
  .cookie-banner {
    bottom: calc(var(--bar-h) + 12px);
  }
  .modal {
    padding: 12px 12px calc(16px + var(--bar-h));
    align-items: flex-start;
  }
  .modal-panel {
    max-height: calc(100vh - 40px - var(--bar-h));
    width: min(760px, 100%);
  }
}

@media print {
  .contact-bar,
  .site-header .nav-toggle { display: none !important; }
  body { padding-bottom: 0 !important; }
}

body.modal-lock { overflow: hidden; }

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; margin-left: auto; flex-shrink: 0; }

  .site-header.is-compact .logo img { height: 32px; }

  .site-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav .header-tools {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
  }

  .header-phone,
  .btn-inquiry {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }

  .lang-switch a {
    min-height: 44px;
    min-width: 44px;
  }

  .logo img { max-width: min(148px, 48vw); height: 32px; }
}

@media (max-width: 960px) {
  .hero-grid,
  .cards,
  .contact-grid,
  .split,
  .filters,
  .portfolio-grid,
  .footer-grid,
  .why-list,
  .region-list,
  .software-list,
  .picker,
  .gallery {
    grid-template-columns: 1fr;
  }

  .code-window { position: relative; width: 100%; right: auto; bottom: auto; margin-top: 12px; }
}

@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; }
  .t-step p { display: block; }
}

@media (max-width: 400px) {
  .logo img { max-width: min(132px, 46vw); height: 28px; }
  .wrap { width: min(var(--max), calc(100% - 20px)); }
  .nav-toggle { min-width: 44px; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
