:root {
  --bg: #090e1f;
  --surface: #121a35;
  --surface-soft: #1a2448;
  --text: #edf1ff;
  --muted: #a7b3d9;
  --primary: #ff4d5e;
  --secondary: #4dd7ff;
  --accent: #ffe14d;
  --warning: #ffb347;
  --success: #34d399;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 16px 34px rgba(3, 7, 20, 0.5);
  --gradient-main: linear-gradient(120deg, #ff4d5e 0%, #f96b3c 35%, #4dd7ff 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -20%, #2a3568 0%, var(--bg) 46%), #070c1a;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 74px 0;
  position: relative;
}

.section:nth-of-type(even):not(.hero):not(.page-hero) {
  background: rgba(255, 255, 255, 0.015);
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.top-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 10, 24, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--gradient-main);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255, 77, 94, 0.45);
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  color: #bdc8ec;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.83rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.hero {
  color: #fff;
  background: linear-gradient(130deg, rgba(8, 12, 26, 0.94), rgba(15, 26, 64, 0.9)),
    url("https://images.unsplash.com/photo-1515169067868-5387ec356754?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
  min-height: 82vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(to top, rgba(9, 14, 31, 0.96), rgba(9, 14, 31, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 14px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero p {
  color: #d5def8;
  margin-bottom: 24px;
}

.hero-card {
  background: rgba(8, 15, 34, 0.7);
  border: 1px solid rgba(77, 215, 255, 0.4);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 14px 40px rgba(1, 6, 19, 0.6);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.button.primary {
  color: #fff;
  background: var(--gradient-main);
  box-shadow: 0 10px 22px rgba(255, 77, 94, 0.42);
}

.button.light {
  color: #101530;
  background: var(--accent);
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.04);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.categories {
  grid-template-columns: repeat(4, 1fr);
}

.grid.products {
  grid-template-columns: repeat(3, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.5);
}

.card-body {
  padding: 18px;
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(77, 215, 255, 0.16);
  color: #77e2ff;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(77, 215, 255, 0.3);
}

.price {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

.icon-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--gradient-main);
  margin-bottom: 8px;
}

.blog-card img,
.product-thumb,
.category-thumb {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.category-thumb {
  height: 170px;
}

.testimonial {
  border-left: 4px solid var(--primary);
}

.newsletter-box {
  border-radius: var(--radius);
  background: linear-gradient(130deg, #101835, #182858, #203f86);
  color: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

form .field {
  margin-bottom: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(77, 215, 255, 0.35);
  background: #0e1733;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(77, 215, 255, 0.35);
  border-color: var(--secondary);
}

.error {
  color: #c62828;
  font-size: 0.88rem;
  margin-top: 6px;
}

.success-message {
  background: rgba(52, 211, 153, 0.15);
  color: #a6f3cf;
  border: 1px solid rgba(52, 211, 153, 0.5);
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 12px;
}

.page-hero {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(115deg, #121a38 0%, #1a2c66 55%, #0e6b9a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero h1 {
  margin: 0;
}

.content-panel {
  background: rgba(18, 26, 53, 0.96);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-content h2 {
  margin-top: 24px;
}

.legal-content h3 {
  margin-top: 20px;
}

.gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumbs img {
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbs img.active {
  border-color: var(--accent);
}

.reviews li {
  margin-bottom: 12px;
}

.footer {
  background: #060a16;
  color: #97a7d4;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
}

.scroll-top.visible {
  display: inline-grid;
  place-items: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .hero-grid,
  .grid.products,
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .mobile-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #070d24;
    padding: 14px 4%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .hero-grid,
  .grid.categories,
  .grid.products,
  .grid.three,
  .thumbs {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .content-panel {
    padding: 20px;
  }
}
