:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #101318;
  --text: #111827;
  --muted: #657083;
  --line: #dfe4ea;
  --blue: #1769ff;
  --green: #0c9b72;
  --amber: #f5a524;
  --red: #df4b4b;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 228, 234, 0.86);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 20px;
  background: #101318;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.topbar-link {
  font-weight: 800;
}

.topbar-address {
  color: #d6dde8;
}

.nav {
  display: flex;
  max-width: 1180px;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #101318;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
}

.device-icon {
  display: inline-grid;
  width: 100%;
  min-height: 82px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #101318;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
  margin-top: 3px;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: #303846;
  font-weight: 800;
}

.nav-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.nav-button,
.primary-button {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(23, 105, 255, 0.25);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.small-button {
  min-height: 42px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 66px));
  overflow: hidden;
  background: #101318;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 19, 24, 0.95) 0%, rgba(16, 19, 24, 0.78) 38%, rgba(16, 19, 24, 0.18) 72%),
    linear-gradient(0deg, rgba(16, 19, 24, 0.32), rgba(16, 19, 24, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 1180px;
  min-height: min(680px, calc(100vh - 66px));
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 92px 24px 116px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.price-hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-text,
.price-hero p {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section h2,
.price-panel h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.device-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 105, 255, 0.35);
  box-shadow: var(--shadow);
}

.device-card:hover .device-icon {
  background: var(--blue);
}

.device-card span:last-child {
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.benefits > div {
  border-left: 4px solid var(--green);
  background: #ffffff;
  padding: 24px;
}

.benefits > div:nth-child(2) {
  border-left-color: var(--amber);
}

.benefits > div:nth-child(3) {
  border-left-color: var(--blue);
}

.benefit-number {
  display: block;
  color: #101318;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}

.benefits p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.protection-section {
  padding-top: 0;
}

.compact-protection {
  padding-top: 8px;
}

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

.protection-card {
  display: grid;
  min-height: 176px;
  align-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.protection-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.protection-card strong {
  color: #101318;
  font-size: 21px;
  line-height: 1.15;
}

.protection-card em {
  color: var(--blue);
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
}

.contact-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 8px;
  background: #101318;
  color: #ffffff;
}

.contact-panel a {
  font-size: 22px;
  font-weight: 950;
}

.contact-panel span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.site-footer {
  margin-top: 24px;
  background: #101318;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  max-width: 1180px;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 28px;
  margin: 0 auto;
  padding: 38px 24px;
}

.footer-brand .brand-mark {
  background: var(--blue);
}

.footer-brand small,
.footer-links a,
.footer-contacts a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links,
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: start;
}

.footer-contacts {
  flex-direction: column;
  gap: 10px;
  font-weight: 850;
}

.maintenance-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #f6f7f9;
  padding: 24px;
}

.maintenance-card {
  width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 34px;
}

.maintenance-card h1 {
  margin: 18px 0 12px;
  color: #101318;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1;
}

.maintenance-card p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.price-hero {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  margin: 0 auto;
  padding: 76px 24px 42px;
}

.price-hero h1 {
  color: #101318;
  font-size: clamp(40px, 7vw, 72px);
}

.price-hero p {
  color: var(--muted);
}

.price-hero-panel {
  padding: 24px;
  border-radius: 8px;
  background: #101318;
  color: #ffffff;
}

.price-hero-panel span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-hero-panel strong {
  display: block;
  margin: 8px 0;
  font-size: 54px;
  line-height: 1;
}

.price-hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.price-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 24px;
}

.model-sidebar,
.price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.model-sidebar {
  position: sticky;
  top: 128px;
  padding: 18px;
}

.model-sidebar label {
  display: block;
  margin-bottom: 10px;
  font-weight: 950;
}

.model-sidebar input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.model-sidebar input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.13);
}

.model-list {
  display: grid;
  max-height: calc(100vh - 240px);
  gap: 8px;
  margin-top: 14px;
  overflow: auto;
  padding-right: 4px;
}

.model-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f7f9fc;
  color: #202938;
  padding: 10px 12px;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.model-button:hover,
.model-button.is-active {
  border-color: rgba(23, 105, 255, 0.38);
  background: rgba(23, 105, 255, 0.08);
  color: #0f54d9;
}

.model-button small {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.price-panel {
  overflow: hidden;
}

.price-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

#price-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.price-table {
  display: grid;
}

.price-folder {
  border-bottom: 1px solid var(--line);
}

.price-folder:last-child {
  border-bottom: 0;
}

.price-folder-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.price-folder-summary::-webkit-details-marker {
  display: none;
}

.price-folder-summary::before {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(23, 105, 255, 0.08);
  color: #0f54d9;
  font-size: 22px;
  font-weight: 950;
  transition: 0.18s ease;
}

.price-folder[open] .price-folder-summary::before {
  transform: rotate(90deg);
}

.price-folder-summary span {
  flex: 1;
  font-size: 17px;
  font-weight: 950;
}

.price-folder-summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.price-folder-body {
  padding-left: 24px;
  border-top: 1px solid var(--line);
  background: rgba(16, 19, 24, 0.018);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(112px, auto);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.price-folder-body .price-row:last-child {
  border-bottom: 0;
}

.price-service {
  display: contents;
}

.price-service span {
  grid-column: 1;
  min-width: 0;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.service-info-button {
  display: inline-grid;
  place-items: center;
  grid-column: 2;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23, 105, 255, 0.22);
  border-radius: 999px;
  background: rgba(23, 105, 255, 0.08);
  color: #0f54d9;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.service-info-button:hover,
.service-info-button:focus-visible {
  border-color: rgba(23, 105, 255, 0.5);
  background: rgba(23, 105, 255, 0.14);
  outline: 0;
  transform: translateY(-1px);
}

.price-value {
  grid-column: 3;
  color: #101318;
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 19, 24, 0.48);
  backdrop-filter: blur(8px);
}

.service-modal[hidden] {
  display: none;
}

.service-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 840px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(16, 19, 24, 0.28);
}

.service-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #101318;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.service-modal-close:hover,
.service-modal-close:focus-visible {
  border-color: rgba(23, 105, 255, 0.38);
  outline: 0;
}

.service-modal-body {
  max-height: inherit;
  overflow: auto;
  padding: 30px;
}

.service-modal-head {
  padding-right: 54px;
}

.service-modal-head h2 {
  margin: 6px 0 14px;
  font-size: 30px;
  line-height: 1.12;
}

.service-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.service-modal-price {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 19, 24, 0.06);
  font-size: 18px;
  font-weight: 950;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(23, 105, 255, 0.1);
  color: #0f54d9;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-info-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.service-info-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
}

.service-info-section p,
.service-info-section li {
  color: var(--muted);
  line-height: 1.58;
}

.service-info-section p {
  margin: 0;
}

.service-info-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-info-section li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 950;
}

.service-info-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.service-info-metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 19, 24, 0.03);
}

.service-info-metric span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.service-info-metric strong {
  color: #101318;
  font-size: 16px;
  line-height: 1.4;
}

.service-modal-cta {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.compact-contacts {
  padding-top: 32px;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .device-grid,
  .benefits,
  .contacts,
  .protection-grid,
  .footer-inner,
  .price-hero,
  .price-workspace {
    grid-template-columns: 1fr;
  }

  .model-sidebar {
    position: static;
  }

  .model-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 320px;
    overflow: auto;
  }

  .price-hero-panel {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 19, 24, 0.97), rgba(16, 19, 24, 0.7)),
      linear-gradient(0deg, rgba(16, 19, 24, 0.3), rgba(16, 19, 24, 0));
  }

  .hero-content {
    padding: 72px 18px 90px;
  }

  .hero h1,
  .price-hero h1 {
    font-size: 42px;
  }

  .section,
  .price-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .model-list {
    grid-template-columns: 1fr;
    max-height: 280px;
  }

  .price-panel-head {
    flex-direction: column;
  }

  .price-folder-summary {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
  }

  .price-folder-summary::before {
    grid-column: 1;
  }

  .price-folder-summary span {
    grid-column: 2;
    min-width: 0;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .price-folder-summary small {
    grid-column: 3;
    justify-self: end;
    white-space: nowrap;
  }

  .price-folder-body {
    padding-left: 10px;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
    padding: 15px 14px;
  }

  .price-service span {
    grid-column: 1;
    grid-row: 1;
  }

  .service-info-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
  }

  .price-value {
    grid-column: 1;
    grid-row: 2;
    font-size: 18px;
    white-space: normal;
  }

  .service-modal {
    align-items: end;
    padding: 0;
  }

  .service-modal-dialog {
    width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
  }

  .service-modal-body {
    padding: 24px 18px max(24px, env(safe-area-inset-bottom));
  }

  .service-modal-head h2 {
    font-size: 24px;
  }

  .service-info-metrics {
    grid-template-columns: 1fr;
  }
}
