/* Unbounded — локально max_landing/fonts/Unbounded/ */
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded/Unbounded-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0B6CDD;
  --navy: #0a1a3a;
  --text: #333;
  --white: #ffffff;
  --nav-height: 100px;
  --hero-height: 924px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: 'Unbounded', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.3;
  min-width: 320px;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px 0 40px;
  background: var(--white);
  border-bottom: 1px solid #E8E8E8;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 28px;
  width: auto;
}

.nav-logo-icon {
  height: 15px;
  width: auto;
}

@media (max-width: 400px) {
  .nav-logo-img {
    height: 20px;
  }
  .nav-logo-icon {
    height: 11px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-family: 'Unbounded', sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 2;
  color: #979797;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-divider {
  flex-shrink: 0;
  width: 4px;
  height: 56px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link-ext {
  font-family: 'Unbounded', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.667;
  color: #979797;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link-ext:hover {
  color: var(--primary);
}

/* Burger — скрыт на десктопе */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #979797;
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: var(--hero-height);
  background-color: var(--primary);
  overflow: hidden;
}

/* Background texture / pattern */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}

/* Bottom gradient */
.hero-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75%;
  background: linear-gradient(180deg, rgba(11, 108, 221, 0) 0%, rgba(11, 108, 221, 0.7) 60%, rgba(11, 108, 221, 1) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Man photo – positioned right, overflows bottom */
.hero-photo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  max-width: 866px;
  height: auto;
  max-height: 98%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

/* Left column with two cards */
.hero-container {
  position: relative;
  min-height: var(--hero-height);
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 54px;
  padding: 111px 0 80px 0;
  /* 53.5% matches Figma proportions (770 / 1440), capped at original size */
  width: 53.5%;
  max-width: 770px;
}

/* Shared card styles */
.hero-card {
  background: var(--white);
  border: 0.955762px solid #E5E5E5;
  border-radius: 22.9383px;
  padding: 38.23px 51.6111px 38.2305px;
  box-shadow: 3.82305px 3.82305px 19.1152px rgba(0, 0, 0, 0.05);
}

/* Card 1 – name + subtitle */
.hero-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: 0.08em;
  color: #000;
  margin-bottom: 22px;
}

.hero-name-bold {
  font-weight: 700;
  color: var(--primary);
}

.hero-desc {
  font-family: 'Unbounded', sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 40px;
  color: #000;
}

.hero-link {
  color: var(--primary);
}

/* Card 2 – bio bullets */
.hero-card-bottom p {
  font-family: 'Unbounded', sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 45px;
  color: #000;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Начиная с 1409px и уже — картинка фиксируется по нижнему краю и масштабируется */
@media (max-width: 1409px) {
  .hero-photo {
    width: 55%;
    height: auto;
    max-height: none;
  }
}

/* Начиная с 1280px картинка выходит поверх карточек */
@media (max-width: 1280px) {
  .hero-photo {
    z-index: 3;
    width: 55%;
  }
  .hero-content {
    width: 65%;
    padding-left: 0;
  }
  .hero-card {
    padding-right: 160px;
  }
}

/* Планшеты (горизонтально) и небольшие ноутбуки */
@media (max-width: 1024px) {
  .nav-links a {
    font-size: 20px;
  }
  .nav-link-ext {
    font-size: 24px;
  }
  .hero-content {
    width: 70%;
    padding-left: 0;
    gap: 40px;
  }
  .hero-photo {
    width: 60%;
    height: auto;
  }
  .hero-name {
    font-size: 48px;
  }
  .hero-desc,
  .hero-card-bottom p {
    font-size: 28px;
    line-height: 1.3;
  }
  .hero-card {
    padding: 32px 200px 32px 40px;
  }
}

/* Планшеты (вертикально) и мобильные */
@media (max-width: 1270px) {
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 9;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-links,
  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    background: #E8E8E8;
    margin: 10px 0;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .navbar {
    height: 64px;
    padding: 0 20px;
  }

  .burger {
    display: flex;
    z-index: 10;
  }

  .burger span {
    transition: all 0.3s ease-in-out;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .hero-container {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    gap: 24px;
    padding: 32px 0 0 0;
    z-index: 2;
    order: 1;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: -320px -20px -100px 0;
    align-self: flex-end;
    transform: translateX(15%);
    right: auto;
    bottom: 0;
    top: auto;
    left: auto;
    object-fit: contain;
    object-position: bottom right;
    z-index: 3;
    order: 2;
  }

  .hero-name {
    font-size: 45px;
  }

  .hero-desc,
  .hero-card-bottom p {
    font-size: 30px;
    line-height: 1.33;
  }

  .hero-card {
    padding: 28px 27px;
  }
}

@media (max-width: 750px) {
  .hero-name {
    font-size: 36px;
  }
  .hero-desc,
  .hero-card-bottom p {
    font-size: 22px;
    line-height: 1.35;
  }
}

@media (max-width: 700px) {
  .hero-photo {
    margin: -200px -20px -100px 0;
  }
}

@media (max-width: 820px),
       (min-width: 1000px) and (max-width: 1024px) {
  .break-custom {
    display: block;
  }
}

@media (min-width: 500px) and (max-width: 590px) {
  .break-500-590 {
    display: block;
  }
  .break-500-590 + br {
    display: none;
  }
}

/* Маленькие экраны */
@media (max-width: 480px) {
  .hero {
    min-height: auto;
  }

  .hero-container {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
    padding: 20px 0 0 0;
    gap: 16px;
    order: 1;
  }

  .hero-card {
    padding: 20px;
    border-radius: 16px;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    margin: -60px -16px -80px 0;
    align-self: flex-end;
    transform: translateX(15%);
    right: auto;
    bottom: 0;
    top: auto;
    left: auto;
    object-position: bottom right;
    order: 2;
  }

  .hero-name {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 1.4;
  }
  .hero-card-bottom p {
    font-size: 16px;
    max-width: 100%;
    line-height: 1.4;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 55px;
}

.about-section {
  background-color: var(--white);
  position: relative;
  z-index: 4;
  border-radius: 40px;
  margin-top: -40px;
  margin-bottom: -40px;
  padding-top: 80px;
}

.about-section .topics-title-wrap .section-title {
  color: var(--primary);
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 24px;
}

.accordion-box {
  margin-top: 20px;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #e8ecf2;
}

.accordion-item:last-child {
  border-bottom: 0;
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  border: 0;
  background: none;
  font-size: 32px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0.04em;
  color: #1A1A1A;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  gap: 12px;
}

.accordion-btn:hover {
  background: #f8fafd;
}

.chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--white);
  padding: 0 40px;
}

.accordion-content p {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: #4A4A4A;
  padding-bottom: 32px;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

/* ============================================================
   RESPONSIVE - ABOUT
   ============================================================ */

@media (max-width: 1024px) {
  .section-title {
    font-size: 48px;
  }
  .accordion-btn {
    font-size: 20px;
    padding: 20px 24px;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  .section-title {
    font-size: 45px;
  }
  .accordion-btn {
    font-size: 18px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section-title {
    font-size: 28px;
  }
  .accordion-btn {
    font-size: 16px;
    padding: 14px 16px;
  }
}

/* ============================================================
   PODCASTS
   ============================================================ */

.podcasts-section {
  background: 
    linear-gradient(rgba(11, 108, 221, 0.85), rgba(11, 108, 221, 0.85)),
    url('images/podcasts-bg.png') center/cover no-repeat;
  padding: 80px 0 80px 0;
  position: relative;
  z-index: 3;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title-white {
  color: var(--white);
  margin-bottom: 0;
}

.nav-arrows {
  display: none;
  gap: 12px;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.arrow-btn:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.arrow-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
}

.arrow-btn:disabled:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}

.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.podcast-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.podcast-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0e4eb5, #2e80e8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.podcast-thumb.dark {
  background: linear-gradient(135deg, #0a1a38, #142e5e);
}

.podcast-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  gap: 4px;
  padding: 20px;
}

.podcast-big-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.podcast-sub {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1.3;
}

.podcast-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.podcast-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
}

/* ============================================================
   RESPONSIVE - PODCASTS
   ============================================================ */

@media (max-width: 1024px) {
  .podcasts-grid {
    gap: 16px;
  }
  .podcast-big-text {
    font-size: 36px;
  }
  .podcast-sub {
    font-size: 10px;
  }
  .podcast-title {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .podcasts-section {
    padding: 80px 0 60px 0;
  }
  .podcasts-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    gap: 16px;
    padding-bottom: 10px;
  }
  .podcasts-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
  }
  .podcast-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .podcast-card:last-child {
    display: flex;
  }
  .arrow-btn {
    width: 40px;
    height: 40px;
  }
  .arrow-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 560px) {
  .podcasts-section {
    padding: 60px 0 40px 0;
  }
  .podcasts-grid {
    gap: 16px;
  }
  .podcast-card {
    flex: 0 0 85%;
  }
  .podcast-card:last-child {
    display: flex;
  }
  .podcast-big-text {
    font-size: 32px;
  }
  .podcast-sub {
    font-size: 10px;
  }
  .podcast-title {
    font-size: 14px;
  }
}

/* ============================================================
   MEDIA PROFILE
   ============================================================ */

.media-section {
  padding: 80px 0 100px 0;
  background: var(--white);
  position: relative;
  z-index: 4;
  border-radius: 40px;
  margin-top: -40px;
  margin-bottom: -40px;
}

.media-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.text-primary {
  color: var(--primary);
}

.media-title-wrap .section-title {
  margin-bottom: 16px;
  color: #000;
}

.media-subtitle {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.media-arrows {
  margin-bottom: 12px;
}

.blue-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.blue-arrow:hover {
  background: #095bc2;
  border-color: #095bc2;
}

.blue-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #b8d0f0;
  background: #b8d0f0;
  color: rgba(255, 255, 255, 0.75);
}

.blue-arrow:disabled:hover {
  background: #b8d0f0;
  border-color: #b8d0f0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-card {
  display: flex;
  flex-direction: column;
}

.media-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.media-card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000;
  margin-bottom: 16px;
  line-height: 1.2;
}

.media-card-desc {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #000;
  margin-bottom: 32px;
  line-height: 1.3;
  flex-grow: 1;
}

.media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.media-btn:hover {
  background: #095bc2;
}

/* ============================================================
   RESPONSIVE - MEDIA PROFILE
   ============================================================ */

@media (max-width: 1024px) {
  .media-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .media-arrows {
    margin-bottom: 0;
  }
  .media-subtitle {
    font-size: 24px;
  }
  .media-card-title {
    font-size: 22px;
  }
  .media-card-desc {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .media-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding-bottom: 10px;
  }
  .media-grid::-webkit-scrollbar {
    display: none;
  }
  .media-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .media-card:last-child {
    display: flex;
  }
}

@media (max-width: 560px) {
  .media-section {
    padding: 40px 0 60px 0;
  }
  .media-grid {
    gap: 16px;
  }
  .media-card {
    flex: 0 0 85%;
  }
  .media-card:last-child {
    display: flex;
  }
  .media-subtitle {
    font-size: 16px;
  }
  .media-card-title {
    font-size: 18px;
  }
  .media-card-desc {
    font-size: 14px;
  }
  .media-btn {
    font-size: 16px;
    padding: 12px 24px;
  }
}

/* ============================================================
   TOPICS (О чем я говорю)
   ============================================================ */

.topics-section {
  background-color: var(--white);
  padding: 80px 0 100px 0;
  position: relative;
  z-index: 4;
  border-radius: 40px;
  margin-top: -40px;
  margin-bottom: -40px;
}

.topics-title-wrap {
  margin-bottom: 40px;
}

.topics-title-wrap .section-title {
  color: #000;
  margin-bottom: 0;
}

.topics-card {
  background: var(--white);
  border: 1px solid #E5E5E5;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  overflow: hidden;
}

/* Accordion in topics */
.topics-card .accordion-box {
  margin-top: 0;
  border: none;
  border-radius: 0;
}

.topics-card .accordion-item {
  border-bottom: 1px solid #E5E5E5;
}

.topics-card .accordion-item:last-child {
  border-bottom: none;
}

.topics-card .accordion-btn {
  padding: 20px 30px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.topics-card .accordion-content {
  padding: 0 30px;
}

@media (max-width: 1024px) {
  .topics-card .accordion-btn {
    font-size: 24px;
    padding: 16px 24px;
  }
  .accordion-content {
    padding: 0 24px;
  }
  .accordion-content p {
    font-size: 18px;
    padding-bottom: 24px;
  }
}

@media (max-width: 900px) {
  .topics-section {
    padding: 60px 0 60px 0;
  }
  .topics-card .accordion-btn {
    font-size: 20px;
    padding: 14px 20px;
  }
  .accordion-content {
    padding: 0 20px;
  }
  .accordion-content p {
    font-size: 16px;
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .topics-card .accordion-btn {
    font-size: 16px;
    padding: 12px 16px;
  }
  .accordion-content {
    padding: 0 16px;
  }
  .accordion-content p {
    font-size: 14px;
    padding-bottom: 16px;
  }
}

/* ============================================================
   EVENTS (Участвовал в следующих мероприятиях)
   ============================================================ */

.events-section {
  background: 
    linear-gradient(rgba(11, 108, 221, 0.85), rgba(11, 108, 221, 0.85)),
    url('images/events-bg.png') center/cover no-repeat;
  padding: 80px 0 100px 0;
  position: relative;
  z-index: 3;
}

.events-section .section-title {
  margin-bottom: 0;
}

.events-section .section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.event-info {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
}

.event-link {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  line-height: 1.2;
  transition: color 0.2s;
}

.event-link:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .event-link {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  .nav-arrows {
    display: flex;
  }
  .events-section {
    padding: 80px 0 80px 0;
  }
  .events-section .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
  }
  .events-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding-bottom: 10px;
  }
  .events-grid::-webkit-scrollbar {
    display: none;
  }
  .event-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .event-card:last-child {
    display: flex;
  }
}

@media (max-width: 560px) {
  .events-section {
    padding: 60px 0 60px 0;
  }
  .events-grid {
    gap: 16px;
  }
  .event-card {
    flex: 0 0 85%;
  }
  .event-card:last-child {
    display: flex;
  }
  .event-link {
    font-size: 16px;
  }
}

/* ============================================================
   PRESS (Сми о нас)
   ============================================================ */

.press-section {
  background-color: var(--white);
  padding: 80px 0 100px 0;
  position: relative;
  z-index: 4;
  border-radius: 40px;
  margin-top: -40px;
  margin-bottom: -40px;
}

.press-section .section-title {
  color: #000;
  margin-bottom: 0;
}

.press-section .section-head-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 40px;
}

.press-section .section-head-row .section-title {
  flex: 1;
  min-width: 0;
}

.press-section .section-head-row .nav-arrows {
  flex-shrink: 0;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.press-card {
  display: flex;
  flex-direction: column;
}

.press-logo-wrap {
  height: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid #B0B0B0;
  border-radius: 13px;
  padding: 20px;
  background: var(--white);
}

.press-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.press-logo-rbk {
  max-width: 54%;
  max-height: 44%;
}

.press-logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 3vw, 42px);
  font-weight: 800;
  color: #000;
  text-align: center;
  line-height: 1.1;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.press-logo-text-long {
  font-size: clamp(16px, 2.4vw, 36px);
  letter-spacing: -0.04em;
}

.press-card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #20252B;
  margin-bottom: 32px;
  line-height: 1.1;
  flex-grow: 1;
}

.press-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-family: 'Unbounded', sans-serif;
  font-size: 25px;
  font-weight: 400;
  padding: 18px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.press-btn:hover {
  background: #095bc2;
}

@media (max-width: 1024px) {
  .press-logo-wrap {
    height: 180px;
  }
  .press-logo-text {
    font-size: clamp(18px, 3.4vw, 32px);
  }
  .press-logo-text-long {
    font-size: clamp(15px, 3vw, 26px);
  }
  .press-card-title {
    font-size: 24px;
  }
  .press-btn {
    font-size: 20px;
    padding: 14px 20px;
  }
  .press-grid.expanded {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .press-grid.expanded .press-card {
    flex: unset;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .press-section {
    padding: 60px 0 80px 0;
  }
  .press-section .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 24px;
    margin-bottom: 32px;
  }
  .press-section .section-head-row .section-title {
    flex: none;
    width: 100%;
  }
  .press-section .section-head-row .head-actions {
    justify-content: flex-start;
  }
  .press-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding-bottom: 10px;
  }
  .press-grid::-webkit-scrollbar {
    display: none;
  }
  .press-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .press-card:last-child {
    display: flex;
  }
}

@media (max-width: 560px) {
  .press-section {
    padding: 40px 0 60px 0;
  }
  .press-grid {
    gap: 16px;
  }
  .press-card {
    flex: 0 0 85%;
  }
  .press-card:last-child {
    display: flex;
  }
  .press-logo-wrap {
    height: 160px;
  }
  .press-logo-text {
    font-size: clamp(16px, 6vw, 26px);
  }
  .press-logo-text-long {
    font-size: clamp(14px, 5vw, 22px);
  }
  .press-card-title {
    font-size: 18px;
  }
  .press-btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}

/* ============================================================
   RECOMMENDATIONS (Рекомендации от Максима)
   ============================================================ */

.recommendations-section {
  padding: 80px 0 100px 0;
}

@media (max-width: 900px) {
  .recommendations-section {
    padding: 60px 0 60px 0;
  }
}

/* ============================================================
   FOOTER (как megasklad web/templates/web/base.html)
   ============================================================ */

.footer {
  background-color: #00000014;
  padding: 2rem 0;
  margin-top: 5rem;
  width: 100%;
  font-size: 1rem;
  /* как на megasklad (base.html → body), не Unbounded с остальной страницы */
  font-family: 'Open Sans', sans-serif;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-col {
  flex: 0 0 100%;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.footer-title {
  font-weight: 700;
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #000;
}

.footer-text {
  font-weight: 600;
  color: #000000b2;
  margin: 0;
  line-height: 1.5;
}

.footer-text-bold {
  font-weight: 700;
}

.contact-label {
  font-weight: 600;
  color: #000000b2;
}

.contact-data {
  font-weight: 600;
  color: #000000;
}

.footer-contact-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li,
.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-contact-list li:last-child,
.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-link {
  font-weight: 700;
  color: #000000b2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copyright {
  text-align: left;
}

.copyright-text {
  font-weight: 700;
  font-size: 1rem;
  color: #00000080;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-col {
    flex: 0 0 33%;
    max-width: 33%;
    margin-bottom: 2rem;
    padding-right: 1.5rem;
  }

  .footer-col:last-child {
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .footer .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .footer {
    margin-top: 3rem;
    padding: 2rem 0 1.5rem 0;
  }
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.show-all-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.show-all-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.section-title-white + .head-actions .show-all-btn {
  border-color: var(--white);
  color: var(--white);
}

.section-title-white + .head-actions .show-all-btn:hover {
  background: var(--white);
  color: var(--primary);
}

.scroll-up-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, bottom 0.2s ease;
}

.scroll-up-btn:hover {
  background: #095bc2;
}

.scroll-up-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .scroll-up-btn {
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 901px) {
  #mediaShowAll,
  #eventsShowAll {
    display: none;
  }
}

@media (max-width: 900px) {
  .head-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Collapsed state: show only 6 elements (2 rows of 3) on desktop */
.podcasts-grid.collapsed .podcast-card:nth-child(n+7),
.press-grid.collapsed .press-card:nth-child(n+7),
.media-grid.collapsed .media-card:nth-child(n+7),
.events-grid.collapsed .event-card:nth-child(n+7) {
  display: none;
}

/* Expanded state on mobile: change from horizontal scroll to vertical grid */
@media (max-width: 900px) {
  .podcasts-grid.expanded,
  .press-grid.expanded,
  .media-grid.expanded,
  .events-grid.expanded {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .podcasts-grid.expanded .podcast-card,
  .press-grid.expanded .press-card,
  .media-grid.expanded .media-card,
  .events-grid.expanded .event-card {
    flex: unset;
  }
  .press-grid.expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .podcasts-grid.expanded,
  .press-grid.expanded,
  .media-grid.expanded,
  .events-grid.expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
