/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ — healthynationrussia.ru
   Шрифты и цвета из десктопной версии
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: '__Helvetica Neue_5', 'Helvetica Neue', Arial, sans-serif;
  color: #2C2C2B;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- FONTS (same as desktop) --- */
@font-face {
  font-family: '__Helvetica Neue_5';
  src: url('../fonts/helveticaneuecyr-bold-webfont.eot');
  src: url('../fonts/helveticaneuecyr-bold-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/helveticaneuecyr-bold-webfont.woff') format('woff'),
       url('../fonts/helveticaneuecyr-bold-webfont.svg') format('svg');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: '__Helvetica Neue_5';
  src: url('../fonts/helveticaneuecyr-thin.eot');
  src: url('../fonts/helveticaneuecyr-thin.eot?#iefix') format('embedded-opentype'),
       url('../fonts/helveticaneuecyr-thin.woff') format('woff'),
       url('../fonts/helveticaneuecyr-thin.svg') format('svg');
  font-weight: 200;
  font-display: swap;
}

/* --- HEADER / NAVIGATION --- */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.mobile-header__logo img {
  height: 40px;
  width: auto;
}

/* Hamburger */
.hamburger-toggle { display: none; }

.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px 8px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #2C2C2B;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
.hamburger-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}
.hamburger-toggle:checked ~ .mobile-nav { transform: translateX(0); }

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 700;
  color: #2C2C2B;
  border-bottom: 1px solid #eee;
  letter-spacing: 1px;
}
.mobile-nav a:active { background: #F2D637; }

.mobile-nav__social {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  margin-top: auto;
}
.mobile-nav__social img { width: 32px; height: 32px; }

/* --- V-DIVIDER (галочка) --- */
.v-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.v-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- SEPARATOR --- */
.separator {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.separator img { width: 120px; height: auto; }

/* --- HERO --- */
.hero {
  margin-top: 56px;
  background: #F2D637;
  padding: 40px 20px 30px;
  text-align: center;
}
.hero__logo {
  width: 60%;
  max-width: 280px;
  margin: 0 auto 20px;
}
.hero__title {
  font-size: 22px;
  font-weight: 700;
  color: #2C2C2B;
  line-height: 1.3;
}

/* --- SECTION COMMON --- */
.section {
  padding: 32px 16px;
}
.section--gray { background: #f5f5f5; }
.section--dark { background: #191919; color: #fff; }
.section--yellow { background: #F2D637; }

.section__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.section__subtitle {
  font-size: 15px;
  text-align: center;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* --- ABOUT --- */
.about__text {
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  color: #2C2C2B;
}
.about__text p + p { margin-top: 12px; }

/* --- SLIDESHOW (simple CSS) --- */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 8px;
}
.slideshow__track {
  display: flex;
  animation: slideshow 12s infinite;
}
.slideshow__track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
}
@keyframes slideshow {
  0%, 30% { transform: translateX(0); }
  33%, 63% { transform: translateX(-100%); }
  66%, 96% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

/* --- VK WIDGET --- */
.vk-widget {
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

/* --- DOCUMENTS --- */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 3px solid #F2D637;
  background: #fff;
  margin-bottom: 12px;
  border-radius: 4px;
}
.doc-card__icon { flex: 0 0 50px; }
.doc-card__icon img { width: 50px; }
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.doc-card__body p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.doc-card__download {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.doc-card__download img { width: 36px; }
.doc-card__download small { font-size: 11px; color: #999; }

/* --- DIRECTIONS / ADVANTAGES --- */
.direction-card {
  border: 2px solid #F2D637;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.direction-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2C2C2B;
}
.direction-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
}
.direction-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border: 2px solid #F2D637;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.direction-card__icon img { width: 100%; height: 100%; object-fit: cover; }

/* --- VIDEO --- */
.video-section {
  position: relative;
  overflow: hidden;
}

.video-overlay {
  background: url('../images/videoplayback.gif') center/cover no-repeat;
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.video-overlay--active { display: none; }

.video-play-btn {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 48px;
  transition: transform 0.2s;
}
.video-overlay:active .video-play-btn { transform: scale(1.1); }

.video-embed {
  display: none;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.video-overlay--active ~ .video-embed { display: block; }

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- LEADER --- */
.leader {
  text-align: center;
  padding: 32px 16px;
}
.leader__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  margin: 0 auto 16px;
  border: 3px solid #F2D637;
}
.leader__role {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}
.leader__name {
  font-size: 20px;
  font-weight: 700;
  background: #F2D637;
  display: inline-block;
  padding: 6px 24px;
  border-radius: 20px;
}

/* --- TEAM --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 400px;
  margin: 0 auto;
}
.team-member {
  text-align: center;
}
.team-member__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 8px;
  border: 2px solid #eee;
}
.team-member__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.team-member__role {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

/* Placeholder for missing photos */
.team-member__photo--placeholder {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 40px;
}

/* --- PARTNERS --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
  justify-items: center;
  max-width: 400px;
  margin: 0 auto;
}
.partners-grid img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
}

/* --- MAP --- */
.map-section { padding: 0; }
.map-container {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
}
.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  cursor: pointer;
}
.map-overlay--active { display: none; }
.map-container iframe,
.map-container script { width: 100%; }

/* --- GEOGRAPHY --- */
.geography__text {
  font-size: 14px;
  text-align: center;
  color: #fff;
  line-height: 1.5;
  padding: 0 16px;
}

/* --- FOOTER --- */
.footer {
  background: #2C2C2B;
  color: #fff;
  padding: 32px 16px;
  text-align: center;
}
.footer__contacts { margin-bottom: 24px; }
.footer__contacts h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer__contacts-title {
  display: inline-block;
  border-bottom: 3px solid #F2D637;
  padding-bottom: 4px;
}
.footer__contacts p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
}
.footer__phone {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0;
}
.footer__phone a { color: #F2D637; }
.footer__logo { margin: 16px auto; max-width: 200px; }
.footer__address {
  font-size: 13px;
  color: #b0b0b0;
  line-height: 1.6;
  margin-top: 16px;
}
.footer__tags {
  margin-top: 12px;
  font-size: 13px;
  color: #F2D637;
}
.footer__desktop-link {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  border: 1px solid #666;
  border-radius: 4px;
  font-size: 13px;
  color: #ccc;
}

/* --- FOCUS & ACCESSIBILITY --- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #F2D637;
  outline-offset: 2px;
}

/* --- TABLET (>= 600px) --- */
@media (min-width: 600px) {
  .hero { padding: 60px 32px 40px; }
  .hero__logo { max-width: 350px; }
  .hero__title { font-size: 26px; }
  .section { padding: 40px 24px; }
  .section__title { font-size: 26px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; gap: 24px; }
  .team-member__photo { width: 150px; height: 150px; }
  .direction-card { display: flex; text-align: left; gap: 16px; align-items: center; }
  .direction-card__icon { margin: 0; flex-shrink: 0; min-width: 72px; }
  .doc-card__body h3 { font-size: 16px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); max-width: 500px; }
}

/* --- LARGE TABLET (>= 768px) --- */
@media (min-width: 768px) {
  .hero__title { font-size: 28px; }
  .section { padding: 48px 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 550px; gap: 32px; }
  .team-member__photo { width: 180px; height: 180px; }
  .leader__photo { width: 220px; height: 220px; }
}
