:root {
  --bg: #0b1322;
  --card: #0f1d32;
  --text: #f4f8ff;
  --muted: #b8c9de;
  --accent: #5eb8ff;
  --accent-2: #8ed0ff;
  --line: #1a2f4a;
  --radius: 12px;
  --space-1: 12px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --card-pad: 24px;
  --btn-min-h: 46px;
  --topbar-h: 38px;
  --page-gutter: clamp(12px, 3vw, 20px);
  --font-sans: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 12% 8%, rgba(94, 184, 255, 0.1), transparent 42%),
    linear-gradient(165deg, #081018 0%, #0b1322 42%, #0f1a2c 100%);
  line-height: 1.62;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

a { color: var(--accent); }

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  border-bottom: 1px solid rgba(77, 166, 255, 0.2);
  background: rgba(10, 18, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.service-page,
.service-page .container,
.card,
.form {
  min-width: 0;
  max-width: 100%;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  min-width: 0;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: min(300px, 34vw);
}

.header-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(142, 208, 255, 0.42)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.35));
}

.brand-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
  border-radius: 9px;
  border: 1px solid rgba(123, 172, 235, 0.22);
  background: rgba(10, 19, 33, 0.58);
}

.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--topbar-h) - 4px);
  padding: 0 12px;
  color: #d4e4f8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-link:hover {
  background: rgba(26, 95, 168, 0.55);
  color: #fff;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.topbar-phone {
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(105deg, #1a5fa8 0%, #2a78c8 52%, #48a0e8 100%);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-height: var(--btn-min-h);
  font-weight: 800;
  border: 1px solid rgba(158, 220, 255, 0.5);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  color: #f2f7ff;
  background: linear-gradient(145deg, rgba(77, 166, 255, 0.14), rgba(40, 70, 110, 0.12));
  border-color: rgba(94, 184, 255, 0.35);
}

.service-page {
  padding: var(--space-3) 0 var(--space-4);
}

.breadcrumb {
  margin: 0 0 var(--space-2);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.section-kicker {
  margin: 0 0 var(--space-1);
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  flex: 0 1 56px;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.55));
}

.section-kicker::after {
  background: linear-gradient(90deg, rgba(77, 166, 255, 0.55), transparent);
}

.section-title {
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  text-align: center;
  color: #eef3fc;
  text-wrap: balance;
}

.service-zone {
  margin-bottom: var(--space-4);
}

.service-zone-lead {
  margin: 0 0 var(--space-2);
  color: #d0dff0;
  font-size: 15px;
  line-height: 1.62;
  text-align: center;
}

.service-hero-card {
  margin-bottom: var(--space-4);
  text-align: center;
}

.service-hero-card .section-kicker {
  margin-bottom: var(--space-2);
}

.service-hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.15;
  color: var(--accent-2);
  text-wrap: balance;
  text-shadow: 0 0 22px rgba(94, 184, 255, 0.22);
}

.service-lead {
  margin: 0 auto var(--space-2);
  max-width: 720px;
  color: #d0dff0;
  font-size: clamp(15px, 2.8vw, 17px);
  line-height: 1.62;
}

.service-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-3);
  justify-content: center;
}

.service-blocks {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.service-block-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-block-card h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.2;
  color: var(--accent-2);
  text-shadow: 0 0 22px rgba(94, 184, 255, 0.18);
}

.service-block-body {
  flex: 1 1 auto;
}

.service-block-body p,
.service-block-body li {
  color: #d0dff0;
  font-size: clamp(15px, 2.5vw, 16px);
  line-height: 1.62;
}

.service-block-body ul,
.service-block-body ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.service-block-body p {
  margin: 0;
}

.steps li { margin-bottom: 8px; }

.steps span { color: #f2f7ff; font-weight: 700; }

.service-blocks-tail {
  margin-top: var(--space-3);
}

.service-block-card--wide {
  width: 100%;
  max-width: 100%;
}

.service-faq-zone {
  margin-top: var(--space-3);
}

.service-faq-list {
  display: grid;
  gap: 10px;
  margin-top: var(--space-2);
}

.service-faq-item {
  border: 1px solid rgba(77, 166, 255, 0.22);
  border-radius: 12px;
  background: rgba(6, 12, 23, 0.55);
  padding: 0 14px;
}

.service-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #f2f7ff;
  padding: 14px 0;
  font-size: clamp(15px, 2.5vw, 16px);
  line-height: 1.45;
}

.service-faq-item summary::-webkit-details-marker {
  display: none;
}

.service-faq-item[open] summary {
  color: var(--accent-2);
}

.service-faq-answer {
  padding: 0 0 14px;
}

.service-faq-answer p {
  margin: 0;
  color: #d0dff0;
  font-size: clamp(15px, 2.5vw, 16px);
  line-height: 1.62;
}

.service-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: var(--space-3) 0 0;
}

.service-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(77, 166, 255, 0.22);
  background: rgba(6, 12, 23, 0.6);
}

.service-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-photo figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.service-related-card {
  text-align: center;
}

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: auto;
  border: 1px solid rgba(94, 184, 255, 0.26);
  border-radius: var(--radius);
  padding: var(--card-pad);
  background:
    radial-gradient(circle at 100% 100%, rgba(94, 184, 255, 0.05), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(94, 184, 255, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(94, 184, 255, 0.05) 0%, transparent 38%),
    linear-gradient(168deg, rgba(8, 16, 32, 0.98), rgba(4, 8, 16, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(77, 166, 255, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(77, 166, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 166, 255, 0.025) 1px, transparent 1px),
    linear-gradient(125deg, rgba(240, 246, 255, 0.05), transparent 32%, rgba(77, 166, 255, 0.03));
  background-size: 22px 22px, 22px 22px, auto;
  opacity: 0.75;
  z-index: 0;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(94, 184, 255, 0.4) 18%, rgba(158, 220, 255, 0.95) 50%, rgba(94, 184, 255, 0.4) 82%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.88;
}

.card h2::before,
.segment h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(77, 166, 255, 0.15));
  box-shadow: 0 0 14px rgba(77, 166, 255, 0.35);
}

.service-form-card {
  margin-top: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2);
}

.related-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 184, 255, 0.24);
  background: rgba(77, 166, 255, 0.08);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #d9e9ff;
  text-align: center;
}

.form {
  display: grid;
  gap: 12px;
}

.form input:not([type="checkbox"]),
.form textarea,
.form select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(94, 184, 255, 0.28);
  background: rgba(6, 12, 24, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  min-height: 48px;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form .btn[type="submit"] {
  width: 100%;
}

.form-consent {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(80, 115, 165, 0.65);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.95), rgba(10, 18, 34, 0.98));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  overflow: hidden;
}

.form-consent-checkbox {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent-text {
  display: block;
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  color: #a8bdd6;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-consent-text a {
  color: #c4dcf2;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer {
  padding: var(--space-3) 0 calc(80px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer a { color: var(--accent); }

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  background: rgba(8, 14, 26, 0.96);
  border-top: 1px solid rgba(77, 166, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-cta .btn {
  padding: 10px 8px;
  font-size: 13px;
  min-height: 44px;
}

.ym-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(94, 184, 255, 0.3);
  background: rgba(8, 15, 28, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-width: min(720px, 100%);
  margin-inline: auto;
}

.ym-consent[hidden] { display: none; }

.ym-consent__title { margin: 0 0 6px; font-weight: 800; }

.ym-consent__text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.ym-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ym-consent__actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 140px);
}

.botcheck-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (min-width: 720px) {
  .service-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .topbar-phone {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  :root {
    --page-gutter: max(8px, env(safe-area-inset-left, 0px));
    --page-gutter-end: max(8px, env(safe-area-inset-right, 0px));
  }

  html {
    scroll-padding-top: 118px;
  }

  section[id],
  #contact {
    scroll-margin-top: 118px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    width: 100%;
    max-width: none;
    padding-inline: var(--page-gutter) var(--page-gutter-end);
  }

  .service-page {
    padding: var(--space-2) 0 var(--space-2);
    overflow-x: clip;
  }

  .service-page .container {
    width: 100%;
  }

  .service-lead {
    max-width: none;
  }

  .breadcrumb,
  .service-zone {
    width: 100%;
  }

  .section-title {
    font-size: clamp(20px, 5.5vw, 28px);
    margin-bottom: var(--space-2);
  }

  .topbar-inner {
    overflow-x: clip;
    max-width: 100%;
    padding-inline: 0;
  }

  .mobile-cta {
    display: grid;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0 10px;
  }

  .brand-line {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
    width: 100%;
    white-space: normal;
  }

  .brand-title {
    white-space: normal;
    text-align: center;
    text-wrap: balance;
    max-width: min(340px, 100%);
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }

  .header-logo {
    height: 36px;
  }

  .topbar-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    padding: 4px;
    gap: 4px;
  }

  .menu-link {
    width: 100%;
    min-height: 44px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 8px;
  }

  .topbar-actions {
    display: none;
  }

  .service-hero-title {
    font-size: clamp(22px, 6.2vw, 32px);
  }

  .service-lead {
    font-size: 15px;
  }

  .service-cta-bar {
    flex-direction: column;
    gap: 8px;
    margin-top: var(--space-2);
  }

  .service-cta-bar .btn {
    width: 100%;
    min-height: 48px;
  }

  .service-photos {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .service-photo {
    border-radius: 10px;
  }

  .card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .card:hover {
    transform: none;
  }

  .related-links {
    flex-direction: column;
    align-items: stretch;
  }

  .related-links a {
    width: 100%;
    min-height: 44px;
  }

  .btn:hover {
    transform: none;
  }

  .ym-consent {
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    width: auto;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 12px;
  }

  .form-consent {
    padding: 12px;
    gap: 8px;
  }

  .form-consent-checkbox {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  .ym-consent__actions {
    flex-direction: column;
  }

  .ym-consent__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: max(6px, env(safe-area-inset-left, 0px));
    --page-gutter-end: max(6px, env(safe-area-inset-right, 0px));
  }

  .breadcrumb {
    font-size: 13px;
  }

  .service-block-body ul,
  .service-block-body ol {
    padding-left: 18px;
  }

  .card {
    padding: 12px 10px;
  }

  .topbar-menu {
    padding: 2px;
    gap: 2px;
  }

  .footer {
    font-size: 13px;
    text-align: center;
  }

  .footer .container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .brand-title {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .menu-link {
    font-size: 11px;
    padding: 0 4px;
  }

  .mobile-cta .btn {
    font-size: 12px;
    padding: 10px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
