* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
    --dark-blue: #2D2A6E;
    --dark-blue-hover: #1f1d4d;
    --cyan: #00A6CE;
    --cyan-hover: #008bb0;
    --light-bg: #e3ecf8;
    --white-tint: #f0f5ff;
    --text-gray: #666;
    --white: #ffffff;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary {
    background: var(--dark-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 42, 110, 0.4);
}

.btn-secondary {
    background: var(--cyan);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--cyan-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 166, 206, 0.4);
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--cyan);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.15rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* ===== HEADER ===== */
header {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-blue);
}

.logo img {
    height: 62px;
    width: auto;
    display: block;}




nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    margin-top: 90px;
    background: linear-gradient(135deg, rgba(45, 42, 110, 0.92), rgba(0, 166, 206, 0.85)),
                url('img/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease both;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-phone {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-phone a {
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s;
}

.hero-phone a:hover {
    border-color: var(--white);
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 20px 140px;
    background: var(--white-tint);
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.about-content p + p {
    margin-top: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--cyan);
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ===== SERVICES ===== */
.services {
    padding: 140px 20px 140px;
    background: var(--light-bg);
    margin-top: -60px;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 166, 206, 0.2);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-body {
    padding: 1.5rem;
    text-align: center;
}

.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-gray);
}

/* ===== BENEFITS ===== */
.benefits {
    padding: 140px 20px 140px;
    background: var(--white-tint);
    margin-top: -60px;
    position: relative;
    z-index: 3;
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-blue), var(--cyan));
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-item:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 166, 206, 0.2);
}

.benefit-item:hover h3,
.benefit-item:hover p {
    color: inherit;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--dark-blue), var(--cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.15) rotate(8deg);
}

.benefit-item h3 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.benefit-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CLIENTS ===== */
.clients {
    padding: 140px 20px 140px;
    background: var(--light-bg);
    margin-top: -60px;
    position: relative;
    z-index: 4;
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.client-logo {
    flex: 0 0 calc(16.666% - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s;
    filter: grayscale(100%);
    opacity: 0.6;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 140px;
    max-height: 60px;
    width: 100%;
    object-fit: contain;
}

/* ===== FORMS ===== */
.form-section {
    padding: 140px 20px 140px;
    margin-top: -60px;
    position: relative;
}

.client-form {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-hover));
    z-index: 5;
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.applicant-form {
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue-hover));
    z-index: 6;
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.form-section .section-title {
    color: var(--white);
}

.form-section .section-title::after {
    background: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.form-group label.optional::after {
    content: ' (необязательно)';
    color: #999;
    font-weight: normal;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .btn {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

/* ===== CONTACTS ===== */
.contacts {
    padding: 140px 20px 80px;
    background: var(--light-bg);
    margin-top: -60px;
    position: relative;
    z-index: 7;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-blue), var(--cyan));
    border-radius: 15px 15px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 166, 206, 0.2);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--dark-blue), var(--cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: transform 0.3s;
}

.contact-item:hover .contact-icon {
    transform: scale(1.15) rotate(8deg);
}

.contact-item h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-gray);
}

.contact-item a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--dark-blue);
}

.map-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;}


/* ===== FOOTER ===== */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 20px 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo img {
    height: 52px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);}




.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--cyan);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */

/* ===== TABLET ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logo {
        flex: 0 0 calc(33.333% - 2rem);
    }

    .form-container {
        padding: 2.5rem 2rem;
    }
}

/* ===== HERO MESSENGERS ===== */
.hero-messengers {
    display: inline-flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.hero-messengers a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    border-bottom: none;
    transition: all 0.3s;
}

.hero-messengers a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* ===== MAX LOGO ===== */
.social-max {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: lowercase;}

.hero-location {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-location i {
    color: var(--cyan);
    margin-right: 0.4rem;
}

@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    nav li {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .about,
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        padding: 1.5rem;
        overflow: hidden;
        max-width: 100%;
    }

    .client-logo {
        flex: 0 0 calc(50% - 2rem);
    }
.about {
    padding: 80px 20px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
}

.services,
.benefits,
.clients,
.form-section {
    padding: 80px 20px;
    margin-top: -30px;
    clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%);
}

.contacts {
    padding: 80px 20px 60px;
    margin-top: -30px;
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
}
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item.fade-on-scroll.visible:hover {
    transform: translateY(-10px);
}

.contact-item.fade-on-scroll.visible:hover {
    transform: translateY(-8px);
}