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

:root {
    --primary-color: #3588ff;
    --secondary-color: #F7F7FB;
    --accent-color: #1877f2;
    --text-color: #333;
    --bg-color: #ffffff;
    --font-family: 'Inter', sans-serif;
}
a {
    text-decoration: none;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section[id], .cloud-vps, .gpt-advisor, .faq, #promo-vps {
    scroll-margin-top: 120px;
}

section h2, .cloud-vps h2, .gpt-advisor h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

body > header {
    flex-shrink: 0;
}

body > section,
body > .terms {
    flex: 1 0 auto;
}

body > footer {
    flex-shrink: 0;
    margin-top: auto;
}

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

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


h1, h2 {
    font-size: 48px;
    margin-bottom: 20px;
    margin-top: 0;
}

p {
    margin: 0;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    section h2, .cloud-vps h2, .gpt-advisor h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.6;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 8px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-social {
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-social i {
    font-size: 18px;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    footer {
        padding: 32px 0 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.country-flag {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.vpn-card {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.vpn-card.disabled {
    opacity: .5;
}
.vpn-card .order-button {
    font-size: 16px;
    border-radius: 24px;
}

.tariff-card::before, .vpn-card::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,123,255,0.1) 100%);
}

.vpn-card.disabled::after {
    content: 'SOON';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    filter: drop-shadow(0 0px 16px);
}

.vpn-ping {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.ping-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ping-good { background-color: #28a745; }
.ping-medium { background-color: #ffc107; }
.ping-bad { background-color: #dc3545; }
.ping-gray { background-color: gray; }


.vpn-price {
    color: #28a745;
}

.fast {
    border: 1px solid #007bff;
/*    box-shadow: 0 0 36px rgb(0 123 255 / 20%)*/
    
}

.fast-label {
    position: absolute;
    top: -24px;
    right: -24px;
    background-color: #007bff;
    color: white;
    padding: 8px 16px 8px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
/*    z-index: 2;*/
}

.fast-label i {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .fast-label {
        right: 50%;
        transform: translateX(50%);
    }
}

/* header */

.menu-toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.menu-toggle span::before,
.menu-toggle span::after,
.menu-toggle span i {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: 0.2s;
}

.menu-toggle span::before {
    top: 0;
}

.menu-toggle span i {
    display: block;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span::after {
    bottom: 0;
}

.menu-toggle.active span::before {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.menu-toggle.active span i {
    opacity: 0;
}

.menu-toggle.active span::after {
    bottom: 50%;
    transform: translateY(50%) rotate(45deg);
}

.menu-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transition: 0.2s;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

header .nav-links .login-button {
    display: none;
}

@media screen and (max-width: 768px) {
    header .container .login-button {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    header {
        z-index: 100;
    }
    header .nav-links {
        display: none;
        position: absolute;
        z-index: 100;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    header .nav-links.show {
        display: block;
    }
    header .nav-links .login-button {
        display: block;
        color: #fff;
        background: var(--primary-color);
        margin: 15px 20px;
        padding: 12px 20px;
        text-align: center;
        border-radius: 8px;
    }
    .nav-links div {
        display: flex;
        flex-direction: column;
    }
    .nav-links div a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
        color: #1e293b;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .nav-links div a:last-child {
        border-bottom: none;
    }
    .nav-links div a:hover {
        background-color: #f8fafc;
    }
    header nav {
        width: 100%;
        justify-content: space-between;
    }
    header.scrolled nav {
        height: 60px;
    }
}
header {
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/

}
header .headerWrapper {
    background-color: var(--bg-color);
    transition: background-color .2s;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled nav {
    height: 80px;
}

header.scrolled .headerWrapper {
    background-color: rgba(255, 255, 255, .8);
    backdrop-filter: blur(8px);
}

.tgHintContainer {
    width: 100%;
    background: #1c7af4;
    color: #ffffff;
    font-weight: 500;
}
.tgHint {
    display: flex;
    justify-content: space-between;
    height: 38px;
}
.tgHint .left, .tgHint .left2 {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tgHint .left span {
    color: rgba(255, 255, 255, .6);
    font-weight: 400;
}

.tgHint .right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tgHint .right a {
    border: 2px solid #fff;
    border-radius: 50px;
    background: #fff;
    color: #000;
    padding: 4px 16px;
    font-weight: 500;
    font-size: 13px;
    line-height: 100%;
    transition: all 0.3s ease;
}
.tgHint .right a:hover {
    background: transparent;
    color: #fff;
}
.tgHint .right button {
    background: none;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .tgHint {
        height: 36px;
        gap: 12px;
        padding: 0 14px 0 10px;
    }
    .tgHint .left {
        flex-direction: column;
        gap: 4px;
        align-items: start;
    }
    .tgHint .left > span {
        display: none;
    }
    .tgHint .left2 {
        font-size: 14px;
    }
    .tgHint .left2 svg {
        flex-shrink: 0;
    }
    .tgHint .left2 {
        gap: 12px;
    }
}

nav {
    height: 100px;
    display: flex;
    align-items: center;
    transition: height 0.3s ease;

    display: flex;
    gap: 36px;
}


.logo {
/*    text-decoration: none;*/
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links > div {
    position: relative;
}

.nav-links a {
/*    text-decoration: none;*/
    color: var(--text-color);
    transition: color 0.3s ease;
    padding: 10px;
    font-weight: 500;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-links > div:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
/*    text-decoration: none;*/
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
}

.login-button {
    background-color: #007bff;
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}
.login-button:hover {
    background-color: transparent;
    color: #007bff;
}

/* 2. Hero Section */
.hero-wrapper {
    margin-top: 160px;
    padding: 0 20px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 32px; /* Закругления как на всем сайте */
    padding: 60px 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.hero-slider {
    position: relative;
    width: 100%;
}

.hero-content {
    display: none;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-content.active {
    display: flex;
    opacity: 1;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
    z-index: 2;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    margin-top: 0;
    line-height: 1.2;
    font-weight: 800;
}

.hero-image {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Pagination Dots */
.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

@media screen and (max-width: 992px) {
    .hero {
        padding: 50px 40px;
    }
    .hero h1 {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .hero-wrapper {
        margin-top: 150px;
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 24px 60px 24px;
        text-align: center;
        border-radius: 24px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 0;
    }
    
    .hero-text p {
        margin: 0 auto 32px auto;
    }

    .hero-image {
        justify-content: center;
    }
    
    .hero-image img {
        max-height: 300px;
    }
}

.cta-button {
    display: inline-block;
    background: #FFF;
    color: #000;
    padding: 8px 26px;
    border-radius: 50px;
    border: 2px solid #FFF;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    background: transparent;
    color: #FFF;
}

.cta-button:active {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .cta-button {
            transform: scale(1.1);
    }
    .hero-content {
        flex-direction: column;
/*                flex-direction: column-reverse;      */
                gap: 47px;      
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;

    }
    .hero-image {
        text-align: center;
    }
}

/* 3 */
.features, .why-us {
    padding: 80px 0;
    background: var(--bg-color);
}

.os-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq {
    padding: 80px 0;
    background: var(--bg-color);
}

.feature-grid, .why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature, .why-us-item {
    text-align: left;
    padding: 40px 36px;
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.feature {
    background: #ffffff;
}

.feature:hover, .why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -12px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.1);
}

.feature i, .why-us-item i {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.15));
    transition: filter 0.3s ease;
}

.feature:hover i, .why-us-item:hover i {
    transform: none;
    filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.4));
}

.feature h3, .why-us-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.feature p, .why-us-item p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
}

/* 4 - Tariffs Section */
.cloud-vps {
    padding: 30px;
    background-color: #f8fafc;
}

.cloud-vps.promo {
    padding-bottom: 30px;
    padding-top: 60px;
}


@media screen and (max-width: 768px) {
    .features, .why-us, .os-section, .faq {
        padding: 50px 0;
    }
    
    .cloud-vps {
        padding: 40px 0;
    }
    
    .cloud-vps.promo {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    
    .gpt-advisor {
        padding: 50px 0;
    }
}

/* ========================================
   TARIFF TABLE - VDSina Style (точная копия)
   ======================================== */

.standardServersTable {
    box-shadow: 0 4px 10px rgba(25,45,77,.03), 0 4px 100px rgba(25,45,77,.04);
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
}

.standardServersTable .row {
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 30px;
    transition: .3s;
    background-color: #fff;
}

.standardServersTable .row::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: calc(100% - 46px);
    height: 1px;
    transform: translateX(-50%);
    background: rgba(23,61,122,.1);
}

.standardServersTable .row.rowHeader {
    border-radius: 8px 8px 0 0;
}

.standardServersTable .row.rowHeader::after {
    border-radius: 8px 8px 0 0;
}

.standardServersTable .row.rowContent:last-of-type {
    border-radius: 0 0 8px 8px;
}

.standardServersTable .row.rowContent:last-of-type::after {
    border-radius: 0 0 8px 8px;
}

.standardServersTable .row.rowContent:last-of-type::before {
    display: none;
}

.standardServersTable .row::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .3s;
    background-color: #fff;
    z-index: 0;
    border-radius: inherit;
}

.standardServersTable .row:hover:not(.rowHeader)::after {
    z-index: 1;
    width: calc(100% + 30px);
    transform: translateX(-15px);
    box-shadow: 0 4px 10px rgba(25,45,77,.1), 0 4px 100px rgba(25,45,77,.04);
}

.standardServersTable .row > * {
    position: relative;
    z-index: 2;
}

.standardServersTable .row > div {
    text-align: left;
    font-size: 14px;
    line-height: 17px;
    margin-right: 20px;
}

.standardServersTable .row > div:nth-child(1) { flex: 1.2; min-width: 130px; }
.standardServersTable .row > div:nth-child(2) { flex: 0.8; min-width: 80px; }
.standardServersTable .row > div:nth-child(3) { flex: 0.6; min-width: 70px; }
.standardServersTable .row > div:nth-child(4) { flex: 1; min-width: 100px; }
.standardServersTable .row > div:nth-child(5) { flex: 0.6; min-width: 70px; }
.standardServersTable .row > div:nth-child(6) { flex: 1.3; min-width: 130px; }
.standardServersTable .row > div:nth-child(7) { flex: 0; min-width: 130px; }

.standardServersTable .rowHeader > div {
    font-size: 15px;
    font-weight: 500;
    color: #8c939f;
}

.standardServersTable .row .config {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: #142149;
}

.standardServersTable .row .prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.standardServersTable .row .prices .main-price {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

.standardServersTable .row .prices .sub-price {
    font-size: 14px;
    color: #8c939f;
    font-weight: 400;
}

.standardServersTable .row button,
.standardServersTable .row .Abutton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border-radius: 100px;
    border: 1px solid #3b82f6;
    cursor: pointer;
    transition: .3s;
    background: transparent;
    color: #3b82f6;
    text-decoration: none;
}

.standardServersTable .row button:hover,
.standardServersTable .row .Abutton:hover {
    background-color: #3b82f6;
    color: #fff;
}

.standardServersTable .row .bestSeller {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

.standardServersTable .row .bestSeller svg {
    display: block;
    width: 28px;
    height: 34px;
}

.standardServersTable .row .bestSeller span {
    display: none;
    position: absolute;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: #142149;
}

.standardServersTable .row .bestSeller:hover span {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    padding: 6px 12px;
    transform: translateX(-50%) translateY(calc(-100% - 5px));
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(25,45,77,.1), 0 4px 100px rgba(25,45,77,.04);
}

.infoTable {
    margin: 12px 0 0;
    text-align: right;
    font-weight: 500;
    font-size: 14px;
    line-height: 160%;
    color: #919aad;
}

.infoTable strong {
    color: #3b82f6;
    font-weight: 700;
    white-space: nowrap;
}

.infoTable p {
    margin: 4px 0;
}

.infoTable strong {
    color: #3b82f6;
    font-weight: 700;
}

/* ========================================
   MOBILE RESPONSIVE - Tariff Cards (VDSina style)
   ======================================== */

.tariff-mobile {
    display: none;
}

@media screen and (max-width: 900px) {
    .standardServersTable {
        display: none;
    }
    
    .tariff-cpu {
        display: none !important;
    }
    
    .tariff-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
    }
    
    .tariff-mobile-card {
        background: #fff;
        box-shadow: 0 4px 14px rgba(66, 83, 123, 0.1);
        position: relative;
        width: calc(50% - 9px);
        margin-bottom: 18px;
    }
    
    .tariff-mobile-name {
        background: #f8fafc;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 14px;
        color: #142149;
        border-bottom: 1px solid #ebecee;
        position: relative;
        z-index: 2;
    }
    
    .tariff-mobile-body {
        position: relative;
        overflow: hidden;
    }
    
    .tariff-mobile-round {
        position: absolute;
        top: 0;
        left: 0;
        width: 170px;
        height: 148px;
        border-radius: 50%;
        background-color: #3b82f6;
        transform: translateY(-50%) translateX(-50%);
    }
    
    .tariff-mobile-price {
        position: absolute;
        top: 12px;
        left: 12px;
        color: #fff;
        z-index: 1;
    }
    
    .tariff-mobile-price span {
        font-weight: 700;
        font-size: 18px;
        line-height: 22px;
        display: block;
    }
    
    .tariff-mobile-price p {
        font-weight: 500;
        font-size: 10px;
        line-height: 12px;
        margin: 0;
    }
    
    .tariff-mobile-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 22px 20px 22px 85px;
        position: relative;
        z-index: 1;
    }
    
    .tariff-mobile-config {
        width: calc(50% - 5px);
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 16px;
        color: #919aad;
        font-weight: 500;
    }
    
    .tariff-mobile-config:nth-child(3),
    .tariff-mobile-config:nth-child(4) {
        margin-bottom: 0;
    }
    
    .tariff-mobile-config b {
        color: #142149;
        display: block;
        margin-top: 4px;
        font-size: 14px;
    }
    
    .tariff-mobile-order {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        border-top: 1px solid #ebecee;
        position: relative;
        z-index: 1;
        background: #fff;
    }
    
    .tariff-mobile-prices {
        flex: 1;
    }
    
    .tariff-mobile-prices span {
        display: inline;
        font-size: 14px;
        color: #142149;
    }
    
    .tariff-mobile-prices span:first-child {
        margin-right: 8px;
    }
    
    .tariff-mobile-prices span:last-child {
        color: #919aad;
    }
    
    .tariff-mobile-order .Abutton {
        padding: 15px 28px;
        margin-left: auto;
        background: #3b82f6;
        color: #fff;
        border-radius: 100px;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        line-height: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .infoTable {
        text-align: right;
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .tariff-mobile-config {
        font-size: 12px;
    }
    
    .tariff-mobile-order .Abutton {
        padding: 12px 24px;
        font-size: 13px;
    }
}

@media screen and (max-width: 590px) {
    .tariff-mobile-card {
        width: 100%;
    }
}

/* Old tariff-card styles (keeping for compatibility) */

/*.tariff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFF;
    background: linear-gradient(135deg, rgb(255 255 255) 0%, rgb(0 123 255 / 20%) 100%);
    z-index: 0;
    border-radius: 24px;
}*/

.tariff-name {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    flex: 1;
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 12px;
}

.tariff-cpu {
    padding: 4px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.tariff-cpu.tariff-cpu-intel {
    background-color: #007bff;
}
.tariff-cpu.tariff-cpu-amd {
    background-color: #ED1C24;
}

.tariff-details {
    display: flex;
    gap: 36px;
    flex: 3;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}

.tariff-details > .tariff-detail:last-child {
    width: 140px;
}
.tariff-details > .tariff-detail:last-child > .tariff-detail-value {
    justify-content: left;
} 


@media screen and (max-width: 768px) {
    h2 {
        margin-bottom: 36px;
    }
}

.tariff-price {
    font-weight: bold;
    font-size: 18px;
    color: #007bff;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.order-button {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
    padding: 8px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 160px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-family: Inter, sans-serif;
    width: 130px;
    text-align: center;
}

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

.order-button:hover::before {
    left: 100%;
}

.order-button:hover {
    background-color: transparent;
    color: #007bff;
}

#tariff-grid, #tariff-grid2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}
@media screen and (max-width: 768px) {
    #tariff-grid, #tariff-grid2 {
        gap: 0;
    }
}
.selectors-container {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    justify-content: space-between;
}
.selectors-container .left {
    display: flex;
    gap: 16px;
}
@media screen and (max-width: 768px) {
    .selectors-container {
        flex-direction: column;
    }
    .selectors-container .left {
        flex-direction: column;
    }
    .selectors-container .custom-select {
        width: 100%;
    }
}

.custom-select {
    position: relative;
    min-width: 200px;
}

.select-selected {
    background-color: var(--bg-color);
/*    border: 1px solid var(--primary-color);*/
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.select-selected span {
    font-weight: 500;
}

.select-selected i {
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active i {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    background-color: var(--bg-color);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
/*    border: 1px solid var(--primary-color);*/
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.select-selected span, .select-items div {
    display: flex;
    align-items: center;
    gap: 8px;
}


.select-items.select-show {
    max-height: 300px;
/*    border-top: 1px solid var(--primary-color);*/
    
}

.select-hide {
    display: none;
}

.select-items div {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    
}

.select-items div:hover, .same-as-selected {
    background-color: var(--secondary-color);
}

.custom-select label {
/*    display: none;*/
    position: absolute;
    top: -8px;
    left: 12px;
/*    background-color: var(--bg-color);*/
    padding: 0 4px;
    font-size: 12px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.custom-select:focus-within label {
    color: var(--accent-color);
}

/* 4.1 */
.gpt-advisor {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.gpt-advisor p {
    margin-bottom: 36px;
}
.chat-container {
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    width: 100%; /* На всю ширину контейнера */
}

.chat-header {
    display: none;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #ffffff; /* Фон чата белый */
}

.message {
    padding: 16px 24px;
    border-radius: 24px;
    max-width: 85%;
    line-height: 1.6;
    font-size: 16px;
    position: relative;
    box-shadow: none;
}

.user-message {
    background: #f1f5f9; /* Светло-серый для юзера */
    color: #0f172a;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.gpt-message {
    background-color: #f8fafc; /* Вернул фон для AI сообщений */
    color: #1e293b;
    border: 1px solid rgba(0,0,0,0.04);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.gpt-message a {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    margin-right: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.gpt-message a:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.chat-input-wrapper {
    position: relative;
    margin: 0 24px 24px 24px; /* Отступы от краев и низа */
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.chat-input-wrapper:focus-within {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chat-input {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex: 1;
    align-items: center;
    border-top: none; /* Reset */
}

.chat-input input {
    flex-grow: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1e293b;
    border-radius: 0;
}

.chat-input input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

.chat-input input::placeholder {
    color: #94a3b8;
}

.chat-input button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.chat-input button:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chat-input button i {
    font-size: 18px;
    margin: 0;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}

.thinking {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.thinking i {
    animation: wave 1.5s infinite;
    transform-origin: bottom center;
}

/* 5  */
.vpn-servers {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.vpn-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.vpn-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 28px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.vpn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,123,255,0.1) 100%);
    z-index: 0;
    border-radius: 16px;
}

@media screen and (max-width: 768px) {
    .vpn-card {
        flex-direction: column;
        gap: 32px;
    }
    .vpn-details {
        flex-direction: column;
        gap: 16px;
    }
    .vpn-ping {
        justify-content: center;
    }
}

.vpn-card.disabled {
    opacity: 0.5;
}

.vpn-country {
    font-weight: bold;
    font-size: 20px;
    color: #333;
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.vpn-country img {
    width: 36px;
    height: 27px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vpn-details {
    display: flex;
    gap: 30px;
    flex: 3;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}

.vpn-detail {
    text-align: center;
}

.vpn-detail-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.vpn-detail-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpn-detail-value i {
    margin-right: 8px;
    color: #007bff;
    font-size: 18px;
}

.vpn-protocols {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.vpn-protocol {
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.vpn-ping {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.ping-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.vpn-price {
    font-weight: bold;
    font-size: 18px;
    color: #007bff;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 64px;
}

.os-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.os-card:hover {
    border-color: var(--primary-color);
}

.os-card > i {
    font-size: 56px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.os-card > img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(47%) sepia(66%) saturate(4530%) hue-rotate(201deg) brightness(102%) contrast(101%);
}

.os-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.os-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

.os-card-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

@media screen and (max-width: 1024px) {
    .os-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .os-card {
        padding: 20px;
        gap: 16px;
    }
    
    .os-card > i {
        font-size: 48px;
    }
    
    .os-card > img {
        width: 48px;
        height: 48px;
    }
    
    .os-card-content h3 {
        font-size: 18px;
    }
    
    .os-card-content p {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .os-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .os-card {
        padding: 18px;
        gap: 14px;
    }
    
    .os-card > i {
        font-size: 44px;
    }
    
    .os-card > img {
        width: 44px;
        height: 44px;
    }
    
    .os-card-content h3 {
        font-size: 17px;
    }
    
    .os-card-content p {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .hero-wrapper {
        margin-top: 140px;
        padding: 0 12px;
    }
    
    .hero {
        padding: 32px 20px 50px 20px;
        border-radius: 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .os-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .os-card {
        padding: 16px;
        gap: 12px;
    }
    
    .os-card > i {
        font-size: 40px;
    }
    
    .os-card > img {
        width: 40px;
        height: 40px;
    }
    
    .os-card-content {
        gap: 3px;
    }
    
    .os-card-content h3 {
        font-size: 16px;
    }
    
    .os-card-content p {
        font-size: 12px;
    }
}

.faq-list {
    background-color: var(--bg-color);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.faq-item {
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover .faq-question {
    background-color: #f8fafc;
}

.faq-question {
    font-weight: 500;
    padding: 24px 32px;
    cursor: pointer;
    position: relative;
    font-size: 16px;
    transition: background-color 0.2s ease;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s ease;
    position: static; /* Reset absolute positioning */
    transform: none;
}

.faq-question.active {
    background-color: #f8fafc;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 32px;
    color: #64748b;
    line-height: 1.6;
    font-size: 15px;
}

.faq-answer.active {
    max-height: 5000px; /* Большая высота для длинных ответов */
    padding: 0 32px 32px 32px;
}

#contact > .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
#contact > .container > .left {
    display: flex;
    align-items: center;
    gap: 36px;
}
@media screen and (max-width: 768px) {
    #contact > .container > .left {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 18px;
    }
}
#contact > .container > .left > a {
    color: #fff;
/*    text-decoration: none;*/
}
.container.ip {
    margin-top: 24px;
    color: rgba(255, 255, 255, .8);
}
.container.ip a {
/*    text-decoration: underline;*/
    color: #fff;
}
@media screen and (max-width: 768px) {
    #contact > .container {
        flex-direction: column;
    }
}
.terms {
    margin-top: 116px;
}
.terms .container {
    margin-bottom: 16px;
}
.terms h1 {
    font-size: 32px;
    margin-block: 24px;
    color: #2c3e50;
}
.terms h2 {
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #2c3e50;
}
.terms h3 {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.terms ul {
    margin: 8px 0;
    padding-left: 24px;
}

.terms ul li {
    margin: 4px 0;
    line-height: 1.6;
}
.terms .company-info {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 32px;
}

.terms .company-info h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.terms .company-info p {
    line-height: 1.6;
    color: #333;
    margin: 8px 0;
}

.terms .company-info strong {
    color: #000;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .terms .company-info {
        padding: 16px;
    }
}
.terms p {
    padding-bottom: 16px;
}
.definition {
    margin-left: 24px;
}
.definition dt {
     font-weight: bold;
}
.definition dd {
    margin-bottom: 16px;
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.contact-icon.legal {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.contact-icon i {
    font-size: 28px;
    color: #ffffff;
}

.contact-card h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 600;
}

.contact-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.contact-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-link:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.contact-link.telegram {
    color: #0088cc;
}

.contact-link.telegram:hover {
    border-color: #0088cc;
}

.contact-link i {
    margin-right: 12px;
    font-size: 18px;
    min-width: 20px;
}

.contact-note {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-top: 16px;
    margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 32px 0;
    }

    .contact-card {
        padding: 24px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
    }

    .contact-icon i {
        font-size: 24px;
    }

    .contact-card h2 {
        font-size: 20px;
    }

    .contact-link {
        font-size: 14px;
    }
}

/* Referral Page Styles */
.referral-hero {
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.referral-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.referral-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    opacity: 1;
}

.hero-left h1 {
    font-size: 52px;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-left p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.benefit-item i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hero-right {
    display: flex;
    justify-content: center;
}

.commission-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 380px;
}

.commission-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-weight: 600;
}

.commission-highlight {
    font-size: 140px;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 30px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.03em;
}

.commission-subtitle {
    font-size: 20px;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.commission-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
}

.steps-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    font-size: 32px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    text-align: center;
}

.step-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.7;
    text-align: center;
    font-size: 15px;
}

.calculator-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.calculator-box {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.calculator-box h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
    text-align: center;
}

.calculator-box > p {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 50px;
    font-size: 17px;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.calculator-input {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calculator-input label {
    display: block;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.input-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.calculator-slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.calculator-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding-top: 40px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
}

.result-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.result-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
}

.result-description {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 8px;
}

.rules-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.rules-list {
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rules-list ul {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 18px 0 18px 50px;
    position: relative;
    color: var(--text-color);
    line-height: 1.8;
    border-bottom: 1px solid rgba(var(--text-color-rgb), 0.08);
    font-size: 16px;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 18px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-section .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: #f8f9ff;
}

.cta-section .cta-button i {
    font-size: 20px;
}

@media (max-width: 1024px) {
    .referral-hero .hero-content {
        gap: 50px;
    }
    
    .hero-left h1 {
        font-size: 42px;
    }
    
    .commission-card {
        min-width: 320px;
        padding: 50px 40px;
    }
    
    .commission-highlight {
        font-size: 110px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .referral-hero {
        padding: 156px 15px 60px;
    }
    
    .referral-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-left {
        text-align: left;
    }
    
    .hero-left h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .hero-left p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-benefits {
        align-items: flex-start;
        gap: 18px;
    }
    
    .benefit-item {
        font-size: 15px;
        justify-content: flex-start;
        text-align: left;
    }
    
    .commission-card {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: 45px 25px;
    }
    
    .commission-label {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .commission-highlight {
        font-size: 90px;
        margin-bottom: 20px;
    }
    
    .commission-subtitle {
        font-size: 18px;
    }
    
    .commission-badge {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    .steps-section {
        padding: 50px 15px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-card {
        padding: 25px 20px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .step-card h3 {
        font-size: 19px;
    }
    
    .step-card p {
        font-size: 14px;
    }
    
    .calculator-section {
        padding: 50px 15px;
    }
    
    .calculator-box {
        padding: 30px 20px;
    }
    
    .calculator-box h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .calculator-box > p {
        font-size: 15px;
        margin-bottom: 35px;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .calculator-input {
        padding: 25px 20px;
    }
    
    .calculator-input label {
        font-size: 15px;
    }
    
    .input-value {
        font-size: 28px;
    }
    
    .calculator-results {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 30px;
    }
    
    .result-item {
        padding: 25px 15px;
    }
    
    .result-value {
        font-size: 32px;
    }
    
    .rules-section {
        padding: 50px 15px;
    }
    
    .rules-list {
        padding: 30px 20px;
    }
    
    .rules-list li {
        padding: 15px 0 15px 45px;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .rules-list li:before {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 15px;
    }
    
    .cta-section {
        padding: 60px 15px;
    }
    
    .cta-content {
        padding: 0 15px;
    }
    
    .cta-section h2 {
        font-size: 28px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .cta-section p {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .cta-section .cta-button {
        padding: 18px 40px;
        font-size: 16px;
        gap: 10px;
        width: 100%;
        max-width: 360px;
        justify-content: center;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    }
    
    .cta-section .cta-button i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .referral-hero {
        padding: 168px 15px 50px;
    }
    
    .hero-left h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .hero-left p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .benefit-item {
        font-size: 14px;
        align-items: flex-start;
    }
    
    .benefit-item i {
        width: 26px;
        height: 26px;
        font-size: 11px;
        margin-top: 2px;
    }
    
    .benefit-item span {
        flex: 1;
    }
    
    .commission-card {
        padding: 40px 20px;
        border-radius: 24px;
    }
    
    .commission-label {
        font-size: 12px;
        margin-bottom: 18px;
        letter-spacing: 1.5px;
    }
    
    .commission-highlight {
        font-size: 72px;
        margin-bottom: 18px;
    }
    
    .commission-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .commission-badge {
        font-size: 14px;
        padding: 10px 18px;
    }
    
    .cta-section {
        padding: 50px 15px;
    }
    
    .cta-content {
        padding: 0 10px;
    }
    
    .cta-section h2 {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .cta-section p {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .cta-section .cta-button {
        padding: 16px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
    }
    
    .calculator-box {
        padding: 25px 15px;
    }
    
    .calculator-box h2 {
        font-size: 22px;
    }
    
    .input-value {
        font-size: 24px;
    }
    
    .result-value {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

/* 404 Error Page Styles */
.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    padding: 40px 20px;
}

.error-code {
    font-size: 140px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 30px;
}

.error-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.error-description {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.error-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-link:hover {
    background: #5568d3;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.error-link.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.error-link.secondary:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .error-page {
        padding: 100px 20px 40px;
    }
    
    .error-content {
        padding: 30px 20px;
    }
    
    .error-code {
        font-size: 100px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-description {
        font-size: 16px;
    }
    
    .error-links {
        flex-direction: column;
    }
    
    .error-link {
        width: 100%;
        justify-content: center;
    }
}