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

:root {
  --sw-green: #168847;
  --sw-green-bright: #22b659;
  --sw-green-dark: #0f6334;
  --sw-navy: #0f1e30;
  --sw-bg: #f7f8f9;
  --sw-card: #fff;
  --sw-text: #1a2436;
  --sw-text-muted: #65707d;
  --sw-border: #e5e7eb;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--sw-bg);
  color: var(--sw-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

.sw-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── HEADER (minimal, blog-style) ── */
.sw-header {
  background: #fff;
  border-bottom: 1px solid var(--sw-border);
  padding: 12px 0;
}
.sw-header__inner {
  display: flex;
  align-items: center;
}
.sw-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sw-brand__mark {
  width: 30px;
  height: 30px;
  background: var(--sw-green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-brand__mark svg { width: 18px; height: 18px; fill: #fff; }
.sw-brand__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sw-navy);
  letter-spacing: -0.3px;
}

/* ── MAIN PAGE ── */
.sw-page {
  padding: 0 0 40px;
}

/* ── VIDEO (main content) ── */
.sw-video {
  margin: 0 -20px 18px;
}
.sw-video #eco-player {
  border-radius: 0;
  overflow: hidden;
}
@media (max-width: 640px) {
  .sw-page { padding: 0 0 32px; }
  .sw-wrap { padding-left: 0; padding-right: 0; }
  .sw-article-title, .sw-byline, .sw-cta-card, #offer-inline, .sw-comments, .sw-footer .sw-wrap { padding-left: 16px; padding-right: 16px; }
  .sw-video { margin: 0 0 14px; }
}
@media (min-width: 641px) {
  .sw-article-title { margin-top: 16px; }
}

/* ── ARTICLE TITLE ── */
.sw-article-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--sw-navy);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* ── BYLINE (YouTube-style) ── */
.sw-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--sw-border);
}
.sw-byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sw-byline__info {
  flex: 1;
  min-width: 0;
}
.sw-byline__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--sw-navy);
  line-height: 1.2;
}
.sw-byline__meta {
  font-size: 13px;
  color: var(--sw-text-muted);
  margin-top: 2px;
}
.sw-engagement {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sw-eng-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  background: #f0f2f5;
  color: var(--sw-navy);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.sw-eng-btn:hover { background: #e4e7ec; }
.sw-eng-btn svg { fill: currentColor; }
@media (max-width: 640px) {
  .sw-engagement .sw-eng-btn span { display: none; }
  .sw-eng-btn { padding: 8px 10px; }
}
@media (max-width: 420px) {
  .sw-byline__meta { font-size: 12px; }
}

/* ── CTA (минимальный, сразу под видео) ── */
#offer-inline {
  display: none;
  text-align: center;
  padding: 16px 0;
  margin: 0 0 12px;
}
#offer-inline.sw-cta-reveal { animation: sw-cta-reveal 0.6s ease-out both; }
@keyframes sw-cta-reveal {
  0% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.sw-cta-card__small {
  font-size: 12px;
  font-weight: 700;
  color: var(--sw-green-dark);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sw-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--sw-green);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 18px 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 6px 22px rgba(22, 136, 71, 0.45);
  animation: sw-cta-pulse 1.8s ease-in-out infinite;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sw-cta-btn:hover {
  background: var(--sw-green-dark);
  animation: none;
  transform: translateY(-2px);
}
.sw-cta-btn:active { transform: translateY(0); }
.sw-cta-btn svg { stroke: currentColor; flex-shrink: 0; }

@keyframes sw-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 22px rgba(22, 136, 71, 0.45); }
  50% { transform: scale(1.03); box-shadow: 0 10px 32px rgba(22, 136, 71, 0.6); }
}

.sw-cta-card__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--sw-text-muted);
}
.sw-cta-card__guarantee, .sw-cta-card__ship {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--sw-green-dark);
}
.sw-cta-card__guarantee svg, .sw-cta-card__ship svg { stroke: currentColor; }

@media (max-width: 520px) {
  .sw-cta-card { padding: 22px 18px; border-radius: 10px; }
  .sw-cta-btn { font-size: 15px; padding: 14px 18px; gap: 8px; letter-spacing: 0.3px; width: 80%; max-width: 320px; }
  .sw-cta-card__footer { font-size: 12px; gap: 12px; }
}

/* ── COMMENTS (YouTube-style) ── */
.sw-comments {
  margin-top: 28px;
  padding-top: 4px;
}
.sw-comments__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--sw-navy);
  font-weight: 600;
  font-size: 15px;
}
.sw-comments__head svg { fill: var(--sw-navy); }
.sw-comments__sort {
  margin-left: auto;
  font-size: 13px;
  color: var(--sw-text-muted);
  font-weight: 500;
}

.sw-comment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
}
.sw-comment + .sw-comment { border-top: 1px solid var(--sw-border); }
.sw-comment__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sw-comment__body { flex: 1; min-width: 0; }
.sw-comment__meta {
  font-size: 13px;
  color: var(--sw-text-muted);
  margin-bottom: 4px;
}
.sw-comment__meta b {
  color: var(--sw-navy);
  font-weight: 600;
  margin-right: 8px;
}
.sw-comment__text {
  font-size: 14px;
  color: var(--sw-text);
  line-height: 1.55;
  margin-bottom: 8px;
  word-break: break-word;
}
.sw-comment__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: -8px;
}
.sw-comment__actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 50px;
  color: var(--sw-text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.sw-comment__actions button:hover { background: #f0f2f5; color: var(--sw-navy); }
.sw-comment__actions button svg { fill: currentColor; }

/* Nested reply */
.sw-comment--reply {
  margin-top: 14px;
  margin-left: 0;
  padding: 12px 0 0 16px;
  border-left: 2px solid var(--sw-border);
  border-top: none !important;
}
.sw-comment--reply .sw-comment__avatar { width: 32px; height: 32px; }
.sw-comment--reply .sw-comment__text { font-size: 13.5px; }

@media (max-width: 520px) {
  .sw-comment__avatar { width: 32px; height: 32px; }
  .sw-comment__text { font-size: 13.5px; }
  .sw-comment--reply .sw-comment__avatar { width: 28px; height: 28px; }
}

/* ── FOOTER ── */
.sw-footer {
  background: #fff;
  border-top: 1px solid var(--sw-border);
  padding: 24px 0 20px;
  text-align: center;
  margin-top: 32px;
}
.sw-footer__copy {
  font-size: 12px;
  color: var(--sw-text-muted);
  margin-bottom: 4px;
}
.sw-footer__company {
  font-size: 11px;
  color: var(--sw-text-muted);
  opacity: 0.7;
  margin-bottom: 12px;
}
.sw-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sw-footer__links a {
  color: var(--sw-text-muted);
  font-size: 13px;
  transition: color 0.15s ease;
}
.sw-footer__links a:hover { color: var(--sw-navy); }
.sw-footer__sep { color: #cbd5e1; }

@supports (padding: max(0px)) {
  .sw-footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
