body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0D0D0D;
    color: #ffffff;
    overflow-x: hidden;
}
main {
    position: relative;
    z-index: 10;
    background-color: #0D0D0D; 
    padding-top: 80px;
}
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toast-success {
    background: rgba(30, 130, 76, 0.8);
    backdrop-filter: blur(5px);
}
.toast-error {
    background: rgba(192, 57, 43, 0.8);
    backdrop-filter: blur(5px);
}
.toast i {
    font-size: 1.5rem;
}
.toast p {
    margin: 0;
    font-weight: 500;
}
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}

.hero-split-screen {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    background-color: #0D0D0D;
}
.hero-video-side {
    width: 60%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13,13,13,0) 70%, #0D0D0D 100%);
}
.hero-content-side {
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5vw;
    box-sizing: border-box;
}
.hero-content-inner {
    max-width: 500px;
    text-align: left;
}
.hero-content-inner h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: #FF6B00;
}
.hero-content-inner p {
    font-size: 1.2rem;
    color: #ccc;
    margin: 2rem 0;
    line-height: 1.6;
}
.cta-button {
    background: #FF6B00;
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.cta-button:hover {
    background: #ff8533;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    transform: translateY(-3px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .hero-split-screen {
        flex-direction: column;
        height: auto; /* Высота подстраивается под контент */
    }
    .hero-video-side {
        width: 100%;
        height: 60vh;
    }
    .hero-content-side {
        width: 100%;
        padding: 40px 20px;
    }
    .hero-content-inner {
        text-align: center;
    }
}

.spacer-section { height: 50vh; }

/* === Горизонтальний скрол === */
.horizontal-scroll-container { height: 100vh; width: 100%; overflow: hidden; }
.panels-wrapper { display: flex; width: 200%; height: 100%; position: relative; }
.panel { width: 100vw; height: 100vh; flex-shrink: 0; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.about-panel { padding: 0; align-items: stretch; justify-content: stretch; }
.split-panel-container { position: relative; width: 100%; height: 100%; }
.split-panel__left { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-color: #FF6B00; color: #0D0D0D; display: flex; justify-content: center; align-items: center; z-index: 2; }
.company-name-large { font-size: 9vw; font-weight: 900; line-height: 0.9; text-align: center; }
.split-panel__right { width: 60%; height: 100%; position: absolute; top: 0; right: 0; background-color: #111214; padding: 5vw; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; text-align: left; z-index: 1; }
.split-panel__right h4 { font-size: 2.5rem; color: #FF6B00; margin-bottom: 2rem; }
.split-panel__right p { font-size: 1.2rem; line-height: 1.8; max-width: 60ch; color: #ccc; }
.marquee-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 3; display: flex; flex-direction: column; justify-content: space-around; }
.marquee-row { width: 100%; overflow: hidden; }
.marquee-content { display: flex; width: fit-content; animation: marquee-scroll 40s linear infinite; }
.marquee-content.marquee-reverse { animation-name: marquee-scroll-reverse; }
.marquee-content span { font-size: 6vw; font-weight: 900; text-transform: uppercase; white-space: nowrap; padding-right: 50px; color: transparent; -webkit-text-stroke: 2px #0D0D0D; text-shadow: 0 0 8px rgba(255, 107, 0, 0.4); }
@keyframes marquee-scroll { from { transform: translateX(0%); } to { transform: translateX(-50%); } }
@keyframes marquee-scroll-reverse { from { transform: translateX(-50%); } to { transform: translateX(0%); } }

/* === Панель з командою (ефект "Прожектор") === */
.team-parallax-section {
    position: relative;
    z-index: 10;
    padding: 100px 0;
    background-color: #0D0D0D;
    min-height: 120vh; /* Висота для ефекту паралаксу */
}
.team-title { 
    font-size: 3rem; 
    margin-bottom: 80px; 
    text-align: center;
}
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}
.team-card-wrapper {
    perspective: 1500px;
}
.team-card {
    position: relative;
    height: 450px;
    cursor: pointer;
}
/* Початковий стан для карток з різною швидкістю */
.team-card[data-speed="0.9"] {
    transform: scale(0.95);
}
.team-card[data-speed="1.1"] {
    z-index: 5; /* "Ближчі" картки знаходяться поверх "далеких" */
}

.team-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.team-card__front, .team-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1A1A1A;
    border: 1px solid #282828;
    animation: neon-glow 2.5s ease-in-out infinite alternate;
}
@keyframes neon-glow { 
    from { box-shadow: 0 0 5px #111, 0 0 10px #111; } 
    to { box-shadow: 0 0 15px #FF6B00, 0 0 25px rgba(255, 107, 0, 0.5); } 
}
.team-card__front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card__back {
    transform: rotateY(180deg);
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.team-card__back h4 { font-size: 1.8rem; color: #FF6B00; margin: 0 0 5px 0; }
.team-card__back h5 { font-size: 1rem; color: #999; margin: 0 0 20px 0; font-weight: 400; font-style: italic; }
.team-card__back p { font-size: 1rem; line-height: 1.6; color: #ccc; }

/* Секція з формою */
.form-section { position: relative; z-index: 10; background-color: #111; padding: 150px 40px; display: flex; justify-content: center; align-items: center; }
.form-container { background: #1A1A1A; padding: 40px; border-radius: 12px; border: 1px solid #333; width: 100%; max-width: 450px; }
.form-container h3 { font-size: 2rem; margin-bottom: 2rem; color: #FF6B00; text-align: center; }
.form-container form { display: flex; flex-direction: column; gap: 1rem; }
.form-container input, .form-container button { background: #222; border: 1px solid #444; color: white; padding: 1rem; border-radius: 5px; font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.3s ease; }
.form-container input:focus { outline: none; border-color: #FF6B00; box-shadow: 0 0 10px #FF6B00; }
.form-container button { background: #FF6B00; border: none; font-weight: bold; cursor: pointer; }
.form-container button:hover { background: #ff8533; box-shadow: 0 0 15px #FF6B00; }


.services-3d-hub {
    height: 200vh; /* Высота для анимации "вылета" и прилипания */
    position: relative;
    z-index: 10;
}
.services-3d-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}
#services-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; 
    z-index: 2;
    cursor: grab;
}
#services-canvas:active {
    cursor: grabbing;
}
.hub-marquee-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background-color: #0D0D0D;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.hub-marquee-background .marquee-row { width: 100%; overflow: hidden; }
.hub-marquee-background .marquee-content { display: flex; width: fit-content; animation: marquee-scroll 60s linear infinite; }
.hub-marquee-background .marquee-content.marquee-reverse { animation-name: marquee-scroll-reverse; }
.hub-marquee-background .marquee-content span { font-size: 5vw; font-weight: 900; text-transform: uppercase; white-space: nowrap; padding-right: 50px; color: rgba(255, 107, 0, 0.05); }
@keyframes marquee-scroll { from { transform: translateX(0%); } to { transform: translateX(-50%); } }
@keyframes marquee-scroll-reverse { from { transform: translateX(-50%); } to { transform: translateX(0%); } }

#services-labels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}
.service-icon-label {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #FF6B00;
    pointer-events: none;
    border: 1px solid rgba(255, 107, 0, 0.5);
    position: relative;
}
.service-icon-label::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #FF6B00;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}
.service-icon-label.is-hinted::after {
    animation: sonar-pulse 2s ease-out infinite;
}
@keyframes sonar-pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.service-3d-description {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 380px;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    color: white;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-3d-description[style*="opacity: 1"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.service-desc-video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}
.service-desc-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-3d-description h3 { 
    font-size: 2rem; 
    color: #FF6B00; 
    margin: 0 0 15px 0; 
    text-align: left;
    font-weight: 700;
}
.service-3d-description p { 
    font-size: 1.1rem; 
    line-height: 1.6; 
    color: #e0e0e0;
    text-align: left;
    font-weight: 400;
    flex-grow: 1;
}
.consult-button, .back-button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    pointer-events: auto;
}
.consult-button {
    background-color: #FF6B00;
    border: none;
    color: white;
    margin-top: 20px;
}
.back-button {
    background-color: transparent;
    border: 1px solid #555;
    color: #aaa;
    margin-top: 10px;
}
.back-button:hover {
    background-color: #222;
    color: white;
    border-color: #777;
}
/* === Стили для мобильного аккордеона === */
.services-accordion-mobile {
    display: none; /* Скрыто на десктопе по умолчанию */
    padding: 80px 20px;
    background-color: #111;
}
.accordion-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.accordion-item {
    background-color: #1A1A1A;
    border-radius: 12px;
    border: 1px solid #282828;
    overflow: hidden;
}
.accordion-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}
.accordion-question span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}
.accordion-question span i {
    color: #FF6B00;
    font-size: 1.5rem;
    width: 25px; /* Для выравнивания */
}
.accordion-question > i.fa-chevron-down {
    font-size: 1rem;
    color: #888;
    transition: transform 0.4s ease;
}
.accordion-item.active .accordion-question > i.fa-chevron-down {
    transform: rotate(180deg);
    color: #FF6B00;
}
.accordion-answer {
    height: 0;
    overflow: hidden;
}
.accordion-answer p {
    padding: 0 20px 20px 20px;
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}
.accordion-answer .cta-button {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

/* === Адаптивность для секций === */
@media (max-width: 768px) {
   body {
        overflow-x: hidden;
    }
    .horizontal-scroll-container {
        height: auto;
        overflow: hidden;
    }
    .services-3d-hub {
        display: none; /* Скрываем 3D-сцену на мобильных */
    }
    .services-accordion-mobile {
        display: block; /* Показываем аккордеон на мобильных */
    }
   body {
        overflow-x: hidden;
    }
    .horizontal-scroll-container {
        height: auto;
        overflow: hidden;
    }
     .panels-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        transform: none !important; 
    }
    .panel {
        width: 100%; /* ИЗМЕНЕНИЕ */
        height: auto;
        min-height: 100vh;
        box-sizing: border-box;
    }
    .split-panel-container {
        flex-direction: column;
        height: auto;
    }
    .split-panel__left, .split-panel__right {
        width: 100%;
        position: relative;
        height: auto;
        min-height: 50vh;
        padding: 40px;
        box-sizing: border-box;
    }
    .company-name-large {
        font-size: 18vw;
    }
    .marquee-background {
        display: none; /* Скрываем бегущую строку на мобильных */
    }
    .testimonial-carousel-panel {
        display: none;
    }
}
.testimonial-carousel-panel {
    flex-direction: column;
    background-color: #111;
}
.section-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 60px;
    text-align: center;
}
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.carousel-viewport {
    width: 500px;
    height: 100%;
    overflow: visible;
    position: relative;
}
.carousel-track {
    display: flex;
    position: relative;
    height: 100%;
    align-items: center;
}
.review-slide {
    width: 500px;
    height: 100%;
    flex-shrink: 0;
    margin: 0 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    opacity: 0.5;
}
.review-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid #444;
    color: #FF6B00;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}
.carousel-button:hover {
    background-color: #FF6B00;
    color: white;
}
.carousel-button.desktop-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-button.desktop-nav.prev {
    left: calc(50% - 400px);
}
.carousel-button.desktop-nav.next {
    right: calc(50% - 400px);
}
.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.carousel-nav-mobile {
    display: none;
}
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px; 
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#grid-item-1 { grid-column: 1 / 3; }
#grid-item-2 { grid-column: 3 / 4; }
#grid-item-3 { grid-column: 1 / 2; }
#grid-item-4 { grid-column: 2 / 3; }
#grid-item-5 { grid-column: 3 / 4; }

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.grid-item:hover img {
    transform: scale(1.05);
}
.grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    box-sizing: border-box;
}
.grid-item:hover .grid-item-overlay {
    opacity: 1;
}
.grid-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}
.grid-item:hover .grid-item-caption {
    transform: translateY(0);
}
.grid-item-caption h4 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 2px 5px black;
}

/* Стили для модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Делаем кликабельным */
}
.modal-content {
    position: relative;
    background: #1A1A1A;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #333;
    width: 100%;
    max-width: 450px;
    text-align: center;
     transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-close:hover {
    color: #FF6B00;
    transform: rotate(90deg);
}
.modal-content h3 {
    font-size: 2rem;
    color: #FF6B00;
    margin: 0 0 15px 0;
}
.modal-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-form input, .modal-form textarea {
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.modal-form input:focus, .modal-form textarea:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 10px #FF6B00;
}
.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.phone-prefix {
    position: absolute;
    left: 1rem;
    color: #888;
    font-size: 1rem;
    pointer-events: none; /* Чтобы можно было кликнуть сквозь префикс */
}
.modal-form input[type="tel"] {
    padding-left: 55px; /* Освобождаем место для префикса +380 */
    width: 100%;
}
.step-guide-section {
    position: relative;
    z-index: 10;
    padding: 100px 5vw;
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}
.pattern-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ИСПРАВЛЕНИЕ: Убраны лишние символы из URL */
    background-image: url("http://www.w3.org/2000/svg");
    z-index: 1;
}
.pattern-spotlight {
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    transition: top 0.5s ease-out, left 0.5s ease-out;
}
.guide-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 60px;
    text-align: center;
}
.guide-slider {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
}
.guide-track {
    display: flex;
    /* ИСПРАВЛЕНИЕ: Убрана фиксированная ширина, JS рассчитает смещение */
}
.guide-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide-content {
    text-align: center;
    max-width: 600px;
}
.step-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 107, 0, 0.1);
    line-height: 1;
}
.step-icon {
    font-size: 4rem;
    color: #FF6B00;
    margin: 20px 0;
}
.slide-content h3 {
    font-size: 2.5rem;
    color: white;
    margin: 10px 0 20px 0;
}
.slide-content p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.7;
}
.guide-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}
.guide-nav-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #222;
    border: 1px solid #444;
    color: #FF6B00;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.guide-nav-button:hover:not(:disabled) {
    background-color: #FF6B00;
    color: white;
    transform: scale(1.1);
}
.guide-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.guide-dots {
    display: flex;
    gap: 15px;
}
.guide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #444;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.guide-dot.active {
    background-color: #FF6B00;
}
.team-section {
    position: relative;
    z-index: 10;
    padding: 100px 5vw;
    background-color: #111;
    overflow: hidden;
}
.team-gallery-track {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 600px;
    width: 100%;
}
.team-member-card {
    flex-grow: 1;
    flex-basis: 0;
    height: 500px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: flex-grow 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}
.team-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #222;
}
.team-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.team-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    text-align: left;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
    pointer-events: none;
}
.team-info h3 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}
.team-info h5 {
    font-size: 1rem;
    color: #ccc;
    font-weight: 400;
}

/* === ИЗМЕНЕНИЕ: Адаптивность для секции "Наша команда" === */
@media (max-width: 992px) {
    .team-section {
        padding: 80px 20px;
        /* ИЗМЕНЕНИЕ: Убираем overflow, чтобы контент не обрезался */
        overflow: visible;
    }
    .team-gallery-track {
        flex-direction: column;
        height: 1000px !important; 
        gap: 30px;
    }
    .team-member-card {
        width: 100%;
        max-width: 400px;
        height: 500px;
        flex-grow: 1 !important;
    }
    .team-info {
        opacity: 1;
        transform: translateY(0);
    }
    .team-member-card:hover img {
        transform: scale(1.05);
    }
     .step-guide-section {
        padding: 80px 20px;
    }
    .guide-slide {
        padding: 20px 0;
    }
    .step-number {
        font-size: 6rem;
    }
    .slide-content h3 {
        font-size: 2rem;
        word-break: break-word; /* Добавляем перенос слов */
        white-space: normal;
    }
    .slide-content p {
        font-size: 1rem;
        width: 300px;
    }
    .test {
        margin: 0 auto;
    }
}
#form-message {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 500;
    min-height: 1.5em; /* Резервируем место, чтобы форма не "прыгала" */
}
/* Адаптивность */
@media (max-width: 992px) {
    /* ... (стили для мобильного хедера) ... */
    .team-gallery-track {
        flex-direction: column;
        height: auto;
        gap: 30px;
    }
    .team-member-card {
        width: 100%;
        max-width: 400px;
        height: 500px;
    }
}
.spacer-section {
    height: 50vh;
    background-color: #111;
}

/* Секция "What We Do" */
.what-we-do-section {
    position: relative;
    z-index: 10;
    background-color: #0D0D0D;
}
.wwd-sticky-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
}
.wwd-content-left {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    box-sizing: border-box;
}
.wwd-text-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.wwd-service-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wwd-service-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
}
.wwd-service-text h3 span {
    color: #FF6B00;
    margin-right: 20px;
}
.wwd-service-text p {
    font-size: 1.2rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.wwd-content-right {
    width: 55%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #222;
}
.wwd-image-stack {
    width: 100%;
    height: 100%;
    position: relative;
}
.wwd-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}


/* Адаптивность */
@media (max-width: 992px) {
    .what-we-do-section {
        height: auto;
    }
    .wwd-sticky-container {
        position: relative;
        flex-direction: column;
        height: auto;
        justify-content: space-around;
    }
    .wwd-content-left, .wwd-content-right {
        width: 100%;
    }
    .wwd-content-right {
        height: 60vh;
    }
    .wwd-service-text h3 {
        font-size: 1.8rem;
    }
    .wwd-service-text p {
        font-size: 1rem;
    }
}
.split-panel__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-content-wrapper {
    position: relative;
}
.about-text-container {
    position: relative;
    min-height: 150px; /* Высота, чтобы текст не "прыгал" */
    margin-bottom: 40px;
}
.about-text {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 60ch;
    color: #ccc;
    opacity: 0;
    visibility: hidden;
}
.about-text.active {
    opacity: 1;
    visibility: visible;
}
.values-icons-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.value-icon {
    width: 70px;
    height: 70px;
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}
.value-icon:hover {
    border-color: #FF6B00;
    background-color: rgba(255, 107, 0, 0.1);
    transform: scale(1.1);
}
.gradient-background {
  background: linear-gradient(300deg,#ff6b00,#000000,#a18f84);
  background-size: 180% 180%;
  animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.testimonial-slider-panel {
    flex-direction: column;
    background-color: #111;
    justify-content: center;
}
.slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.slider-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}
.slider-track {
    display: flex;
}
.review-slide {
    flex: 0 0 100%;
    min-width: 100%;
    aspect-ratio: 4 / 5;
}
.review-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slider-nav {
    position: absolute;
    top: 50%;
    left: -80px;
    right: -80px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.slider-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid #444;
    color: #FF6B00;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}
.slider-button:hover:not(:disabled) {
    background-color: #FF6B00;
    color: white;
    transform: scale(1.1);
}
.slider-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #444;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-dot.active {
    background-color: #FF6B00;
}

/* Адаптивность */
@media (max-width: 768px) {
    /* ... (адаптивные стили для других блоков) ... */
    .slider-container {
        max-width: 90vw;
    }
    .slider-nav {
        display: none; /* Прячем боковые стрелки на мобильных */
    }

}
/* Планшеты (экраны до 992px) */
@media (max-width: 992px) {
    /* Изменяем компоновку панели, чтобы заголовок был сверху */
    .testimonial-grid-panel {
        flex-direction: column;
        justify-content: flex-start; /* Выравниваем контент по верху */
        padding-top: 100px; /* Добавляем отступ сверху */
    }

    .testimonial-grid {
        /* Перестраиваем сетку в 2 колонки */
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }

    /* Сбрасываем сложное расположение элементов */
    .grid-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Делаем подпись и затемнение видимыми всегда */
    .grid-item-overlay {
        opacity: 1;
    }
    .grid-item-caption {
        transform: translateY(0);
    }
}

/* Телефоны (экраны до 768px) */
@media (max-width: 768px) {
    .testimonial-grid-panel {
        padding: 80px 20px;
    }

    .testimonial-grid {
        /* Перестраиваем сетку в 1 колонку */
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
}
/* === Адаптивность === */
@media (max-width: 992px) {
    /* ... (стили для мобильного хедера) ... */
    .team-section {
        padding: 80px 20px;
        overflow: visible; 
    }
    .team-gallery-track {
        flex-direction: column;
        height: auto; 
        gap: 30px;
    }
    .team-member-card {
        width: 100%;
        max-width: 400px;
        height: 500px;
        flex-grow: 1 !important;
    }
    .team-info {
        opacity: 1;
        transform: translateY(0);
    }
    .team-member-card:hover img {
        transform: scale(1.05);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-cta {
        grid-column: 1 / -1;
    }
}
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .lang-switcher {
        gap: 5px; /* Уменьшаем расстояние между кнопками */
    }

    .lang-switcher a {
        padding: 6px 10px; /* Уменьшаем внутренние отступы кнопок */
        font-size: 0.9rem; /* Делаем текст немного меньше */
    }
}
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    position: relative; /* Для позиционирования прогресс-бара */
    overflow: hidden; /* Скрываем выход прогресс-бара за пределы */
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toast-success {
    background: rgba(30, 130, 76, 0.8);
    backdrop-filter: blur(5px);
}
.toast-error {
    background: rgba(192, 57, 43, 0.8);
    backdrop-filter: blur(5px);
}
.toast i {
    font-size: 1.5rem;
}
.toast p {
    margin: 0;
    font-weight: 500;
}
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}
.lang-switcher {
    display: flex;
    gap: 5px;
    background-color: #1A1A1A;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 5px;
}

.lang-switcher a {
    padding: 8px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    
    /* Стиль неактивной кнопки по умолчанию */
    background-color: transparent;
    color: #888;
}

/* Стиль при наведении на неактивную кнопку */
.lang-switcher a:hover {
    background-color: #2a2a2a;
    color: #fff;
}

/* === Логика для автоматического определения активного языка === */
/* Эти правила будут работать, если вы добавите класс к тегу <body> */

/* Подсветка кнопки UA, если на body есть класс .lang-ua */
body.lang-ua .lang-switcher a[data-lang="ua"] {
    background-color: #FF6B00;
    color: white;
    cursor: default;
    pointer-events: none; /* Делаем активную ссылку некликабельной */
}
body.lang-ua .lang-switcher a[data-lang="ua"]:hover {
    background-color: #FF6B00; /* Предотвращаем изменение цвета при наведении */
}

body.lang-ru .lang-switcher a[data-lang="ru"] {
    background-color: #FF6B00;
    color: white;
    cursor: default;
    pointer-events: none; /* Делаем активную ссылку некликабельной */
}
body.lang-ru .lang-switcher a[data-lang="ru"]:hover {
    background-color: #FF6B00; /* Предотвращаем изменение цвета при наведении */
}
body.lang-eng .lang-switcher a[data-lang="en"] {
    background-color: #FF6B00;
    color: white;
    cursor: default;
    pointer-events: none; /* Делаем активную ссылку некликабельной */
}
body.lang-eng .lang-switcher a[data-lang="en"]:hover {
    background-color: #FF6B00; /* Предотвращаем изменение цвета при наведении */
}
.section-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 60px;
    text-align: center;
    padding: 0 5vw;
}

.site-footer-new {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100%;
    color: #ccc;
    overflow: hidden;
}
.footer-content-wrapper, .footer-brand-reveal, .footer-final-cta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.footer-content-wrapper {
    flex-direction: column;
    padding: 80px 5vw;
    background-color: #111;
    z-index: 3;
}
.footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-column h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6B00;
    margin-top: 0;
    margin-bottom: 20px;
}
.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}
.footer-column p {
    line-height: 1.7;
    margin: 0 0 20px 0;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul a:hover {
    color: #FF6B00;
}
.footer-column p i {
    margin-right: 10px;
    color: #FF6B00;
    width: 20px;
    text-align: center;
}
.social-links {
    display: flex;
    gap: 20px;
}
.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: #FF6B00;
    transform: translateY(-3px);
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    width: 100%;
    max-width: 1200px;
}
.footer-final-cta {
    flex-direction: column;
    gap: 20px;
    z-index: 2;
    background-color: transparent;
}
.footer-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #0D0D0D;
}
.final-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.final-cta-content h3 {
    font-size: 3rem;
    color: white;
    margin: 0 0 20px 0;
}
.final-cta-content .cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}
.footer-brand-reveal {
    align-items: center; 
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 107, 0, 0.1);
    z-index: 1;
    background-color: #0D0D0D;
    transform-origin: center center;
}
.footer-brand-reveal span {
    display: inline-block;
    animation: footer-glow 4s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.2s);
}
@keyframes footer-glow {
    from {
        color: rgba(255, 107, 0, 0.1);
        text-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
    }
    to {
        color: rgba(255, 107, 0, 0.4);
        text-shadow: 0 0 20px rgba(255, 107, 0, 0.5), 0 0 30px rgba(255, 107, 0, 0.3);
    }
}


/* Адаптивность */
@media (max-width: 992px) {
    .site-footer-new
    {
        height: 110vh !important;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-cta {
        grid-column: 1 / -1;
    }
}
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .final-cta-content h3 {
        font-size: 2rem;
    }
}
.scroll-down-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
}
.scroll-down-hint .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #888;
    border-radius: 12px;
    position: relative;
}
.scroll-down-hint .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: #888;
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}
@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}


/* Адаптивность */
@media (max-width: 992px) {
    /* ... (адаптивные стили для хедера и команды) ... */
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-cta {
        grid-column: 1 / -1;
    }
}
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .final-cta-content h3 {
        font-size: 2rem;
    }
}


@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    /* ИЗМЕНЕНИЕ: Делаем футер статичным на мобильных */
    .site-footer-new {
        height: auto; /* Автоматическая высота */
    }
    .footer-content-wrapper, .footer-final-cta, .footer-brand-reveal {
        position: relative; /* Убираем абсолютное позиционирование */
        height: auto;
    }
    /* Скрываем анимированные слои на мобильных */
    .footer-final-cta, .footer-brand-reveal, .scroll-down-hint {
        display: none;
    }
    .footer-container { grid-template-columns: 1fr; }
}

