:root {
    --primary-color: #0fcd8c;
    --secondary-color: #0dab6e;
    --background-dark: #14213d;
    --background-darker: #0c182b;
    --text-light: #b3c2da;
    --text-lighter: #8899b3;
    --text-white: #ffffff;
  }

  html {
    scroll-behavior: smooth;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
  }
  
  body {
    background-color: var(--background-darker);
    color: var(--text-white);
  }
  
  a {
    color:var(--primary-color);
    text-decoration: none;
  }
  
  .header {
    background-color: var(--background-darker);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .logo img {
    height: 35px;
  }
  
  .slogan {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
    text-align: center;
}
@media (max-width: 768px) {
    .slogan {
        font-size: 1rem;
    }
}

  .nav {
    display: flex;
    align-items: center;
  }
  
  .nav a {
    color: var(--text-white);
    text-decoration: none;
    margin-right: 20px;
    font-size: 15px;
    transition: color 0.3s;
  }
  
  .nav a:hover {
    color: var(--primary-color);
  }
  
  .burger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-white);
  }
  
  .auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .btn-login {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
  }
  
  .btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  .btn-register {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .btn-register:hover {
    background-color: var(--secondary-color);
  }
  
  .lang-select {
    background-color: transparent;
    color: var(--text-white);
    border: none;
    cursor: pointer;
    outline: none;
    padding: 5px;
    font-size: 14px;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
    flex-wrap: wrap;
  }

  .hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
  }

  .hero .content {
    flex: 1 1 500px;
  }

  .hero .image {
    flex: 1 1 400px;
  }

  .hero .image img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    border: 4px solid;
    border-image: linear-gradient(135deg, #0fcd8c, #1e90ff) 1;
    box-shadow: 0 0 20px rgba(15,205,140,0.2);
  }

  .hero .image-games img {
    width: 100%;
    max-width: 300px;
    border: 3px solid;
    border-image: linear-gradient(135deg, #0fcd8c, #1e90ff) 1;
    box-shadow: 0 0 20px rgba(15,205,140,0.2);
  }


  @media (max-width: 768px) {
    .hero .container {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
  .trust-badge {
    background-color: rgba(0, 255, 0, 0.2);
    color: #8ce99a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
  }
  
  h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .highlight {
    color: var(--primary-color);
  }
  
  .subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-light);
  }
  
  .buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .btn.primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s;
    min-width: 48px;
    min-height: 48px;
  }
  
  .btn.primary:hover {
    background-color: var(--secondary-color);
  }
  
  .info {
    font-size: 14px;
    color: var(--text-lighter);
  }
  
  .rating {
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 10px;
    max-width: 400px;
  }
  
  .stars {
    color: var(--primary-color);
    margin-left: 10px;
  }
  
  .rating-bar {
    width: 100%;
    background-color: #1e2a47;
    height: 6px;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
  }
  
  .rating-bar .filled {
    height: 100%;
    background-color: var(--primary-color);
  }
  
  small {
    font-size: 12px;
    color: var(--text-lighter);
    display: block;
    margin-top: 5px;
  }
  
  .image img {
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .features {
    padding: 60px 0;
    background-color: #101b32;
    text-align: center;
  }
  
  .section-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  
  .section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 50px;
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature-card {
    background-color: var(--background-dark);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  .feature-card .icon {
    font-size: 32px;
    background-color: #1e2a47;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
  }
  
  .feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    flex-shrink: 0;
  }
  
  .feature-card p {
    font-size: 15px;
    color: #a0adc5;
    flex-grow: 1;
  }
  .games-swiper .swiper-slide {
    width: 310px; /* Фиксированная ширина слайда */
    transition: transform 0.3s ease; /* Плавный переход */
}

.games-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.games-swiper .hover-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.games-swiper .swiper-slide:hover .hover-overlay {
    opacity: 1;
}

@media (max-width: 576px) {
    .games-swiper .swiper-slide {
        width: 280px; /* Меньшая ширина на мобильных */
    }
}

@media (max-width: 320px) {
    .games-swiper .swiper-slide {
        width: 260px;
    }
}
  
  .games-section {
    padding: 80px 0;
    background-color: #101b32;
    text-align: center;
  }
  
  .games-container {
    flex-direction: column;
  }
  
  .swiper-container {
    width: 100%;
    position: relative;
    padding: 0 40px;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .swiper-slide {
    width: auto;
    max-width: 240px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--background-dark);
    transition: transform 0.3s;
  }
  
  .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    color: var(--text-white);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(20, 33, 61, 0.6);
    border-radius: 50%;
    padding: 10px;
    width: 36px;
    height: 36px;
  }
  
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    color: var(--primary-color);
    background-color: rgba(20, 33, 61, 0.9);
  }
  
  .faq-section {
    padding: 80px 0;
    background-color: var(--background-darker);
    text-align: center;
  }
  
  .accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }
  
  .accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .accordion-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    padding: 18px 0;
    text-align: left;
    cursor: pointer;
    position: relative;
  }
  
  .accordion-question::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
  }
  
  .accordion-item.active .accordion-question::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  .accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .accordion-item.active .accordion-answer {
    max-height: 500px;
    padding-bottom: 20px;
  }
  
  .packages-section, .payment-section {
    background-color: var(--background-darker);
    padding: 80px 0;
    text-align: center;
  }
  
  .package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  
  .package {
    background-color: var(--background-dark);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    border: 1px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .package:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  .package.popular {
    border: 1px solid var(--primary-color);
    text-align: center;
  }
  

  .package .tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
  }
  
  .package h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .package .price {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 5px;
  }
  
  .package .desc {
    color: #a0adc5;
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .package ul {
    text-align: left;
    margin-bottom: 20px;
    color: #c0d3e0;
  }
  
  .package ul li {
    margin-bottom: 10px;
  }
  
  .btn.green {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 48px;
    min-height: 48px;
  }
  
  .btn.green:hover {
    background-color: var(--secondary-color);
  }
  
  .btn.dark {
    background-color: #1e2a47;
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.photo-card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.swiper-pagination .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.7;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}

.swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    
}

.modal-content.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    width: 350px; /* Увеличен для длинных адресов */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.modal-content.glass::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #0fcd8c, #0d1b2a, #1b263b);
    border-radius: 20px;
    z-index: -1;
    padding: 5px;
    pointer-events: none;
}

.modal-content.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border-radius: 15px;
    z-index: -1;
}

.modal-input {
    margin: 20px 0;
}

.modal-input input {
    width: 100%;
    padding: 10px;
    background: rgba(15, 27, 42, 0.9);
    border: 1px solid #00ff00;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-message {
    font-size: 16px;
    color: var(--text-color);
    margin: 20px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


.shorts-section {
    padding: 80px 0;
    background: #101b32;
    text-align: center;
  }
  .shorts-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #fff;
  }
  .shorts-swiper {
    padding: 0 40px;
  }
  .short-card {
    width: 100%;
    max-width: 280px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .short-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .photo-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    padding: 10px;
    box-sizing: border-box;
    text-align: left;
  }
  .crypto-box {
    background: var(--background-dark);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    min-width: 300px; /* Предотвращает сжатие */
    margin: 40px auto;
    text-align: center;
  }
  
  .address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
  }
  
  .address-box input {
    flex-grow: 1;
    padding: 10px;
    background: #1e2a47;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    min-width: 150px; /* Предотвращает сжатие */
  }
  
  .address-box button {
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  .how-to {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
  }
  
  .step {
    text-align: center;
    max-width: 200px;
    min-width: 100px; /* Предотвращает сжатие */
  }
  
  .step .num {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: bold;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
  }
  
  .footer {
    background-color: var(--background-darker);
    color: var(--text-white);
    padding: 60px 20px 20px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
  }
  
  .footer-col h4 {
    margin-bottom: 15px;
    color: var(--text-white);
    font-size: 16px;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-col ul li {
    margin-bottom: 10px;
  }
  
  .footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-col ul li a:hover {
    color: var(--primary-color);
  }
  
  .footer .logo-col .logo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 13px;
    color: var(--text-lighter);
  }
  
  .video-guide {
    background: var(--background-darker);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
  }
  
  .video-swiper {
    margin-top: 30px;
    padding: 0 40px;
    box-sizing: border-box;
  }
  
  .short-card {
    width: 100%;
    max-width: 280px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  
  .short-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .short-card .play-btn {
    position: absolute;
    font-size: 48px;
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 2;
  }
  
  .short-card:hover .play-btn {
    background: rgba(0, 0, 0, 0.8);
  }

  .hero-content.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
  }

  .info-box {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

  .info-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .info-box ul {
    list-style: disc;
    margin-left: 20px;
  }

  .highlight-green {
    color: #0fcd8c;
  }

  .highlight-yellow {
    color: #ffcc00;
  }

  .formula {
    font-family: monospace;
    color: #89b4fa;
  }

  .info-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .info-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

 
  .download-manual {
    text-align: center;
    margin: 40px 0;
  }

  .download-manual a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #0fcd8c;
    color: #fff;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .download-manual a:hover {
    background-color: #0dab6e;
    transform: translateY(-2px);
  }

  .download-manual svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .button-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
  }

  .button-back:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
  }

  
  .video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .video-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
  }
  
  .video-modal video {
    width: 100%;
    height: 500px;
    border-radius: 8px;
  }
  

  .games-section .swiper-slide:hover {
    transform: translateY(-5px);
  }

  .games-section .swiper-slide .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.3s ease;
  }

  .games-section .swiper-slide:hover .hover-overlay {
    opacity: 1;
  }

  .games-section .hover-overlay p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
  }

  .games-section .hover-overlay .btn {
    background-color: #0fcd8c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .games-section .hover-overlay .btn:hover {
    background-color: #0dab6e;
  }

  @media (max-width: 768px) {
    .hero .container {
      flex-direction: column;
      align-items: flex-start;
    }
    .modal-content.glass {
        width: 90%;
    }
  }
  /* Адаптивность */
  @media (max-width: 768px) {
    .header-container {
      flex-wrap: wrap;
    }
    .nav {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background: var(--background-darker);
      padding: 20px;
    }
    .nav.active {
      display: flex;
    }
    .nav a {
      margin: 10px 0;
    }
    .burger {
      display: block;
    }
    .hero .content {
      max-width: 100%;
    }
    .hero .image {
      display: none;
    }
    .feature-grid {
      grid-template-columns: 1fr;
    }
    .package-grid {
      grid-template-columns: 1fr;
    }
    .address-box {
      flex-direction: column;
      gap: 15px;
    }
    .address-box input {
      width: 100%;
    }
    .address-box button {
      width: 100%;
      text-align: center;
    }
  }
  
  @media (max-width: 576px) {
    h1 {
      font-size: 32px;
    }
    .section-title {
      font-size: 28px;
    }
    .swiper-container {
      padding: 0 20px;
    }
  }

  @media (max-width: 768px) {
    .hero-content.glass {
        padding: 20px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .game-grid.glass, .feature-grid {
        grid-template-columns: 1fr;
    }
    .photo-swipe-block .swiper-slide {
        width: 250px;
        height: 350px;
    }
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown trigger (main "Гайды" link) */
.dropdown > a {
  color: var(--text-white); /* White text to match header nav */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

/* Highlight on hover for main link */
.dropdown > a:hover {
  color: var(--primary-color); /* Primary green for hover */
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-dark); /* Dark background to match header */
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  z-index: 1000;
}

/* Dropdown links */
.dropdown-content a {
  color: var(--text-light); /* Light text for links */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for dropdown links */
.dropdown-content a:hover {
  background-color: var(--primary-color); /* Primary green background on hover */
  color: var(--background-darker); /* Darker background for contrast */
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .dropdown {
      display: block;
  }

  .dropdown > a {
      display: block;
      padding: 15px;
  }

  .dropdown-content {
      position: static;
      background-color: var(--background-darker); /* Slightly darker for mobile contrast */
      box-shadow: none;
      border-radius: 0;
      min-width: 100%;
  }

  .dropdown-content a {
      padding: 10px 20px;
      font-size: 16px;
  }

  /* Ensure dropdown is toggleable on mobile (requires JS support) */
  .dropdown.active .dropdown-content {
      display: block;
  }
}

.referral-section {
  padding: 60px 0;
  background-color: var(--background-dark); /* #14213d */
  color: var(--text-white); /* #fff */
}

.referral-section .container {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.referral-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.referral-section .highlight {
  color: var(--primary-color); /* #0fcd8c */
}

.referral-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-white); /* #b0b7c3 */
  line-height: 1.6;
}


.referral-section .btn.green:hover {
  background-color: var(--secondary-color); /* #00a86b */
}

.referral-section .icon {
  margin-bottom: 20px;
}

.referral-section .icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Responsive design */
@media (max-width: 768px) {
  .referral-section {
      padding: 40px 0;
  }

  .referral-section .section-title {
      font-size: 2rem;
  }

  .referral-section p {
      font-size: 1rem;
      max-width: 90%;
  }

  .referral-section .btn.green {
      padding: 10px 20px;
      font-size: 1rem;
  }

  .referral-section .icon img {
      width: 60px;
      height: 60px;
  }
}

@media (max-width: 480px) {
  .referral-section .section-title {
      font-size: 1.8rem;
  }

  .referral-section p {
      font-size: 0.9rem;
  }
}