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

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(0,0,0,.07);
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  background: linear-gradient(135deg, #0f766e, #0d9488 50%, #14b8a6);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(13,148,136,.3);
}

.header-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.logo span {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

/* Рубрики вместо статей в шапке */
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  justify-content: flex-end;
}

.cats a {
  color: rgba(255,255,255,.92);
  font-size: .88rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 8px;
  transition: background .2s;
}

.cats a:hover,
.cats a.active {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Hero */
.hero {
  text-align: center;
  padding: 1.75rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, #ecfdf5, var(--bg));
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}

.hero p { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* Container */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
  flex: 1;
  width: 100%;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* Product cards on main */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.card-img {
  height: 190px;
  background: #e2e8f0;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge.teal { background: var(--primary); }

.card-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .45rem;
}

.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--primary); }

.card-text {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .9rem;
  flex: 1;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .9rem;
  flex-wrap: wrap;
}

.rating { color: #f59e0b; font-weight: 700; font-size: .88rem; }
.rating span { color: var(--muted); font-weight: 500; }

.price {
  font-size: 1.2rem;
  font-weight: 800;
}

.price s {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: .3rem;
}

/* Кнопка Купить */
.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-buy:hover {
  background: var(--accent-hover);
  transform: scale(1.015);
  color: #fff !important;
}

.btn-more {
  display: block;
  text-align: center;
  margin-top: .45rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  padding: .35rem;
}

/* ===== Product page: 1 photo + buy ===== */
.crumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.product-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: start;
}

.product-photo {
  width: 100%;
  border-radius: 10px;
  background: #e2e8f0;
  object-fit: cover;
  max-height: 380px;
}

.product-side .card-cat { margin-bottom: .5rem; }

.product-side h1 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .6rem;
}

.product-side .rating { margin-bottom: .85rem; }

.product-side .desc {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.1rem;
}

.price-block {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: 1.1rem;
}

.price-block .now {
  font-size: 1.7rem;
  font-weight: 800;
}

.price-block .old {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: .4rem;
}

.price-block .note {
  font-size: .85rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: .2rem;
}

.feats {
  list-style: none;
  margin-bottom: 1.25rem;
}

.feats li {
  padding: .3rem 0 .3rem 1.4rem;
  position: relative;
  font-size: .93rem;
}

.feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.btn-buy-lg {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(225,29,72,.35);
  transition: background .2s, transform .15s;
  margin-bottom: .5rem;
}

.btn-buy-lg:hover {
  background: var(--accent-hover);
  transform: scale(1.015);
  color: #fff !important;
}

.secure {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}

/* Description */
.desc-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}

.desc-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid #ccfbf1;
}

.desc-block h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.35rem 0 .55rem;
  color: var(--primary-dark);
}

.desc-block p { margin-bottom: .9rem; color: #334155; }

.desc-block ul {
  margin: 0 0 1rem 1.25rem;
  color: #334155;
}

.desc-block li { margin-bottom: .35rem; }

.box-info {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
}

.box-info p { margin: 0; color: var(--text); }

.box-warn {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
}

.box-warn p { margin: 0; }

.related h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.related-card {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 420px;
  transition: transform .2s;
}

.related-card:hover { transform: translateY(-2px); color: inherit; }

.related-card img {
  width: 100px;
  min-width: 100px;
  height: 100px;
  object-fit: cover;
  background: #e2e8f0;
}

.related-card div {
  padding: .75rem .75rem .75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-card h4 {
  font-size: .92rem;
  font-weight: 650;
  margin-bottom: .25rem;
  color: var(--text);
}

.related-card:hover h4 { color: var(--primary); }
.related-card span { font-size: .8rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-brand { font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.footer-brand em { color: #5eead4; font-style: normal; }
.footer-inner p { font-size: .88rem; max-width: 260px; }

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: .88rem;
  margin-bottom: .3rem;
}

.footer-col a:hover { color: #5eead4; }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: .82rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .header-top { flex-direction: column; gap: .65rem; }
  .cats { justify-content: center; }
  .product-box { grid-template-columns: 1fr; }
}


/* Reviews */
.reviews { margin-top: 1.5rem; }
.reviews h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid #ccfbf1;
}
.review {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: .85rem;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .45rem;
  flex-wrap: wrap;
}
.review-name { font-weight: 700; font-size: .95rem; }
.review-stars { color: #f59e0b; font-size: .9rem; letter-spacing: 1px; }
.review-date { font-size: .8rem; color: var(--muted); }
.review p { font-size: .92rem; color: #334155; margin: 0; }
.review-meta { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

.related-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .related-grid-4 { grid-template-columns: 1fr; }
}
.related-grid-4 .related-card {
  max-width: none;
}
