@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Шрифт TT Firs Neue */
@font-face {
  font-family: 'TT Firs Neue';
  src: url('/Fonts/TTFirsNeue-Md.woff2') format('woff2'),
       url('/Fonts/TTFirsNeue-Md.woff') format('woff'),
       url('/Fonts/TT Firs Neue Medium.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('/Fonts/TTFirsNeue-Rg.woff2') format('woff2'),
       url('/Fonts/TTFirsNeue-Rg.woff') format('woff'),
       url('/Fonts/TT Firs Neue Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Firs Neue';
  src: url('/Fonts/TTFirsNeue-Bd.woff2') format('woff2'),
       url('/Fonts/TTFirsNeue-Bd.woff') format('woff'),
       url('/Fonts/TT Firs Neue Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --arrow-length: 60px;
  --arrow-ray-length: 28px;
  --arrow-thickness: 2.4px;
  --arrow-angle: 45deg;
  --arrow-color: white;
  --arrow-hover-color: var(--nav-color);
  --hero-info-gap: 10px;
  --hero-info-line1-size: 24px;
  --hero-info-line2-size: 64px;
  --hero-info-line3-size: 16px;
  --primary-color: #d0c8cf;
  --secondary-color: #51246f;
  --third-color: #382644;
  --nav-color: #0fd4cd;
  --table-text-color: #382644;
}

html {
  font-family: 'Geologica', 'TT Firs Neue', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 24px;
  line-height: 1;
}

body {
  color: #e8e0ed;
  background: #e8e0ed;
}

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

/* Бегущая строка */
.runhead-container {
  width: 100%;
  height: 40px;
  background-color: var(--nav-color);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  pointer-events: none;
}

.runhead {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.runhead-content {
  display: flex;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-animation: runhead-scroll 360s linear infinite;
  animation: runhead-scroll 360s linear infinite;
  -webkit-animation-delay: -12.5s;
  animation-delay: -12.5s;
  pointer-events: auto;
  color: #ffffff;
  font-family: 'Geologica', sans-serif;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin-right: 2rem;
}

@-webkit-keyframes runhead-scroll {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); }
}
@keyframes runhead-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.runhead:hover .runhead-content {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

/* HEADER */
.main-header {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.main-header.scrolled {
  background: rgba(0, 52, 58, 0.85);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-image {
  height: 60px;
  object-fit: contain;
  background-color: transparent;
  border: none;
  padding: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 80px;
}

.live-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 40px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: 2px solid white;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.live-btn:hover {
  background: var(--nav-color);
  color: white;
}

.header-social {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid white;
  text-decoration: none;
  overflow: hidden;
}

.social-btn:hover {
  background-color: var(--nav-color);
  color: white;
  transform: scale(1.1);
}

.social-btn img,
.social-btn svg,
.social-icon {
  width: 32px;
  height: 32px;
  display: block;
  transition: all 0.3s ease;
  object-fit: contain;
}

.social-btn svg {
  fill: white;
}

.social-btn:hover svg {
  fill: white;
}

/* HERO CAROUSEL */
.hero-carousel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Горизонтальные фото (десктоп по умолчанию) */
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* На десктопе вертикальные фото тоже заполняют экран */
.hero-slide[data-orientation="vertical"] .hero-media {
  object-fit: cover;
}

/* Скрытие/показ версий фото в зависимости от устройства */
.hero-media-mobile {
  display: none;
}

.hero-info {
  position: absolute;
  bottom: 80px;
  left: calc(50% - 600px + 20px);
  max-width: 400px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: var(--hero-info-gap);
  z-index: 10;
}

.hero-info-line1 {
  font-family: 'TT Firs Neue';
  font-style: normal;
  font-size: var(--hero-info-line1-size);
  font-weight: 400;
  letter-spacing: 0.1em;
  padding-bottom: 40px;
}

.hero-info-line2 {
  font-family: 'TT Firs Neue';
  font-style: normal;
  font-size: var(--hero-info-line2-size);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

.hero-info-line3 {
  font-family: 'TT Firs Neue';
  font-style: normal;
  font-size: var(--hero-info-line3-size);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.1em;
  opacity: 0.8;
  padding-bottom: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  width: auto;
  max-width: 200px;
  height: 40px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: 2px solid white;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 8px;
  box-sizing: border-box;
}

.hero-btn:hover {
  background: var(--nav-color);
  color: white;
}

/* Индикатор */
.hero-indicator {
  position: absolute;
  bottom: 80px;
  right: calc(50% - 600px + 20px);
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  font-size: 16px;
  font-weight: 300;
  z-index: 10;
}

.hero-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-arrow .arrow-icon {
  position: relative;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.hero-arrow .arrow-icon .line-h {
  width: var(--arrow-length);
  height: var(--arrow-thickness);
  background-color: var(--arrow-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-34%, -50%);
  transition: background-color 0.3s ease;
}

.hero-arrow .arrow-icon .line-v-top {
  width: var(--arrow-thickness);
  height: var(--arrow-ray-length);
  background-color: var(--arrow-color);
  position: absolute;
  top: 0;
  right: calc(50% - var(--arrow-thickness) / 2);
  left: auto;
  transform-origin: top center;
  transform: rotate(var(--arrow-angle));
  transition: background-color 0.3s ease;
}

.hero-arrow .arrow-icon .line-v-bottom {
  width: var(--arrow-thickness);
  height: var(--arrow-ray-length);
  background-color: var(--arrow-color);
  position: absolute;
  bottom: 0;
  right: calc(50% - var(--arrow-thickness) / 2);
  left: auto;
  transform-origin: bottom center;
  transform: rotate(calc(var(--arrow-angle) * -1));
  transition: background-color 0.3s ease;
}

.hero-arrow.prev .arrow-icon {
  transform: rotate(180deg);
}

.hero-arrow:hover .arrow-icon span {
  background-color: var(--arrow-hover-color);
}

.hero-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.counter-current {
  font-family: 'TT Firs Neue';
  font-style: normal;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
}

.counter-separator {
  font-family: 'TT Firs Neue';
  font-style: normal;
  font-size: 20px;
  font-weight: 300;
  opacity: 0.6;
}

.counter-next {
  font-family: 'TT Firs Neue';
  font-style: normal;
  font-size: 20px;
  font-weight: 300;
  opacity: 0.6;
  line-height: 1;
}

/* Прямой эфир */
.carousel-section {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 160px;
  padding: 80px 20px;
  height: 740px;
  position: relative;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

/* MAIN WRAPPER */
#main-wrapper {
  position: relative;
  z-index: 20;
  background: #e8e0ed;
  margin-top: calc(100vh - 80px);
  padding-top: 120px;
  transform: translateY(100vh);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

body.loaded #main-wrapper {
  transform: translateY(0);
}

/* Аккордион */
.accordion {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 160px;
  width: 95%;
}

.accordion-header {
  height: 2rem;
  margin: 2rem 2.250rem;
  background: white;
  color: var(--third-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 200;
  transition: background 0.3s ease;
  position: relative;
  z-index: 10;
}

.arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  padding-left: 1px;
  width: 40px;
  height: 40px;
  background-color: var(--third-color);
  color: white;
  border-radius: 50%;
  font-family: 'Geologica';
  font-size: 1.25rem;
  font-weight: 200;
  transition: transform 0.3s ease;
  transform: rotate(270deg);
}

.accordion-arrow:hover .arrow-circle {
  background-color: var(--nav-color);
}

.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  justify-items: center;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
  z-index: 1;
}

.accordion.open .accordion-content {
  max-height: 2400px;
}

.days-container {
  max-width: 992px;
  display: flex;
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--third-color);
  position: relative;
  z-index: 5;
}

.nav-arrow {
  background: none;
  color: var(--table-text-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.nav-arrow:hover {
  color: var(--nav-color);
}

.days-scroll {
  flex: 1;
  overflow-x: auto;
  margin: 0 15px;
  scrollbar-width: thin;
}

.days-scroll::-webkit-scrollbar {
  height: 6px;
}

.days-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.days-scroll::-webkit-scrollbar-thumb {
  background: var(--nav-color);
  border-radius: 3px;
}

.days-wrapper {
  display: flex;
  gap: 10px;
  padding: 0;
}

.day-item {
  min-width: 120px;
  padding: 15px 10px;
  background: white;
  color: var(--table-text-color);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.day-item:hover {
  color: var(--nav-color);
  border-bottom: 3px solid var(--nav-color);
}

.day-item.active {
  color: var(--third-color);
  border-bottom: 3px solid var(--third-color);
}

.day-name {
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
  margin-bottom: 12px;
}

.day-date {
  font-size: 0.5rem;
  letter-spacing: 0.075rem;
}

.table-container {
  padding: 20px 20px 80px 20px;
  margin-top: 1rem;
  overflow-x: auto;
}

#tv-program-table {
  min-width: 992px;
  border-collapse: collapse;
  background: white;
  color: var(--table-text-color);
}

#tv-program-table th {
  background: white;
  color: var(--table-text-color);
  padding-bottom: 25px;
  padding-left: 25px;
  text-align: left;
  font-size: 0.750rem;
  font-weight: 200;
}

#tv-program-table td {
  font-size: 0.70rem;
  font-weight: 100;
  letter-spacing: 0.025rem;
  padding: 16px 10px 16px 25px;
  border-bottom: none;
}

#tv-program-table tr:hover {
  background: #e5f3f2;
  color: var(--secondary-color);
}

.current-live {
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 50%, 100% { background-color: #e8e0ed; }
}

/* Foreigner sections */
.foreigner-sections {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.foreigner-section {
  position: relative;
  isolation: isolate;
}

.foreigner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  position: relative;
}

.foreigner-title {
  font-size: 24px;
  color: var(--third-color);
  text-align: left;
  margin-bottom: 72px;
  font-weight: 300;
}

.foreigner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 72px;
  position: relative;
}

.foreigner-item {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.foreigner-image-container {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.foreigner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.foreigner-item:hover .foreigner-image {
  transform: scale(1.05);
}

.foreigner-caption {
  margin-top: 24px;
  color: var(--table-text-color);
  height: 120px;
}

.caption-line-1 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}

.caption-line-2 {
  font-size: 12px;
  font-weight: 200;
  margin-bottom: 6px;
}

.caption-line-3 {
  font-size: 12px;
  font-weight: 200;
}

.row-expanded-text {
  grid-column: 1 / -1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  border-top: 0px solid var(--secondary-color);
  color: var(--table-text-color);
  font-size: 16px;
  line-height: 20px;
  font-weight: 200;
  transition: 
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease 0.1s,
    padding 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-top-width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.foreigner-grid.active .row-expanded-text {
  max-height: 600px;
  opacity: 1;
  padding: 24px 0 40px 0;
  border-top-width: 1px;
}

.foreigner-item .foreigner-expanded-text,
.foreigner-expanded-text {
  display: none;
}

/* Switcher */
.switcher-section {
  max-width: 1200px;
  margin: 160px auto;
}

.switcher-tabs {
  display: flex;
  border-bottom: 1px solid var(--third-color);
  margin-bottom: 80px;
}

.switcher-tab {
  padding: 0 40px 20px 0;
  font-family: 'Geologica';
  font-size: 24px;
  font-weight: 300;
  color: white;
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.3s ease;
}

.switcher-tab:hover {
  color: var(--nav-color);
  border-bottom: 4px solid;
}

.switcher-tab.active {
  color: var(--third-color);
  border-bottom: 4px solid;
}

.switcher-content {
  display: none;
}

.switcher-content.active {
  display: block;
}

.about-channel {
  display: flex;
  gap: 24px;
}

.channel-left {
  max-width: 384px;
  width: 100%;
  flex-shrink: 0;
}

.channel-image {
  width: 190px;
  height: 190px;
  object-fit: cover;
  margin-bottom: 48px;
}

.style-1 {
  font-size: 12px;
  font-weight: 200;
  color: var(--table-text-color);
  margin-bottom: 16px;
}

.style-2 {
  font-size: 14px;
  font-weight: 300;
  color: var(--table-text-color);
  margin-bottom: 16px;
  line-height: 1.4;
}

.style-3 {
  font-size: 12px;
  font-weight: 200;
  color: var(--table-text-color);
  line-height: 1.5;
}

.phone {
  font-weight: 200;
  color: var(--table-text-color);
}

.channel-right {
  flex: 1;
  font-size: 16px;
  font-weight: 200;
  color: var(--table-text-color);
  line-height: 1.6;
}

.operators-content {
  width: 100%;
}

.satellite-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 120px;
}

.satellite-table td {
  padding: 12px 16px;
  font-size: 14px;
  vertical-align: top;
  color: var(--table-text-color);
}

.satellite-table td:first-child {
  width: 400px;
}

.satellite-table td:nth-child(2),
.satellite-table td:nth-child(3) {
  width: 400px;
}

/* Партнёры */
.partners-section {
  background-color: #ffffff;
  padding: 80px 20px;
  margin-top: 80px;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 30px;
  background: #ffffff;
  transition: transform 0.3s ease;
  overflow: visible;
}

.partner-item:hover {
  transform: translateY(-3px);
}

.partner-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.partner-item:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.partner-item:hover .partner-link {
  transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--third-color);
  color: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--nav-color);
  color: #ffffff;
  border: 2px solid white;
  transform: translateY(-3px);
}

/* Футер */
.footer-container {
  width: 100%;
  background-color: var(--nav-color);
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0 0 0;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  background-color: var(--nav-color);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 100px;
  width: 100%;
}

.footer-column h3 {
  font-size: 16px;
  color: white;
  margin-bottom: 24px;
  font-weight: normal;
  text-align: left;
}

.footer-column {
  text-align: left;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.footer-links li {
  margin-bottom: 24px;
  padding-left: 0;
  margin-left: 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

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

.sub-links {
  list-style: none;
  margin-top: 12px;
  margin-left: 0;
  padding-left: 0;
}

.sub-links li {
  margin-bottom: 8px;
}

.sub-links a {
  font-size: 14px;
  font-weight: 200;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sub-links a:hover {
  color: var(--third-color);
}

.contact-info {
  font-size: 14px;
  font-weight: 200;
  line-height: 1.5;
  margin-bottom: 90px;
}

.contact-block {
  margin-bottom: 24px;
  color: white;
}

.phone-footer {
  color: white;
  font-weight: 200;
}

.email {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 4px solid white;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--third-color);
}

.copyright {
  font-size: 12px;
  font-weight: 200;
  color: white;
}