/* =========================
   CSS VARIABLES
========================= */
:root{
  --bg:#0b0f14;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.08);
  --brand:#f59e0b;
  --brand2:#22c55e;
  --radius:16px;
}

/* =========================
   RESET / BASE
========================= */
*{ box-sizing:border-box }

html, body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
}

a{ color:inherit; text-decoration:none }

img{
  max-width:100%;
  height:auto;
  display:block;
}

.container{
  width:min(1080px,92vw);
  margin:0 auto;
}

/* =========================
   HEADER
========================= */
header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(11,15,20,.65);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  font-weight:600;
}

.btn.primary{
  border-color:rgba(245,158,11,.35);
  background:linear-gradient(
    135deg,
    rgba(245,158,11,.25),
    rgba(34,197,94,.20)
  );
}

/* =========================
   MAIN / HERO
========================= */
main{
  padding:28px 0 56px;
}

.hero{
  display:flex;
  align-items:center;
  justify-content:center;
  max-height:420px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}

.hero img{
  max-height:420px;
  width:auto;
  object-fit:contain;
}

/* =========================
   CONTENT
========================= */
.grid{
  display:block;
  margin-top:18px;
}

.card{
  max-width:1200px;     /* ты хотел широкую */
  margin:0 auto;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
}

h1{
  margin:0 0 12px;
  font-size:clamp(26px,3vw,36px);
  line-height:1.2;
}

h2{
  margin:22px 0 10px;
  font-size:20px;
}

.muted{ color:var(--muted) }

/* =========================
   FOOTER
========================= */
.site-footer{
  margin-top:48px;
  padding:24px 0;
  border-top:1px solid var(--line);
  background:rgba(0,0,0,.15);
}

.footer-inner{
  width:min(900px,92vw);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  text-align:center;
}

.footer-nav{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px 22px;
}

.footer-nav a{
  font-size:14px;
  color:var(--muted);
}

.footer-nav a:hover{
  color:var(--text);
}

.footer-copy{
  font-size:13px;
  color:var(--muted);
}

/* =========================
   ACCESSIBILITY
========================= */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip-link:focus{
  left:12px;
  top:12px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:10px;
  background:#111827;
  border:1px solid var(--line);
  z-index:9999;
}

/* =========================
   CPA BUTTON
========================= */
.cta-button-container{
  display:flex;
  justify-content:center;   /* центр по горизонтали */
  margin:32px 0;            /* отступы от контента */
}

.cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:14px 28px;
  min-width:220px;

  font-size:16px;
  font-weight:700;
  text-align:center;

  color:#0b0f14;
  background:linear-gradient(
    135deg,
    var(--brand),
    var(--brand2)
  );

  border-radius:999px;
  border:none;
  cursor:pointer;

  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.25);

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    filter .12s ease;
}

/* Hover / Active */
.cta-button:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.cta-button:active{
  transform:translateY(1px);
  box-shadow:
    0 6px 18px rgba(0,0,0,.4),
    inset 0 2px 6px rgba(0,0,0,.25);
}

/* Mobile */
@media (max-width:600px){
  .cta-button{
    width:100%;
    max-width:320px;
    padding:14px 20px;
  }
}

/* =========================
   READ MORE BLOCK
========================= */
.read-more-block{
  margin:24px 0;
  padding:14px 18px;

  font-size:14px;
  line-height:1.5;

  color:var(--muted);
  background:rgba(255,255,255,.03);

  border-left:3px solid var(--brand);
  border-radius:8px;
}

.read-more-block a{
  color:var(--text);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
  transition:color .15s ease;
}

.read-more-block a:hover{
  color:var(--brand);
}

/* =========================
   MOBILE TWEAKS
========================= */
@media (max-width:600px){
  .hero{ max-height:280px }
  .hero img{ max-height:280px }
  .card{ padding:14px }
}

/* =========================
   FEED / RELATED POSTS (3 items)
========================= */
.feed-block{
  margin:32px 0;
}

.feed-title{
  margin:0 0 14px;
  font-size:20px;
  line-height:1.25;
}

.feed-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}

/* Card */
.feed-item{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  overflow:hidden;
  min-width:0;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.feed-item:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
}

.feed-item a{
  text-decoration:none;
}

/* Image */
.feed-item-image{
  width:100%;
  height:160px;          /* фиксируем высоту */
  object-fit: cover;     /* аккуратный кроп */
  display:block;
  background: rgba(255,255,255,.03);
}

/* Content */
.feed-item-content{
  padding:14px 14px 16px;
}

.feed-item-title{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.25;
}

.feed-item-title a{
  color: var(--text);
}

.feed-item-title a:hover{
  color: var(--brand);
}

.feed-item-description{
  margin:0;
  color: var(--muted);
  font-size:14px;
  line-height:1.5;

  /* чтобы описание не раздувало карточки */
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Responsive */
@media (max-width: 900px){
  .feed-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px){
  .feed-grid{
    grid-template-columns: 1fr;
  }
  .feed-item-image{
    height:180px;
  }
}

/* =========================
   FAQ BLOCK
========================= */
.faq-block{
  margin:40px 0;
}

.faq-title{
  margin:0 0 16px;
  font-size:22px;
  line-height:1.25;
}

/* List */
.faq-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Item */
.faq-item{
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
}

/* Question */
.faq-question{
  font-weight:700;
  font-size:15px;
  line-height:1.4;
  color:var(--text);
  margin-bottom:6px;
}

/* Answer */
.faq-answer{
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
}

/* Optional hover (desktop only) */
@media (hover:hover){
  .faq-item:hover{
    border-color:rgba(255,255,255,.18);
    background:rgba(255,255,255,.03);
  }
}

/* =========================
   COMMENTS / REVIEWS
========================= */
.comments-block{
  margin:40px 0;
}

.comments-title{
  margin:0 0 16px;
  font-size:22px;
  line-height:1.25;
}

/* List */
.comment-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Item */
.comment-item{
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
}

/* Header */
.comment-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:6px;
}

/* Name */
.comment-name{
  font-weight:700;
  font-size:15px;
  color:var(--text);
}

/* Date */
.comment-date{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

/* Text */
.comment-text{
  font-size:14px;
  line-height:1.6;
  color:var(--text);
}

/* Hover (desktop) */
@media (hover:hover){
  .comment-item:hover{
    border-color:rgba(255,255,255,.18);
    background:rgba(255,255,255,.03);
  }
}

.comment-text::before{
  content:"“";
  margin-right:4px;
  color:var(--brand);
}
.comment-text::after{
  content:"”";
  margin-left:4px;
  color:var(--brand);
}