:root {
  --navy: #071525;
  --navy-2: #0b2034;
  --cyan: #23c7dd;
  --cyan-2: #62e6f2;
  --light: #f5f7fa;
  --muted: #a9b8c8;
  --ink: #0d1723;
  --line: #dfe5eb;
  --success: #28c98b;
  --danger: #ec5c5c;
  --shadow: 0 16px 36px rgba(3, 16, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--light);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 8px clamp(18px, 4vw, 54px);
  background: rgba(7, 21, 37, 0.97);
  color: white;
  backdrop-filter: blur(16px);
}

.brand img {
  display: block;
  width: 132px;
  max-height: 44px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a,
.language-toggle,
.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a {
  padding: 8px 12px;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-picker {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 68px;
  height: 38px;
  padding: 0 9px;
  cursor: pointer;
}

.language-chevron {
  color: white;
  font-size: 18px;
}

.language-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(7, 21, 37, 0.2);
}

.language-menu button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f2f6f9;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible {
  border-color: var(--cyan);
  background: #e7f9fc;
}

.flag {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 20px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(7, 21, 37, 0.18);
}

.flag-armenia {
  background: linear-gradient(to bottom, #d90012 0 33.333%, #0033a0 33.333% 66.666%, #f2a800 66.666%);
}

.flag-russia {
  background: linear-gradient(to bottom, #fff 0 33.333%, #0039a6 33.333% 66.666%, #d52b1e 66.666%);
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 1.54px, #fff 1.54px 3.08px);
}

.flag-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 10.8px;
  background: #3c3b6e;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 13px;
  color: var(--navy);
  background: var(--cyan);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(26px, 5vw, 68px);
  min-height: 480px;
  padding: clamp(42px, 5vw, 64px) clamp(18px, 4vw, 54px);
  color: white;
  background:
    linear-gradient(120deg, rgba(7, 21, 37, 0.98), rgba(7, 21, 37, 0.86)),
    linear-gradient(45deg, var(--navy), #102e45);
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--cyan-2);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: #d8e4ee;
  font-size: 17px;
}

.hero-actions,
.form-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  color: var(--navy);
  background: var(--cyan);
}

.secondary-button {
  color: white;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-product {
  position: relative;
  min-height: 310px;
  display: grid;
  align-content: center;
}

.device {
  position: relative;
  filter: drop-shadow(0 36px 50px rgba(0, 0, 0, 0.32));
}

.device-screen {
  display: grid;
  align-content: center;
  gap: 14px;
  width: min(100%, 430px);
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border: 10px solid #111d2c;
  border-radius: 12px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(35, 199, 221, 0.22), transparent 48%),
    linear-gradient(160deg, #132b44, #071525 70%);
}

.device-screen span {
  color: var(--cyan-2);
  font-size: 18px;
  font-weight: 900;
}

.device-screen strong {
  color: white;
  font-size: 24px;
}

.device-base {
  width: 74%;
  height: 22px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(90deg, #78889a, #f4f7fa, #78889a);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-band div {
  display: grid;
  gap: 3px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: white;
}

.trust-band strong {
  color: var(--navy);
  font-size: 16px;
}

.trust-band span {
  color: #516274;
  font-size: 13px;
}

.section {
  padding: clamp(38px, 5vw, 66px) clamp(18px, 4vw, 54px);
}

.section-heading,
.contact-section,
.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 165px;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 22px;
}

.product-card {
  display: flex;
  align-self: start;
  height: fit-content;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 5px 16px rgba(7, 21, 37, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
  border-color: #c8d5df;
  box-shadow: 0 10px 24px rgba(7, 21, 37, 0.09);
  transform: translateY(-2px);
}

.product-media {
  display: grid;
  place-items: center;
  width: calc(100% - 20px);
  aspect-ratio: 1;
  margin: 10px 10px 0;
  padding: 8px;
}

.product-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.placeholder-laptop {
  width: 72%;
}

.placeholder-laptop .screen {
  height: 68px;
  border: 6px solid #142943;
  border-radius: 10px;
  background: linear-gradient(140deg, #23c7dd, #071525);
}

.placeholder-laptop .base {
  width: 78%;
  height: 9px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: #cfd9e5;
}

.product-body {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 12px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #647386;
  font-size: 12px;
}

.product-body h3 {
  min-height: 40px;
  margin: 5px 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.2;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 0;
}

.price {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.stock {
  border-radius: 8px;
  padding: 4px 7px;
  color: var(--navy);
  background: rgba(40, 201, 139, 0.16);
  font-size: 11px;
  font-weight: 800;
}

.stock.out {
  color: #7a1d1d;
  background: rgba(236, 92, 92, 0.16);
}

.specs {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
  color: #445468;
  font-size: 12px;
}

.specs li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-details {
  margin: 8px 0 10px;
  border-top: 1px solid var(--line);
  padding-top: 2px;
}

.product-details .specs li {
  overflow: visible;
  white-space: normal;
}

.product-details p {
  margin: 8px 0;
  color: #536477;
  font-size: 12px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
}

.product-actions .primary-button,
.product-actions .secondary-button {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 12px;
}

.product-actions .secondary-button {
  color: var(--navy);
  background: white;
  border-color: var(--line);
}

.order-section {
  color: white;
  background: linear-gradient(135deg, var(--navy), #0c2940);
}

.order-section h2 {
  color: white;
}

.order-copy p:not(.eyebrow) {
  color: #d5e0ea;
}

.order-form,
.admin-login,
.admin-form,
.inline-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.order-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: #49705f;
  font-weight: 700;
}

.contact-section {
  background: white;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contact-list a,
.contact-list span {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
  background: var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 64px);
  color: white;
  background: var(--navy);
}

.admin-view {
  min-height: 100vh;
  background: #eef4f8;
}

.admin-login {
  width: min(440px, calc(100% - 32px));
  margin: 8vh auto;
}

.admin-login img {
  width: 180px;
  max-height: 70px;
  object-fit: contain;
}

.admin-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  color: white;
  background: var(--navy);
}

.admin-sidebar img {
  width: 170px;
  max-height: 62px;
  object-fit: contain;
  margin-bottom: 20px;
}

.admin-sidebar button,
.admin-sidebar a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  cursor: pointer;
}

.admin-sidebar button.active {
  color: var(--navy);
  background: var(--cyan);
  font-weight: 900;
}

.admin-content {
  padding: 28px;
}

.admin-heading {
  margin-bottom: 18px;
}

.admin-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 32px;
}

.admin-heading p {
  margin: 6px 0 0;
  color: #536477;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-form .wide {
  grid-column: 1 / -1;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 22px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.admin-item strong {
  color: var(--navy);
}

.admin-item p {
  margin: 3px 0 0;
  color: #5d6e80;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.admin-item-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  cursor: pointer;
}

.admin-item-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-item-actions .danger {
  color: white;
  background: var(--danger);
  border-color: var(--danger);
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .order-section,
  .contact-section,
  .admin-panel {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: stretch;
  }

  .main-nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-product {
    display: none;
  }

  .trust-band,
  .catalog-tools,
  .admin-form,
  .inline-form,
  .product-actions {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    display: grid;
  }
}

@media (max-width: 460px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
