@font-face {
    font-family: 'Nunito Sans';
    src: url('fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
}

:root {
    --primary-color: #00461E;
    /* Dark Green */
    --accent-color: #96FF00;
    /* Neon Lime */
    --secondary-color: rgba(113, 183, 183, 0.3);
    /* Soft Teal with 30% opacity */
    --white: #ffffff;
    --black: #000000;
    --text-color: #333333;
    --bg-gradient: linear-gradient(135deg, var(--primary-color) 0%, #00220f 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    /* Increased width */
    margin: 0 auto;
    padding: 0 40px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(150, 255, 0, 0.3);
    background-color: #85e600;
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(0, 70, 30, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    /* Increased from 800px */
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 20px;
    max-width: 100%;
    /* Make it wider */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.4s;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-btns .btn {
    min-width: 220px;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* Activation Section */
.activation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(150, 255, 0, 0.4);
}

.step-card img {
    height: 120px;
    margin: 20px auto;
    object-fit: contain;
}

/* Network Selection Section */
.network-section {
    background: var(--bg-gradient);
    color: var(--white);
}

.network-section h2 {
    color: var(--white);
}

.network-container {
    display: flex;
    justify-content: center;
}

.network-info {
    flex: 1;
}

.switch-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 50px;
    margin: 30px 0;
}

.switch-btn {
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
    text-align: center;
}

.switch-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #001a0b;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-nav ul {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-contacts {
    text-align: right;
}

.footer-contacts p {
    margin: 0;
}

.legal-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: underline;
    transition: var(--transition);
}

.legal-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-nav ul {
        justify-content: center;
        gap: 15px 25px;
    }

    .footer-contacts {
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adaptation */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
        align-items: flex-start;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }

    .network-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-block {
    background: rgba(113, 183, 183, 0.3);
    /* Light unified background */
    padding: 50px;
    border-radius: 30px;
    text-align: left;
    transition: var(--transition);
}

.advantage-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.advantage-block h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-block p {
    color: var(--text-color);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.app-link:hover img {
    transform: translateY(-5px) scale(1.05);
}

.app-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.app-icon-rustore {
    height: 58px;
    transform: translateY(3px);
    /* Lowers the icon to align visually with others */
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    /* Changed from center to allow scrolling from top */
    justify-content: center;
    z-index: 2000;
    padding: 40px 20px;
    overflow-y: auto;
    /* Enable vertical scrolling */
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    /* Center if content is small */
    margin-bottom: auto;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-steps {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-step {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
}

/* QR Code & Responsive Styles */
.qr-code-wrapper {
    display: none;
    /* Hidden on mobile */
    cursor: pointer;
    transition: var(--transition);
}

@media (min-width: 992px) {
    .qr-code-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-only {
        display: none !important;
    }
}

.qr-code-wrapper:hover {
    transform: translateY(-5px);
}

.qr-image {
    display: none;
}

.qr-code-wrapper span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.qr-link-wrapper {
    position: relative;
    display: inline-block;
}

.qr-text-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Modal QR Styles */
.modal-qr-desktop {
    display: none;
    margin-top: 15px;
}

.modal-qr-desktop img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.modal-qr-desktop span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    display: block;
}

/* Show QR on Desktop, Buttons on Mobile */
@media (min-width: 992px) {
    .qr-code-wrapper {
        display: flex;
    }

    .mobile-only {
        display: none !important;
    }

    .modal-qr-desktop {
        display: block;
    }

    .modal-step .btn-sm {
        display: none;
    }
}

/* Small laptop height support */
@media (max-height: 800px) {
    .modal-content {
        margin-top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 991px) {
    .qr-tooltip {
        display: none !important;
        /* Never show tooltips on mobile */
    }
}

.legal-doc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 10px;
}

.legal-doc-item:last-child {
    margin-bottom: 0;
}

.legal-doc-item:hover {
    background: var(--accent-color);
    transform: translateX(5px);
}

.legal-doc-item .icon {
    font-size: 1.2rem;
}