@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
}

h1 {
    color: #2c3e50;
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin: 160px auto 40px;
    max-width: 1000px;
    line-height: 1.3;
    padding: 0 20px;
    position: relative;
    padding-bottom: 40px;
}

h1:after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg,
            #0a9e3c 0%,
            #00ff88 25%,
            #0a9e3c 50%,
            #00ff88 75%,
            #0a9e3c 100%);
    margin: 30px auto 0;
    border-radius: 3px;
    animation: wave 3s ease-in-out infinite;
    background-size: 200% 100%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(10, 158, 60, 0.3);
}

@keyframes wave {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

h1:hover:after {
    width: 200px;
    height: 4px;
    box-shadow: 0 4px 15px rgba(10, 158, 60, 0.5);
    border-radius: 4px;
}

@media (max-width: 768px) {
    h1:after {
        width: 100px;
        height: 4px;
    }
    h1:hover:after {
        width: 150px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    h1:after {
        width: 80px;
        height: 4px;
    }
    h1:hover:after {
        width: 120px;
        height: 4px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
        margin: 140px auto 30px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
        margin: 120px auto 25px;
    }
}

.favicon-icon {
    position: fixed;
    top: 45px;
    left: 60px;
    width: 90px;
    height: auto;
    z-index: 1001;
    transition: all 0.3s ease;
}

.favicon-icon:hover {
    opacity: 0.6;
    transform: scale(0.95);
}

.navigator-icon {
    display: block;
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    z-index: 1;
    transition: transform 0.3s ease;
}

.top-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 28px 0;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.top-bar a:hover {
    color: #f0f0f0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.services-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.5em;
    font-weight: 700;
}

.services-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 80px;
    font-size: 1.2em;
    font-weight: 400;
}

.service-block {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 160px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.service-block--left {
    flex-direction: row;
}

.service-block--right {
    flex-direction: row-reverse;
}

.service-block:nth-child(1) {
    animation-delay: 0.1s;
}

.service-block:nth-child(2) {
    animation-delay: 0.2s;
}

.service-block:nth-child(3) {
    animation-delay: 0.3s;
}

.service-block:nth-child(4) {
    animation-delay: 0.4s;
}

.service-block:nth-child(5) {
    animation-delay: 0.5s;
}

.service-block:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-image {
    flex: 1;
    min-width: 480px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-image a.image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

.service-image a.image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image a.image-link:hover img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-content h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
}

.service-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 35px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.feature-tag {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: #0a9e3c;
    color: white;
    border-color: #0a9e3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 158, 60, 0.3);
}

.service-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: auto;
}

.service-btn {
    display: inline-block;
    padding: 14px 35px;
    background: #0a9e3c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #0a9e3c;
}

.service-btn:hover {
    background: transparent;
    color: #0a9e3c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 158, 60, 0.3);
}

.service-experience {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    font-weight: 500;
}

.company-stats {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 80px 0;
    margin-top: 40px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0a9e3c;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.footer {
    position: relative;
    width: 100%;
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-top: 0;
    background-color: #f0f0f0;
    bottom: 0;
    overflow: hidden;
}

.footer-image {
    display: block;
    width: 110%;
    height: auto;
    margin-left: -5%;
    margin-right: -5%;
}

.footer-content {
    position: relative;
}

.footer-links-columns {
    position: absolute;
    top: 50%;
    left: 450px;
    transform: translateY(-50%);
    display: flex;
    gap: 80px;
    font-family: 'Montserrat', sans-serif;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
}

.footer-links-column a {
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-links-column a:hover {
    color: #0a9e3c;
    transform: translateX(5px);
}

.footer-links-column:first-child a {
    font-weight: 600;
}

.footer-links-column:last-child a:first-child {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links-column:last-child a:not(:first-child) {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.footer-overlay {
    position: absolute;
    top: 40%;
    left: 100px;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
}

.footer-contacts p,
.footer-social a {
    color: white;
    text-decoration: none;
}

.footer-social a:hover {
    color: #f0f0f0;
}

.footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    opacity: 0.8;
}

.footer-contacts .phone {
    margin-bottom: -9px;
    font-weight: bold !important;
}

.footer-contacts .phone a {
    color: inherit;
    text-decoration: none;
}

.footer-contacts .phone a:hover {
    color: inherit;
    text-decoration: underline;
}

.footer-contacts .email {
    font-weight: normal !important;
    margin-bottom: 25px;
}

.footer-contacts .email a {
    color: inherit;
    text-decoration: none;
}

.footer-contacts .email a:hover {
    color: inherit;
    text-decoration: underline;
}

.social-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

a[href*="telegram"] .social-icon,
a[href*="t.me"] .social-icon {
    width: 42px;
    height: 42px;
}

a[href*="vk.com"] .social-icon,
a[href*="vkontakte"] .social-icon {
    width: 40px;
    height: 40px;
}

.social-icon:hover {
    transform: scale(1.1);
}

.consultation-form {
    position: absolute;
    top: 50px;
    right: 200px;
    padding: 20px;
    width: 350px;
}

.consultation-title {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    transform: translateY(-35px);
}

.consultation-form-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group input {
    width: 240px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.form-group.required input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-color: #0a9e3c;
    background: white;
}

.file-input {
    display: none;
}

.file-label {
    display: block;
    width: 240px;
    padding: 12px 15px;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.3);
}

.submit-btn {
    padding: 14px;
    background: #0a9e3c;
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 185px;
    width: 270px;
    position: absolute;
    margin-left: -130px;
}

.submit-btn:hover {
    background: #088530;
    transform: translateY(-2px);
}

.form-group input[name="name"] {
    margin-left: -130px;
}

.form-group input[name="phone"] {
    position: absolute;
    top: 75px;
    left: 195px;
}

.form-group input[name="subject"] {
    margin-left: -130px;
    top: 139px;
    position: absolute;
}

.form-group input[name="email"] {
    position: absolute;
    left: 195px;
}

.form-group input[name="company"] {
    margin-left: -130px;
    top: 200px;
    position: absolute;
}

.file-label {
    margin-left: 175px;
    position: absolute;
    top: 200px;
}

.error-message {
    color: #f00101;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    top: 45px;
    left: 45px;
    white-space: nowrap;
    display: none;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .service-block {
        gap: 60px;
    }
    .service-image {
        min-width: 400px;
        height: 280px;
    }
    .footer-links-columns {
        left: 400px;
    }
    .consultation-form {
        right: 150px;
        width: 320px;
    }
}

@media (max-width: 768px) {
    .services-container {
        padding: 100px 15px 40px;
    }
    .service-block {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 120px !important;
    }
    .service-image {
        min-width: 100%;
        height: 250px;
    }
    .service-content {
        padding: 0;
    }
    .services-title {
        font-size: 2em;
    }
    .service-content h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .service-content p {
        margin-bottom: 25px;
    }
    .service-features {
        margin-bottom: 25px;
    }
    .service-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .company-stats {
        padding: 60px 0;
        margin-top: 20px;
    }
    .footer-links-columns {
        left: 300px;
        gap: 50px;
    }
    .consultation-form {
        right: 100px;
        width: 300px;
    }
}

/* ТЕЛЕФОНЫ В ПОРТРЕТЕ (540px и меньше) - САМЫЙ ПОСЛЕДНИЙ! */
@media (max-width: 540px) {
    h1 {
        margin: 100px 0 15px;
        font-size: 1.7rem;
        padding: 0 15px;
    }

    h2 {
        margin: 0 0 25px 0;
        font-size: 1.3rem;
        padding: 0 15px;
    }

    .top-bar {
        gap: 20px;
        padding: 20px 0;
    }

    .favicon-icon {
        position: fixed !important;
        top: 100px !important;
        left: 11px !important;
        width: 50px !important;
        height: auto !important;
        z-index: 1001 !important;
        transition: opacity 0.3s ease;
    }

    .main-content {
        padding: 0 10px;
        margin: 0 auto 30px;
    }

    .main-content p {
        font-size: 1em;
        line-height: 1.6;
    }

    .main-content p:first-of-type {
        font-size: 1.05em;
        padding-left: 20px;
    }

    .main-content p:first-of-type::before {
        width: 4px;
    }

    .main-content p:last-of-type {
        padding: 15px;
    }

    .footer-links-columns {
        display: none;
    }

    .footer {
        display: flex;
        flex-direction: column;
    }

    .consultation-form {
        position: relative;
        order: 1;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        margin: 40px auto 0;
        padding: 0 20px;
        min-height: 450px;
    }

        .consultation-title {
        color: #2c3e50;
        left: 50px;
    }

    .footer-content {
        order: 2;
    }

    .footer-image {
        margin-top: 50px;
        height: 275px;
    }

    /* 1. Поле "Ваше имя *" */
    .form-group input[name="name"] {
        position: absolute;
        top: 20px;
        left: 180px;
        width: 280px;
        padding: 12px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.9);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* 2. Поле "Номер телефона *" */
    .form-group input[name="phone"] {
        position: absolute;
        top: 80px;
        left: 50px;
        width: 280px;
        padding: 12px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.9);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* 3. Поле "E-mail *" */
    .form-group input[name="email"] {
        position: absolute;
        top: 140px;
        left: 50px;
        width: 280px;
        padding: 12px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.9);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* 4. Поле "Тема" */
    .form-group input[name="subject"] {
        position: absolute;
        top: 200px;
        left: 180px;
        width: 280px;
        padding: 12px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.9);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* 5. Поле "Организация" */
    .form-group input[name="company"] {
        position: absolute;
        top: 260px;
        left: 180px;
        width: 280px;
        padding: 12px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.9);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* 6. Кнопка "Добавить файл" */
    .consultation-form .file-label {
        position: absolute;
        top: 320px;
        left: -120px;
        width: 280px;
        padding: 12px 15px;
        border: 1px dashed rgba(255, 255, 255, 0.5);
        border-radius: 25px;
        background: #4a5568;
        color: white;
        text-align: center;
        cursor: pointer;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 600;
        box-sizing: border-box;
    }

    /* 7. Кнопка "Отправить заявку" */
    .consultation-form .submit-btn {
        position: absolute;
        top: 190px;
        left: 185px;
        width: 280px;
        padding: 14px;
        background: #0a9e3c;
        color: white;
        border: none;
        border-radius: 25px;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        box-sizing: border-box;
        z-index: 111;
    }



    /* 8. Иконка Telegram - ФИКСИРОВАННАЯ ПОЗИЦИЯ */
    .consultation-form a[href*="telegram"] .social-icon,
    .consultation-form a[href*="t.me"] .social-icon {
        position: absolute;
        top: 610px;
        /* Фиксированно от верха формы */
        left: 90px;
        /* Фиксированно от левого края формы */
        width: 36px;
        height: 36px;
        z-index: 1000;
    }

    /* 9. Иконка VK - ФИКСИРОВАННАЯ ПОЗИЦИЯ */
    .consultation-form a[href*="vk.com"] .social-icon,
    .consultation-form a[href*="vkontakte"] .social-icon {
        position: absolute;
        top: 450px;
        /* На 40px ниже Telegram */
        left: 20px;
        /* Такое же смещение слева */
        width: 34px;
        height: 34px;
        z-index: 1000;
    }

    /* СКРЫТЬ ВСЕ ИКОНКИ СОЦСЕТЕЙ НА МОБИЛЬНЫХ */
    .social-icon,
    .footer-social {
        display: none !important;
    }

    .error-message {
        font-size: 13px;
        left: 64px;
        top: 44px;
        color: rgba(240, 1, 1, 0.2); /* 70% непрозрачности */
    }

}