:root {
  --bg-main: #0b1f2a;
  --bg-alt: #122836;
  --bg-card: #152c3b;
  --accent: #4fb3bf;
  --accent-soft: #9ce0e8;
  --text-main: #f4f7fb;
  --text-muted: #9fa9b8;
  --border-soft: #23394a;
  --danger: #ff6b6b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container-width: 1120px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #16354a 0, #050c12 55%, #020509 100%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 10, 18, 0.92), rgba(5, 10, 18, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--text-main);
}

.logo span {
  color: var(--accent-soft);
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.main-nav a {
  padding: 6px 0;
  position: relative;
  color: var(--text-muted);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(79,179,191,0.28), rgba(4,12,20,0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cart-icon {
  font-size: 16px;
}

#cart-count {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
}

/* Hero */

main {
  flex: 1;
}

.hero {
  padding: 40px 0 32px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding-inline: 20px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 16px;
}

.hero-text p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-card {
  position: absolute;
  left: 10%;
  bottom: -12%;
  max-width: 260px;
  background: linear-gradient(135deg, rgba(11, 31, 42, 0.95), rgba(9, 51, 69, 0.95));
  padding: 16px 18px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(159, 169, 184, 0.4);
}

.hero-card h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.hero-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Sections */

.section {
  padding: 40px 20px;
}

.section-grid-3 {
  background: radial-gradient(circle at top, #102739 0, #050b11 65%);
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 560px;
}

.section-grid-3 .card,
.section-grid-3 .product-card {
  background: linear-gradient(145deg, #0f2535, #071018);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.section-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.section-grid-3 > .section-title {
  grid-column: 1/-1;
}

/* Split sections */

.section-split-alt {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.split-media img {
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.split-text h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.split-text p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #041016;
  box-shadow: 0 14px 30px rgba(79, 179, 191, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(79, 179, 191, 0.6);
}

.btn-secondary {
  background: rgba(10, 33, 45, 0.95);
  color: var(--text-main);
  border: 1px solid rgba(159, 169, 184, 0.5);
}

.btn-secondary:hover {
  background: rgba(17, 49, 65, 0.95);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid rgba(79, 179, 191, 0.4);
}

.btn-ghost:hover {
  background: rgba(4, 20, 28, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(159, 169, 184, 0.5);
}

.btn-outline:hover {
  border-color: var(--accent-soft);
  background: rgba(9, 31, 44, 0.9);
}

/* Product cards */

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card h3,
.product-card h2 {
  margin: 0 0 4px;
}

.product-card p {
  margin: 0 0 6px;
  color: var(--text-muted);
}

.product-card .price {
  font-weight: 600;
  color: var(--accent-soft);
}

.product-card .btn {
  margin-top: 6px;
}

/* Page header */

.page-header {
  padding: 32px 20px 12px;
}

.page-header h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Product layout */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: flex-start;
}

.product-gallery img {
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.product-info p {
  color: var(--text-muted);
  line-height: 1.6;
}

.price.big {
  font-size: 22px;
  margin-top: 8px;
}

/* Forms */

.lead-form,
.checkout-form,
.contact-form {
  margin-top: 24px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0f2535, #0b1a24);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.lead-form h2,
.checkout-form h2,
.contact-form h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 13px;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  background: #050c13;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 9px 11px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(79, 179, 191, 0.4);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* Catalog grid */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

.link-more {
  font-size: 13px;
  text-decoration: underline;
}

/* Cart */

.cart-empty {
  background: linear-gradient(145deg, #0f2535, #071018);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}

.cart-empty a {
  margin-left: 6px;
}

.cart-content.hidden {
  display: none;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
  padding: 10px 8px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

.cart-total-label {
  margin: 0 0 4px;
  color: var(--text-muted);
}

.cart-total-value {
  margin: 0;
  font-size: 20px;
  color: var(--accent-soft);
}

.remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 13px;
}

/* Lists */

.list {
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* Legal text */

.legal-text p {
  line-height: 1.7;
  color: var(--text-muted);
}

/* Contact layout */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at top, #0c202f 0, #05070b 60%);
  padding: 24px 20px 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.2fr;
  gap: 28px;
  font-size: 13px;
}

.footer-grid h4 {
  margin: 0 0 8px;
}

.footer-grid p {
  margin: 0 0 4px;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
  padding-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-split,
  .section-split-alt,
  .product-layout,
  .contact-layout,
  .cart-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 26px;
  }

  .hero-card {
    position: static;
    margin-top: 12px;
  }

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

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

@media (max-width: 680px) {
  .header-inner {
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

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