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

:root {
  --vm-bg: #F5F5F5;
  --vm-ink: #111746;
  --vm-muted: #6b7280;
  --vm-soft: #f2f4f6;
  --vm-line: #e5e7eb;
  --vm-blue: #386EF2;
  --vm-yellow: #fcd34d;
  --vm-radius: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--vm-bg);
  color: var(--vm-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 70px;
  padding: 0 52px 1px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid #f3f4f6;
  backdrop-filter: blur(6px);
}

.header__inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 237px;
}

.brand__mark { width: 61px; height: 52px; object-fit: contain; }
.brand__text { width: 168px; height: 24px; object-fit: contain; }

.nav {
  position: relative;
  width: 548px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--vm-ink);
  font-weight: 500;
  line-height: 21px;
}

.catalog-btn {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--vm-blue);
  color: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
  font-weight: 600;
}

.dot-icon {
  width: 11px;
  height: 12px;
  border-radius: 3px;
  border: 2px solid currentColor;
}

.chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  width: 155px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  background: var(--vm-soft);
  color: #9ca3af;
}

.search span {
  width: 96px;
  overflow: hidden;
  white-space: nowrap;
}

.circle {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
}

.search .circle { width: 32px; height: 32px; }

.phone {
  display: inline-flex;
  height: 32px;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--vm-soft);
  font-size: 12px;
  font-weight: 600;
}

.cart {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--vm-soft);
}

.cart::before {
  content: "";
  width: 14px;
  height: 16px;
  border: 2px solid var(--vm-ink);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.cart::after {
  content: "3";
  position: absolute;
  right: -4px;
  top: -5px;
  width: 16px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--vm-blue);
  color: #fff;
  font-size: 9px;
}

.btn {
  display: inline-flex;
  min-width: 0;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.btn--dark {
  background: var(--vm-ink);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

.btn--light {
  border: 2px solid var(--vm-line);
  background: #fff;
  color: var(--vm-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .cat,
  .about-card,
  .product-card,
  .panel,
  .checkout-card,
  .contact-card,
  .delivery-card {
    animation: vm-rise .58s cubic-bezier(.2, .7, .2, 1) both;
  }

  .cat:nth-child(2),
  .product-card:nth-child(2),
  .about-card:nth-child(2) { animation-delay: .05s; }
  .cat:nth-child(3),
  .product-card:nth-child(3),
  .about-card:nth-child(3) { animation-delay: .1s; }
  .cat:nth-child(4),
  .product-card:nth-child(4),
  .about-card:nth-child(4) { animation-delay: .15s; }

  @keyframes vm-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.catalog-btn,
.btn,
.cat,
.product-card,
.qty-btn,
.mini-btn,
.faq-item,
.footer__cta {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.catalog-btn:hover,
.btn:hover,
.cat:hover,
.product-card:hover,
.footer__cta:hover {
  transform: translateY(-2px);
}

.cat:hover,
.product-card:hover,
.panel:hover,
.contact-card:hover,
.delivery-card:hover {
  box-shadow: 0 18px 40px rgba(45, 49, 66, .08);
}

.faq-answer {
  display: none;
  margin: -8px 0 8px;
  padding: 0 24px 18px;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
}

.faq-item.is-open + .faq-answer {
  display: block;
}

.faq-item.is-open .plus {
  transform: rotate(45deg);
}

.page-shell {
  width: min(100% - 40px, 1400px);
  margin: 0 auto;
  padding: 32px 32px 120px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.page-head h1 {
  margin: 0;
  color: var(--vm-ink);
  font-family: Oswald, Arial, sans-serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 62px;
  text-transform: uppercase;
}

.page-head p {
  max-width: 420px;
  margin: 0;
  color: #9ca3af;
  line-height: 20px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.filters,
.panel,
.checkout-card,
.contact-card,
.delivery-card {
  border-radius: 24px;
  background: #fff;
}

.filters {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.filters h2 {
  margin: 0 0 18px;
  font-family: Oswald, Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}

.filter-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--vm-muted);
}

.filter-list a.is-active,
.filter-list a:hover {
  background: rgba(107, 154, 196, .1);
  color: var(--vm-blue);
}

.shop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #9ca3af;
}

.sort-pill {
  min-width: 190px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--vm-ink);
}

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

.product-card {
  position: relative;
  min-height: 322px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  color: var(--vm-ink);
}

.product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(107, 154, 196, .12);
  color: var(--vm-blue);
  font-size: 12px;
  font-weight: 700;
}

.product-card__image {
  display: grid;
  height: 172px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #F5F5F5;
}

.product-card__image img {
  max-height: 150px;
  object-fit: contain;
}

.product-card h3 {
  margin: 0 0 8px;
  font-family: Oswald, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-transform: uppercase;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--vm-blue);
  font-size: 20px;
  font-weight: 700;
}

.mini-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--vm-ink);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.mini-btn:hover {
  background: #1f2434;
}

.product-page {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 28px;
}

.gallery-panel,
.summary-panel {
  border-radius: 32px;
  background: #fff;
}

.gallery-panel {
  display: grid;
  min-height: 600px;
  place-items: center;
  padding: 60px;
}

.gallery-panel img {
  max-height: 480px;
  object-fit: contain;
}

.summary-panel {
  align-self: start;
  padding: 32px;
}

.summary-panel h1 {
  margin: 0 0 12px;
  font-family: Oswald, Arial, sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 54px;
  text-transform: uppercase;
}

.summary-panel p {
  color: var(--vm-muted);
  line-height: 22px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  margin: 22px 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--vm-soft);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--vm-ink);
  cursor: pointer;
  font-size: 20px;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.tabs {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.tab {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
}

.tab strong {
  display: block;
  margin-bottom: 6px;
  font-family: Oswald, Arial, sans-serif;
  text-transform: uppercase;
}

.bubble-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 72px;
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
}

.bubble-hero h1 {
  margin: 0 0 20px;
  font-family: Oswald, Arial, sans-serif;
  font-size: 72px;
  font-weight: 500;
  line-height: 78px;
  text-transform: uppercase;
}

.bubble-visual {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.bubble-visual img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255,255,255,.6);
}

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

.delivery-card,
.contact-card {
  padding: 28px;
}

.delivery-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-family: Oswald, Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.checkout-card {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--vm-muted);
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--vm-soft);
  color: var(--vm-ink);
  font: inherit;
}

.field--wide {
  grid-column: 1 / -1;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--vm-line);
}

.cart-row img {
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--vm-soft);
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
}

.success {
  display: grid;
  min-height: 640px;
  place-items: center;
  text-align: center;
}

.success__card {
  width: min(100%, 620px);
  padding: 56px;
  border-radius: 32px;
  background: #fff;
}

.success__mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: rgba(107,154,196,.12);
  color: var(--vm-blue);
  font-size: 34px;
}

@media (max-width: 1100px) {
  .header { padding: 0 20px; }
  .nav { width: auto; gap: 18px; }
  .search, .phone { display: none; }
  .page-shell { width: min(100% - 24px, 1400px); padding-inline: 0; }
  .catalog-layout,
  .product-page,
  .bubble-hero,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .filters { position: static; }
  .product-grid,
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .header { height: auto; padding: 10px 16px; }
  .header__inner { height: auto; flex-wrap: wrap; gap: 16px; }
  .brand { width: auto; }
  .brand__text { width: 132px; }
  .nav { order: 3; width: 100%; justify-content: space-between; font-size: 12px; gap: 10px; }
  .catalog-btn { padding: 9px 14px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 40px; line-height: 44px; }
  .product-grid,
  .info-grid,
  .form-grid { grid-template-columns: 1fr; }
  .gallery-panel { min-height: 360px; padding: 30px; }
  .summary-panel h1,
  .bubble-hero h1 { font-size: 40px; line-height: 46px; }
  .bubble-hero { padding: 28px; }
  .cart-row { grid-template-columns: 60px 1fr; }
  .cart-row .price { grid-column: 2; }
}
