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

:root {
  --bg: #0d1117;
  --surface: #151b23;
  --surface-soft: #1c2430;
  --border: #2b3543;
  --text: #f0f4f8;
  --muted: #a8b3c2;
  --muted-strong: #c4cedb;
  --accent: #7dd3fc;
  --shadow: rgba(0, 0, 0, 0.34);
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.hero {
  padding: 70px 20px 50px;
  background: linear-gradient(180deg, #131a24 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1100px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 14px;
  line-height: 1;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
}

.hero-kicker {
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 30px 16px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.ad-section {
  min-height: 110px;
  margin: 28px 0;
  padding: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-section-wide {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  min-height: 96px;
}

.ad-section-feed {
  min-height: 250px;
  margin: 0;
}

.adsbygoogle {
  width: 100%;
  min-height: 90px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
  box-shadow: 0 18px 38px var(--shadow);
  min-width: 0;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.42);
}

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

.card-body {
  padding: 22px;
}

.card-date {
  color: var(--accent);
  font-size: 0.9rem;
}

.card-body h2 {
  margin: 10px 0 14px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.card-body p {
  color: var(--muted);
}

.article-page {
  width: 100%;
  max-width: 850px;
  margin: auto;
  padding: 24px 18px 90px;
  background: var(--surface);
  min-height: 100vh;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.article-page .ad-section:first-of-type {
  margin-top: 0;
  margin-bottom: 24px;
}

.article-page .ad-section:last-of-type {
  margin-bottom: 0;
}

.back-btn {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 600;
}

.back-btn:hover {
  color: var(--accent);
}

.hero-image {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 28px;
  cursor: zoom-in;
  object-fit: cover;
  max-height: 520px;
  border: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 12px 0 22px;
}

.article-date {
  color: var(--accent);
}

.article-content {
  font-size: 1.08rem;
  color: var(--muted-strong);
}

.article-content h2,
.article-content h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text);
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul {
  padding-left: 24px;
  margin-bottom: 22px;
}

.article-content img {
  margin: 30px 0;
  border-radius: 18px;
  cursor: zoom-in;
  border: 1px solid var(--border);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(7, 10, 15, 0.96);
  padding: 20px;
}

.modal-image {
  width: auto;
  max-width: 95%;
  max-height: 90vh;
  margin: auto;
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1000;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #0a0e14;
}

.footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 56px 16px 42px;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(420px, 1.4fr);
  gap: 48px;
}

.footer-brand h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 24px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  border-radius: 8px;
  color: #071019;
  text-decoration: none;
  font-weight: 800;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 28px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a,
.footer-bottom {
  color: var(--muted-strong);
}

.footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 18px 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (max-width: 768px) {

  .hero {
    padding: 50px 18px 34px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.7rem);
    line-height: 0.98;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-kicker {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .feed {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 14px 52px;
  }

  .ad-section {
    min-height: 96px;
    border-radius: 14px;
    margin: 18px 0;
    padding: 14px;
    width: 100%;
  }

  .ad-section-feed {
    min-height: 180px;
    margin: 0;
  }

  .ad-section-wide {
    min-height: 86px;
    margin-bottom: 2px;
  }

  .post-card {
    border-radius: 18px;
    box-shadow: 0 12px 26px var(--shadow);
  }

  .card-image img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .card-body {
    padding: 17px;
  }

  .card-body h2 {
    font-size: 1.22rem;
    line-height: 1.25;
    margin: 8px 0 10px;
  }

  .card-body p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .article-page {
    padding: 18px 16px 70px;
  }

  .article-content {
    font-size: 1rem;
  }

  .hero-image {
    border-radius: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 16px 30px;
  }

  .footer-brand h2 {
    font-size: 2rem;
  }

  .footer-brand p {
    font-size: 0.96rem;
    margin-bottom: 18px;
  }

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

  .footer-links h3 {
    font-size: 0.72rem;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 22px;
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {

  .hero {
    padding: 42px 16px 30px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 16vw, 3rem);
  }

  .feed {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-cta {
    width: 100%;
    justify-content: center;
  }
}
