:root {
    /* Основная палитра */
    --bg-main: #0f1014;       /* Чуть теплее черного */
    --bg-card: #18181b;       /* Темно-серый для карточек */

    /* ОБНОВЛЁННЫЕ ЦВЕТА ТИПОГРАФИКИ (единственные изменения) */
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* НОВЫЕ АКЦЕНТЫ (Закат / Lo-Fi) */
    --accent-color: #f472b6;  /* Основной розовый */
    --accent-gradient: linear-gradient(135deg, #fb923c 0%, #db2777 100%);
    --accent-glow: rgba(219, 39, 119, 0.5); /* Розовое свечение */
    
    --font-main: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

/* Базовая типографика и фон */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* Layout container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAV */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}



.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    box-sizing: border-box;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.logo-light {
    font-weight: 400;
    color: var(--text-secondary);
}

.dot {
    color: var(--accent-color);
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    opacity: 0.6;
}

.scroll-hint svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

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

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-sunset.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(15, 16, 20, 0.7) 0%, rgba(15, 16, 20, 0.9) 80%, var(--bg-main) 100% );
    z-index: -1;
}

/* 1. Заголовок */
.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px; 
    line-height: 1.05;
    background: linear-gradient(to right, #ffffff, #fda4af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2. Подзаголовок (Текст) */
.hero .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;          /* Даем строкам текста больше воздуха для читаемости */
    max-width: 400px;
    /* Это главный разделитель. Увеличиваем до 48px, чтобы отделить смыслы от действия */
    margin: 0 auto 32px auto; 
    opacity: 0.9;
    margin-bottom: 36px;
}

.highlight {
    color: #fb923c;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn-glow {
    box-shadow: 0 0 25px rgba(219, 39, 119, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(251, 146, 60, 0.5);
}

/* FEATURES */
.features {
    padding: 60px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(219, 39, 119, 0.4);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Карточка 1 — оранжевый */
.card:nth-child(1) .icon-box {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.25);
}

/* Карточка 2 — розово-малиновый */
.card:nth-child(2) .icon-box {
    background: rgba(244, 114, 182, 0.1);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.25);
}

/* Карточка 3 — тёплый жёлто-янтарный */
.card:nth-child(3) .icon-box {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* PRICING */
.pricing {
    padding: 60px 0;
    text-align: center;
    scroll-margin-top: 80px;
}

.pricing h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pricing-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 660px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: left;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
}

.pricing-card--featured {
    border-color: rgba(219, 39, 119, 0.4);
    background: linear-gradient(135deg, #1a1520 0%, #18181b 100%);
}

.pricing-card--featured:hover {
    border-color: rgba(219, 39, 119, 0.7);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-per {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-economy {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 500;
    margin-bottom: 24px;
    margin-top: 2px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    color: #4ade80;
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }
}

/* SPEED SECTION */
.speed-section {
    padding: 60px 0;
    background: var(--bg-main);
    text-align: center;
}

.speed-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ТОЛЬКО ЭТА СТРОКА изменена: */
.speed-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.speed-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}


.steps {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--bg-main), #0b1120);
}

.steps h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
}

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

.step-item {
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.18;
    position: absolute;
    top: -30px;
    left: -10px;
    z-index: 0;
}

.step-item h4 {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-item p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* FOOTER */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.footer-col.links a {
    color: #c5c7ce;
    font-size: 0.9rem;
}

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

/* --- Секция Локаций --- */
.locations {
    padding: 60px 0;
    text-align: center;
}

.locations h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.loc-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-height: 160px;
    position: relative;
}

.loc-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: #4ade80;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 10px;
}

.loc-status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.loc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(219, 39, 119, 0.4);
}

.flag-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.flag-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.country {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
}

.locations-simple-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.status-dot-sm {
    margin-top: 0;
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

/* ---- Объединённые медиазапросы ---- */
@media (max-width: 768px) {
    .locations-simple-note {
        flex-direction: column;
        gap: 8px;
    }

    .nav-content {
        justify-content: center;
        gap: 1rem;
    }
    .nav-links {
        margin-left: 0;
        display: flex;
        gap: 0.75rem;
    }
    .hero h1 {
        font-size: 2.6rem;
        letter-spacing: -0.02em;
    }
    .hero .subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }
    .footer-grid {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-col.links {
        flex-direction: column;
        gap: 15px;
    }
    .step-item {
        text-align: center;
    }
    .step-number {
        left: 50%;
        transform: translateX(-50%);
    }
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .loc-card {
        padding: 15px;
        min-height: 140px;
    }
    .country {
        font-size: 0.95rem;
    }
    .flag-img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .loc-card:last-child {
        grid-column: span 2;
        justify-self: center; 
        width: calc(50% - 6px); 
    }
}

/* Outlined secondary button */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.15);
    transform: translateY(-2px);
}

/* Mobile hero fix */
@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 100px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero .subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .btn {
        padding: 13px 24px;
        font-size: 0.95rem;
    }
}
.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}


.cta-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.footer-col.links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.image-frame {
    padding: 0;
}

/* --- SPEEDTEST: layout --- */
.speedbox {
    width: 100%;
    padding: 1.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    box-sizing: border-box;
    background: transparent;
    position: relative;
}

.speed-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 43%;
    max-width: 43%;
    padding: 0;
}

.number-wrap {
    display: inline-block;
    text-align: center;
}

.speed-col--left { align-items: flex-start; text-align: left; padding-left: 0.4rem; }
.speed-col--right { align-items: flex-end; text-align: right; padding-right: 0.4rem; }

.speed-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.speed-value {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 6.4rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.speed-unit {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (min-width: 1600px) {
    .speed-col { max-width: 720px; }
}

@media (max-width: 900px) {
    .speedbox {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 2rem 0.5rem;
        gap: 0.5rem;
        min-height: auto;
    }
    .speed-col {
        flex: 1;
        max-width: 50%;
    }
    .speed-value {
        font-size: clamp(2.2rem, 10vw, 2rem);
    }
    .speed-label, .speed-unit {
        font-size: 0.8rem;
    }
    .number-wrap { display: block; width: 100%; }
}

@media (max-width: 420px) {
    .speed-value {
        font-size: clamp(1.4rem, 10vw, 2.0rem);
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition-property: opacity, transform;
    transition-duration: 0.9s;
    transition-timing-function: cubic-bezier(0.24, 1, 0.22, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.speedtest-logo {
    margin: 8px 0 4px 0;
    opacity: 0.6;
}

.speedtest-logo img {
    height: 18px;
    filter: brightness(0) saturate(100%) invert(79%) sepia(8%) saturate(265%) hue-rotate(180deg) brightness(92%) contrast(90%);
    opacity: 1;
}

@media (max-width: 600px) {
    .speedtest-logo {
        margin-top: 8px;
    }
    .speedtest-logo img {
        height: 16px;
        opacity: 0.9; /* такой же оттенок, как на десктопе */
    }
}

/* Keyframes */
@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}