: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;
}

/* 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: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.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;
}

.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: 0;
}

.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;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #fda4af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero .subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.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: 80px 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;
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

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

/* SPEED SECTION */
.speed-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-main), #0b1120);
    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;
}

/* STEPS */
.steps {
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.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;
    color: rgba(255,255,255,0.03);
    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;
}

.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: 80px 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;
}

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

.flag-wrap {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    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.5rem;
    }
    .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;
    }
}

/* NAV links (оставил здесь для читаемости) */
.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* CTA note */
.cta-note {
    margin-top: 12px;
    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; }
}