:root {
  color-scheme: dark;
  --bg: #0a111b;
  --ink: #f5f4f0;
  --muted: #b6c1d0;
  --line: #26374a;
  --accent: #70ceff;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-inner { min-height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: .075em;
  font-weight: 850;
  white-space: nowrap;
}
.accent { color: var(--accent); }
.mark { width: 33px; height: 29px; background: url("assets/icon.svg") center / cover; }
nav { display: flex; align-items: center; gap: clamp(12px, 4vw, 40px); }
.nav-link { color: var(--muted); }
.nav-link:hover, .brand:hover { color: var(--accent); }
.header-contact {
  padding: 9px 15px;
  border: 1px solid #3a5876;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 650;
}
.header-contact:hover { border-color: var(--accent); color: var(--accent); }
.language-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #3a5876;
  border-radius: 8px;
}
.language-switch button {
  min-height: 36px;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.language-switch button:hover { color: var(--ink); }
.language-switch button[aria-pressed="true"] { background: #193651; color: var(--accent); }

.hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #111e30, #0a111b 70%);
}
.hero-content { padding: clamp(24px, 4vw, 64px); }
.hero-poster, .service-poster { display: block; width: 100%; height: auto; }
.hero-poster { border-left: 1px solid var(--line); }
.service-poster {
  max-width: 460px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.handle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  margin: 0 0 20px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.handle span { width: 23px; height: 2px; background: currentColor; }
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 13ch;
  margin-bottom: 19px;
  font-size: clamp(2.6rem, 5.4vw, 5.8rem);
  font-weight: 850;
  line-height: .99;
  letter-spacing: -.075em;
}
.hero-description {
  max-width: 39ch;
  color: #e2e1e0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  margin-bottom: 27px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease;
}
.button svg, .card-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary { color: #071723; background: var(--accent); }
.primary:hover { background: #a8e1ff; }
.secondary { background: #142133; border-color: #3a5876; }
.secondary:hover { background: #21344e; border-color: var(--accent); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 7vw, 105px);
  padding-block: 55px 38px;
  scroll-margin-top: 5px;
  border-bottom: 1px solid var(--line);
}
.service-intro p, .questions p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.service-intro p { max-width: 44ch; }
.service-intro > p + p { margin-top: 12px; }
.questions { margin-top: 24px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding-block: 10px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; color: var(--accent); width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); flex: 0 0 auto; margin-right: 4px; }
.questions details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.questions summary:hover { color: var(--accent); }
.questions p { margin-bottom: 15px; }
.links { padding-block: 37px 31px; scroll-margin-top: 5px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 18px;
}
.section-heading h2, .service h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -.055em;
}
.section-heading h2 { margin: 0; }
.service h2 { margin-bottom: 12px; }
.section-heading > span, .footer > span { color: var(--muted); font-size: .875rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.card {
  width: 100%;
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  background: #101d2c;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.card:hover { border-color: #4c85ae; background: #15263a; }
.card-icon {
  flex: 0 0 41px;
  height: 41px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #183653;
  border-radius: 7px;
}
.card strong { display: block; margin-bottom: 4px; font-size: 1.08rem; }
.card-description { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.copy-status { margin: 0; color: var(--accent); overflow-wrap: anywhere; }
.copy-status:not(:empty) { margin-top: 12px; }
.footer { min-height: 76px; border-top: 1px solid var(--line); }
.footer .brand { font-size: .8rem; }
.footer .mark { width: 25px; height: 22px; }

@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 16px; }
  .hero-content { padding: 28px 20px; }
  .hero-poster { border-left: 0; border-top: 1px solid var(--line); }
  .service { grid-template-columns: 1fr; padding-block: 35px 30px; }
  .service-poster { justify-self: center; }
  .links { padding-top: 34px; }
  .card { min-height: 85px; }
}

@media (max-width: 520px) {
  .header-contact { display: none; }
  .header-inner { gap: 8px; }
}

@media (max-width: 350px) {
  .header .brand { gap: 6px; font-size: .8rem; }
  .header .mark { width: 25px; height: 22px; }
  h1 { font-size: 2.5rem; }
  .hero-actions .button { width: 100%; }
}

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