﻿:root {
  --bg: #f0f4f1;
  --card: #ffffff;
  --ink: #111b1b;
  --muted: #5f6e6f;
  --line: #d7e0db;
  --accent: #0f7b68;
  --accent-2: #0b5f75;
  --ok: #0c7a43;
  --radius: 18px;
  --shadow: 0 18px 46px rgba(8, 31, 26, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 520px at 100% -10%, #d4f3ea 0%, transparent 62%),
    radial-gradient(900px 520px at 0% 0%, #d8ecff 0%, transparent 60%),
    var(--bg);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(15, 123, 104, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 123, 104, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(12px);
  background: rgba(240, 244, 241, 0.86);
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
}

.badge {
  font-size: 0.86rem;
  color: var(--muted);
}

.layout {
  width: min(1180px, calc(100% - 1rem));
  margin: 1.1rem auto 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 370px;
  gap: 0.9rem;
  position: relative;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro {
  grid-column: 1 / span 2;
  padding: 1.1rem;
}

.intro h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.intro p {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.intro ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #1f2c2d;
}

.catalog {
  grid-column: 1 / span 2;
  padding: 1rem;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fcfdfc;
}

.product img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.product h3 {
  margin: 0;
  font-size: 1rem;
}

.product p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.price {
  font-weight: 800;
  color: #0c3540;
}

button,
input {
  font: inherit;
}

.product button,
#checkout-btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  color: #ebfbf8;
  padding: 0.58rem 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

#checkout-btn {
  width: 100%;
  margin-top: 0.4rem;
}

button:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.checkout {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 1rem;
  position: sticky;
  top: 70px;
  align-self: start;
}

.empty-cart {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
}

.cart-items {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.cart-item header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item strong {
  font-size: 0.93rem;
}

.qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty button {
  border: 1px solid var(--line);
  background: #fff;
  color: #243032;
  border-radius: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.totals {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.68rem 0;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout form {
  display: grid;
  gap: 0.55rem;
}

.checkout label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout input {
  border: 1px solid #cfd8d4;
  border-radius: 10px;
  padding: 0.54rem 0.6rem;
}

.status {
  margin: 0.3rem 0 0;
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.status.error {
  color: #b42318;
}

.status.ok {
  color: var(--ok);
}

.result-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.result {
  width: min(880px, 100%);
  padding: 1rem;
}

.result h1 {
  margin-top: 0.3rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #0b5f75;
  font-size: 0.78rem;
}

.eyebrow.ok {
  color: var(--ok);
}

.downloads {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.6rem;
}

.download-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.download-item small {
  display: block;
  color: var(--muted);
}

.dl-btn,
.link {
  text-decoration: none;
  color: #0a5b6f;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .intro,
  .catalog,
  .checkout {
    grid-column: 1;
  }

  .checkout {
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 740px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
