:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --accent: #00664e;
  --accent-light: #00886a;
  --accent-dark: #004d3a;
  --accent-xlight: rgba(0,102,78,0.12);
  --grey: #e2e2e2;
  --grey-mid: #b0b0b0;
  --grey-text: #6e6e73;
  --dark: #1c1c1e;
  --darker: #0d0d0f;
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --white-15: rgba(255,255,255,0.15);
  --white-08: rgba(255,255,255,0.08);

  --grad1: #00664e;
  --grad2: #003d2e;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.24);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 0.4s cubic-bezier(0.34,1.56,0.64,1);

  --header-height: 64px;
  --player-height: 72px;

}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: #f5f5f7;
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.has-player { padding-bottom: calc(var(--player-height) + 20px); }

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

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

button { cursor: pointer; border: none; background: none; font-family: var(--font); }

input, textarea, select {
  font-family: var(--font);
  outline: none;
  border: none;
  background: none;
}

.noise-bg {
  position: relative;
}
.noise-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.noise-bg > * { position: relative; z-index: 1; }

.gradient-bg {
  background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 100%);
}


.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: height var(--transition), background var(--transition);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  background: rgba(0,50,38,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px 0;
  transition: all var(--transition-spring);
}

.header-logo-wrap img {
  height: calc(var(--header-height) - 24px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: all var(--transition-spring);
}

.header-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: all var(--transition-spring);
}

.header-lang {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-70);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--white-40);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--white-08);
}
.lang-btn:hover { background: var(--white-15); color: var(--white); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10,30,22,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  border: 1px solid var(--white-15);
  overflow: hidden;
  min-width: 160px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.lang-option {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--white-70);
  transition: var(--transition);
}
.lang-option:hover { background: var(--white-08); color: var(--white); }
.lang-option.active { color: var(--white); font-weight: 600; }

.site-header.expanded {
  height: 66vh;
}
.site-header.expanded .header-inner {
  height: 100%;
  align-items: center;
}
.site-header.expanded .header-logo-wrap img {
  height: min(55vh, 320px);
  max-width: 80vw;
}
.site-header.expanded .header-logo-text {
  font-size: clamp(36px, 8vw, 80px);
}


.hero-contacts {
  padding: calc(var(--header-height) + 20px) 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-btn-large {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1.5px solid var(--white-40);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--white-08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  min-width: 160px;
  text-decoration: none;
  flex: 0 0 auto;
}
.contact-btn-large:hover {
  background: var(--white-15);
  border-color: var(--white-70);
  transform: translateY(-2px);
}
.contact-btn-large .contact-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(10);
  flex-shrink: 0;
}
.contact-btn-large .contact-icon-placeholder {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white-15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-btn-large .contact-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.contact-btn-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--white-40);
  border-radius: 50%;
  background: var(--white-08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  flex-shrink: 0;
}
.contact-btn-small:hover {
  background: var(--white-15);
  border-color: var(--white-70);
  transform: translateY(-2px) scale(1.05);
}
.contact-btn-small img {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: brightness(10);
}
.contact-btn-small .contact-icon-placeholder {
  font-size: 20px;
}


.podcasts-section {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 24px;
  padding: 32px 20px 40px;
  min-height: 300px;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.8px;
  margin-bottom: 24px;
  display: none;
}

.podcasts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.podcast-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  transform: translateY(30px);
  opacity: 0;
  cursor: pointer;
}
.podcast-card.visible {
  transform: translateY(0);
  opacity: 1;
}
.podcast-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.podcast-card:active { transform: scale(0.98); }

.podcast-card-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--grey);
}
.podcast-card-img-placeholder {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white-70);
}

.podcast-card-info {
  flex: 1;
  min-width: 0;
}
.podcast-card-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.podcast-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podcast-card-episodes {
  font-size: 13px;
  color: var(--grey-text);
  font-weight: 500;
}

.podcast-card-arrow {
  color: var(--grey-mid);
  font-size: 18px;
  flex-shrink: 0;
}


.gradient-stripe {
  height: 80px;
  background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 100%);
  position: relative;
}

.site-footer {
  background: var(--darker);
  padding: 24px 20px;
  text-align: center;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}


.podcast-page-bg {
  min-height: 100vh;
  padding-top: var(--header-height);
  background: linear-gradient(160deg, var(--grad1) 0%, var(--grad2) 100%);
  padding-bottom: 40px;
}

.podcast-page-card {
  margin: 0 8px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0 0 40px;
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-xl);
}

.podcast-artwork-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: -20px;
  z-index: 10;
  pointer-events: none;
}

.podcast-artwork {
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(1);
  transition: transform 0.1s linear;
  pointer-events: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.podcast-artwork-placeholder {
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  color: var(--white-70);
}

.podcast-meta {
  padding: 24px 24px 0;
  text-align: center;
}

.podcast-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-xlight);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.podcast-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.podcast-author {
  font-size: 14px;
  color: var(--grey-text);
  font-weight: 500;
  margin-bottom: 20px;
}

.podcast-player-widget {
  margin: 0 20px;
  background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 100%);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: none;
  position: relative;
  overflow: hidden;
}
.podcast-player-widget.active { display: block; }
.podcast-player-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

.player-widget-inner { position: relative; z-index: 1; }

.player-episode-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress-wrap {
  position: relative;
  height: 4px;
  background: var(--white-40);
  border-radius: 2px;
  margin-bottom: 8px;
  cursor: pointer;
}
.player-progress-fill {
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}
.player-progress-wrap:hover .player-progress-fill {
  height: 6px;
  margin-top: -1px;
}
.player-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.player-progress-wrap:hover .player-thumb { transform: translate(-50%, -50%) scale(1); }

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--white-70);
  margin-bottom: 14px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.player-btn {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
  padding: 4px;
}
.player-btn:hover { transform: scale(1.1); opacity: 0.9; }
.player-btn:active { transform: scale(0.95); }
.player-btn-main {
  width: 52px;
  height: 52px;
  background: var(--white);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: var(--transition-spring);
}
.player-btn-main:hover { transform: scale(1.08); }
.player-btn-main:active { transform: scale(0.94); }
.player-btn-main svg { width: 24px; height: 24px; }
.player-btn svg { width: 22px; height: 22px; }
.player-btn-skip { font-size: 11px; font-weight: 700; }


.podcast-description {
  padding: 24px 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: #3a3a3c;
}

.podcast-links {
  padding: 20px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.podcast-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-xlight);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.podcast-link-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.podcast-actions {
  padding: 20px 24px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.action-btn-primary {
  background: var(--accent);
  color: var(--white);
}
.action-btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,102,78,0.35);
}
.action-btn-secondary {
  background: var(--grey);
  color: var(--dark);
}
.action-btn-secondary:hover {
  background: #d0d0d0;
  transform: translateY(-1px);
}
.action-btn svg { width: 18px; height: 18px; }

.podcast-info-row {
  padding: 16px 24px 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.podcast-info-item {
  font-size: 13px;
  color: var(--grey-text);
}
.podcast-info-item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-mid);
  margin-bottom: 2px;
}

.episodes-section {
  padding: 28px 24px 0;
}
.episodes-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.episode-item:hover { background: #f5f5f7; }
.episode-item.active { background: var(--accent-xlight); }
.episode-item:active { transform: scale(0.99); }

.episode-num {
  font-size: 13px;
  color: var(--grey-mid);
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}
.episode-item.active .episode-num { color: var(--accent); }

.episode-play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grey);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.episode-item:hover .episode-play-icon { display: flex; background: var(--accent); }
.episode-item:hover .episode-play-icon svg { color: var(--white); }
.episode-item:hover .episode-num { display: none; }
.episode-item.active .episode-play-icon { display: flex; background: var(--accent); }
.episode-item.active .episode-num { display: none; }
.episode-play-icon svg { width: 16px; height: 16px; color: var(--white); }

.episode-info {
  flex: 1;
  min-width: 0;
}
.episode-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 2px;
}
.episode-item.active .episode-name { color: var(--accent); }
.episode-duration {
  font-size: 12px;
  color: var(--grey-text);
  font-weight: 500;
}

.episode-download {
  color: var(--grey-mid);
  transition: var(--transition);
  padding: 6px;
}
.episode-download:hover { color: var(--accent); }
.episode-download svg { width: 16px; height: 16px; }


.bottom-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  padding: 0 12px 12px;
  transform: translateY(100%);
  transition: transform var(--transition-spring);
}
.bottom-player.visible { transform: translateY(0); }

.bottom-player-inner {
  background: rgba(28,28,30,0.92);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
  cursor: pointer;
}

.player-thumb-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--accent-dark);
}
.player-thumb-placeholder {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.player-info {
  flex: 1;
  min-width: 0;
}
.player-info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.player-info-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bottom-progress {
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
}
.player-bottom-progress-fill {
  height: 100%;
  background: var(--accent-light);
  border-radius: 1px;
  width: 0%;
  transition: width 0.5s linear;
}

.player-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-spring);
  box-shadow: 0 4px 14px rgba(0,102,78,0.4);
}
.player-toggle-btn:hover { transform: scale(1.08); }
.player-toggle-btn:active { transform: scale(0.92); }
.player-toggle-btn svg { width: 20px; height: 20px; color: var(--white); }


.toast {
  position: fixed;
  bottom: calc(var(--player-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28,28,30,0.9);
  backdrop-filter: blur(20px);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all var(--transition);
  z-index: 3000;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


@media (min-width: 600px) {
  .podcasts-section { padding: 40px 32px 60px; }
  .podcast-card-img,
  .podcast-card-img-placeholder { width: 110px; height: 110px; }
  .podcast-card-title { font-size: 17px; }
  .podcast-page-card { margin: 0 16px; }
}

@media (min-width: 900px) {
  :root {
    --header-height: 72px;
  }
  .podcasts-section {
    max-width: 900px;
    margin: 24px auto 0;
    border-radius: var(--radius-xl);
    padding: 48px;
  }
  .hero-contacts {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 28px) 48px 0;
  }
  .podcast-page-card {
    max-width: 600px;
    margin: 0 auto;
  }
  .gradient-stripe { display: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
