/* ============================================================
   GY Smart Watch — Русскоязычный блог
   Unified stylesheet  |  Light theme
   ============================================================ */

:root {
  --primary: #1558d6;
  --primary-dark: #0e3fa3;
  --primary-soft: #eaf1ff;
  --accent: #06a7c2;
  --accent-soft: #e5f8fb;
  --ink: #12203a;
  --ink-soft: #43536e;
  --muted: #6b7a94;
  --line: #e4e9f2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ok: #0ea46b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(18, 32, 58, .07);
  --shadow-hover: 0 16px 40px rgba(21, 88, 214, .14);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(18, 32, 58, .04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; color: var(--ink); letter-spacing: -.2px; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 4px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span.sep { margin: 0 8px; color: #b6c0d2; }

/* ---------------- Hero (homepage) ---------------- */
.hero {
  background:
    radial-gradient(900px 340px at 85% -10%, rgba(6,167,194,.20), transparent 60%),
    linear-gradient(135deg, #123a86 0%, #1558d6 55%, #1a72e0 100%);
  color: #fff;
  padding: 66px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 340px; height: 340px;
  border: 40px solid rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.14; letter-spacing: -1px; margin-bottom: 18px; font-weight: 800; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.88); max-width: 620px; margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; padding: 13px 24px; border-radius: 11px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.btn-light:hover { color: var(--primary-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-whatsapp { background: #22c55e; color: #fff; }
.btn-whatsapp:hover { background: #1eb455; color: #fff; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges div { font-size: 13px; color: rgba(255,255,255,.85); }
.hero-badges strong { display: block; font-size: 24px; color: #fff; line-height: 1.1; }
.hero-art { text-align: center; }
.hero-art img { width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); border-radius: 20px; }

/* ---------------- Section headings ---------------- */
.section { padding: 54px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 30px; letter-spacing: -.6px; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ---------------- Category filter ---------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  padding: 9px 18px; border-radius: 100px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- Article grid cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #eef2f8; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 5px 11px; border-radius: 100px; margin-bottom: 12px;
}
.card-tag.ring { color: #7a4bc4; background: #f2eafd; }
.card-tag.band { color: #0a8f78; background: #e4f7f1; }
.card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--primary); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.card-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #b6c0d2; }

/* ---------------- Custom / CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, #0f2f5f, #1558d6);
  color: #fff; border-radius: var(--radius);
  padding: 44px 40px; margin: 10px 0 0;
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after { content:""; position:absolute; right:-60px; top:-80px; width:260px; height:260px; border:35px solid rgba(255,255,255,.05); border-radius:50%; }
.cta-band h2 { font-size: 27px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 640px; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* ---------------- Article page ---------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding: 30px 0 60px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 42px; box-shadow: var(--shadow); }
.article-header .kicker { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.article h1 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.18; letter-spacing: -.8px; margin: 10px 0 16px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero { width: 100%; border-radius: 14px; margin-bottom: 8px; background: #eef2f8; aspect-ratio: 16 / 8; object-fit: contain; padding: 12px; }
.figure-caption { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 28px; }

.article p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16.5px; }
.article h2 { font-size: 25px; letter-spacing: -.4px; margin: 38px 0 14px; padding-top: 6px; color: var(--ink); }
.article h3 { font-size: 19px; margin: 26px 0 10px; color: var(--ink); }
.article ul, .article ol { margin: 0 0 20px 22px; color: var(--ink-soft); }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article a.inline { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article a.inline:hover { color: var(--primary-dark); }

.lead-p { font-size: 18px !important; color: var(--ink) !important; font-weight: 500; }

/* callout */
.callout {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 24px 0;
  color: var(--ink-soft); font-size: 15.5px;
}
.callout.accent { background: var(--accent-soft); border-left-color: var(--accent); }

/* specs table */
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--primary); color: #fff; font-weight: 700; }
.spec-table tbody tr:nth-child(even) { background: #f8fafd; }
.spec-table td:first-child { font-weight: 600; color: var(--ink); width: 38%; }

/* pros list */
.check-list { list-style: none; margin-left: 0; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq { margin-top: 34px; }
.faq h2 { margin-bottom: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fcfdff; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; font-size: 15.5px; }

/* in-article CTA */
.in-cta { margin-top: 38px; background: #f0f5ff; border: 1px solid #d9e5ff; border-radius: 14px; padding: 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.in-cta h3 { margin: 0 0 6px; font-size: 19px; }
.in-cta p { margin: 0; font-size: 14.5px; }
.in-cta .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Sidebar ---------------- */
.sidebar { position: sticky; top: 96px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.widget h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; }
.widget li { margin-bottom: 11px; }
.widget li a { font-size: 14px; color: var(--ink-soft); line-height: 1.45; display: block; }
.widget li a:hover { color: var(--primary); }
.widget .mini-thumb { display: flex; gap: 10px; align-items: center; }
.widget .mini-thumb img { width: 54px; height: 48px; object-fit: contain; border-radius: 8px; background: #eef2f8; flex-shrink: 0; padding: 3px; }
.cat-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; margin: 0 6px 8px 0; background: var(--primary-soft); color: var(--primary); }
.cat-pill:hover { background: var(--primary); color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0f1c33; color: #c3cee0; padding: 48px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #9fb0cc; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer li a { color: #aebbd2; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; color: #8ea0bd; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 22px; border-bottom: 1px solid var(--line); gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .menu-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .article { padding: 24px 20px; }
  .article h1 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 48px 0 42px; }
  .section { padding: 40px 0; }
  .spec-table th, .spec-table td { padding: 10px; font-size: 13px; }
}
