/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #02060c;
    background-color: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Layout components */
.main-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 40px;
    position: relative;
    z-index: 10;
}

.logo {
    width: 64px;
    height: 90px;
}

.nav-menu {
    display: none;
    gap: 64px;
    align-items: center;
}

.nav-item {
    font-size: 20px;
    font-weight: 400;
    color: #02060c;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #2a6fd4;
}

.nav-dot {
    width: 5px;
    height: 5px;
    background-color: #02060c;
    border-radius: 50%;
    margin: 0 10px;
}

.cta-button {
    border-radius: 30px;
    border-image: linear-gradient(45deg, #3d85f5, #4fdc6c) 1;
    background: none;
    padding: 12px 34px;
    font-size: 20px;
    font-weight: 700;
    color: #2a6fd4;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 26px;
    padding: 3px;
    background: linear-gradient(90deg, #2a6fd4 0%, #2cdb34 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 111, 212, 0.3);
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1;
    padding: 0 40px;
    gap: 40px;
    justify-content: space-between;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 668px;
}

.hero-title {
    font-family: 'Rubik', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #02060c;
}

.hero-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #02060c;
}

.hero-button {
    background-color: #2b70d6;
    border-radius: 26px;
    padding: 12px 34px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    align-self: flex-start;
    transition: all 0.3s ease;
    width: 250px;
}

.hero-button:hover {
    background-color: #1e5bb8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 112, 214, 0.4);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 700px;
    display: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.features-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 20px;
    margin-top: -30px;
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    flex: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
}

.feature-title {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    padding: 80px 20px;
    max-width: 1200px;
}

.service-card {
    border: 3px solid transparent;
    border-radius: 30px;
    background:
            linear-gradient(white, white) padding-box, /* фон блока */
            linear-gradient(45deg, #3d85f5, #4fdc6c) border-box; /* градиент рамки */
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    height: 350px;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px; /* толщина рамки */
    border-radius: inherit;
    background: linear-gradient(45deg, #3d85f5, #4fdc6c);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}
.number {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(42, 111, 212, 0.50);
    font-family: 'Rubik', sans-serif;
    font-size: 92px;
    line-height: 92px;
    font-style: normal;
    font-weight: 700;
    text-align: right;
    color: transparent;
    margin-bottom: 5px;
}




.service-card:hover {
    box-shadow: 0 15px 40px rgba(44, 115, 219, 0.2);
}

.service-text {
    font-size: 18px;
    line-height: 1.4;
    color: #02060c;
}

.service-highlight {
    font-size: 20px;
    font-weight: 700;
    color: #02060c;
}

.stats-section {
    width: 100%;
    padding: 80px 40px;
    position: relative;
}

.stats-title {
    font-family: 'Rubik', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #02060c;
    text-align: left;
    margin-bottom: 40px;
}

.stats-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: end;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Rubik', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: #3180f4;
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    color: #02060c;
    margin-top: 10px;
}

.process-section {
    width: 100%;
    padding: 80px 40px;
    position: relative;
    display: flex;
    justify-content: space-between;
}
.small-visual {
    width: 350px;
    height: 350px;
    margin-left: auto;
}

.process-title {
    font-family: 'Rubik', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #02060c;
    text-align: right;
    margin-bottom: 60px;
}
.gradient-bg {
    position: relative;
    display: inline-block;

}
.gradient-bg:before {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(50, 131, 250, 0.60) 0%, rgba(255, 255, 255, 0.60) 83.17%);
    width: 100%;
    height: 76px;
    left: -20px;
    top: 10px;
}
.gradient-bg.green:before {
    background: linear-gradient(90deg, rgba(44, 219, 53, 0.60) 0%, rgba(255, 255, 255, 0.60) 83.17%);
}
.border-bg {
    position: relative;
    display: inline-block;
    padding: 0 10px;
}
.border-bg:before {
    content: "";
    position: absolute;
    z-index: -1;
    border: 3px solid transparent;
    border-radius: 30px;
    background:
            linear-gradient(white, white) padding-box, /* фон блока */
            linear-gradient(45deg, #3d85f5, #4fdc6c) border-box; /* градиент рамки */
    width: 100%;
    height: 76px;
    left: -5px;
    top: 10px;
}

.process-grid {
    display: flex;
    gap: 40px;
    flex-direction: column;
    position: relative;
}

.process-card {
    border: 3px solid transparent;
    border-radius: 30px;
    padding: 40px;
    transition: all 0.3s ease;
    width: 430px;
}

.process-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(180deg, #2c73db 0%, #2cdb34 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.process-card:hover {
    box-shadow: 0 15px 40px rgba(44, 115, 219, 0.2);
}

.process-card-1 {
    transform: rotate(-7.671deg);
}
.process-card-2 {
    transform: rotate(9.25deg);
    margin-left: 250px;
    margin-top: -60px;
    background: #fff;
}
.process-card-3 {
    transform: rotate(-8.901deg);
    margin-top: -80px;
    margin-left: 50px;
    z-index: -1;
}
.process-card-4 {
    transform: rotate(6.415deg);
    margin-left: 300px;
    margin-top: -70px;
    background: #fff;
}
.process-card-5 {
    transform: rotate(0);
    margin-left: 20px;
    margin-top: -70px;
    background: #fff;
}
.process-card-6 {
    transform: rotate(0);
    margin-left: 320px;
    margin-top: -80px;
    background: #fff;
}


.process-card-title {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #02060c;
    margin-bottom: 16px;
}

.process-card-text {
    font-size: 18px;
    line-height: 1.4;
    color: #000000;
}

.industries-section {
    width: 100%;
    padding: 80px 20px;
}

.industries-title {
    font-family: 'Rubik', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #02060c;
    text-align: left;
    margin-bottom: 60px;
}

.industries-list {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.industry-dot {
    width: 10px;
    height: 10px;
    background-color: #2cdb34;
    border-radius: 50%;
}

.industry-text {
    font-size: 18px;
    color: #000000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    border: 3px solid transparent;
    border-radius: 30px;
    background:
            linear-gradient(white, white) padding-box, /* фон блока */
            linear-gradient(45deg, #3d85f5, #4fdc6c) border-box; /* градиент рамки */
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-card:nth-child(1):before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(180deg, #2cdb34 0%, #2c73db 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.portfolio-card:nth-child(2):before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(0deg, #2cdb34 0%, #2c73db 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.portfolio-card:hover {
    box-shadow: 0 15px 40px rgba(44, 115, 219, 0.2);
}

.portfolio-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto 20px;
}

.portfolio-title {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #02060c;
    margin-bottom: 16px;
}

.portfolio-url {
    font-size: 18px;
    color: rgba(2, 6, 12, 0.6);
    margin-bottom: 16px;
    display: block;
}

.portfolio-description {
    font-size: 18px;
    line-height: 1.4;
    color: #000000;
}

.contact-section {
    width: 100%;
    padding: 80px 20px;
    background: rgba(151, 190, 248, 0.1);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Rubik', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #02060c;
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    max-width: 650px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 16px;
    font-weight: 500;
    color: #2b70d6;
}

.required {
    color: #ff250c;
}

.form-input {
    padding: 14px 0;
    font-size: 14px;
    color: #b3b3b3;
    border-bottom: 1px solid #2b70d6;
    background: transparent;
}

.form-input:focus {
    color: #02060c;
    outline: none;
}

.form-textarea {
    padding: 12px 14px;
    font-size: 14px;
    color: #b3b3b3;
    border: 1px solid #2b70d6;
    border-radius: 20px;
    background: transparent;
    min-height: 100px;
    resize: vertical;
}

.form-textarea:focus {
    color: #02060c;
    outline: none;
}

.form-input.error,
.form-textarea.error {
    border-color: #ff250c;
    border-bottom-color: #ff250c;
}

.form-input.is-valid,
.form-textarea.is-valid {
    border-color: #2e7d32;
    border-bottom-color: #2e7d32;
}

.error-message {
    color: #ff250c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

#formToast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
}

#formToast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.privacy-text {
    font-size: 14px;
    line-height: 1.2;
    color: #02060c;
}

.privacy-link {
    text-decoration: underline;
    color: #02060c;
}

.submit-button {
    background-color: #2c73db;
    border-radius: 24px;
    padding: 12px 34px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #1e5bb8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 115, 219, 0.4);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-button:disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}

.footer {
    width: 100%;
    padding: 40px;
    background-color: #f5f5f5;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    gap: 20px;
    flex: 1;
}

.footer-logo {
    width: 64px;
    height: 90px;
}

.footer-text {
    font-size: 12px;
    line-height: 1.2;
    color: #B3B3B3;
    max-width: 220px;
    margin-top: 5px;
}

.footer-docs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-doc {
    width: 116px;
    height: 150px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 36px;
    flex: 1;
}

.footer-nav-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.footer-nav-link {
    font-size: 20px;
    color: #02060c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: #2a6fd4;
}

.footer-contact {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.footer-email-icon {
    width: 20px;
    height: 16px;
}

.footer-email {
    font-size: 16px;
    color: #02060c;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: #02060c;
    cursor: pointer;
}

/* Interactive states */
.nav-item:hover,
.footer-nav-link:hover {
    color: #2a6fd4;
    transform: translateY(-1px);
}

.service-card:hover,
.process-card:hover,
.portfolio-card:hover {
    box-shadow: 0 15px 40px rgba(44, 115, 219, 0.2);
}

.hero-button:hover,
.submit-button:hover {
    transform: translateY(-2px);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 111, 212, 0.3);
}

/* Responsive media queries */


@media (max-width: 1280px) {
    .header {
        padding: 20px 40px;
    }

    .hero-content {
        padding: 0 40px;
    }
    .process-card-text {
        font-size: 16px;
    }
    .process-card-title {
        font-size: 20px;
    }
    .process-section {
        padding: 40px;
    }
    .footer-nav-link {
        font-size: 16px;
    }
    .hero-visual {
        height: auto;
    }
}
@media (min-width: 640px) {
    .hero-title {
        font-size: 60px;
    }

    .hero-description {
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        padding: 80px 40px;
    }

    .stats-title,
    .process-title,
    .industries-title {
        font-size: 56px;
    }

    .contact-title {
        font-size: 42px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
    }



    .hero-text {
        width: 44%;
    }

    .hero-visual {
        display: block;
        width: 54%;
    }

    .hero-title {
        font-size: 72px;
    }

    .features-section {
        padding: 40px 108px;
        gap: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-container {
        gap: 80px;
    }

    .stat-number {
        font-size: 120px;
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .industry-text {
        font-size: 14px;
    }

    .contact-container {
        flex-direction: row;
        gap: 80px;
    }

    .footer-container {
        flex-direction: row;
        gap: 80px;
    }

}

@media (max-width: 1024px) {
    .process-section {
        flex-direction: column;
    }
    .small-visual {
        display: none;
    }
    .nav-item {
        font-size: 16px;
    }
    .stats-section {
        padding: 40px;
    }
    .industries-section {
        padding: 40px 20px;
    }
    .border-bg::before {
        top: -5px;
    }
    .footer-doc {
        width: 70px;
        height: auto;
    }
    .footer-docs {
        gap: 10px;
    }
    .footer-nav-link {
        font-size: 12px;
    }
}
@media (min-width: 1024px) {
    .hero-title {
        font-size: 81px;
    }

    .stats-title,
    .industries-title {
        font-size: 72px;
    }

    .contact-title {
        font-size: 52px;
    }
}



@media (max-width: 767px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 16px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .hero-section {
        min-height: auto;
    }

    .feature-title {
        font-size: 18px;
    }

    .process-card {
        width: 45%;
        transform: rotate(0) !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    .process-title {
        margin-bottom: 0;
    }
    .process-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .industries-list {
        gap: 20px;
        flex-direction: row;
    }

    .stat-number {
        font-size: 60px;
    }

    .stats-title,
    .process-title,
    .industries-title {
        font-size: 32px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .header {
        padding: 20px;
    }

    .hero-content {
        padding: 20px;
    }
    .hero-button {
        margin: 0 auto;
    }
    .cta-button {
        font-size: 16px;
    }
    .number {
        font-size: 72px;
    }
    .stats-section {
        padding: 40px;
    }
    .services-grid {
        padding: 40px 20px;
    }
    .gradient-bg::before {
        height: 35px;
        top: 5px;
    }

    .border-bg::before {
        height: 35px;
        top: 5px;
    }
    .industry-text {
        font-size: 11px;
    }

    .portfolio-card {
        padding: 20px;
    }
    .portfolio-title {
        font-size: 18px;
    }
    .footer-doc {
        width: 60px;
        height: auto;
    }
    .footer-info {
        flex-direction: column;
    }
    .footer-nav-link {
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    .features-section {
        gap: 20px;
    }
    .feature-title {
        font-size: 14px;
    }
    .process-card {
        width: 100%;
    }
}