* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0d12;
  color: #f5f5f5;
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #c8ccd6;
  font-size: 15px;
}

nav a:hover {
  color: #fff;
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 36px 0 70px;
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 54px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(135deg, #151925, #090a0f);
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}

.eyebrow {
  color: #9aa3b8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
}

.hero p {
  max-width: 620px;
  color: #c8ccd6;
  font-size: 20px;
  margin: 24px 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: #f5f5f5;
  color: #0b0d12;
  font-weight: 700;
  cursor: pointer;
}

.button.ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.section-head,
.admin-head {
  margin: 42px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-head h2,
.page-head h1,
.admin-wide h1,
.admin-box h1 {
  margin: 0;
}

.page-head {
  margin: 18px 0 30px;
}

.page-head h1 {
  font-size: 44px;
}

.page-head p {
  color: #aeb5c5;
}

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

.card {
  overflow: hidden;
  background: #121620;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}

.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #080a0f;
}

.card-body {
  padding: 20px;
}

.date,
.muted {
  color: #8f98aa;
  font-size: 13px;
}

.card h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 8px 0 10px;
}

.card p {
  color: #c8ccd6;
}

.readmore {
  color: #fff;
  font-weight: 700;
}

.post {
  width: min(850px, 100%);
  margin: 0 auto;
}

.back {
  color: #9aa3b8;
}

.post h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  margin: 12px 0 18px;
}

.lead {
  color: #cfd5e3;
  font-size: 22px;
}

.content {
  font-size: 19px;
  color: #e7e9ee;
  margin: 28px 0;
}

.post-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  margin: 28px 0;
  background: #07090d;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-file {
  width: 100%;
  border-radius: 24px;
  margin: 28px 0;
  background: #000;
}

.empty,
.admin-box,
.admin-wide {
  background: #121620;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
}

.admin-box {
  width: min(480px, 100%);
  margin: 60px auto;
}

form {
  margin: 0;
}

label {
  display: block;
  margin: 16px 0 7px;
  color: #c8ccd6;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: #090b10;
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  font: inherit;
}

textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox input {
  width: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.small-btn {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.small-btn.danger {
  color: #ffb4b4;
}

footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 34px 0;
  color: #7f8798;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 850px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 32px;
    min-height: 360px;
  }

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

  footer {
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
  }
}

/* === Mazkoff update: social footer, about page, horizontal news, ad carousel === */

.brand-spacer {
  width: 1px;
  height: 1px;
}

.topbar {
  justify-content: flex-end;
}

.social-footer {
  display: block;
}

.social-buttons {
  width: 100%;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  min-width: 250px;
  flex: 1;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
}

.social-btn span {
  color: #aeb5c5;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.social-btn strong {
  font-size: 18px;
}

.tg-news {
  background: linear-gradient(135deg, rgba(34,158,217,.24), rgba(255,255,255,.07));
}

.tg-personal {
  background: linear-gradient(135deg, rgba(88,101,242,.24), rgba(255,255,255,.07));
}

.max {
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
}

.news-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.news-row .card {
  flex: 0 0 360px;
  max-width: 360px;
  scroll-snap-align: start;
}

.ad-carousel {
  margin: 38px 0 34px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.ad-slide {
  position: relative;
  overflow: hidden;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 240px;
  height: 170px;
  border-radius: 26px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 28%),
    linear-gradient(135deg, #202637, #0c0f17);
  scroll-snap-align: start;
}

.ad-slide::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.ad-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #cfd5e3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ad-title {
  margin-top: 24px;
  font-size: 26px;
  font-weight: 800;
}

.ad-text {
  color: #aeb5c5;
  margin-top: 4px;
}

.about-page {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}

.about-text,
.about-placeholder {
  background: #121620;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 32px;
}

.about-text h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
}

.about-image,
.about-placeholder {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 28px;
}

.about-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f98aa;
  text-align: center;
}

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

@media (max-width: 850px) {
  .topbar {
    align-items: flex-end;
  }

  .news-row .card {
    flex-basis: 82vw;
    max-width: 82vw;
  }

  .ad-slide {
    flex-basis: 82vw;
  }

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

  .social-btn {
    max-width: none;
    min-width: 100%;
  }
}

/* === Force update: remove hero, show ad carousel, horizontal news === */

.hero {
  display: none !important;
}

.ad-carousel {
  margin: 10px 0 34px !important;
  display: flex !important;
  gap: 18px !important;
  overflow-x: auto !important;
  padding: 4px 2px 18px !important;
  scroll-snap-type: x mandatory;
}

.ad-slide {
  position: relative;
  overflow: hidden;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 250px;
  height: 180px;
  border-radius: 26px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 28%),
    linear-gradient(135deg, #202637, #0c0f17);
  scroll-snap-align: start;
}

.ad-slide::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.ad-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #cfd5e3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ad-title {
  margin-top: 24px;
  font-size: 26px;
  font-weight: 800;
}

.ad-text {
  color: #aeb5c5;
  margin-top: 4px;
}

.news-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 2px 22px !important;
  scroll-snap-type: x mandatory;
}

.news-row .card {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 360px !important;
  scroll-snap-align: start;
}

.card h2,
.card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-head {
  margin-top: 18px !important;
}

@media (max-width: 850px) {
  .ad-slide {
    flex-basis: 82vw !important;
  }

  .news-row .card {
    flex-basis: 82vw !important;
    width: 82vw !important;
    max-width: 82vw !important;
  }
}

/* === Real advertising carousel === */

.ad-carousel {
  display: none !important;
}

.real-carousel {
  position: relative;
  width: 100%;
  margin: 8px 0 38px;
  border-radius: 34px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.10);
  background: #111521;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 320px;
  overflow: hidden;
  background: #111521;
}

.carousel-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.28), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(100,160,255,.18), transparent 32%),
    linear-gradient(135deg, #202638, #090b12);
}

.carousel-bg.alt-1 {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.24), transparent 26%),
    radial-gradient(circle at 20% 80%, rgba(80,200,255,.16), transparent 30%),
    linear-gradient(135deg, #121927, #252a3a);
}

.carousel-bg.alt-2 {
  background:
    radial-gradient(circle at 25% 75%, rgba(255,255,255,.22), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,.10), transparent 30%),
    linear-gradient(135deg, #211926, #10131d);
}

.carousel-bg.alt-3 {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.23), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(130,130,255,.18), transparent 34%),
    linear-gradient(135deg, #10131b, #2a2d3a);
}

.carousel-content {
  position: relative;
  z-index: 2;
  min-height: 320px;
  padding: 46px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.carousel-content h2 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.carousel-content p {
  margin: 0;
  max-width: 560px;
  color: #cbd2e3;
  font-size: 19px;
}

.real-carousel .ad-badge {
  width: fit-content;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: #d8deec;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: rgba(255,255,255,.14);
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 28px;
  background: #fff;
}

/* === Horizontal news tape fix === */

.grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 2px 22px !important;
  scroll-snap-type: x mandatory;
}

.grid .card {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 360px !important;
  scroll-snap-align: start;
}

.news-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 2px 22px !important;
  scroll-snap-type: x mandatory;
}

.news-row .card {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 360px !important;
  scroll-snap-align: start;
}

@media (max-width: 850px) {
  .carousel-slide {
    min-height: 280px;
  }

  .carousel-content {
    min-height: 280px;
    padding: 38px 28px 54px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .grid .card,
  .news-row .card {
    flex-basis: 82vw !important;
    width: 82vw !important;
    max-width: 82vw !important;
  }
}

/* === HARD FIX: horizontal news feed === */

.horizontal-news,
.news-row,
.grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 6px 2px 26px !important;
  scroll-snap-type: x mandatory !important;
  width: 100% !important;
}

.horizontal-news .card,
.news-row .card,
.grid .card {
  flex: 0 0 360px !important;
  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;
  scroll-snap-align: start !important;
}

.horizontal-news::-webkit-scrollbar,
.news-row::-webkit-scrollbar,
.grid::-webkit-scrollbar {
  height: 8px;
}

.horizontal-news::-webkit-scrollbar-track,
.news-row::-webkit-scrollbar-track,
.grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

.horizontal-news::-webkit-scrollbar-thumb,
.news-row::-webkit-scrollbar-thumb,
.grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.card {
  overflow: hidden !important;
}

.card h2,
.card p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media (max-width: 850px) {
  .horizontal-news .card,
  .news-row .card,
  .grid .card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    min-width: 82vw !important;
    max-width: 82vw !important;
  }
}

/* === FINAL NEWS TAPE FIX === */

.news-tape,
.horizontal-news,
.news-row,
.grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 6px 2px 28px !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
}

.news-tape-card,
.news-tape .card,
.horizontal-news .card,
.news-row .card,
.grid .card {
  flex: 0 0 620px !important;
  width: 620px !important;
  min-width: 620px !important;
  max-width: 620px !important;
  height: 250px !important;
  display: grid !important;
  grid-template-columns: 230px 1fr !important;
  overflow: hidden !important;
  scroll-snap-align: start !important;
  border-radius: 24px !important;
}

.tape-image-wrap {
  width: 100% !important;
  height: 100% !important;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(135deg, #1a2030, #090b12) !important;
  overflow: hidden !important;
}

.tape-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.tape-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tape-placeholder span {
  color: rgba(255,255,255,.32) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
}

.tape-body {
  padding: 22px 22px 20px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.tape-body h2 {
  margin: 8px 0 10px !important;
  font-size: 23px !important;
  line-height: 1.15 !important;
  max-height: 82px !important;
  overflow: hidden !important;
}

.tape-body p {
  margin: 0 !important;
  color: #c8ccd6 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  max-height: 66px !important;
  overflow: hidden !important;
}

.tape-body .readmore {
  margin-top: auto !important;
  display: inline-flex !important;
  width: fit-content !important;
}

.card-img,
.card-body {
  display: none !important;
}

.news-tape::-webkit-scrollbar,
.horizontal-news::-webkit-scrollbar,
.news-row::-webkit-scrollbar,
.grid::-webkit-scrollbar {
  height: 9px !important;
}

.news-tape::-webkit-scrollbar-track,
.horizontal-news::-webkit-scrollbar-track,
.news-row::-webkit-scrollbar-track,
.grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05) !important;
  border-radius: 999px !important;
}

.news-tape::-webkit-scrollbar-thumb,
.horizontal-news::-webkit-scrollbar-thumb,
.news-row::-webkit-scrollbar-thumb,
.grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.24) !important;
  border-radius: 999px !important;
}

@media (max-width: 850px) {
  .news-tape-card,
  .news-tape .card,
  .horizontal-news .card,
  .news-row .card,
  .grid .card {
    flex: 0 0 86vw !important;
    width: 86vw !important;
    min-width: 86vw !important;
    max-width: 86vw !important;
    height: auto !important;
    min-height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .tape-image-wrap {
    height: 180px !important;
  }

  .tape-body {
    min-height: 230px !important;
  }
}

/* === FINAL: vertical news feed, 5 posts on home === */

.news-tape,
.horizontal-news,
.news-row,
.grid {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding: 0 !important;
  scroll-snap-type: none !important;
}

.news-tape-card,
.news-tape .card,
.horizontal-news .card,
.news-row .card,
.grid .card {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 230px !important;
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  overflow: hidden !important;
  scroll-snap-align: none !important;
  border-radius: 24px !important;
}

.tape-image-wrap {
  width: 100% !important;
  height: 100% !important;
}

.tape-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.tape-body {
  padding: 24px 26px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.tape-body h2 {
  margin: 8px 0 12px !important;
  font-size: 26px !important;
  line-height: 1.18 !important;
  max-height: 92px !important;
  overflow: hidden !important;
}

.tape-body p {
  margin: 0 !important;
  color: #c8ccd6 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  max-height: 72px !important;
  overflow: hidden !important;
}

.tape-body .readmore {
  margin-top: auto !important;
}

.news-tape::-webkit-scrollbar,
.horizontal-news::-webkit-scrollbar,
.news-row::-webkit-scrollbar,
.grid::-webkit-scrollbar {
  display: none !important;
}

@media (max-width: 850px) {
  .news-tape-card,
  .news-tape .card,
  .horizontal-news .card,
  .news-row .card,
  .grid .card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .tape-image-wrap {
    height: 190px !important;
  }

  .tape-body {
    min-height: 220px !important;
  }
}

/* === Square news blocks + carousel placeholder label === */

.real-carousel,
.carousel-viewport,
.carousel-slide {
  border-radius: 14px !important;
}

.news-tape-card,
.news-tape .card,
.horizontal-news .card,
.news-row .card,
.grid .card,
.card {
  border-radius: 14px !important;
}

.tape-image-wrap,
.tape-img,
.card-img {
  border-radius: 0 !important;
}

.tape-placeholder {
  border-radius: 0 !important;
}

.carousel-content .ad-badge,
.real-carousel .ad-badge,
.ad-badge {
  font-weight: 800 !important;
  color: #ffffff !important;
  background: rgba(255,255,255,.16) !important;
  letter-spacing: .16em !important;
}


/* === Admin carousel + SEO update visual fixes === */

.carousel-click {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-bg[style] {
  background-size: cover !important;
  background-position: center !important;
}

.ads-admin-form {
  display: grid;
  gap: 18px;
}

.ad-admin-card {
  border: 1px solid rgba(255,255,255,0.10);
  background: #0f131d;
  padding: 22px;
  border-radius: 0 !important;
}

.ad-admin-card h2 {
  margin: 0 0 10px;
}

/* === Square blocks: no rounded corners === */

.real-carousel,
.carousel-viewport,
.carousel-slide,
.card,
.news-tape-card,
.news-tape .card,
.horizontal-news .card,
.news-row .card,
.grid .card,
.tape-image-wrap,
.tape-img,
.tape-placeholder,
.social-btn,
.admin-wide,
.admin-box,
.empty,
.about-text,
.about-image,
.about-placeholder,
.post-image,
.video-wrap,
.video-file,
input,
textarea,
.button,
.small-btn {
  border-radius: 0 !important;
}

.carousel-arrow,
.carousel-dots button,
.ad-badge {
  border-radius: 999px !important;
}


/* === Comments === */

.comments-section {
  width: min(850px, 100%);
  margin: 34px auto 0;
  background: #121620;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px;
  border-radius: 0 !important;
}

.comments-head h2 {
  margin: 0;
  font-size: 30px;
}

.comments-head p {
  margin: 4px 0 22px;
  color: #9aa3b8;
}

.comments-list {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.comment-item {
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d111a;
  padding: 18px;
}

.comment-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #dfe4ee;
  margin-bottom: 8px;
}

.comment-top span {
  color: #8f98aa;
  font-size: 13px;
}

.comment-text {
  color: #cfd5e3;
  line-height: 1.55;
}

.comments-empty {
  color: #8f98aa;
  padding: 14px 0;
}

.comment-form {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

.comment-message {
  margin-top: 12px;
  color: #cfd5e3;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}


/* === Comment counters and reactions === */

.comment-count {
  margin-top: auto !important;
  margin-bottom: 8px !important;
  color: #9aa3b8 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.comment-actions button {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  border-radius: 0 !important;
}

.comment-actions button:hover {
  background: rgba(255,255,255,0.12);
}

.comment-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.comment-actions span {
  font-weight: 800;
}


/* === Position comment counter and comment reactions === */

/* Счётчик комментариев в правый верхний угол карточки новости */
.news-tape-card,
.news-tape .card,
.horizontal-news .card,
.news-row .card,
.grid .card {
  position: relative !important;
}

.tape-body {
  position: relative !important;
  padding-right: 90px !important;
}

.comment-count {
  position: absolute !important;
  top: 22px !important;
  right: 24px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #cfd5e3 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  z-index: 3 !important;
}

/* Чтобы кнопка "Читать" осталась внизу */
.tape-body .readmore {
  margin-top: auto !important;
}

/* Лайк/дизлайк в правый верхний угол комментария */
.comment-item {
  position: relative !important;
  padding-right: 160px !important;
  min-height: 110px !important;
}

.comment-top {
  display: block !important;
  padding-right: 0 !important;
}

.comment-top span {
  display: block !important;
  margin-top: 4px !important;
}

.comment-actions {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  margin: 0 !important;
  display: flex !important;
  gap: 8px !important;
}

.comment-actions button {
  min-width: 58px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

/* Мобильная версия */
@media (max-width: 850px) {
  .tape-body {
    padding-right: 24px !important;
    padding-top: 58px !important;
  }

  .comment-count {
    top: 18px !important;
    right: 18px !important;
  }

  .comment-item {
    padding-right: 18px !important;
    padding-bottom: 72px !important;
  }

  .comment-actions {
    top: auto !important;
    right: 18px !important;
    bottom: 18px !important;
  }
}


/* === Typography polish: softer font and smaller sizes === */

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em !important;
}

/* Общие заголовки */
h1, h2, h3 {
  letter-spacing: -0.035em !important;
}

/* Карусель */
.carousel-content h2 {
  font-size: clamp(30px, 4vw, 46px) !important;
  line-height: 1.08 !important;
}

.carousel-content p {
  font-size: 17px !important;
  line-height: 1.45 !important;
}

.real-carousel .ad-badge,
.ad-badge {
  font-size: 11px !important;
}

/* Заголовки секций */
.section-head h2,
.page-head h1,
.admin-wide h1,
.admin-box h1 {
  font-size: 28px !important;
  line-height: 1.15 !important;
}

/* Карточки новостей */
.tape-body h2 {
  font-size: 22px !important;
  line-height: 1.2 !important;
  max-height: 78px !important;
}

.tape-body p {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.date,
.muted,
.comment-count {
  font-size: 13px !important;
}

/* Полная новость */
.post h1 {
  font-size: clamp(34px, 5vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
}

.content {
  font-size: 18px !important;
  line-height: 1.62 !important;
}

/* Комментарии */
.comments-head h2 {
  font-size: 26px !important;
}

.comment-text {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.comment-top strong {
  font-size: 15px !important;
}

.comment-actions button {
  font-size: 14px !important;
}

/* Кнопки и меню */
nav {
  font-size: 14px !important;
}

.button,
.small-btn,
.readmore {
  font-size: 14px !important;
}

.social-btn span {
  font-size: 11px !important;
}

.social-btn strong {
  font-size: 16px !important;
}

/* Админка */
input,
textarea,
label {
  font-size: 15px !important;
}

/* Мобильная версия */
@media (max-width: 850px) {
  body {
    font-size: 15px !important;
  }

  .carousel-content h2 {
    font-size: 30px !important;
  }

  .post h1 {
    font-size: 34px !important;
  }

  .content {
    font-size: 16px !important;
  }

  .tape-body h2 {
    font-size: 21px !important;
  }
}


/* === Compact typography v2 === */

body {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Верхнее меню */
nav {
  font-size: 13px !important;
}

/* Карусель */
.carousel-slide {
  min-height: 240px !important;
}

.carousel-content {
  min-height: 240px !important;
  padding: 34px 46px !important;
}

.carousel-content h2 {
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.1 !important;
}

.carousel-content p {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.real-carousel .ad-badge,
.ad-badge {
  font-size: 10px !important;
  padding: 5px 9px !important;
}

/* Заголовки секций */
.section-head h2,
.page-head h1,
.admin-wide h1,
.admin-box h1 {
  font-size: 23px !important;
  line-height: 1.15 !important;
}

/* Карточки новостей */
.news-tape-card,
.news-tape .card,
.horizontal-news .card,
.news-row .card,
.grid .card {
  height: 190px !important;
  grid-template-columns: 220px 1fr !important;
}

.tape-body {
  padding: 18px 22px !important;
  padding-right: 82px !important;
}

.tape-body h2 {
  font-size: 19px !important;
  line-height: 1.18 !important;
  max-height: 68px !important;
  margin: 6px 0 8px !important;
}

.tape-body p {
  font-size: 13.5px !important;
  line-height: 1.42 !important;
  max-height: 56px !important;
}

.date,
.muted {
  font-size: 12px !important;
}

.comment-count {
  font-size: 12px !important;
  top: 16px !important;
  right: 18px !important;
  padding: 6px 8px !important;
}

/* Кнопки */
.button,
.small-btn,
.readmore {
  font-size: 13px !important;
}

.button {
  padding: 10px 16px !important;
}

/* Полная новость */
.post h1 {
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.08 !important;
}

.content {
  font-size: 15.5px !important;
  line-height: 1.58 !important;
}

.post {
  width: min(780px, 100%) !important;
}

/* Комментарии */
.comments-section {
  width: min(780px, 100%) !important;
  padding: 22px !important;
}

.comments-head h2 {
  font-size: 22px !important;
}

.comments-head p {
  font-size: 13px !important;
}

.comment-item {
  min-height: 92px !important;
  padding: 15px !important;
  padding-right: 145px !important;
}

.comment-top strong {
  font-size: 14px !important;
}

.comment-top span {
  font-size: 12px !important;
}

.comment-text {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.comment-actions {
  top: 14px !important;
  right: 14px !important;
}

.comment-actions button {
  min-width: 50px !important;
  height: 36px !important;
  font-size: 13px !important;
  padding: 6px 9px !important;
}

/* Соцкнопки */
.social-btn {
  padding: 14px 16px !important;
}

.social-btn span {
  font-size: 10px !important;
}

.social-btn strong {
  font-size: 14px !important;
}

/* Формы */
input,
textarea,
label {
  font-size: 14px !important;
}

/* Мобильная версия */
@media (max-width: 850px) {
  body {
    font-size: 14px !important;
  }

  .carousel-slide,
  .carousel-content {
    min-height: 220px !important;
  }

  .carousel-content {
    padding: 30px 24px 44px !important;
  }

  .carousel-content h2 {
    font-size: 25px !important;
  }

  .news-tape-card,
  .news-tape .card,
  .horizontal-news .card,
  .news-row .card,
  .grid .card {
    height: auto !important;
  }

  .tape-body {
    padding: 16px 18px !important;
    padding-top: 52px !important;
  }

  .tape-body h2 {
    font-size: 18px !important;
  }

  .post h1 {
    font-size: 28px !important;
  }

  .content {
    font-size: 15px !important;
  }

  .comment-item {
    padding-right: 15px !important;
    padding-bottom: 62px !important;
  }
}


/* === Full news page: date to the right === */

.post > .back {
  display: inline-block !important;
}

.post > .date {
  display: block !important;
  text-align: right !important;
  margin-top: -24px !important;
  margin-bottom: 18px !important;
  color: #9fb2d8 !important;
}

/* На телефоне оставляем аккуратно справа без наложения */
@media (max-width: 650px) {
  .post > .date {
    margin-top: 8px !important;
    text-align: right !important;
  }
}


/* === Comment date to bottom right === */

.comment-item {
  position: relative !important;
  padding-bottom: 38px !important;
}

.comment-top span {
  position: absolute !important;
  right: 14px !important;
  bottom: 12px !important;
  margin: 0 !important;
  display: block !important;
  text-align: right !important;
  font-size: 12px !important;
  color: #8f98aa !important;
}

.comment-text {
  padding-right: 0 !important;
}

/* Лайк/дизлайк остаются справа сверху */
.comment-actions {
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
}

/* На мобильных — дата тоже снизу справа */
@media (max-width: 850px) {
  .comment-item {
    padding-bottom: 70px !important;
  }

  .comment-top span {
    right: 14px !important;
    bottom: 14px !important;
  }

  .comment-actions {
    top: auto !important;
    right: 14px !important;
    bottom: 38px !important;
  }
}


/* === Carousel polish for promo banners === */

.carousel-bg[style] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.carousel-content {
  max-width: 760px !important;
}

.carousel-content h2 {
  text-shadow: 0 2px 18px rgba(0,0,0,0.28) !important;
}

.carousel-content p {
  max-width: 620px !important;
  color: rgba(255,255,255,0.86) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.22) !important;
}

.real-carousel .ad-badge,
.ad-badge {
  background: rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
}


/* === Carousel arrows fix: do not overlap text === */

.carousel-content {
  padding-left: 96px !important;
  padding-right: 96px !important;
}

.carousel-prev {
  left: 22px !important;
}

.carousel-next {
  right: 22px !important;
}

.carousel-arrow {
  z-index: 10 !important;
}

/* На мобильных стрелки ниже/компактнее, текст не задевают */
@media (max-width: 850px) {
  .carousel-content {
    padding-left: 68px !important;
    padding-right: 68px !important;
  }

  .carousel-prev {
    left: 12px !important;
  }

  .carousel-next {
    right: 12px !important;
  }
}

@media (max-width: 520px) {
  .carousel-content {
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 58px !important;
  }

  .carousel-arrow {
    top: 24px !important;
    transform: none !important;
  }

  .carousel-prev {
    left: 16px !important;
  }

  .carousel-next {
    right: 16px !important;
  }
}


/* === About page desktop redesign === */

.about-page {
  width: min(960px, 100%) !important;
  margin: 28px auto 56px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 22px !important;
  align-items: stretch !important;
}

/* Если фото не добавлено — убираем пустой блок и делаем одну красивую карточку */
.about-page:has(.about-placeholder) {
  grid-template-columns: 1fr !important;
  width: min(780px, 100%) !important;
}

.about-placeholder {
  display: none !important;
}

.about-text {
  min-height: 0 !important;
  padding: 34px 36px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.06), transparent 28%),
    #121620 !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
}

.about-text .eyebrow {
  font-size: 10px !important;
  letter-spacing: .22em !important;
  color: #9fb2d8 !important;
  margin-bottom: 18px !important;
}

.about-text h1 {
  font-size: clamp(30px, 4vw, 44px) !important;
  line-height: 1.05 !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.04em !important;
}

.about-text .content {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #d8deea !important;
  margin: 0 !important;
}

.about-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 320px !important;
  max-height: 380px !important;
  object-fit: cover !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  background: #121620 !important;
}

/* Убираем лишнюю огромность на странице Обо мне */
.about-page + * {
  margin-top: 0 !important;
}

@media (max-width: 850px) {
  .about-page {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    margin-top: 18px !important;
  }

  .about-text {
    padding: 26px 22px !important;
  }

  .about-text h1 {
    font-size: 30px !important;
  }

  .about-image {
    min-height: 260px !important;
    max-height: 320px !important;
  }
}

