:root {
  --card-radius: 48px;
  --card-max-width: 800px;
  --card-aspect: 16/7;
  --overlay-gradient: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  --accent: #3086a9;
  --btn-padding: 15px 20px;
  --transition: 180ms ease;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
}

html, body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-family);
  background: #f6f7fb;
  color: #111;
}

.page-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-card {
  margin-top: 20px;
  width: 100%;
  max-width: var(--card-max-width);
  aspect-ratio: var(--card-aspect);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(11,20,40,0.18);
  position: relative; 
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient);
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 62px; 
  padding: 18px;
  box-sizing: border-box;
  z-index: 2;
}

.overlay-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.overlay-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: bold;
  margin: 0;
  margin-left: 35px;
}

.overlay-sub {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
  margin-left: 35px;
}

.btn-invite{
  background: #3086a9;
  color: #fff;
  border: none;
  padding: var(--btn-padding);
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  margin-bottom: 5px;
}

.btn-invite:hover {
  transform: translateY(-3px);
}

.btn-invite:active {
  transform: translateY(0);
}

.stats-section {
  display: flex;  
  justify-content: center; 
  align-items: center;    
  flex-wrap: wrap;         
  width: 100%;            
  max-width: 1000px;      
  margin: 80px auto;      
  gap: 80px;              
  text-align: center;
}

.stat {
  margin: 0;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.stat-text {
  font-size: 1rem;
  margin: 0;
}

/*   */

.audience-section {
  width: 100%;
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.audience-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #111;
}

.audience-hexes {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hex1 {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.hex-content1 {
  width: 150px;
  aspect-ratio: 1 / 1;
  background: #3086a9;
  color: #fff;
  clip-path: polygon(
    25% 6.7%, 75% 6.7%, 
    100% 50%, 
    75% 93.3%, 25% 93.3%, 
    0% 50%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  padding: 15px;
}


.audience-sub {
  font-size: 1.1rem;
  color: #444;
  margin-top: 10px;
}


/* */

.features-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.features-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #111;
}

.features-cards {
  display: flex;
  justify-content: space-between; 
  flex-wrap: nowrap;
  gap: 20px; 
}

.card {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 16px;               
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-image {
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background: #ddd;
  display: inline-block;
}

.card-image img {
  display: block;
  max-width: 100%;
  height: auto;
}


.card-text {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

/* */
.community-section {
  width: 100%;
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.community-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #111;
}

.community-hexes {
  display: grid;
  grid-template-columns: repeat(8, 119px);
  grid-auto-rows: 138px; /* вертикальный шаг (чуть меньше высоты) */
  justify-content: center;
  gap: 0px;
}

.hex {
  position: relative;
  width: 160px;
  aspect-ratio: 1/1;
  background: #3086a9; /* исходный цвет */
  color: #fff;
  clip-path: polygon(
    25% 6.7%, 75% 6.7%,
    100% 50%,
    75% 93.3%, 25% 93.3%,
    0% 50%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.hex:nth-child(even) {
  transform: translateY(70px); /* смещение вниз на половину */
}

.hex::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 50, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hex span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: bold;
}

.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* картинка равномерно заполняет hex */ 
  display: block;
}

.btn-community{
  margin-top: 80px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-community:hover {
  transform: translateY(-3px);
}

#hex3 {
  visibility: hidden;
  pointer-events: none;
}

/* */
.custom-table {
    width: calc(100% - 40px);
    max-width: 1000px;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 40px auto;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Стили для заголовков */
.custom-table thead th {
    background-color: #83AEF1;
    color: black;
    padding: 20px;
    border: 1px solid #ddd;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Ячейки */
.custom-table td,
.custom-table th {
    border: 1px solid #ddd;
    padding: 20px;
}

/* Первая колонка (категории) */
.custom-table tbody tr td:nth-child(1) {
    background-color: #d2d2d2;
    font-weight: bold;
    width: 150px;
}

/* Вторая колонка (Мы) */
.custom-table tbody tr td:nth-child(2) {
    background-color: #e8f1fb;
}

/* Третья колонка (Другие) */
.custom-table tbody tr td:nth-child(3) {
    background-color: #f8f8f8;
}

/* Убираем nowrap и добавляем переносы */
.custom-table td {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-table {
        font-size: 16px;
    }

    .custom-table td,
    .custom-table th {
        padding: 15px 10px;
    }
}

/* */
.steps-section {
  margin-top: 80px;
  text-align: center;
  font-family: Arial, sans-serif;
  
}

.steps-section h2{
  margin-bottom: 20px;
}

.steps-container {
  max-height: 250px;
  position: relative;
  max-width: 1200px;  
}
.curve-line {
  width: 100%;
  height: 200px;
}
.step-text {
  position: absolute;
  font-size: 14px;
  color: #333;
  text-align: center;
  width: 150px;
  transform: translateX(-50%);
}
.invite-btn {
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 35px;
  background: #3086a9;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: #3086a9 0.3s ease;
  margin-bottom: 100px;
}
.invite-btn:hover {
  transform: translateY(-3px);
}
.invite-btn:active {
  transform: translateY(0);
}

/* */
.faq-container {
  max-width: 600px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.faq-title {
  flex: 0 0 150px;
  margin-top: 15px;
  font-size: 1.8rem;
  font-weight: bold;
}

.faq-items {
  flex: 1;
}

.faq-item {
  border-bottom: 1px solid #ccc;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 15px 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: gray;
}

.faq-answer {
  max-height: 0;
  font-size: 14px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 10px;
}

.faq-answer p {
  margin: 10px 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 10px 10px;
}

.plus {
  font-size: 20px;
  transition: transform 0.4s ease;
}

.faq-item.active .plus {
  transform: rotate(45deg);
}

/* */

.footer {
  background-color: #2e2d2d; 
  color: #fff;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;          
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.footer-container {
  margin: 0 auto;
  display: flex;
  padding: 10px 100px;
  flex-wrap: wrap;
  gap: 100px;
}

.footer-column {
  flex: 1 1 150px; 
  min-width: 10px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
  border-bottom: 2px solid #555;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #aaa;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* */
