:root {
  --bg: #f3fbff;
  --accent: #e2f3ff;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --text: #0f172a;
  --muted: #64748b;
  --border: #cfe5f5;
  --radius-main: 16px;
  --gap-main: 22px;
}

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

body.theme-ice {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e0f2ff 0, var(--bg) 45%, #f8fcff 100%);
  color: var(--text);
  line-height: 1.5;
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.header-a {
  background: rgba(243, 251, 255, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-sub {
  color: var(--muted);
}

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

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.18s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
  background: none;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.primary-outline {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #f9fcff;
}

.primary-outline:hover {
  background: #ffffff;
}

.ghost-btn {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.ghost-btn:hover {
  background: #ffffff;
}

.btn.full {
  width: 100%;
}

.btn.small {
  font-size: 12px;
  padding: 6px 12px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-feature {
  background: radial-gradient(circle at top right, #e2f3ff 0, transparent 60%);
}

.section-accent {
  background: linear-gradient(135deg, #e2f3ff, #f5fbff);
}

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

.section-header h1,
.section-header h2 {
  margin: 0 0 8px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Hero */
.hero {
  padding-top: 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap-main);
  align-items: center;
}

.hero-text h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero-text p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.hero-list li::before {
  content: "• ";
  color: var(--primary);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

/* Cards & grids */
.card {
  background: #ffffff;
  border-radius: var(--radius-main);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.feature-grid,
.blog-grid,
.catalog-grid {
  display: grid;
  gap: var(--gap-main);
}

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

.accent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--gap-main);
  align-items: center;
}

.accent-text p {
  color: var(--muted);
  margin-bottom: 16px;
}

.accent-cards {
  display: grid;
  gap: 10px;
}

.mini-card {
  border-radius: 14px;
  border: 1px dashed var(--border);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.98);
}

.blog-grid .card p {
  color: var(--muted);
}

/* Catalog */
.product-card h2 {
  margin-top: 0;
}

.product-card p {
  color: var(--muted);
}

.price {
  font-weight: 600;
  margin: 8px 0 10px;
  color: var(--primary-dark);
}

.link-small {
  font-size: 13px;
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: var(--gap-main);
  align-items: center;
}

.product-info h1 {
  margin-top: 0;
}

.product-info p {
  color: var(--muted);
}

.product-info .big {
  font-size: 20px;
  color: var(--primary-dark);
}

.product-meta p {
  margin: 4px 0;
  font-size: 14px;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: var(--gap-main);
}

.cart-items h2,
.cart-form h2 {
  margin-top: 0;
}

#cart-items {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 6px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.8fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 14px;
}

.cart-item-row input {
  width: 72px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-weight: 600;
}

.cart-form form {
  display: grid;
  gap: 10px;
}

.cart-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.cart-form input,
.cart-form textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
}

.cart-form textarea {
  resize: vertical;
}

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

/* Generic pages */
.narrow {
  max-width: 720px;
}

.narrow h1 {
  margin-top: 0;
}

.narrow p {
  color: var(--muted);
}

.legal-text h2 {
  margin-top: 20px;
}

.center-text {
  text-align: center;
}

.center-text p {
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 40px;
  background: #f9fcff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 10px;
  font-size: 13px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  font-size: 12px;
  padding: 8px 0 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-grid,
  .product-layout,
  .cart-layout,
  .accent-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .header-inner {
    align-items: flex-start;
  }
  .logo-sub {
    display: none;
  }
}
