@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0c111b;
  --surface: #151d2b;
  --surface2: #1c2738;
  --text: #f5f7fb;
  --muted: #9ba8ba;
  --accent: #b6f35b;
  --border: rgba(255,255,255,.09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.header {
  height: 82px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12,17,27,.94);
  backdrop-filter: blur(15px);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo-icon {
  width: 37px;
  height: 37px;
  background: var(--accent);
  color: #101510;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 23px;
}

nav {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

nav a:hover {
  color: var(--accent);
}

.cart-button {
  background: var(--surface2);
  color: white;
  padding: 12px 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.cart-button span {
  color: var(--accent);
  margin-left: 8px;
}

.hero {
  min-height: 570px;
  padding: 100px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 75% 50%, #283b32 0%, transparent 45%);
}

.hero-content {
  max-width: 580px;
  z-index: 1;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

h1 {
  font-size: clamp(42px, 6vw, 75px);
  line-height: 1.05;
  letter-spacing: -4px;
  margin: 25px 0;
}

.hero p, .about p, .delivery p, .contacts p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 30px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 9px;
  padding: 15px 22px;
  background: var(--accent);
  color: #11180b;
  font-weight: 800;
  transition: .2s;
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-art {
  width: 330px;
  height: 330px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-circle {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 1px solid rgba(182,243,91,.5);
  box-shadow: 0 0 90px rgba(182,243,91,.12);
}

.hero-label {
  font-size: 53px;
  font-weight: 900;
  line-height: .9;
  color: var(--accent);
  transform: rotate(-10deg);
  letter-spacing: -4px;
}

.features {
  padding: 27px 8%;
  display: flex;
  justify-content: space-around;
  background: var(--surface);
  border-block: 1px solid var(--border);
  color: var(--accent);
}

.features span {
  color: var(--muted);
  font-size: 13px;
  margin-left: 8px;
}

.section {
  padding: 95px 9%;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 35px;
}

h2 {
  font-size: 38px;
  letter-spacing: -1.5px;
  margin-top: 15px;
}

.product-total {
  color: var(--muted);
  font-size: 13px;
}

.catalog-tools {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.catalog-tools input, .catalog-tools select,
#checkoutForm input:not([type=checkbox]) {
  background: var(--surface);
  border: 1px solid var(--border);
  color: white;
  border-radius: 9px;
  padding: 14px;
  outline: none;
}

.catalog-tools input {
  flex: 1;
}

.catalog-tools select {
  min-width: 220px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  transition: .25s;
}

.product:hover {
  transform: translateY(-5px);
  border-color: rgba(182,243,91,.4);
}

.product-image {
  height: 210px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  font-size: 75px;
}

.product-info {
  padding: 22px;
}

.product-info h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.product-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  min-height: 40px;
}

.product-bottom {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 21px;
  font-weight: 800;
}

.add-button {
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  background: var(--accent);
  color: #11180b;
  font-weight: 800;
}

.about {
  background: var(--surface);
}

.about h2, .delivery h2, .contacts h2 {
  margin-bottom: 25px;
}

.delivery, .contacts {
  border-bottom: 1px solid var(--border);
}

footer {
  padding: 35px 9%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

/* Модальные окна */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 20;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
  position: relative;
}

.modal h2 {
  font-size: 27px;
  margin-bottom: 20px;
}

.modal p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  color: white;
  border: none;
  font-size: 30px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.cart-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.remove {
  background: none;
  border: none;
  color: #ff7777;
}

.cart-bottom {
  margin-top: 25px;
}

.total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.full {
  width: 100%;
}

#checkoutForm {
  display: grid;
  gap: 14px;
}

.consent {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.success-message {
  text-align: center;
  padding-top: 20px;
}

.success-icon {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #101510;
  font-size: 35px;
}

.hidden {
  display: none;
}

@media(max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    padding: 80px 7%;
  }

  .hero-art {
    width: 200px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px) {
  .header {
    padding: 0 5%;
  }

  .hero {
    min-height: 480px;
  }

  .hero-art {
    display: none;
  }

  h1 {
    letter-spacing: -2px;
  }

  .features {
    flex-direction: column;
    gap: 18px;
  }

  .section {
    padding: 65px 6%;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .catalog-tools {
    flex-direction: column;
  }

  .catalog-tools select {
    min-width: 0;
  }

  footer {
    flex-direction: column;
    gap: 17px;
  }
}
