:root {
  --bg: #081225;
  --bg-soft: #10264a;
  --bg-card: #17315d;
  --line: #3a5487;
  --text: #f6f9ff;
  --text-muted: #c5d2ea;
  --accent: #2e8bff;
  --accent-light: #77bbff;
  --promo: #ffd24d;
  --promo-text: #1d1300;
  --radius: 16px;
  --side-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 760'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-opacity='.27' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='64' y='26' width='92' height='56' rx='8'/%3E%3Cline x1='88' y1='92' x2='132' y2='92'/%3E%3Cline x1='110' y1='82' x2='110' y2='106'/%3E%3Crect x='84' y='138' width='52' height='116' rx='14'/%3E%3Ccircle cx='110' cy='158' r='6'/%3E%3Ccircle cx='97' cy='182' r='3.5'/%3E%3Ccircle cx='110' cy='182' r='3.5'/%3E%3Ccircle cx='123' cy='182' r='3.5'/%3E%3Ccircle cx='97' cy='198' r='3.5'/%3E%3Ccircle cx='110' cy='198' r='3.5'/%3E%3Ccircle cx='123' cy='198' r='3.5'/%3E%3Cpath d='M54 296h84l-8 58H62z'/%3E%3Cpath d='M84 296v-12h24v12'/%3E%3Cpath d='M80 364a22 22 0 0 1 44 0'/%3E%3Cline x1='102' y1='364' x2='102' y2='384'/%3E%3Cline x1='118' y1='364' x2='118' y2='384'/%3E%3Cpath d='M54 474h104v46H54z'/%3E%3Cpath d='M70 446h72v28H70z'/%3E%3Cline x1='106' y1='520' x2='106' y2='542'/%3E%3Cline x1='90' y1='542' x2='122' y2='542'/%3E%3Cpath d='M74 606h70'/%3E%3Cpath d='M86 590h46v16H86z'/%3E%3Cpath d='M96 580h26v10H96z'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(92, 157, 245, 0.22) 0%, transparent 20%),
    linear-gradient(270deg, rgba(92, 157, 245, 0.22) 0%, transparent 20%),
    var(--side-art),
    var(--side-art),
    radial-gradient(1300px 560px at 8% -10%, #2a64b8 0%, transparent 58%),
    radial-gradient(1000px 460px at 100% 0%, #2a78e2 0%, transparent 55%),
    radial-gradient(900px 420px at 50% 115%, #194a94 0%, transparent 55%),
    var(--bg);
  background-repeat: no-repeat, no-repeat, repeat-y, repeat-y, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, 190px 640px, 190px 640px, auto, auto, auto, auto;
  background-position: left top, right top, left 18px top, right 18px top, 8% -10%, 100% 0%, 50% 115%, center;
  animation: side-glow-drift 24s ease-in-out infinite alternate;
  line-height: 1.5;
}

@keyframes side-glow-drift {
  to {
    background-position: left top, right top, left 18px top 18px, right 18px top -16px, 11% -6%, 99% 2%, 50% 112%, center;
  }
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(167, 203, 255, 0.25);
  background: rgba(10, 20, 39, 0.82);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(162, 205, 255, 0.55);
  background: rgba(20, 43, 84, 0.5);
  color: #eff5ff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: rgba(119, 187, 255, 0.22);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 12, 26, 0.78) 0%, rgba(8, 27, 59, 0.48) 45%, rgba(7, 18, 38, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 16, 31, 0.18) 0%, rgba(5, 14, 28, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 68px;
  padding-bottom: 64px;
  max-width: 740px;
}

.hero-kicker,
.banner-kicker,
.promo-kicker {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent-light);
}

h1,
h2,
h3 {
  font-family: "Rubik", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-lead {
  margin: 0;
  max-width: 640px;
  color: #d8e2f3;
  font-size: clamp(17px, 2.5vw, 21px);
}

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

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.btn:focus-visible,
.modal-close:focus-visible,
.request-form input:focus-visible,
.request-form select:focus-visible,
.picker-select:focus-visible,
.card-link:focus-visible,
.product-card img:focus-visible,
.main-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(143, 198, 255, 0.85);
  outline-offset: 2px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #1f68cd 100%);
  box-shadow: 0 8px 22px rgba(46, 139, 255, 0.32);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  color: #eff5ff;
  background: rgba(20, 43, 84, 0.45);
  border-color: rgba(169, 206, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(89, 165, 255, 0.24);
}

.section {
  padding: 72px 0;
}

.section p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.section-deep {
  background: linear-gradient(180deg, rgba(14, 33, 63, 0.58) 0%, rgba(10, 24, 46, 0.88) 100%);
}

.picker-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(162, 205, 255, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(140deg, #143469 0%, #16325e 52%, #12274a 100%);
  box-shadow: 0 14px 34px rgba(18, 72, 148, 0.35);
}

.picker-banner p {
  margin: 8px 0 0;
}

.section-note {
  margin-bottom: 24px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(141, 188, 255, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 14px;
  background: linear-gradient(170deg, rgba(26, 50, 93, 0.96) 0%, rgba(16, 34, 65, 0.96) 100%);
}

.product-card img {
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.product-card img.is-clickable {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.product-card img.is-clickable:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 18px rgba(10, 25, 50, 0.35);
}

.product-card p {
  margin: 0;
  font-size: 15px;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.card-link {
  appearance: none;
  padding: 10px 14px;
  border: 1px solid rgba(143, 198, 255, 0.62);
  border-radius: 10px;
  background: transparent;
  color: #dbe8fb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.card-link:hover {
  background: rgba(108, 183, 255, 0.2);
}

.promo {
  padding-top: 20px;
}

.promo-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 228, 236, 0.55);
  background:
    linear-gradient(120deg, #d9143c 0%, #ff3168 34%, #ff4d82 60%, #ff76a3 100%);
  background-size: 220% 220%;
  animation: promoGradient 8s ease-in-out infinite;
  color: #fff7fb;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(255, 58, 111, 0.36);
}

.promo-box::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  background: radial-gradient(ellipse at 78% 42%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 58%);
  animation: promoGlow 7s ease-in-out infinite;
  z-index: -1;
}

.promo-copy h2 {
  margin: 8px 0 0;
  color: #ffffff;
  max-width: 700px;
}

.promo-box h2 {
  margin: 10px 0 0;
  color: #ffffff;
}

.promo-kicker {
  color: #ffe8f1;
}

.promo-art {
  justify-self: end;
}

.promo-art svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.35));
}

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

@keyframes promoGlow {
  0%,
  100% {
    transform: translateX(-1%) translateY(0%);
    opacity: 0.62;
  }
  50% {
    transform: translateX(2%) translateY(-2%);
    opacity: 1;
  }
}

.contact-box {
  border-radius: var(--radius);
  border: 1px solid rgba(148, 193, 255, 0.35);
  background: rgba(19, 38, 71, 0.82);
  padding: 28px;
}

.contact-box a {
  color: #9ac7ff;
}

.messenger-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.messenger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(157, 203, 255, 0.38);
  background: rgba(39, 86, 152, 0.3);
  color: #e8f3ff;
  font-size: 13px;
  line-height: 1;
}

.messenger-link {
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.messenger-link:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 221, 255, 0.65);
  background: rgba(57, 112, 189, 0.4);
}

.messenger-link:focus-visible {
  outline: 2px solid rgba(143, 198, 255, 0.85);
  outline-offset: 2px;
}

.messenger-logo {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.messenger-icon {
  width: 16px;
  height: 16px;
  stroke: #b9dbff;
  stroke-width: 1.7;
  fill: none;
  flex-shrink: 0;
}

.messenger-badge:nth-child(1) .messenger-icon {
  stroke: #93f4bd;
}

.messenger-badge:nth-child(2) .messenger-icon {
  stroke: #9bd8ff;
}

.messenger-badge:nth-child(3) .messenger-icon {
  stroke: #ffd49b;
}

.messenger-list .messenger-badge-mail .messenger-icon {
  stroke: #ffd49b;
}

@media (hover: none) {
  .messenger-link:hover {
    transform: none;
  }
}

.accessories-hero {
  padding-top: 98px;
  padding-bottom: 36px;
}

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

.accessory-card {
  display: grid;
  gap: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(13, 26, 50, 0.8);
  padding: 22px;
}

.accessory-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(164, 206, 255, 0.36);
  background: rgba(8, 20, 38, 0.45);
}

.accessory-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.accessory-meta {
  margin: 0;
  color: #d7e6ff;
  font-size: 16px;
}

.accessory-meta strong {
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #97a9c7;
  padding: 24px 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  padding: 20px;
  background: rgba(7, 19, 37, 0.86);
  z-index: 60;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-dialog {
  width: min(600px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(158, 203, 255, 0.35);
  background: linear-gradient(180deg, #17386a 0%, #122a4f 100%);
  padding: 24px;
  position: relative;
}

.modal-image-dialog {
  width: min(960px, 100%);
  padding: 18px;
}

.catalog-image-preview {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(162, 208, 255, 0.42);
  background: rgba(8, 20, 38, 0.56);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.picker-select-label {
  display: block;
  margin-bottom: 8px;
  color: #d5e0f3;
}

.picker-select {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a1528;
  color: #eaf2ff;
  padding: 12px;
  font: inherit;
}

.picker-result {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(127, 189, 255, 0.48);
  border-radius: 12px;
  background: rgba(83, 167, 255, 0.16);
  padding: 14px;
  margin-bottom: 14px;
  font-weight: 700;
}

.picker-result img {
  width: 108px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(162, 208, 255, 0.55);
  background: rgba(8, 20, 38, 0.45);
}

.picker-result p {
  margin: 0;
}

.picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.picker-note {
  margin: 0;
  color: #ccdaf1;
  font-size: 14px;
}

.request-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.request-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #e5efff;
}

.request-form input {
  border: 1px solid rgba(163, 204, 255, 0.5);
  border-radius: 10px;
  background: rgba(8, 20, 38, 0.82);
  color: #f1f6ff;
  padding: 11px 12px;
  font: inherit;
}

.request-form select {
  border: 1px solid rgba(163, 204, 255, 0.5);
  border-radius: 10px;
  background: rgba(8, 20, 38, 0.82);
  color: #f1f6ff;
  padding: 11px 12px;
  font: inherit;
}

.request-form input:focus,
.picker-select:focus {
  outline: 2px solid rgba(124, 189, 255, 0.45);
  outline-offset: 1px;
}

.form-trap {
  position: absolute;
  left: -9999px;
}

.form-feedback {
  margin: 0;
  min-height: 22px;
  color: #f6fbff;
  font-size: 14px;
}

.form-feedback[data-state="info"] {
  color: #d5e7ff;
}

.form-feedback[data-state="success"] {
  color: #8df0c3;
}

.form-feedback[data-state="error"] {
  color: #ffb7b7;
}

.request-form input[aria-invalid="true"],
.request-form select[aria-invalid="true"] {
  border-color: #ff8f8f;
  box-shadow: 0 0 0 1px rgba(255, 143, 143, 0.35);
}

.btn.is-loading {
  opacity: 0.82;
  cursor: wait;
}

@media (max-width: 980px) {
  :root {
    --side-art: none;
  }

  .product-grid,
  .accessories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picker-banner {
    grid-template-columns: 1fr;
  }

  .picker-result {
    grid-template-columns: 1fr;
  }

  .picker-result img {
    width: min(180px, 100%);
    height: auto;
  }

  .promo-box {
    grid-template-columns: 1fr;
  }

  .promo-art {
    justify-self: center;
  }
}

@media (max-width: 700px) {
  body {
    animation: none;
  }

  .header-row {
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    justify-content: flex-start;
    flex-direction: column;
    border: 1px solid rgba(167, 203, 255, 0.25);
    border-radius: 14px;
    background: rgba(10, 22, 43, 0.92);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    border-radius: 10px;
  }

  .hero {
    min-height: 78vh;
  }

  .section {
    padding: 58px 0;
  }

  #about .container {
    background: linear-gradient(180deg, #f9fcff 0%, #eaf3ff 100%);
    border: 1px solid rgba(125, 168, 223, 0.5);
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 10px 24px rgba(5, 22, 45, 0.2);
  }

  #about h2 {
    color: #153a66;
  }

  #about p {
    color: #2a4f79;
  }

  .product-grid,
  .accessories-grid {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 21px;
  }

  .messenger-list {
    display: flex;
    margin-left: 0;
    margin-top: 8px;
  }

  .messenger-badge {
    min-height: 40px;
    padding: 8px 12px;
  }
}
