:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --bg-muted: #151c26;
  --text: #e8edf4;
  --text-muted: #9aa8bc;
  --accent: #ff6b4a;
  --accent-soft: rgba(255, 107, 74, 0.15);
  --accent-hover: #ff8266;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font: "Manrope", system-ui, sans-serif;
  --container: min(1120px, 100% - 2rem);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 74, 0.12), transparent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #e84a7a);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.logo-accent {
  color: var(--accent);
}

.nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.cart-btn {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.nav .cart-btn {
  margin-left: 0;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .cart-btn {
    margin-left: 0;
  }
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.hero-card {
  position: absolute;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card--1 {
  top: 10%;
  left: 5%;
  max-width: 220px;
}

.hero-card--2 {
  bottom: 15%;
  right: 5%;
  max-width: 200px;
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.hero-card p {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.hero-glow {
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn[aria-selected="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(255, 107, 74, 0.35);
  transform: translateY(-2px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-muted);
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
}

.product-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-desc {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.catalog-sale-banner {
  color: #ff4d4d;
}

.price-block {
  margin-top: 0.35rem;
}

.price-sale-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6b6b;
}

.price-sale-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.sale-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, #ff3b3b, #c81e1e);
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.sale-badges-on-image {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.price-old {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 107, 107, 0.85);
  text-decoration-thickness: 2px;
}

.price-current {
  margin: 0;
  padding: 0.45rem 0.65rem;
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e82222, #b01010);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(232, 34, 34, 0.35);
}

.price-block--detail .price-current {
  font-size: 1.2rem;
  padding: 0.55rem 0.85rem;
}

.product-price {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.product-card-open {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.product-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.product-footer--card {
  padding: 0 1rem 1rem;
}

.product-badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.product-actions {
  display: flex;
  gap: 0.4rem;
}

.catalog-note {
  text-align: center;
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Delivery */
.delivery-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .delivery-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.check-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.check-list li {
  margin-bottom: 0.5rem;
}

.trust-card {
  padding: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 74, 0.25);
  border-radius: var(--radius);
}

.trust-card h3 {
  margin: 0 0 0.5rem;
}

.trust-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.section--cta {
  background: linear-gradient(180deg, var(--bg-muted), var(--bg));
}

.cta-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-links a {
  display: inline-flex;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quick-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.quick-form input,
.quick-form textarea {
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.quick-form input:focus,
.quick-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--text-muted);
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.cart-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}

.cart-drawer[aria-hidden="false"] .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}

.cart-drawer[aria-hidden="false"] .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
}

.icon-btn:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.cart-list {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  list-style: none;
}

.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.cart-list .item-name {
  font-weight: 600;
}

.cart-list .item-meta {
  grid-column: 1;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cart-list .item-remove {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.cart-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty[hidden],
.cart-list[hidden] {
  display: none;
}

.cart-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

/* Contact phone */
.contact-phone-block {
  margin-top: 1rem;
}

.contact-phone {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-phone:hover {
  color: var(--accent);
}

.contact-phone-hint {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card h3 {
  margin: 0 0 0.5rem;
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.modal[aria-hidden="false"] {
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s;
}

.modal[aria-hidden="false"] .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, calc(100% - 2rem));
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.modal-panel--wide {
  width: min(960px, calc(100% - 1.5rem));
  padding: 1.25rem 1.25rem 1.5rem;
}

.modal[aria-hidden="false"] .modal-panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.modal-panel h2 {
  margin: 0 0 0.75rem;
  padding-right: 2rem;
  font-size: 1.35rem;
}

.order-hint {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.order-product {
  margin: 0 0 1rem;
  font-weight: 600;
}

.order-phone {
  display: block;
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
}

.order-message-label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-message {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg-muted);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.order-footer-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Product detail */
.product-detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-muted);
}

.gallery-thumb.is-active {
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-price {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.product-detail-info .price-block {
  margin-bottom: 1rem;
}

.product-detail-text p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-features {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.9rem;
}

.product-features li {
  margin-bottom: 0.35rem;
}

.product-detail-phone {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.product-detail-phone a {
  font-weight: 700;
  color: var(--accent);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
