/* GreedStore — стили статических SEO-страниц.
   Используются страницами разделов, брендов и товаров. */

:root {
  --primary: #247CFF;
  --primary-dark: #1A63D9;
  --primary-hover: #149CFF;
  --ink: #0B1E3A;
  --text: #182B45;
  --muted: #5F6B7A;
  --bg: #F7FCFA;
  --card: #FFFFFF;
  --border: #D7E5DE;
  --soft: #EEF5F2;
  --star: #FF6E1D;
  --ok: #0A8F4A;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 30, 58, .10);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--primary-dark); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #059669;
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 16px; top: 16px; }

/* ===== ШАПКА ===== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.head-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; display: block; }

.head-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
}

.head-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 11px;
  border-radius: 10px;
  white-space: nowrap;
}
.head-nav a:hover { background: var(--soft); color: var(--primary-dark); }

.head-act { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.head-phone {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.head-phone:hover { color: var(--primary-dark); }

.head-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.head-tg:hover { background: #1457C0; }

/* ===== ОСНОВА ===== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}
.crumbs a { color: var(--primary-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: #9AA7B5; }

.page-head {
  max-width: 940px;
  padding: 26px 0 28px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 8px 0 14px;
  font-weight: 800;
}

h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 14px;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin: 22px 0 8px;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: #3E5168;
  max-width: 850px;
}

.head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: #E8F1FF;
  color: #0B5FCC;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ===== СЕТКА КАРТОЧЕК ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 6px 0 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid #D3D5DB;
  padding: 14px;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(11, 30, 58, .13);
}

.card-img {
  position: relative;
  display: block;
  aspect-ratio: 460 / 320;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 2px;
}

.tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 12px;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
  color: #fff;
  background: #0B7A36;
  border-radius: 4px;
  font-weight: 700;
}
.tag-hit { background: #B213B6; }
.tag-top { background: #E9E1FF; color: #5113B6; border: 1px solid #5113B6; }

.rate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 8px;
}
.rate svg { width: 16px; height: 16px; fill: var(--star); flex: 0 0 auto; }
.rate b { color: var(--text); }

.card-title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  margin: 0 0 6px;
  min-height: 46px;
}
.card-title a { color: #111827; text-decoration: none; }
.card-title a:hover { color: var(--primary-dark); }

.card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #6C7078;
  margin: 0 0 12px;
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot { margin-top: auto; }

.price {
  font-size: 23px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  white-space: nowrap;
}
.price .from { font-size: 14px; font-weight: 600; color: var(--muted); }

.card-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: #1457C0; }
.btn.ghost {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
}
.btn.ghost:hover { background: #EEF5FF; }
.btn.sm { padding: 9px 10px; font-size: 13.5px; }

/* ===== СТРАНИЦА ТОВАРА ===== */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: start;
  margin: 10px 0 42px;
}

.gallery { position: sticky; top: 92px; }

.gmain {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #F0F7FF, #FFFFFF);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.gmain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gthumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.gthumb {
  width: 76px;
  height: 62px;
  padding: 3px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.gthumb:hover { border-color: var(--primary); }
.gthumb.active { border-color: var(--primary); }
.gthumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pinfo h1 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 0; }

.pinfo .rate { font-size: 15px; margin: 8px 0 16px; }
.pinfo .rate svg { width: 19px; height: 19px; }

.pinfo .price { font-size: 34px; margin: 0 0 16px; }

.short {
  font-size: 16px;
  line-height: 1.65;
  color: #3E5168;
  margin-bottom: 20px;
}

.block { margin: 22px 0; }
.block h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 10px;
}

.vars { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.vars li {
  border: 1px solid #D3D5DB;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
}
.vars li span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1px;
}

.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #D3D5DB;
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: 13.5px;
  font-weight: 700;
  background: #fff;
}
.sw {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .22);
  box-shadow: inset 0 0 0 2px #fff;
  flex: 0 0 auto;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.cta .btn { flex: 1 1 180px; padding: 15px 20px; font-size: 16px; border-radius: 12px; }

.trust { list-style: none; display: grid; gap: 8px; font-size: 14px; color: #3E5168; margin-top: 12px; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }

/* ===== ТЕКСТОВЫЕ БЛОКИ ===== */
.prose {
  max-width: 890px;
  margin: 0 0 40px;
}
.prose p { margin: 0 0 14px; color: #3E5168; line-height: 1.75; }
.prose a { color: var(--primary-dark); font-weight: 600; }
.prose ul { margin: 0 0 16px 20px; color: #3E5168; }
.prose li { margin-bottom: 6px; }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 18px;
}
.specs li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ===== FAQ ===== */
.faq {
  max-width: 890px;
  margin: 0 0 40px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--primary-dark);
}
.faq-item[open] summary::after { content: "−"; }
.faq-a {
  padding: 0 18px 16px;
  color: #3E5168;
  font-size: 15px;
  line-height: 1.7;
}
.faq-a a { color: var(--primary-dark); font-weight: 600; }

/* ===== ССЫЛКИ / ЧИПЫ ===== */
.links {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin: 0 0 40px;
}
.links h2 { font-size: 20px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #EEF5FF;
  color: #0B5FCC;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.chips a:hover { background: #DBE9FF; }

/* ===== ПОДВАЛ ===== */
.site-foot {
  background: #0B1E3A;
  color: #C7D6E8;
  padding: 46px 24px 26px;
  margin-top: 40px;
}
.foot-in {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr .9fr 1.1fr;
  gap: 32px;
}
.foot-brand b { font-size: 22px; color: #fff; letter-spacing: -.3px; }
.foot-brand .accent {
  background: linear-gradient(90deg, #8B5CF6, #22D3EE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.foot-tag { font-size: 13px; margin-top: 10px; max-width: 300px; color: #9FB8D9; }

.foot-col b {
  display: block;
  color: #fff;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.foot-col a {
  display: block;
  color: #B9CBE0;
  text-decoration: none;
  font-size: 14px;
  margin-top: 7px;
}
.foot-col a:hover { color: #7DD3FC; }

.foot-note {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #9FB8D9;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 1100px) {
  .head-phone { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (max-width: 900px) {
  .head-in { gap: 10px; padding: 10px 16px; }
  .head-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .head-nav::-webkit-scrollbar { display: none; }
  .head-act { margin-left: auto; }

  main { padding: 0 16px 48px; }

  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }

  .foot-in { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .brand img { height: 36px; }
  .head-tg { padding: 8px 13px; font-size: 13px; }
  .head-nav a { padding: 8px 9px; font-size: 13px; }

  .page-head { padding: 20px 0 22px; }
  .lead { font-size: 16.5px; }

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

  .card-title { min-height: 0; }
  .card-desc { min-height: 0; }

  .pinfo .price { font-size: 29px; }

  .site-foot { padding: 36px 16px 22px; }
  .foot-in { grid-template-columns: 1fr; gap: 22px; }
  .foot-note { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
