:root {
  --blue: #252b35;
  --blue-dark: #12161d;
  --blue-soft: #eef0f3;
  --blue-line: #c9ced7;
  --ink: #12161d;
  --muted: #5d6877;
  --line: #e1e5ec;
  --soft: #f7f8fa;
  --green: #20c997;
  --shadow: 0 18px 42px rgba(31, 37, 48, .12);
  --card-shadow: 0 12px 28px rgba(28, 35, 46, .08);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 29, .42);
  backdrop-filter: blur(5px);
}

.contact-modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 22, 29, .22);
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef0f3;
  color: #252b35;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.contact-modal-content {
  padding: 38px;
}

.contact-modal-heading {
  margin-bottom: 26px;
  text-align: center;
}

.contact-modal-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-modal-heading h2 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 30px;
}

.contact-modal-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-modal label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-modal label span {
  color: #778294;
  font-size: 12px;
  font-weight: 800;
}

.contact-modal label small {
  font-weight: 500;
}

.contact-modal input,
.contact-modal textarea {
  width: 100%;
  border: 1px solid #d9dde5;
  border-radius: 7px;
  background: #fff;
  color: #1f2530;
  padding: 11px 12px;
  outline: none;
  font: inherit;
}

.contact-modal input {
  height: 42px;
}

.contact-modal textarea {
  resize: vertical;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
  border-color: #252b35;
}

.contact-modal .btn {
  width: 100%;
  margin-top: 4px;
}

.contact-form-error {
  border: 1px solid #f0c3c3;
  border-radius: 7px;
  background: #fff4f4;
  color: #9f2d2d;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.contact-form-error[hidden] {
  display: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.topbar {
  min-height: 42px;
  background: linear-gradient(90deg, #343b48, #161b24);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
}

.topbar .pill {
  color: var(--blue);
  background: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
}

.topbar .details {
  margin-left: auto;
  margin-right: 42px;
  white-space: nowrap;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e6e8ed;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1200px;
  height: 62px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 39px;
  object-fit: contain;
  display: block;
}

.brand span span {
  color: var(--blue);
  font-weight: 600;
}

.menu {
  display: flex;
  align-items: center;
  gap: 31px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: #252b35;
}

.mobile-menu-actions {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 9px;
  border: 1px solid #d9dde5;
  border-radius: 7px;
  background: #fff;
  color: #252b35;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 37, 48, .05);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform .16s ease, opacity .16s ease;
}

.nav.menu-is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.menu-is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.menu-is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 500;
}

.menu-dropdown button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.menu-dropdown-list {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  min-width: 245px;
  padding: 8px;
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.menu-dropdown:hover .menu-dropdown-list,
.menu-dropdown:focus-within .menu-dropdown-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.menu-dropdown-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  color: #252b35;
  white-space: nowrap;
}

.menu-dropdown-list a:hover {
  background: var(--blue-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.btn {
  border: 1px solid #d9dde5;
  border-radius: 7px;
  background: #fff;
  color: #1f2530;
  font-weight: 550;
  font-size: 14px;
  height: 42px;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 37, 48, .05);
  align-items: center;
  display: flex;
  justify-content: center;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #343b48, #141922);
  border-color: #1b2029;
  box-shadow: 0 10px 18px rgba(25, 31, 42, .18);
}

.btn.is-loading {
  cursor: wait;
  opacity: .86;
  gap: 9px;
}

.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
  flex: 0 0 auto;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.cart {
  width: 34px;
  height: 34px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12161d;
}

.cart::after {
  content: "0";
  position: absolute;
  right: 1px;
  top: 0;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.footer {
  background: #12161d;
  color: #fff;
  padding: 54px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 42px;
}

.footer-brand {
  flex: 1 1 320px;
  max-width: 430px;
}

.footer .brand {
  margin-bottom: 18px;
  color: #fff;
}

.footer .brand span span {
  color: #8f98a6;
}

.footer p {
  margin: 0;
  color: #b8c0cc;
  line-height: 1.7;
  font-size: 14px;
}

.footer-links {
  flex: 2 1 560px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.footer-col {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.footer-col a,
.footer-col span {
  color: #b8c0cc;
  font-size: 14px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #8f98a6;
  font-size: 13px;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.order-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 29, .42);
  backdrop-filter: blur(5px);
}

.order-modal-panel {
  position: relative;
  width: min(100%, 790px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 22, 29, .22);
}

.order-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef0f3;
  color: #252b35;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.order-modal-head {
  padding: 20px 0 10px 0;
}

.order-modal-head h2 {
  margin: 0;
  color: #121821;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
}

.order-modal-head p {
  margin: 0;
  color: #5b6676;
  line-height: 1.55;
  font-size: 16px;
}

.order-modal-body {
  display: flex;
  gap: 0;
  padding: 0;
}

.order-modal-specs {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 40px;
}

.order-spec {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 44px;
}

.order-spec img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: 0 0 auto;
}

.order-spec label {
  display: block;
  color: #778294;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 5px;
}

.order-spec span {
  color: #1f2530;
  font-size: 15px;
  line-height: 1.35;
}

.order-modal-actions {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  border-left: 1px solid #d4d4d4;
  background-color: #f9f9f9;
}

.order-modal-panel-state,
.order-auth-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-modal-panel-state[hidden],
.order-auth-panel[hidden] {
  display: none;
}

.order-modal-actions p {
  margin: 0 0 25px;
  color: #111821;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.order-modal-actions p span {
  font-weight: 800;
}

.order-confirm-price {
  margin-bottom: 4px;
  color: #121821;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.order-auth-error {
  border: 1px solid #f0c3c3;
  border-radius: 7px;
  background: #fff4f4;
  color: #9f2d2d;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.order-auth-error[hidden] {
  display: none;
}

.order-auth-panel h3 {
  margin: 0 0 12px;
  color: #121821;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}

.order-auth-panel label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.order-auth-panel label span {
  color: #778294;
  font-size: 12px;
  font-weight: 800;
}

.order-auth-panel input {
  width: 100%;
  height: 42px;
  border: 1px solid #d9dde5;
  border-radius: 7px;
  background: #fff;
  color: #1f2530;
  padding: 0 12px;
  outline: none;
}

.order-auth-panel input:focus {
  border-color: #252b35;
}

.order-modal-actions .btn {
  width: 100%;
  height: 42px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav.menu-is-open {
    position: relative;
  }

  .nav.menu-is-open .menu {
    position: absolute;
    top: calc(100% - 1px);
    right: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid #e1e5ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 2;
  }

  .nav.menu-is-open .menu > a,
  .nav.menu-is-open .menu-dropdown > button {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0 12px;
    border-radius: 7px;
  }

  .nav.menu-is-open .menu > a:hover,
  .nav.menu-is-open .menu-dropdown > button:hover {
    background: var(--blue-soft);
  }

  .nav.menu-is-open .menu-dropdown-list {
    position: static;
    min-width: 0;
    padding: 0 0 4px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav.menu-is-open .menu-dropdown > button {
    cursor: default;
    pointer-events: none;
  }

  .nav.menu-is-open .menu-dropdown > button::after {
    display: none;
  }

  .nav.menu-is-open .menu-dropdown-list a {
    min-height: 40px;
    white-space: normal;
  }

  .nav.menu-is-open .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e5ec;
  }

  .nav.menu-is-open .mobile-menu-actions .btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: flex-start;
    font-size: 12px;
  }

  .topbar .details {
    display: none;
  }

  .nav {
    height: auto;
    padding: 18px;
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: 0;
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-modal-body {
    flex-direction: column;
    padding: 18px;
  }

  .order-modal-head {
    padding: 22px 18px 18px;
  }

  .order-modal-head h2 {
    font-size: 28px;
  }

  .order-modal-head p {
    font-size: 15px;
  }

  .order-modal-specs {
    gap: 18px;
    padding-right: 0;
  }

  .order-modal-actions {
    padding-left: 0;
    padding-top: 20px;
    margin-top: 20px;
    border-left: 0;
    border-top: 1px solid #d9dee7;
  }

  .order-modal-actions p {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .order-spec span {
    font-size: 15px;
  }
}
