:root {
  --bg: #f4f5f7;
  --bg-soft: #ffffff;
  --text: #18181b;
  --muted: #666b76;
  --line: #d8dde6;
  --line-dark: rgba(255,255,255,.12);
  --red: #d91f26;
  --yellow: #f3c600;
  --blue: #1464d2;
  --steel: #cfd5dc;
  --charcoal: #171a1f;
  --shadow: 0 14px 34px rgba(12, 17, 29, .12);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Prompt', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg,#f7f8fa 0%,#eef1f5 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.top-note {
  text-align: center; font-size: 13px; padding: 8px 16px; background: #111; color: #fff;
}
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20,24,31,.08);
}
.nav-wrap { display: flex; align-items: center; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.brand strong { display: block; font-size: 30px; font-style: italic; letter-spacing: .3px; }
.brand small { display: block; color: var(--muted); margin-top: -3px; font-size: 11px; }
.brand-mark {
  width: 36px; height: 36px; display: inline-block; flex: 0 0 auto;
  background: linear-gradient(135deg,var(--red) 0 33%, var(--yellow) 33% 66%, var(--blue) 66% 100%);
  border-radius: 8px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.65);
}
.main-nav { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: center; }
.main-nav a {
  font-weight: 500; color: #2a2f38; padding: 8px 4px; position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
  transform: scaleX(0); transition: .25s ease; background: var(--red); border-radius: 999px;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.ghost-btn, .cart-btn, .menu-toggle, .icon-btn {
  border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 12px;
}
.ghost-btn { padding: 12px 16px; font-weight: 600; }
.cart-btn {
  width: 50px; height: 50px; position: relative; display: grid; place-items: center;
  font-size: 20px;
}
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px;
}
.menu-toggle { display: none; width: 50px; height: 50px; font-size: 24px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; }
.section { padding: 72px 0; }
.hero {
  padding: 48px 0 36px;
  background:
    radial-gradient(circle at 0% 0%, rgba(20,100,210,.08), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(217,31,38,.08), transparent 24%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(20,100,210,.1); color: var(--blue); font-size: 13px; border-radius: 999px; font-weight: 600;
}
.hero-copy h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.06; margin: 18px 0 16px; }
.hero-copy p { font-size: 17px; color: var(--muted); line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  appearance: none; border: none; border-radius: 14px; padding: 14px 20px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #e31b23 0%, #b50f1e 100%);
  box-shadow: 0 12px 24px rgba(217,31,38,.25);
}
.btn-secondary {
  background: linear-gradient(135deg,var(--yellow) 0%, #f0b600 100%);
  color: #171717; box-shadow: 0 12px 24px rgba(243,198,0,.25);
}
.full-width { width: 100%; }
.large-btn { min-height: 56px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-tags span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: #373c46; font-size: 13px;
}
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-badge {
  position: absolute; right: 18px; bottom: 18px; background: rgba(17,20,27,.92); color: #fff;
  padding: 16px 18px; border-radius: 18px; box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-size: 28px; color: var(--yellow); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stat-card {
  background: linear-gradient(180deg,#fff 0%,#f6f7f9 100%); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: 0 8px 24px rgba(16,24,40,.05);
}
.stat-card strong { display: block; font-size: 22px; margin-bottom: 6px; }
.stat-card span { color: var(--muted); font-size: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 0; }
.section-head.light h2, .section-head.light .eyebrow { color: #fff; }
.dark-section { background: linear-gradient(180deg,#10141b 0%, #181c24 100%); color: #fff; }
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 500;
}
.pill.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,24,40,.05); display: flex; flex-direction: column;
}
.product-card .media { aspect-ratio: 4 / 3; background: #fafbfc; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .content { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price-row strong { font-size: 24px; color: var(--red); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta span {
  font-size: 12px; border: 1px solid var(--line); background: #f7f8fa; padding: 6px 8px; border-radius: 999px;
}
.product-actions { display: flex; gap: 10px; margin-top: auto; }
.mini-btn {
  flex: 1; border-radius: 12px; padding: 12px; border: none; cursor: pointer; font-weight: 700;
}
.mini-btn.primary { background: var(--red); color: #fff; }
.mini-btn.secondary { background: #0f1620; color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.portfolio-card {
  position: relative; overflow: hidden; min-height: 220px; border-radius: 24px; border: 1px solid var(--line-dark);
  grid-column: span 4; box-shadow: var(--shadow);
}
.portfolio-card.large { grid-column: span 8; min-height: 460px; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.03); }
.overlay {
  position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.76) 100%);
}
.overlay h3 { margin: 0 0 6px; font-size: 22px; }
.overlay.compact h3 { margin: 0; font-size: 18px; }
.feature-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li {
  padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(16,24,40,.04);
}
.feature-panel img { border-radius: 24px; box-shadow: var(--shadow); }
.faq-list { display: grid; gap: 12px; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px;
  box-shadow: 0 8px 20px rgba(16,24,40,.04);
}
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 12px 0 0; line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-info ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.contact-card {
  background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px; box-shadow: 0 8px 24px rgba(16,24,40,.05);
}
.prototype-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; color: #374151; }
.floating-actions {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px;
}
.floating-actions button {
  border: none; padding: 14px 16px; border-radius: 16px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
}
#floatingQuoteBtn { background: var(--yellow); }
#floatingCartBtn { background: var(--red); color: #fff; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: min(420px, 100vw); height: 100vh; background: #fff; z-index: 90;
  box-shadow: -24px 0 48px rgba(0,0,0,.16); transition: right .28s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.drawer-header, .drawer-footer { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-footer { border-top: 1px solid var(--line); border-bottom: none; margin-top: auto; flex-direction: column; gap: 14px; align-items: stretch; }
.drawer-body { padding: 14px 20px; overflow: auto; display: grid; gap: 12px; }
.cart-item {
  border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 88px 1fr; gap: 12px;
}
.cart-item img { width: 88px; height: 72px; object-fit: cover; border-radius: 12px; }
.cart-item h4 { margin: 0 0 4px; font-size: 16px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 13px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.qty-btn, .remove-btn {
  border: 1px solid var(--line); background: #f8fafc; border-radius: 10px; width: 32px; height: 32px; cursor: pointer;
}
.remove-btn { width: auto; padding: 0 10px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.backdrop {
  position: fixed; inset: 0; background: rgba(7,10,18,.45); opacity: 0; visibility: hidden; transition: .25s ease; z-index: 80;
}
.backdrop.show { opacity: 1; visibility: visible; }
.checkout-panel {
  position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%) scale(.98); width: min(1160px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); overflow: auto; background: #fff; z-index: 95; border-radius: 24px; box-shadow: 0 26px 60px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: .25s ease;
}
.checkout-panel.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.checkout-header { padding: 24px 26px 16px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.checkout-header h2 { margin: 8px 0 0; font-size: 34px; }
.stepper { display: flex; gap: 12px; padding: 16px 26px 0; flex-wrap: wrap; }
.step {
  background: #f1f5f9; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: #485263; font-size: 14px; font-weight: 600;
}
.step.active { background: rgba(217,31,38,.1); color: var(--red); border-color: rgba(217,31,38,.24); }
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; padding: 22px 26px 26px; }
.checkout-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
label { display: grid; gap: 8px; font-weight: 500; color: #28303a; }
input[type='text'], input[type='tel'], textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 15px; outline: none;
}
input[type='text']:focus, input[type='tel']:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,100,210,.12); }
.payment-box, .checkout-summary, .notify-card, .modal-card {
  border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(16,24,40,.05);
}
.payment-box { padding: 18px; }
.payment-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.badge { background: #eef4ff; color: var(--blue); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.payment-grid { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.qr-frame {
  width: 160px; height: 160px; display: grid; place-items: center; padding: 10px; border-radius: 18px; border: 1px dashed #c8ced8; background: #fafafa;
}
.payment-summary strong { display: block; font-size: 30px; color: var(--red); margin: 8px 0; }
.file-upload {
  padding: 18px; border-radius: 16px; border: 1px dashed #9da8b7; background: #f9fafb;
}
.file-upload input { width: 100%; }
#slipFileName { color: var(--muted); font-size: 13px; }
.checkout-summary { padding: 18px; height: fit-content; position: sticky; top: 20px; }
.order-list { display: grid; gap: 12px; margin-top: 16px; }
.summary-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px;
}
.summary-item img { width: 72px; height: 64px; border-radius: 12px; object-fit: cover; }
.summary-item h4 { margin: 0 0 4px; font-size: 15px; }
.summary-item p { margin: 0; font-size: 13px; color: var(--muted); }
.summary-total { margin-top: 16px; display: grid; gap: 10px; }
.summary-total .row { display: flex; justify-content: space-between; align-items: center; }
.summary-total .grand { font-size: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.notification-panel { display: none; padding-bottom: 72px; }
.notification-panel.show { display: block; }
.notifications-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.notify-card { padding: 18px; }
.notify-card.telegram { background: linear-gradient(180deg,#fff 0%,#f6f8ff 100%); }
.notification-box { margin-top: 10px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.notification-box.muted { color: var(--muted); }
.modal {
  position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; background: rgba(12,17,29,.42);
  opacity: 0; visibility: hidden; transition: .25s ease;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-card { width: min(580px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.quote-form { display: grid; gap: 16px; padding: 20px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 88px; }
.hidden { display: none !important; }
.empty-state {
  padding: 28px; border-radius: 16px; background: #fafbfd; border: 1px dashed var(--line); text-align: center; color: var(--muted);
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .feature-layout, .contact-grid, .checkout-grid { grid-template-columns: 1fr; }
  .portfolio-card.large, .portfolio-card { grid-column: span 6; }
}

@media (max-width: 860px) {
  .nav-wrap { min-height: 74px; flex-wrap: wrap; }
  .brand strong { font-size: 24px; }
  .main-nav {
    display: none; width: 100%; order: 4; justify-content: flex-start; flex-wrap: wrap;
    background: #fff; padding: 12px 0 4px; border-top: 1px solid var(--line);
  }
  .main-nav.show { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card.large, .portfolio-card { grid-column: span 12; }
  .prototype-list { grid-template-columns: 1fr; }
  .payment-grid, .notifications-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 20px, 1200px); }
  .section { padding: 56px 0; }
  .hero { padding-top: 24px; }
  .hero-copy h1 { font-size: 34px; }
  .stats-grid, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .ghost-btn { display: none; }
  .cart-btn, .menu-toggle { width: 44px; height: 44px; }
  .hero-badge { position: static; margin-top: 12px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .filter-pills { justify-content: flex-start; }
  .checkout-header h2 { font-size: 28px; }
  .checkout-panel { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 18px; }
  .checkout-header, .checkout-grid, .stepper { padding-left: 16px; padding-right: 16px; }
  .payment-grid { gap: 12px; }
  .qr-frame { width: 140px; height: 140px; }
  .floating-actions { left: 10px; right: 10px; bottom: 10px; flex-direction: row; }
  .floating-actions button { flex: 1; }
  .footer-wrap { flex-direction: column; align-items: flex-start; padding: 18px 0; }
}
