:root {
    --bg-color: #050507;
    --text-color: #e0e0e0;
    --primary-color: #7000ff;
    --secondary-color: #00f2ea;
    --accent-color: #ff0055;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --section-spacing: 150px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-color), var(--primary-color));
}

/* Dynamic Background */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050507 100%);
    z-index: -2;
}


.floating-shapes div {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 40%;
    left: 40%;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.05rem;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(112, 0, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Language Switcher */
.lang-switch {
    list-style: none;
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #b0b0b0;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-switch button:hover {
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.3);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #b0b0b0;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

/* Sections General */
section {
    padding: var(--section-spacing) 0;
}

h2 {
    font-size: 3rem;
    margin-bottom: 70px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* About Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.info-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.info-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.info-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: white;
}

.info-item p {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Tech Stack Carousel */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

.carousel-track-container {
    height: 550px;
    position: relative;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    gap: 15px;
}

.carousel-indicator {
    border: none;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.current-slide {
    background: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.process-step {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.1);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.process-step h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.4rem;
}

.process-step p {
    color: #b0b0b0;
    font-size: 1rem;
}

/* FAQ */
#faq h2 {
    margin-bottom: 40px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-bg);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

.faq-toggle {
    font-size: 1.4rem;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 18px;
    max-height: 300px;
}

.faq-answer p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Calculator Styles */
.calc-subtitle {
    text-align: center;
    color: #888;
    margin-top: -50px;
    margin-bottom: 60px;
    font-size: 1.2rem;
}

.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.calc-section {
    margin-bottom: 60px;
}

.calc-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: white;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.calc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.calc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    padding-top: 40px;
    /* Space for info icon */
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
    /* Allow tooltip to overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.calc-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.calc-card.selected {
    border-color: var(--secondary-color);
    background: rgba(0, 242, 234, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.calc-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.calc-card p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.price-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.total-display {
    text-align: center;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 242, 234, 0.1));
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

.total-label {
    display: block;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.total-amount-wrapper {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 30px rgba(112, 0, 255, 0.5);
    line-height: 1;
    margin-bottom: 20px;
}

.range-separator {
    display: inline-block;
    margin: 0 8px;
    font-weight: 500;
    opacity: 0.8;
}


.currency {
    color: var(--secondary-color);
}

/* NEW: вывод сроков в калькуляторе */
.total-time-wrapper {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.total-time-wrapper span:last-child {
    font-size: 1rem;
    color: #b0b0b0;
}

/* Tooltips */
.info-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    border: 1px solid var(--glass-border);
    cursor: help;
    transition: all 0.3s;
    z-index: 20;
}

/* Буква "i" внутри кружка подсказки */
.info-icon::before {
    content: "i";
    line-height: 1;
}


.info-icon:hover {
    background: var(--secondary-color);
    color: black;
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Tooltip Bubble */
.info-icon::after {
    content: attr(data-tooltip-text);
    position: absolute;
    bottom: 140%;
    right: -10px;
    width: 250px;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 100;
    white-space: normal;
}

.info-icon:hover::after {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px);
}

/* Terms Section */
#terms {
    margin-top: 50px;
    padding-top: 50px;
}

.highlight-text {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Contact */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-note {
    text-align: center;
    color: #a0a0a0;
    margin: -30px auto 30px;
    max-width: 520px;
    font-size: 0.98rem;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 30px 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.contact-form label {
    font-size: 0.9rem;
    color: #cccccc;
}

.contact-form input,
.contact-form textarea {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: none;
}


.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 242, 234, 0.3);
}


/* Обёртка вокруг textarea, чтобы можно было позиционировать счётчик */
.textarea-wrapper {
    position: relative;
}

/* Само поле — добавим отступ справа, чтобы цифры не налезали на текст */
.textarea-wrapper textarea {
    width: 100%;
    padding-right: 80px; /* место под "123/1000" */
    resize: none; /* чтобы не растягивался уголком */
}

/* Счётчик символов в правом нижнем углу */
.textarea-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 0.8rem;
    color: #777;
    pointer-events: none; /* чтобы не мешал кликать в textarea */
}


.form-hint {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.form-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.form-status {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #a0ffa8;
}


.contact-btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-btn .icon {
    font-size: 1.3rem;
}

.contact-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

.telegram {
    background: linear-gradient(45deg, #0088cc, #00aaff);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
}

.whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.email {
    background: linear-gradient(45deg, #EA4335, #C5221F);
    box-shadow: 0 10px 20px rgba(234, 67, 53, 0.3);
}

/* Footer */
#contact {
    padding-top: 70px;
    padding-bottom: 70px;
}

#contact h2 {
    margin-top: 0;
}



footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: #666;
    margin-top: 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}



.hamburger {
    display: none;
}

/* Анимация появления при прокрутке */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
    will-change: opacity, transform;
}

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


/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #050507;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        padding: 0;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .carousel-track-container {
        height: 300px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 6px;
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 7px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -7px);
    }

    .calc-options-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        margin-top: 30px;
        padding: 24px 18px;
    }

    .contact-note {
        margin-top: -20px;
        margin-bottom: 20px;
        padding: 0 15px;
    }

}