@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --primary-color: #2979FF;
    --secondary-color: #448AFF;
    --bg-color: #F4F7FC;
    --section-bg-color: #FFFFFF;
    --text-color: #4A5568;
    --heading-color: #1A202C;
    --card-bg: #FFFFFF;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--heading-color);
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

section {
    padding: 30px 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: #fff;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 10px 30px rgba(41, 121, 255, 0.5);
}

.btn-pulsate {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(41, 121, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(41, 121, 255, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(41, 121, 255, 0.2);
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #222;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.75)), url('../atriumonlinerubackground.png');
    background-size: contain;
    background-position: center 105%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f8f9fa;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #222;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #555;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 40px;
    color: #555;
}

.online-status {
    margin-top: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

#about, #servers {
    background-color: var(--section-bg-color);
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
}

#start {
    text-align: center;
    background-color: var(--bg-color);
}
#start .start-subtitle {
    max-width: 600px;
    margin: -30px auto 40px;
    font-size: 1.2rem;
}

.conversion-title {
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px;
    margin-bottom: 40px !important;
    color: #1A202C;
}

.conversion-subtitle {
    font-size: 1.3rem;
    color: #4A5568;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.conversion-step {
    margin-bottom: 50px;
}

.step-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.btn-conversion {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    padding: 25px 60px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 60px !important;
}

.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.server-card {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

.server-card h3 {
    margin-bottom: 15px;
    color: #222;
    font-size: 1.4rem;
}

.server-card p {
    color: #555;
    margin-bottom: 15px;
    font-weight: 700;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00aaff);
    border-radius: 5px;
}

#start {
    background-color: #f0f2f5;
    overflow: hidden;
}

.start-panel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.start-panel {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.start-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.start-content {
    position: relative;
    z-index: 2;
}

.start-icon {
    margin: 0 auto 30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e6f0ff, #ffffff);
    box-shadow: 0 15px 40px rgba(41, 121, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.start-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.start-panel:hover .start-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 20px 50px rgba(41, 121, 255, 0.3);
}

.start-panel:hover .start-icon::before {
    opacity: 0.1;
}

.start-icon > i {
    font-size: 45px;
    color: var(--primary-color);
    text-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    z-index: 2;
    transition: all 0.4s ease;
    margin-bottom: 5px;
}

.start-panel:hover .start-icon > i {
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-arrow {
    position: absolute;
    bottom: 15px;
    font-size: 16px;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    z-index: 2;
    transition: all 0.4s ease;
}

.start-panel:hover .download-arrow {
    color: #fff;
    animation: bounce-fast 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes bounce-fast {
    0%, 50%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-6px);
    }
}

.start-subtitle {
    font-size: 1.4rem;
    color: #444;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.btn-large {
    padding: 22px 55px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-large:hover::before {
    left: 100%;
}

.btn-large:active {
    transform: translateY(-5px) scale(0.98);
}

.btn-large i {
    margin-right: 10px;
    font-size: 1.4rem;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.start-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -80px;
    opacity: 0.08;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -60px;
    right: -50px;
    opacity: 0.1;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 15%;
    opacity: 0.06;
}

.start-panel:hover .shape-1 {
    transform: translate(20px, -10px) scale(1.1);
}

.start-panel:hover .shape-2 {
    transform: translate(-15px, 15px) scale(1.2);
}

.start-panel:hover .shape-3 {
    transform: translate(5px, -5px) scale(0.9);
}

.news-list {
    display: grid;
    gap: 25px;
    margin-top: 50px;
}

.news-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 15px;
}

.news-item-header h3 {
    color: #222;
    font-size: 1.5rem;
    margin: 0;
}

.news-date {
    color: #777;
    font-size: 0.9rem;
    font-weight: 700;
}

.news-item p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #0056b3;
}

#contact {
    text-align: center;
}

.social-links {
    margin-top: 30px;
}

.social-icon {
    font-size: 1.2rem;
    margin: 0 15px;
    padding: 15px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.social-icon i {
    margin-right: 10px;
}

footer {
    background-color: var(--section-bg-color);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 32, 44, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    animation: slide-down 0.5s ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes slide-down {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-social {
    padding: 15px 25px;
    color: #fff;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}
.btn-social:hover {
    transform: scale(1.05);
}

.btn-social.vk {
    background-color: #0077ff;
}

.btn-social.telegram {
    background-color: #0088cc;
}

.modal-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 600;
}

.modal-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.benefit-item span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.modal-cta {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.conversion-btn {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 20px 25px !important;
    margin: 10px 0 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.conversion-btn i {
    font-size: 1.5rem;
}

.btn-content {
    text-align: left;
    line-height: 1.3;
}

.btn-content strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-content small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.animated-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
        background-size: contain;
        background-position: center 102%;
        background-repeat: no-repeat;
        min-height: 105vh;
        background-color: #f8f9fa;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }
    .hero-tagline {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 26px 35px;
        margin: -20px;
        font-size: 1rem;
    }

    .conversion-title {
        font-size: 2.2rem !important;
        margin-bottom: 30px !important;
    }

    .conversion-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .step-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .step-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .btn-conversion {
        font-size: 1.2rem !important;
        padding: 20px 50px !important;
        margin: 0 !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 25px 0;
    }
    .nav-links a {
        color: var(--heading-color);
        font-size: 1.8rem;
    }
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-icon {
        margin: 10px 0;
        width: 240px;
        text-align: center;
    }
    .modal-content {
        width: 95%;
        padding: 30px;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .benefit-item span {
        font-size: 0.85rem;
    }

    .conversion-btn {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 18px 20px !important;
    }

    .btn-content {
        text-align: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    #hero {
        background-attachment: scroll;
    }
}