@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: 768px) {
    h1 {
        font-size: 2.2em;
        margin: 140px auto 30px;
        padding: 0 15px;
    }
}

.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 {
    pointer-events: none;
    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;
}

/* ОСНОВНОЙ КОНТЕНТ */
.service-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* СЕО СЕКЦИЯ */
.seo-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.seo-green-block {
    background: transparent;
    border: 3px solid #0a9e3c;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(10, 158, 60, 0.1);
    padding: 40px;
    margin-top: 20px;
}

.seo-green-block p {
    color: #2c3e50;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.seo-green-block p:last-child {
    margin-bottom: 0;
}

/* ПРЕИМУЩЕСТВА */
.benefits-section {
    margin-bottom: 80px;
}

.benefits-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 350px 350px 350px;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(10, 158, 60, 0.15);
    border-color: #0a9e3c;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.benefit-item h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* ВИДЫ ДИЗАЙНА */
.types-section {
    margin-bottom: 80px;
}

.types-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 600;
}

.types-list {
    display: grid;
    grid-template-columns: repeat(4, 300px);
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.type-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #0a9e3c;
}

.type-card:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.type-card h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.type-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* УРОВНИ ДИЗАЙНЕРОВ */
.standards-section {
    margin-bottom: 80px;
}

.standards-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 600;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(4, 300px);
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.standard-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.standard-card:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.standard-card h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.standard-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* ТЕХНОЛОГИЧЕСКИЙ СТЕК */
.tech-section {
    margin-bottom: 60px;
}

.tech-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 600;
}

.tech-stack {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tech-category {
    margin-bottom: 40px;
}

.tech-category h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-tag {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 25px;
    color: #2c3e50;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: #0a9e3c;
    background: #f0fff5;
    transform: translateY(-2px);
}

/* ФОРМАТЫ СОТРУДНИЧЕСТВА */
.stages-section {
    margin-bottom: 80px;
}

.stages-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 600;
}

.stages-timeline {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.stage {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.stage:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 158, 60, 0.15);
}

.stage-number {
    width: 50px;
    height: 50px;
    background: #0a9e3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.stage h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.stage p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* ПОДВАЛ */
.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) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .types-list, .standards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stages-timeline {
        flex-wrap: wrap;
    }
    .stage {
        flex: 0 0 calc(50% - 20px);
    }
    .footer-links-columns {
        left: 400px;
    }
    .consultation-form {
        right: 150px;
        width: 320px;
    }
}

@media (max-width: 768px) {
    .service-detail-container {
        padding: 20px 15px 40px;
    }
    
    .seo-section h2,
    .benefits-section h2,
    .types-section h2,
    .standards-section h2,
    .tech-section h2,
    .stages-section h2 {
        font-size: 1.6em;
    }
    
    .seo-content {
        padding: 20px;
    }
    
    .benefits-grid,
    .types-list,
    .standards-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item,
    .type-card,
    .standard-card,
    .tech-stack,
    .stage {
        padding: 20px;
    }
    
    .stages-timeline {
        flex-direction: column;
    }
    
    .stage {
        flex: 1 0 100%;
    }
    
    .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: 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;
        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;
        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);
    }
}