: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,
.device-icon {
  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;
}

.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;
  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: 18px;
  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-featured {
  background: #101318;
  color: #ffffff;
}

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

.device-card strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.device-card span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

.device-card-featured span:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.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;
}

.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;
}

.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-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto) minmax(150px, auto);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

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

.price-service {
  min-width: 0;
  font-weight: 850;
  line-height: 1.35;
}

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

.discount-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(12, 155, 114, 0.12);
  color: #087759;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

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

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .device-grid,
  .benefits,
  .contacts,
  .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-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .discount-button {
    width: 100%;
  }
}
