/* ===== База ===== */
:root {
  --ink: #252b31;
  --muted: #616a73;
  --paper: #edf0f2;
  --yellow: #efc72f;
  --yellow2: #ffe866;
  --line: #d5dade;
  --card: #fff;
  --dark: #343b42;
  --gold: #9a7d1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

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

.wrap {
  max-width: 1200px;
  padding: 0 28px;
  margin: auto;
}

/* ===== Верхняя полоса ===== */
.top {
  height: 32px;
  background: linear-gradient(112deg, #30373e 0%, #424a52 48%, #343c43 100%);
  color: #f7f8f8;
  font-size: 11px;
  border-bottom: 1px solid rgba(239, 242, 244, .18);
}

.top .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top span:last-child { color: var(--yellow); }

/* ===== Шапка ===== */
.header {
  background: linear-gradient(112deg, #30373e 0%, #424a52 48%, #343c43 100%);
  color: #f7f8f8;
  border-bottom: 1px solid rgba(239, 242, 244, .19);
  position: sticky;
  top: 0;
  z-index: 20;
}

.head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
}

header .brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  padding: 4px !important;
  overflow: hidden !important;
  flex: 0 0 76px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #efcf5c, #a77c1e) !important;
  border: 1px solid rgba(255, 242, 173, .8) !important;
  box-shadow: rgba(14, 18, 22, .22) 0 4px 14px, rgba(255, 255, 255, .35) 0 0 0 2px inset !important;
  line-height: 0 !important;
}

header .brand img.round-original-logo {
  display: block !important;
  width: 66px !important;
  height: 66px !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: #20272e !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  padding: 2px !important;
  box-shadow: none !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #f2f4f5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav a:hover,
.nav a[aria-current="page"] { color: #ffe05b; }

/* ===== Кнопки ===== */
.btn, .head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(115deg, #fff17a 0%, #f6d93b 48%, #eabf22 100%);
  color: #262a2e;
  border: 1px solid rgba(143, 112, 17, .27);
  border-radius: 3px;
  padding: 13px 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  box-shadow: rgba(25, 33, 40, .12) 0 3px 10px;
  transition: .18s;
  cursor: pointer;
}

.btn:hover, .head-cta:hover {
  background: linear-gradient(115deg, #fff8a8, #ffe866);
  transform: translateY(-1px);
  box-shadow: rgba(25, 33, 40, .16) 0 5px 13px;
}

.btn.dark {
  background: linear-gradient(115deg, #454d55, #353d45);
  color: #f6f7f8;
  border-color: #66717a;
}

/* ===== Hero ===== */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 48px;
  background: linear-gradient(110deg, var(--paper) 0 58%, #e1e5e8 58% 100%);
  border-bottom: 1px solid var(--line);
}

.blog-hero::after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  right: 5%;
  top: -165px;
  border: 1px solid rgba(37, 43, 49, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(37, 43, 49, .025), 0 0 0 56px rgba(37, 43, 49, .02);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}

.crumb a { color: var(--gold); }

.eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
}

.blog-hero h1 {
  font-family: 'Space Grotesk', Manrope, Arial, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.065em;
  text-transform: uppercase;
  margin: 16px 0 17px;
  max-width: 850px;
  color: #273038;
}

.blog-hero h1 span { color: var(--gold); }

.blog-hero p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 700px;
  margin: 0;
}

/* ===== Контент / заголовки секции ===== */
.content { padding: 55px 0 72px; }

#videos.content {
  background: linear-gradient(120deg, #eef1f3 0%, #fafafa 52%, #e6eaed 100%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: 'Space Grotesk', Manrope, Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
  text-transform: uppercase;
  margin: 0;
  color: #29343d;
}

.section-head p {
  margin: 0;
  max-width: 450px;
  color: #59646d;
  line-height: 1.65;
  font-size: 15px;
}

/* ===== Сетка видео ===== */
.video-grid, .latest-rutube-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.rutube-video-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: rgba(34, 44, 53, .08) 0 10px 28px;
  min-width: 0;
  transition: transform .2s, box-shadow .2s;
}

.rutube-video-card:hover {
  transform: translateY(-3px);
  box-shadow: rgba(34, 44, 53, .12) 0 15px 34px;
}

.video-media, .rutube-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #252b31;
  overflow: hidden;
}

.video-media iframe, .rutube-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rutube-poster-button {
  appearance: none;
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #252d35;
  cursor: pointer;
  color: #fff;
  overflow: hidden;
}

.rutube-poster-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.rutube-poster-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 18, 23, .76), rgba(13, 18, 23, .05) 68%, rgba(13, 18, 23, .1));
}

.rutube-poster-button:hover .rutube-poster-image {
  transform: scale(1.025);
  filter: brightness(.88);
}

.rutube-play-icon {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding-left: 4px;
  border-radius: 50%;
  background: linear-gradient(130deg, #fff17a, #e2bc34);
  color: #273139;
  font-size: 25px;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .35);
}

.rutube-play-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.rutube-poster-button:focus-visible {
  outline: 3px solid #e7c33a;
  outline-offset: -4px;
}

/* ===== Текст внутри карточки ===== */
.video-copy, .rutube-video-card .video-copy {
  padding: 19px 19px 17px;
}

.rutube-video-card h3, .video-copy h3 {
  margin: 0 0 10px;
  color: #29343d;
  font: 700 clamp(17px, 1.55vw, 21px)/1.3 'Space Grotesk', Manrope, sans-serif;
  letter-spacing: -.015em;
}

.rutube-video-card p, .video-copy p {
  margin: 0;
  color: #505b64;
  font-size: 14px;
  line-height: 1.65;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #e2e6e9;
}

.card-bottom a {
  color: #765d18;
  font-weight: 800;
  font-size: 12px;
}

.embed-note {
  color: #717c85;
  font-size: 11px;
}

/* ===== Статус загрузки ===== */
.rutube-live-status {
  margin: -10px 0 18px;
  color: #64707a;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Блок подписки ===== */
.rutube-follow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 19px 22px;
  background: linear-gradient(115deg, #e3e8eb, #f7f8f8);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #303840;
}

.rutube-follow > div:first-child {
  display: grid;
  gap: 4px;
}

.rutube-follow strong {
  font-size: 16px;
  color: #303840;
}

.rutube-follow span {
  font-size: 13px;
  color: #5c6770;
}

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

.rutube-follow .btn {
  background: linear-gradient(120deg, #fff080, #e7c33b);
  color: #22282d;
  box-shadow: none;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  padding: 12px 16px;
}

.rutube-follow .rutube-secondary {
  background: linear-gradient(120deg, #414b54, #303840);
  color: #fff;
  border-color: #56616b;
}

/* ===== CTA-секция ===== */
.blog-cta { padding: 53px 0; }

.cta-inner {
  padding: 26px 29px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: rgba(25, 33, 40, .06) 0 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-inner h2 {
  font: 700 24px/1.2 'Space Grotesk', Manrope, sans-serif;
  margin: 0 0 5px;
  color: #29343d;
}

.cta-inner p {
  font-size: 13px;
  margin: 0;
  color: #505b64;
}

/* ===== Подвал ===== */
.footer {
  background: linear-gradient(112deg, #30373e 0%, #424a52 48%, #343c43 100%);
  color: #f7f8f8;
  border-top: 1px solid rgba(239, 242, 244, .22);
  padding: 27px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer img[src*="autokrab-logo.png"],
.footer-logo[src*="autokrab-logo.png"] {
  display: block;
  width: clamp(118px, 13vw, 158px);
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #08090a;
  border: 1px solid rgba(226, 180, 66, .3);
  border-radius: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #d0d0cc;
  font-size: 11px;
}

.footer-links a:hover { color: #ffe05b; }

.footer small {
  font-size: 10px;
  color: #a9aaa7;
}

/* ===== Адаптив ===== */
@media (max-width: 980px) {
  .nav { gap: 10px; font-size: 10px; }
  .video-grid, .latest-rutube-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 700px) {
  header .brand {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    flex-basis: 62px !important;
    padding: 3px !important;
  }

  header .brand img.round-original-logo {
    width: 54px !important;
    height: 54px !important;
  }

  .footer img[src*="autokrab-logo.png"],
  .footer-logo[src*="autokrab-logo.png"] {
    width: 128px;
  }
}

@media (max-width: 650px) {
  .wrap { padding: 0 19px; }

  .head {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .head-cta {
    margin-left: auto;
    padding: 10px 12px;
    font-size: 9px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow: auto;
    white-space: nowrap;
    padding: 5px 0 3px;
  }

  .blog-hero {
    padding: 35px 0 32px;
    background: linear-gradient(155deg, var(--paper) 0 67%, #e1e5e8 67%);
  }

  .blog-hero::after {
    right: -130px;
    top: -90px;
    width: 300px;
    height: 300px;
  }

  .blog-hero h1 { font-size: clamp(39px, 11vw, 58px); }
  .blog-hero p { font-size: 14px; }

  .content { padding: 42px 0 52px; }
  .video-grid, .latest-rutube-grid { grid-template-columns: 1fr; }
  .video-copy, .rutube-video-card .video-copy { padding: 16px; }
  .rutube-video-card h3, .video-copy h3 { font-size: 21px; }

  .cta-inner, .rutube-follow {
    align-items: flex-start;
    flex-direction: column;
  }

  .rutube-follow-actions { width: 100%; }
  .rutube-follow .btn { flex: 1; justify-content: center; }

  .blog-cta { padding: 40px 0; }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}