/* ====== RESET ====== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #eef2f7;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* ====== TOPBAR ====== */
.topbar {
  background: white;
  padding: 16px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-bottom: 3px solid #0c9e7a;
  position: relative;
  z-index: 99;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  max-width: 1400px;
  margin: auto;
}

.topbar-logo {
  height: 100%;
  width: auto;
}

.topbar-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.topbar-nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #1a3a6b;
  font-weight: 500;
  font-size: 16px;
}

.topbar-btn {
  background: linear-gradient(135deg, #0c9e7a, #16c79a);
  color: white;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(12, 158, 122, 0.3);
}

.topbar-btn:hover {
  opacity: 0.88;
}

/* ====== HERO SECTION ====== */
.hero-section {
  background:
    linear-gradient(to right, rgba(15, 28, 60, 0.88) 0%, rgba(15, 28, 60, 0.60) 50%, rgba(0, 0, 0, 0.15) 100%),
    url("./hero-family.jpg") no-repeat center 40% / cover;
  padding: 90px 0;
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}

.hero-left h1 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-left p {
  font-size: 18px;
  line-height: 1.6;
  color: #d8f0eb;
}

.hero-right .calculator {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  text-align: left;
  border-top: 4px solid #0c9e7a;
}

.hero-right .calculator h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1a3a6b;
}

.hero-right .slider-value {
  font-weight: bold;
  margin-bottom: 10px;
  color: #0c9e7a;
}

.hero-right .calculator button {
  background: linear-gradient(135deg, #0c9e7a, #16c79a);
  color: white;
  font-weight: bold;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-top: 20px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 158, 122, 0.35);
}

.calc-result {
  margin-top: 20px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-result p {
  margin: 0;
  line-height: 1.4;
  font-size: 15px;
  color: #333;
}

.calc-result span {
  font-weight: bold;
  font-size: 18px;
  color: #0c9e7a;
  display: inline-block;
  margin-top: 4px;
}

/* ====== CALCULATOR ====== */
.calculator input[type=range] {
  width: 100%;
  margin-top: 5px;
  accent-color: #0c9e7a;
}

.calculator label {
  display: block;
  text-align: left;
  font-size: 16px;
  margin: 20px 0 5px;
  color: #333;
}

.calculator .slider-value {
  font-size: 20px;
  font-weight: bold;
  margin-top: 5px;
  color: #0c9e7a;
}

.calculator button {
  background: linear-gradient(135deg, #0c9e7a, #16c79a);
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  padding: 14px;
  margin-top: 30px;
  width: 100%;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 14px rgba(12, 158, 122, 0.35);
}

.calculator button:hover {
  opacity: 0.9;
}

/* ====== BENEFITS SECTION ====== */
#benefits {
  position: relative;
}

#benefits h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

#benefits h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #0c9e7a, #16c79a);
  border-radius: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid #e0e8f0;
  border-left: 4px solid #0c9e7a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  box-shadow: 0 10px 24px rgba(12, 158, 122, 0.15);
  transform: translateY(-4px);
}

.benefit-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1a3a6b;
}

.benefit-card p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* ====== REVIEWS CAROUSEL ====== */
#reviews h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 12px;
}

#reviews h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #0c9e7a, #16c79a);
  border-radius: 2px;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.card {
  min-width: 320px;
  margin: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  padding: 20px;
  border-top: 3px solid #0c9e7a;
}

.card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #e8f7f3;
}

.card h3 {
  margin: 10px 0 5px;
  color: #1a3a6b;
}

.card p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

/* ====== PARTNERS CAROUSEL ====== */
.partners-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.partners-carousel .carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  align-items: center;
  animation: scroll-partners 13s linear infinite;
}

.partners-carousel img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  transition: opacity 0.3s;
}

.partners-carousel img:hover {
  opacity: 0.7;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ====== TELEGRAM FLOAT BUTTON ====== */
#tgFloatBtn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #229ed9, #1a86b8);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(34, 158, 217, 0.50);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

#tgFloatBtn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.60);
}

#tgFloatBtn svg {
  flex-shrink: 0;
}

#tgFloatBtn::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: #ff4757;
  border-radius: 50%;
  border: 2px solid white;
  animation: tg-pulse 2s infinite;
}

@keyframes tg-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1);   opacity: 1; }
}

@media (max-width: 768px) {
  #tgFloatBtn {
    bottom: 18px;
    right: 16px;
    padding: 11px 18px 11px 13px;
    font-size: 14px;
    gap: 8px;
  }
  #tgFloatBtn svg {
    width: 24px;
    height: 24px;
  }
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 24px 20px;
  background: #1a2744;
  color: #8a9bb0;
  border-top: 3px solid #0c9e7a;
}

.carousel-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

/* ====== TEAM SECTION ====== */
.team-section {
  text-align: center;
  padding: 60px 20px;
}

.team-section h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #1a3a6b;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.team-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #0c9e7a, #16c79a);
  border-radius: 2px;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
}


.manager-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  position: relative;
  border: 2px solid #d1e8e2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manager-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(12, 158, 122, 0.15);
}

.manager-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #e8f7f3;
}

.manager-card h3 {
  margin: 10px 0 5px;
  font-size: 20px;
  color: #1a3a6b;
}

.manager-card p {
  font-size: 15px;
  color: #555;
}

.manager-card.highlight {
  border: 2px solid #0c9e7a;
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(12, 158, 122, 0.2);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0c9e7a, #16c79a);
  color: white;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(12, 158, 122, 0.4);
}

/* ====== LICENSE SECTION ====== */
.license-section {
  text-align: center;
  margin-top: 60px;
}

.license-box {
  background: linear-gradient(135deg, #f0f7f4, #ffffff);
  padding: 36px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  max-width: 600px;
  margin: auto;
  border: 1px solid #d1e8e2;
}

.license-btn {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(135deg, #0c9e7a, #16c79a);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(12, 158, 122, 0.3);
}

.license-btn:hover {
  opacity: 0.88;
}

/* ====== MODALS ====== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 15px;
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: auto;
}

.modal-content img.license-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.modal-content .license-btn-apply {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(135deg, #0c9e7a, #16c79a);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s ease;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 158, 122, 0.3);
}

.modal-content .license-btn-apply:hover {
  opacity: 0.88;
}

/* ====== SCAMMERS SECTION ====== */
.scam-link {
  color: #e03131;
  font-weight: bold;
  border: 1px solid #e03131;
  border-radius: 8px;
  padding: 6px 12px;
  transition: 0.3s ease;
}

.scam-link:hover {
  background: #ffe8e8;
}

.scam-carousel {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 0;
}

.scam-card {
  min-width: 300px;
  max-width: 300px;
  flex: 0 0 auto;
  margin: 0 10px;
  background: #fff5f5;
  border: 2px solid #e03131;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  height: auto;
  box-sizing: border-box;
}

.scam-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
}

.scam-card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #e03131;
  font-weight: bold;
}

.scam-card h3::before {
  content: '⚠️ ';
  position: relative;
  left: 0;
}

.scam-card p {
  font-size: 14px;
  color: #a20000;
  word-break: break-word;
}

.scammer-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
}

/* ====== BURGER MENU ====== */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  width: 24px;
  height: 3px;
  background: #1a3a6b;
  border-radius: 2px;
}

@media (max-width: 768px) {
  /* Hide desktop topbar — burger-fixed-bar takes over */
  .topbar {
    display: none;
  }

  .hero-section {
    padding-top: 130px;
    padding-bottom: 40px;
  }

  .hero-left h1 {
    font-size: 30px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    margin-top: 20px;
  }

  .hero-right .calculator {
    padding: 20px 16px;
  }

  .card {
    min-width: 240px;
  }

  .manager-card {
    width: 100%;
    max-width: 320px;
  }

  .manager-card.highlight {
    transform: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .license-box {
    padding: 24px 16px;
  }

  footer {
    font-size: 13px;
  }
}

/* === Бургер-оверлей === */
.burger-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9998;
}

.burger-overlay.active {
  display: block;
}

/* === Бургер-меню === */
.burger-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.burger-menu.active {
  transform: translateY(0);
}

.burger-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
}

.burger-logo {
  max-width: 240px;
  height: auto;
}

.burger-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: #1a3a6b;
  cursor: pointer;
}

.burger-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
  width: 100%;
  align-items: center;
}

.burger-nav a {
  font-size: 18px;
  color: #1a3a6b;
  text-decoration: none;
  font-weight: 500;
}

.burger-nav a.scam-link {
  color: #d20000;
  font-weight: 600;
  border: 1px solid #d20000;
  border-radius: 6px;
  padding: 6px 12px;
}

/* === Фиксированная верхняя панель на мобилке === */
.burger-fixed-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid #0c9e7a;
  z-index: 9997;
}

.burger-fixed-bar .burger-fixed-controls {
  display: flex;
  width: 100%;
  gap: 10px;
}

.burger-fixed-bar button {
  flex: 1;
  padding: 12px 0;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0c9e7a, #16c79a);
  color: white;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}


@media (max-width: 768px) {
  .burger-fixed-bar {
    display: flex;
  }

  /* scam scroll-snap mobile */
  .carousel-container:has(#scammerTrack) {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
  }

  .carousel-container:has(#scammerTrack)::-webkit-scrollbar {
    display: none;
  }

  #scammerTrack {
    display: flex;
    width: max-content;
    transform: none !important;
    transition: none !important;
    gap: 0;
  }

  #scammerTrack .scam-card {
    min-width: 80vw;
    max-width: 80vw;
    flex: 0 0 80vw;
    margin: 8px 10px;
    scroll-snap-align: start;
  }
}

@media (min-width: 769px) {
  .carousel-container:has(#scammerTrack) {
    overflow: visible;
  }

  #scammerTrack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    transform: none !important;
    transition: none !important;
  }

  #scammerTrack .scam-card {
    flex: 0 1 300px;
    min-width: 260px;
    max-width: 320px;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  #scammerTrack .scam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(224, 49, 49, 0.3);
  }
}

.badge.scam-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  background: #e03131;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 8px;
}

.scam-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e03131;
  color: white;
  font-weight: bold;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* ====== CALC ITEM ====== */
.calc-item {
  background: #f0f7f4;
  border-radius: 10px;
  padding: 10px 14px;
}

.calc-label {
  color: #1a3a6b;
  font-size: 14px;
}

.calc-value {
  font-size: 18px;
  font-weight: bold;
  color: #0c9e7a;
}
