:root {
    --bg-dark: #0F1117;
    --neon-blue: #00F0FF;
    --neon-darkblue: #00eeff7c;
    --neon-purple: #B967FF;
    --text-primary: #E0E0E0;
    --warning: #FF4655;
    --success: #2ECC71;
}

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

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image:
            radial-gradient(circle at 20% 30%, rgba(11, 72, 107, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(185, 103, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

body.loaded {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Структура для ScrollSmoother */
#smooth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#smooth-content {
        /*will-change: transform;*/
        /*transform: translateZ(0);*/
        overflow: visible;
        min-height: 100vh; /* Минимум на весь экран */
        height: auto !important; /* Автоматическая высота */
        padding-bottom: 100px; 
}

/* Секции */
.page {
    min-height: 100vh;
    /*padding: 80px 20px;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /*padding-top: calc(80px + 30vh);*/
}

/* Параллакс фон */
.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('../images/photo_1.jpg') center/cover;
    z-index: -3;
    opacity: 0.2;
}

.logo-h1 {
    height: 1.5em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
}

.video-parallax-container {
    position: fixed;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%); 
    width: 60vw; 
    height: 70vh;
    z-index: -1;
    overflow: visible; 
}

/* ADD */
.parallax-video {
    width: clamp(30vw, 100%, 50vh);
    /*height: 30vh;*/
    object-fit: contain; 
    object-position: bottom;
    transform-origin: center center;
    will-change: transform;
    display: block;
}

/* ADD */
.video-parallax-container, .parallax-video {
    transition: transform 0.1s ease-out;
}

/* ADD */
a:not(.btn) {
    color: var(--neon-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

/* ADD */
a:not(.btn):visited {
    color: var(--neon-darkblue);
}

/* Навигация справа */
.pagination {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateZ(0); 
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 2.5vh 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pagination-dot.active {
    background: var(--neon-purple);
    transform: scale(1.5);
}

.pagination-dot::after {
    content: attr(data-index);
    position: absolute;
    right: 25px;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.3s;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.pagination-dot:hover::after {
    opacity: 1;
}

/* Контент */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    padding: 0 20px;
}

.hero-content {
    /*max-width: 800px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

h1 {
    font-size: clamp(2rem, 7vw, 4.5rem);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin: 5px 8px 0.5vw 8px; 
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: clamp(1vw, 2vw, 15px) clamp(1vw, 4vw, 35px);
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin: 15px;
    /*margin-bottom: 15px;*/
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--neon-blue);
}

.vm-create-btn {
    background: transparent;
    border: 2px solid var(--neon-blue);
}

.case-tip.unavailable {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.btn.unavailable {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.btn.unavailable:hover {
    transform: none !important;
    box-shadow: none !important;
}

.usage-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Как это работает */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

.step {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 30px;
    background: rgba(25, 32, 45, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

/* Стили для ссылок в шаге 1 */
.step-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

.step-content {
    flex: 1;
    margin-bottom: 20px;
}

/* Стили для кнопок (шаг 1) */
.step-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    flex-wrap: wrap; /* Разрешаем перенос на новую строку */
}

.step-actions .btn {
    flex: 0 0 auto; /* Кнопки не растягиваются */
    min-width: 160px; /* Увеличиваем минимальную ширину */
    padding: 12px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Стили для изображений в шагах 2 и 3 */
.step-image {
    margin-top: auto;
    padding-top: 20px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.step-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease; /* ADD */
    transform-origin: center bottom; /* ADD */
}

/* ADD */
.step-image img:hover {
    transform: scale(1.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(185, 103, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--neon-purple);
    border: 1px solid rgba(185, 103, 255, 0.3);
}

.ping-checker {
    background: rgba(25, 32, 45, 0.7);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    margin: 50px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Преимущества */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background: rgba(25, 32, 45, 0.7);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(185, 103, 255, 0.1));
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

/* Тарифы */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(25, 32, 45, 0.7);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
}

/* Гайд по настройке */
.guide-container {
    max-width: 1000px;
    margin: 40px auto 0;
}

.guide-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.stepper-progress {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.stepper-progress:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.3s ease;
}

.guide-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 18%;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(25, 32, 45, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.guide-step.active .step-icon {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.5);
}

.step-title {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-primary);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.guide-step.active .step-title {
    opacity: 1;
    color: var(--neon-blue);
    font-weight: bold;
}

.guide-content {
    background: rgba(25, 32, 45, 0.7);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.guide-detail {
    display: none;
    animation: fadeIn 0.5s ease;
}

.guide-detail.active {
    display: block;
}

.detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.detail-header h3 {
    font-size: 1.5rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
}

.detail-header h3 i {
    margin-right: 10px;
}

.detail-body {
    line-height: 1.6;
}

.detail-body p {
    margin-bottom: 15px;
}

.detail-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.detail-body li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.detail-body li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--neon-purple);
    font-size: 1.2rem;
}

.guide-tip {
    background: rgba(0, 240, 255, 0.1);
    border-left: 3px solid var(--neon-blue);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.guide-tip.important {
    background: rgba(255, 70, 85, 0.1);
    border-left-color: var(--warning);
}

.guide-tip h4 {
    color: var(--neon-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.guide-tip h4 i {
    margin-right: 8px;
}

.guide-tip.important h4 {
    color: var(--warning);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Форма регистрации */
.register-form {
    max-width: 500px;
    margin: 40px auto 0;
    background: rgba(25, 32, 45, 0.7);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--neon-blue);
}

/* Футер */
footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(15, 23, 42, 0.7);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивность */
@media (max-width: 992px) {
    .step {
        flex: 0 0 48%;
        margin-bottom: 25px;
    }
}

@media  (max-height: 768px) or (max-width: 768px)  {
    h1 {
        font-size: 8vw;
    }

    h2 {
        font-size: 5vw;
    }

    h3 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        flex: 0 0 100%;
    }

    .step-links {
        flex-direction: row;
        justify-content: center;
    }

    .step-actions {
        flex-direction: column;
        gap: 8px;
    }

    .step-actions .btn {
        width: 100%;
    }

    .step-image {
        height: 100px;
    }


    .pagination {
        right: 15px;
    }

    /*.pagination-dot {
        pointer-events: auto !important;
    }*/

    #smooth-wrapper {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
        pointer-events: none; 
    }

    #smooth-content {
        position: relative !important;
        /*transform: none !important;*/
        height: auto !important;
        pointer-events: auto;
        padding-bottom: 0px; 
    }

    body {
        overflow: auto !important;
        height: auto !important;
        position: relative !important;
    }

    .page {
        height: auto !important;
        min-height: 100vh !important;
        /*padding-top: calc(60px + 25vh);*/
    }

    .guide-stepper {
        margin-bottom: 30px;
    }

    .step-image:hover img {
        transform: scale(1.03);
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .guide-content {
        padding: 20px;
    }

    .detail-header h3 {
        font-size: 1.3rem;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .use-case-card {
        padding: 20px;
    }

    .cta-box {
        padding: 30px 20px;
    }


    .hero-content h2 {
        flex-direction: column;
        align-items: flex-start;
    }

    .rotating-words-wrapper {
        height: 2.8rem;
    }

    .rotating-words {
        font-size: 2rem;
    }

    .rotating-words span {
        height: 2.8rem;
        line-height: 2.8rem;
    }

    .usage-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .demo-video iframe {
        height: 300px;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }
}


/* Floating Network Monitor - Compact Version */
.network-monitor {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.3s;
    cursor: pointer;
}

.network-monitor:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 240, 255, 0.2);
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.monitor-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--success);
    animation: pulse 1.5s infinite;
}

.monitor-values {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 5px;
}

.metric-label {
    color: rgba(224, 224, 224, 0.7);
}

.metric-value {
    font-weight: bold;
}

.ping-value {
    color: var(--neon-blue);
}

.jitter-value {
    color: var(--neon-purple);
}

.best-server {
    color: var(--success);
    font-weight: bold;
    margin-right: 10px;
}

/* Expanded content */
.monitor-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.monitor-details.expanded {
    display: block;
}

.server-list {
    margin: 10px 0;
}

.server-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.8rem;
}

.server-name {
    color: rgba(224, 224, 224, 0.8);
}

.server-ping {
    font-weight: bold;
}

.good-ping {
    color: var(--success);
}

.medium-ping {
    color: var(--neon-blue);
}

.bad-ping {
    color: var(--warning);
}

.gpu-list {
    margin-top: 10px;
    font-size: 0.8rem;
}

.gpu-item {
    display: flex;
    align-items: center;
    padding: 3px 0;
}

.gpu-icon {
    margin-right: 5px;
    color: var(--neon-purple);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.hero-content h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    /*margin-bottom: 1rem;*/
    font-size: clamp(1rem, 3vw, 2.5rem);
}

.hero-text-container h2 {
    margin: 0.3rem 0;
    line-height: 1.3;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
        max-width: 1200px;
        width: 90%;
    margin: 0 auto;
        /*padding: 20px;*/
}

.rotating-words-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0;
        height: calc(clamp(1.5rem, 3vw, 2.7rem) * 1.4); /* Адаптивная высота */
    }
    
    
    .rotating-words span {
        display: flex;
        align-items: center;
        justify-content: center;
        height: calc(clamp(1.5rem, 3vw, 2.7rem) * 1.4);  /* Синхронизировано с размером шрифта */
        line-height: 1;
        white-space: nowrap;
        padding: 0 0.5rem;
}

.rotating-words {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    will-change: transform;
        font-size: clamp(1.2rem, 3vw, 2.5rem); 
    font-weight: bold;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* FAQ Container */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Item */
.faq-item {
    background: rgba(25, 32, 45, 0.7);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

/* FAQ Question */
.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-purple);
    transition: transform 0.3s ease;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0px 40px;
    transition: all 0.3s ease;
    border-top: 1px solid transparent;
}

.faq-answer p {
    margin: 0;
    padding: 10px 0 20px;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Active State */
.faq-item.active .faq-answer {
    max-height: 1200px;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.demo-video {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.demo-video iframe {
    width: 100%;
    height: 450px;
    border: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/*body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #fff;
    min-height: 100vh;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}*/

/*.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}*/

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px;
}

/*h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}*/

/*h1:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    border-radius: 2px;
}*/

.subtitle {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Стили для пошаговой диаграммы */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0 20px;
    padding: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.stepper:before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    z-index: 1;
}

.stepper-progress {
    position: absolute;
    top: 30px;
    left: 30px;
    height: 4px;
    background: linear-gradient(to right,var(--neon-purple), var(--neon-blue));
    /*background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));*/
    border-radius: 3px;
    z-index: 2;
    width: 0;
    transition: width 0.5s ease;
}

.stepguide {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    min-width: 60px;
    cursor: pointer;
    padding: 0 5px;
    flex-shrink: 0;
}

.stepguide:hover {
    transform: translateY(-5px);
}

.stepguide-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a2a6c, #2c3e8f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stepguide-circle:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    z-index: -1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stepguide.active .stepguide-circle {
    transform: scale(1.1);
    /*box-shadow: 0 8px 20px var(--neon-blue);*/
    box-shadow: 0 8px 20px var(--neon-darkblue);
}

.stepguide.active .stepguide-circle:before {
    opacity: 1;
}

.stepguide-title {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(to right, var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 3px 8px;
    border-radius: 8px;
}

/* Горизонтальный блок с описанием */
.step-details-container {
    background: rgba(25, 40, 65, 0.85);
    border-radius: 15px;
    padding: 0;
    margin: 20px auto 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    width: calc(100% - 20px);
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.step-details-container.active {
    max-height: 2000px;
    padding: 20px;
    min-height: 200px;
}

.step-detail {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.step-detail.active {
    display: block;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid --neon-darkblue;
}

.detail-title {
    font-size: 1.3rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    flex: 1;
}

.detail-title i {
    margin-right: 10px;
    background: linear-gradient(to right, var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

.detail-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-indicator {
    background: rgba(95, 170, 255, 0.2);
    color: var(--neon-blue);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.close-btn {
    background: var(--neon-purple);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    transform: rotate(90deg);
    background: var(--neon-blue);
}

.detail-body {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.detail-body p {
    margin-bottom: 12px;
}

.detail-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.detail-body li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-body li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff7e5f;
    font-weight: bold;
}

.detail-body li.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

.detail-body li.completed:before {
    color: #4CAF50;
}

.tips {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--neon-purple);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
    font-size: 0.9rem;
}

.tips h4 {
    color: var(--neon-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.tips h4 i {
    margin-right: 6px;
}

.warning {
    color: #ffcc00;
    font-weight: bold;
}

.important {
    color: #ff6b6b;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    /*max-width: 800px;*/
}

/* Адаптивность */

@media (max-width: 576px) and (orientation: portrait) {
    .btn {
        display: block;
        width: 100%;
        
    }
}

@media (max-width: 576px) or (max-height: 576px) {
    .btn {
        /* display: block; */
        /* width: 100%; */
        margin-left: 0;
    }
}
@media (min-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /*h1 {
        font-size: 2.2rem;
    }*/

    /* .subtitle {
    font-size: 1.1rem;
    }*/

    .stepguide {
        width: 70px;
        min-width: 70px;
    }

    .stepguide-circle {
        width: 70px;
        height: 70px;
        font-size: 22px;
    }

    .stepguide-title {
        font-size: 1rem;
    }

    .step-details-container.active {
        padding: 25px;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .pagination {
        display: true;
    }
}

    @media (min-width: 768px) {
        /*body {
        padding: 30px 20px;
        }*/

    header {
        margin-bottom: 40px;
        padding: 15px;
    }

    /*h1 {
        font-size: 3.5rem;
    }*/

    /* .subtitle {
        font-size: 1.15rem;
    }*/

    .stepper {
        margin: 50px 0 30px;
        padding-bottom: 0;
        overflow-x: visible;
    }

    .stepper:before, .stepper-progress {
        top: 35px;
        left: 35px;
        right: 35px;
        height: 5px;
    }

    .stepguide {
        width: 80px;
        min-width: 80px;
    }

    .stepguide-circle {
        width: 80px;
        height: 80px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .stepguide-title {
        font-size: 1.1rem;
    }

    .step-details-container.active {
        padding: 30px;
        margin: 30px auto 40px;
        border-radius: 20px;
    }

    .detail-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .detail-title {
        font-size: 1.7rem;
    }

    .detail-body {
        font-size: 1.05rem;
    }

    .detail-body li {
        font-size: 1rem;
    }

    .tips {
        font-size: 1rem;
    }

    .tips h4 {
        font-size: 1.1rem;
    }

    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

@media (min-width: 992px) {
    .stepguide {
        width: 90px;
        min-width: 90px;
    }

    .stepguide-circle {
        width: 90px;
        height: 90px;
    }

    .step-details-container {
        max-width: 1000px;
    }
}

@media (min-width: 1200px) {
    .stepper:before, .stepper-progress {
        top: 40px;
        left: 40px;
        right: 40px;
        height: 6px;
    }

    .stepguide {
        width: 100px;
        min-width: 100px;
    }

    .stepguide-circle {
        width: 100px;
        height: 100px;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 10px;
    }

    header {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 8vh;
        margin-bottom: 8px;
    }

    h2 {
        font-size: 3vw;
    }

    .subtitle {
       font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .stepper {
        margin: 20px 0;
    }

    .stepguide-circle {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .stepguide-title {
        font-size: 0.8rem;
    }

    .step-details-container.active {
        padding: 15px;
        margin: 15px auto 20px;
        min-height: 150px;
    }

    .detail-title {
        font-size: 1.1rem;
    }

    .detail-body {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .detail-body li {
        font-size: 0.8rem;
    }
}

/* Стили для секции с кейсами */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.use-case-card {
    background: rgba(25, 32, 45, 0.7);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;  /* ADD */
    flex-direction: column;  /* ADD */
    height: 100%;  /* ADD */
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

.case-header {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.case-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 240, 255, 0.3);
    flex-shrink: 0; 
}

.use-case-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0; 
    color: var(--neon-blue);
}

.use-case-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.use-case-card li {
    margin-bottom: 10px;
    position: relative;
    /*padding-left: 25px;*/
    font-size: 0.95rem;
}

.use-case-card li:before {
    /*content: '•';*/
    position: absolute;
    left: 0;
    color: var(--neon-purple);
    font-size: 1.2rem;
}

.case-tip {
    background: rgba(0, 240, 255, 0.1);
    border-left: 3px solid var(--neon-blue);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(185, 103, 255, 0.1));
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 50px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

