* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*::selection {
    color: white;
    background: #0B2475;
}
    
*::-moz-selection {
    color: white;
    background: #0B2475;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}
@media (min-width: 769px) {
    section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.header {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .header {
        min-height: 90vh;
    }
    .main-content {
        
        align-items: center;
    }
    .video-logo-svg {
        max-height: 65vh;
    }
}
@media (max-width: 480px) {
    .header {
        min-height: 80vh;
    }
}

.nav-container {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

.logo-text {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}
.logo-text img{
    width: 120px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 40px);
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: clamp(15px, 1.4vw, 17px);
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: 400;
    opacity: 1;
}

.nav-menu a:hover, .nav-menu a.active-link {
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 20px 20px;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

.video-logo-container {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-logo-svg {
    height: auto;
    max-height: 80vh;
}

.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-switcher {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    color: #e0e0e0;
    text-decoration: none;
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lang-switcher:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.lang-switcher span {
    margin-right: 6px;
}

.lang-switcher svg {
    transition: transform 0.2s ease;
    stroke: #e0e0e0;
}
.lang-switcher:hover svg {
    stroke: #ffffff;
}

.lang-switcher.active svg {
    transform: rotate(180deg);
}

.lang-options {
    display: none;
    position: absolute;
    text-align: center;
    top: 100%;
    right: 0;
    background: #fff;
    color: #000;
    list-style: none;
    margin-top: 10px;
    padding: 4px 0;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    min-width: 120px;
    overflow: hidden;
}

.lang-options.show {
    display: block;
}

.lang-options li {
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 15px;
}

.lang-options li:hover {
    background: #1a1a1a;
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .lang-dropdown {
        flex-direction: column;
        align-items: center;
    }
    .lang-switcher {
        display: block;
        padding: 12px 20px;
        width: 100%;
        font-size: 16px;
        justify-content: center;
    }
    .lang-switcher:hover {
        transform: none;
    }
    .lang-options {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .lang-options.show {
        display: block;
    }
    .lang-options li {
        padding: 10px 20px;
        color: #e0e0e0;
    }
    .lang-options li:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
}

.logo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-overlay {
    position: relative;
    z-index: 10;
    text-align: left;
    padding: 20px;
    max-width: 500px;
}

.main-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
}

.subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 300;
    margin-bottom: 30px;
    color: #e0e0e0;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(15px, 1.5vw, 17px);
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.nav-container, .video-logo-svg, .content-overlay > * {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}
.nav-container { animation-delay: 0.2s; transform: translateY(-30px); animation-name: fadeInSlideDown; }
.video-logo-svg { animation-delay: 0.5s; transform: scale(0.9); animation-name: fadeInScaleUp; }
.content-overlay h1 { animation-delay: 0.8s; transform: translateX(-20px); animation-name: fadeInSlideRightH1; }
.content-overlay h2 { animation-delay: 1s; transform: translateX(-20px); animation-name: fadeInSlideRightH2; }
.content-overlay .cta-button { animation-delay: 1.2s; transform: translateY(20px); animation-name: fadeInSlideUpCTA; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInSlideDown { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScaleUp { to { opacity: 1; transform: scale(1); } }
@keyframes fadeInSlideRightH1 { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInSlideRightH2 { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInSlideUpCTA { to { opacity: 1; transform: translateY(0); } }


.geometric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}


.welcome-section {
    background-color: #00002e;
    position: relative;
    z-index: 2;
}
.wlcm-text-cont {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.wlcm-text {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #e0e0e0;
    line-height: 1.7;
    font-weight: 300;
}

.about-company-section {
    background-color: #ffffff;
    color: #1a1a1a;
}
.about-company-container {
    display: block;
    position: relative;
    width: calc(100% - 40px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.about-company-header {
    margin-bottom: 30px;
}
.about-company-title {
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
    text-align: center;
}
.about-company-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.intro-text {
    font-size: clamp(15px, 2vw, 17px);
    color: #555;
    font-weight: 500;
}
.about-company-description p {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.65;
    color: #333;
    text-align: justify;
    margin-bottom: 1.2em;
}
.about-company-description p:last-child {
    margin-bottom: 0;
}


.creative-process-section {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 80px 0;
}

.process-container {
    margin: 0 auto;
    padding: 0 20px;
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-header h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: #555;
    letter-spacing: 1px;
}

/* Сетка для десктопа */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: start;
    position: relative;
    cursor: none;
}

.process-step {
    padding: 15px 10px;
    position: relative;
    min-height: 400px;
    cursor: none;
    display: flex;
    flex-direction: column;
}

.process-step:nth-child(1) { padding-top: 20px; }
.process-step:nth-child(2) { padding-top: 180px; } 
.process-step:nth-child(3) { padding-top: 240px; } 
.process-step:nth-child(4) { padding-top: 10px; } 
.process-step:nth-child(5) { padding-top: 100px; }

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px; 
    width: 1px;
    height: 100%;
    background-color: #cccccc;
}

.step-number {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}
.step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-description {
    display: none;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.process-step hr {
    display: none;
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

.process-divider {
    display: none;
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0 0 0;
}
@media (max-width: 992px), (pointer: coarse) {
    .process-divider {
        display: block;
    }
}

@media (max-width: 992px), (pointer: coarse) {
    .process-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        grid-template-columns: none !important;
    }
    .process-step {
        min-height: auto;
        padding: 0 0 40px 0;
        opacity: 0;
        transform: translateY(50px);
        cursor: default;
    }
    .process-step:nth-child(n) {
        padding-top: 0 !important;
    }
    .process-step:not(:last-child)::after {
        display: none !important;
    }
    .step-description {
        display: block;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-step {
        min-height: auto;
        padding: 0 0 40px 0;
        opacity: 0;
        transform: translateY(50px);
    }
    
    .process-step:nth-child(n) {
        padding-top: 0 !important;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .step-description {
        display: block;
    }
    
    .process-step:not(:last-of-type)::after {
        content: '';
        display: block;
        height: 1px;
        background-color: #e0e0e0;
        margin-top: 40px;
    }
}


.process-hover-container {
    position: fixed; 
    z-index: 9999;  
    opacity: 0;
    overflow: visible !important;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8); 
    transition: opacity 0.25s ease-out, 
                visibility 0s linear 0.25s,
                transform 0.07s linear,
                left 0.07s linear,
                top 0.07s linear;
}

.process-hover-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0s;
}


.global-floating-image {
    width: 200px;
    height: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center; 
}


.floating-image-visual {
    width: 60%;
    height: 60%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


.floating-description {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(10px);
    min-width: 400px;
    max-width: 600px;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #222;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 18px 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, left 0.15s, right 0.15s;
    z-index: 10000;
    white-space: normal;
    display: flex;
    align-items: center;
    text-align: justify;
}

.process-hover-container.visible .floating-description {
    opacity: 1;
}

.process-hover-container.left .floating-description {
    left: auto;
    right: 100%;
    transform: translateY(-50%) translateX(-30px);
    text-align: right;
}


@media (max-width: 992px) {
    .floating-description {
        min-width: 160px;
        max-width: 220px;
        font-size: 15px;
        padding: 12px 14px;
    }
}
@media (max-width: 768px) {
    .floating-description {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .process-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .process-step:nth-child(3n):not(:last-child)::after { display: none; }
    .process-step:last-child::after { display: none; }
    /* Размер плавающего изображения можно не менять, если 200px приемлемо */
}
@media (max-width: 768px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .process-step:not(:last-child)::after { display: block; right: -10px; }
    .process-step:nth-child(2n):not(:last-child)::after { display: none; }
    .global-floating-image { display: none; } /* Скрываем сложный эффект на мобильных */
    .process-grid { cursor: default; } /* Возвращаем обычный курсор */
    .process-step { cursor: default; }
}
@media (max-width: 576px) {
    .process-grid { grid-template-columns: 1fr; }
    .process-step:not(:last-child)::after { display: none; }
}


footer {
    background-color: #111;
    color: #888;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


@media (min-width: 769px) {
    .about-company-content {
        flex-direction: row;
        gap: 40px;
    }
    .about-company-intro {
        flex: 1;
        min-width: 180px;
        max-width: 250px;
    }
    .about-company-description {
        flex: 2.5;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(20, 20, 20, 0.9);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 25px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
    }
    .menu-toggle {
        display: flex;
    }

    .content-overlay {
        padding: 15px;
        max-width: 90%;
    }
    .main-title {
         font-size: clamp(30px, 8vw, 48px);
    }
     .subtitle {
         font-size: clamp(15px, 4vw, 18px);
    }

    .form-container {
        flex-direction: column;
    }
    .form-image-placeholder, .form-wrapper {
        flex-basis: auto;
        width:100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }
    .logo-text {
        font-size: 20px;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
     .about-company-container, .wlcm-text-cont, .form-container, .footer-container {
        width: calc(100% - 30px);
    }
    .about-company-title {
        font-size: clamp(22px, 6vw, 30px);
    }
    .intro-text, .about-company-description p {
        font-size: clamp(14px, 3.5vw, 16px);
    }
    .form-title {
         font-size: clamp(20px, 5vw, 26px);
    }
}


.pre-footer-contact {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 80px 0;
    border-top: 1px solid #e0e0e0;
}

.pre-footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.pre-footer-text-block {
    flex: 1;
    padding-right: 30px;
}

.footer-logo-img {
    height: 50px;
    margin-bottom: 30px;
}

.pre-footer-text-block h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.3;
    font-weight: 600;
    color: #1a1a1a;
}

.pre-footer-form-stub {
    flex: 1;
    max-width: 450px;
}

.form-field-stub {
    border-bottom: 1px solid #cccccc;
    padding: 15px 0;
    margin-bottom: 20px;
}

.form-field-stub span {
    font-size: 16px;
    color: #555555;
}

.form-field-stub.message-stub {
    padding-bottom: 40px;
}

.form-submit-area-stub {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.send-button-stub {
    padding: 12px 30px;
    border: 1px solid #1a1a1a;
    background-color: transparent;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.send-button-stub:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.agreement-text-stub {
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
}

.agreement-text-stub a {
    color: #555555;
    text-decoration: underline;
}

.agreement-text-stub a:hover {
    text-decoration: none;
}

.main-footer-columns {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-columns-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1 1 auto;
}

.footer-brand-info {
    min-width: 280px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a{
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.6;
    display: block;
    margin-bottom: 5px; 
}

.footer-column a:hover {
    text-decoration: underline;
}


#footerDrawingLogo {
    width: 100%;
    height: auto;
}

#footer-logo-path {
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 8;
    stroke-dasharray: 10000;
    stroke-dashoffset: 10000;
}

@media (max-width: 768px) {
    .footer-columns-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-brand-info {
        max-width: 250px;
        flex-basis: auto;
    }
}

footer {
    background-color: #ffffff;
    color: #555555;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #e0e0e0;
}

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

.pre-footer-form-wrapper {
    flex: 1;
    max-width: 450px;
}

.footer-form .footer-form-group {
    margin-bottom: 25px;
    position: relative;
}

.footer-form input[type="text"],
.footer-form input[type="tel"],
.footer-form input[type="email"],
.footer-form textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #cccccc;
    padding: 12px 0;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.footer-form input[type="text"]::placeholder,
.footer-form input[type="tel"]::placeholder,
.footer-form input[type="email"]::placeholder,
.footer-form textarea::placeholder {
    color: #777777;
    opacity: 1;
}

.footer-form input[type="text"]:focus,
.footer-form input[type="tel"]:focus,
.footer-form input[type="email"]:focus,
.footer-form textarea:focus {
    border-bottom-color: #1a1a1a;
}

.footer-form textarea {
    resize: none;
    min-height: 60px;
}

.grecaptcha-badge {
    visibility: hidden;
}

.footer-form-submit-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.footer-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-send-button {
    padding: 10px 28px;
    border: 1px solid #0B2475;
    background-color: transparent;
    color: #0B2475;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-send-button:hover {
    background-color: #0B2475;
    color: #ffffff;
}

.footer-agreement-text {
    font-size: 11px;
    color: #888888;
    line-height: 1.4;
    margin: 0;
}

.footer-agreement-text a {
    color: #555555;
    text-decoration: underline;
}

.footer-agreement-text a:hover {
    text-decoration: none;
}

.form-status-message {
    margin-top: 10px;
    font-size: 13px;
    min-height: 1.2em;
}

@media (max-width: 768px) {
    .pre-footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pre-footer-text-block {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer-form-submit-area {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}