:root {
  --bg: #070707;
  --teal: #6b9aab;
  --teal-btn: #4a7582;
  --teal-active: #426673;
  --white: #ffffff;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.12);
  --modal-bg: #383838;
  --modal-success-bg: #383838;
  --modal-inner: #2a2a2a;
  --input-bg: #111111;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --phone-w: 390px;
  --content-w: 390px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: #000;
  color: var(--white);
  font-family: "Noto Sans Armenian", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

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

button,
input {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

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

.site {
  width: 100%;
  max-width: var(--content-w);
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(24px + var(--safe-bottom));
  position: relative;
}

/* Sticky top: call bar + header stay while scrolling */
.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(10px + var(--safe-top)) 14px 6px;
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-call {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(74, 117, 130, 0.42), rgba(45, 78, 90, 0.55));
  border: 1px solid rgba(143, 190, 204, 0.35);
  color: #f3fafc;
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-call:hover,
.header-call:focus-visible {
  border-color: rgba(175, 214, 225, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.header-call-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(159, 208, 223, 0.22), transparent 55%);
  pointer-events: none;
  animation: call-glow 3s ease-in-out infinite;
}

.header-call-icon-wrap {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 7, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.header-call-icon {
  width: 17px;
  height: 17px;
  color: #b7e0ea;
  animation: call-icon-soft 2.2s ease-in-out infinite;
}

.header-call-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.header-call-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 245, 250, 0.72);
}

.header-call-num {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  white-space: nowrap;
}

@keyframes call-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes call-icon-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Header */
.site-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 2px 2px;
}

.menu-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.logo-wrap {
  text-align: center;
  line-height: 1;
}

.logo-invest {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 2px;
}

.logo-class {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.header-spacer {
  width: 44px;
  height: 44px;
}

/* Sections */
.section {
  padding: 20px 22px;
}

.section-title {
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--white);
}

/* Hero */
.hero {
  padding-top: 8px;
  padding-bottom: 8px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
}

.hero-track {
  display: flex;
  width: 100%;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: pan-y;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-media {
  width: 100%;
  max-width: 360px;
  margin: 4px auto 0;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

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

.hero-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 148px;
}

.hero-slide .section-title {
  min-height: 84px;
}

.hero-slide .section-text {
  flex: 1 1 auto;
  min-height: 48px;
}

.hero-slide .btn-primary {
  margin-top: auto;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: var(--teal);
  transform: scale(1.15);
}

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 22px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--teal-btn);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.btn-primary:active:not(:disabled):not(.is-disabled) {
  transform: scale(0.985);
  filter: brightness(0.92);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  background: #3a3a3a;
  color: #9a9a9a;
  cursor: not-allowed;
  opacity: 0.85;
  pointer-events: none;
}

/* Card carousel */
.models-section {
  padding-top: 28px;
}

.carousel-wrap {
  margin-top: 22px;
  position: relative;
}

.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 8px 20px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 78%;
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
  padding: 4px 0;
}

.carousel-card:active {
  transform: scale(0.98);
}

.carousel-card-glow {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 18%;
  bottom: 8%;
  border-radius: 22px;
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.carousel-card.is-standart .carousel-card-glow {
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(72, 155, 185, 0.75) 0%,
    rgba(55, 120, 150, 0.35) 45%,
    transparent 72%
  );
}

.carousel-card.is-premium .carousel-card-glow {
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(95, 115, 135, 0.6) 0%,
    rgba(70, 85, 100, 0.28) 45%,
    transparent 72%
  );
}

.carousel-card.is-ultimate .carousel-card-glow {
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(55, 60, 70, 0.65) 0%,
    rgba(35, 40, 48, 0.35) 45%,
    transparent 72%
  );
}

.card-frame {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
}

.card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
}

.card-status.is-available {
  background: rgba(40, 140, 110, 0.92);
  color: #fff;
}

.card-status.is-sold-out {
  background: rgba(180, 40, 40, 0.92);
  color: #fff;
}

.carousel-card.is-sold-out .card-frame img {
  filter: grayscale(0.35) brightness(0.82);
}

.modal-status {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.modal-status.is-available {
  background: rgba(40, 140, 110, 0.92);
  color: #fff;
}

.modal-status.is-sold-out {
  background: rgba(180, 40, 40, 0.92);
  color: #fff;
}

.carousel-card.is-standart .card-frame {
  box-shadow:
    0 0 22px rgba(62, 145, 175, 0.75),
    0 0 44px rgba(50, 120, 150, 0.4),
    inset 0 0 0 1px rgba(130, 190, 210, 0.18);
}

.carousel-card.is-premium .card-frame {
  box-shadow:
    0 0 20px rgba(88, 108, 128, 0.6),
    0 0 38px rgba(65, 80, 95, 0.32),
    inset 0 0 0 1px rgba(145, 160, 175, 0.14);
}

.carousel-card.is-ultimate .card-frame {
  box-shadow:
    0 0 18px rgba(65, 70, 80, 0.55),
    0 0 34px rgba(35, 40, 48, 0.42),
    inset 0 0 0 1px rgba(110, 115, 125, 0.16);
}

.carousel-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.btn-order-card {
  margin-top: 8px;
}

/* Contact */
.contact-boxes {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-box .label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-box .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
}

.contact-box a.value:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 32px 22px 20px;
  text-align: center;
}

.footer-logo .logo-invest {
  font-size: 12px;
}

.footer-logo .logo-class {
  font-size: 30px;
}

.footer-line {
  margin: 20px auto;
  height: 1px;
  width: 100%;
  background: var(--line);
}

.footer-copy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.demo-link-footer {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--teal);
  transition: background 0.15s ease;
}

.demo-link-footer:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Overlay & modals */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: var(--phone-w);
  z-index: 101;
  transition: transform 0.28s ease;
}

.modal-panel.is-open {
  transform: translate(-50%, 0);
}

/* Success modal — centered card (Figma) on all screens */
.modal-panel--center {
  top: 50%;
  bottom: auto;
  max-width: min(calc(100% - 32px), 360px);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.modal-panel--center.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--modal-bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 22px 20px calc(24px + var(--safe-bottom));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-title-teal {
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.modal-title-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--white);
  font-weight: 400;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

/* Menu overlay */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 102;
  background: var(--bg);
  padding: var(--safe-top) 22px calc(24px + var(--safe-bottom));
  transform: translateX(100%);
  transition: transform 0.28s ease, visibility 0.28s ease;
  max-width: var(--phone-w);
  margin: 0 auto;
  left: 0;
  right: 0;
  visibility: hidden;
  pointer-events: none;
}

.menu-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.menu-nav a {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.menu-nav a.is-active {
  color: var(--teal-active);
}

.menu-nav a.demo-nav-link {
  color: var(--teal);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  margin-top: 8px;
}

.menu-lang {
  margin-top: auto;
  position: absolute;
  bottom: calc(24px + var(--safe-bottom));
  left: 22px;
  right: 22px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: #1a1a1a;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-size: 15px;
}

.menu-lang .flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    #d90012 0%,
    #d90012 33%,
    #0033a0 33%,
    #0033a0 66%,
    #f2a800 66%
  );
}

/* Call form */
.form-field {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 20px;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 12px;
}

.form-field::placeholder {
  color: #888;
}

.form-consent {
  margin: 14px 0 18px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(180, 60, 60, 0.15);
  border: 1px solid rgba(220, 90, 90, 0.35);
  color: #f0a0a0;
  font-size: 13px;
  line-height: 1.4;
}

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

/* Success modal */
.modal-sheet--success {
  background: var(--modal-success-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-success {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.success-visual {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
  padding: 0;
  min-height: 0;
}

.success-visual img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.success-text {
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
  color: #f2f2f2;
}

.btn-success-close {
  margin-top: 0;
}

/* Card detail modal */
.card-detail-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 14px;
}

.price-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 15px;
}

.price-bar strong {
  font-weight: 700;
}

.card-description {
  font-size: 14px;
  line-height: 1.55;
  color: #ddd;
  margin-bottom: 20px;
}

.card-description .card-desc-title {
  display: block;
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.card-description p {
  margin: 0 0 10px;
}

.card-description .desc-num {
  color: #9fd0df;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(107, 154, 171, 0.35);
}

@media (min-width: 768px) {
  :root {
    --content-w: 430px;
  }

  body {
    padding: 32px 24px;
    background: radial-gradient(ellipse at 50% 0%, #141414 0%, #000 55%);
  }

  .site {
    border-radius: 24px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 28px 80px rgba(0, 0, 0, 0.65);
    overflow-x: clip;
    overflow-y: visible;
    min-height: min(920px, calc(100dvh - 64px));
  }

  .site-top {
    border-radius: 24px 24px 0 0;
    padding: 14px 18px 8px;
  }

  .header-call {
    min-height: 52px;
  }

  .header-call-num {
    font-size: 16px;
  }

  .site-header {
    padding: 10px 2px 4px;
  }

  .logo-class {
    font-size: 28px;
  }

  .section {
    padding: 24px 28px;
  }

  .hero-media {
    max-width: 380px;
  }

  .carousel-card {
    flex: 0 0 300px;
  }

  .carousel {
    padding: 12px 12px 24px;
    gap: 18px;
  }

  /* Bottom sheets → centered dialogs on desktop */
  .modal-panel {
    top: 50%;
    bottom: auto;
    max-width: 400px;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.28s ease,
      opacity 0.28s ease;
  }

  .modal-panel.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .modal-panel--center.is-open {
    transform: translate(-50%, -50%) scale(1);
  }

  .modal-sheet {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 24px 28px;
  }

  .modal-sheet--success {
    padding: 26px 24px 28px;
  }

  /* Full-screen menu overlay */
  .menu-panel {
    max-width: none;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--safe-top) + 32px);
    padding-left: 24px;
    padding-right: 24px;
  }

  .menu-top,
  .menu-nav,
  .menu-lang {
    width: 100%;
    max-width: 400px;
  }

  .menu-lang {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 48px;
  }

  .contact-boxes {
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  :root {
    --content-w: 460px;
  }

  .hero-media {
    max-width: 400px;
  }
}

/* Landing CTA blocks (no cards) */
.hero-cta {
  padding-top: 10px;
}

.hero-cta .hero-media {
  margin-bottom: 12px;
}

.action-block {
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
  padding-top: 14px;
  padding-bottom: 14px;
  line-height: 1.45;
  font: inherit;
}

.form-field[hidden],
.form-textarea[hidden] {
  display: none !important;
}
