/* 
   Файл стилей для страницы "О нас"
   Подключается отдельно в aboutUs.html
   Дополняет основной style.css
*/

/* Контейнер страницы "О нас" */
.about-container {
    max-width: 1200px;
    margin: -1500px auto 100px;
    padding: 0 20px;
}

/* Заголовок страницы "О нас" */
.about-title {
    color: #2c3e50;
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin: 0 auto 40px;
    line-height: 1.3;
    padding: 0 20px;
    position: relative;
    padding-bottom: 40px;
    cursor: default;
}

/* Полоска под заголовком - УНИКАЛЬНАЯ АНИМАЦИЯ */
.about-title:after {
    content: '';
    display: block;
    width: 150px;
    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: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(10, 158, 60, 0.3);
    transform-origin: center center;
}

/* Анимация увеличения в длину при наведении на заголовок */
.about-title:hover:after {
    transform: scaleX(1.3);
    /* Увеличиваем только в длину (по оси X) */
}

/* Подзаголовок "О нас" */
.about-subtitle {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 60px;
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(10, 158, 60, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.08);
    position: relative;
}

.about-subtitle:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0a9e3c, #3498db);
    border-radius: 0 2px 2px 0;
}

/* Основной блок с информацией */
.about-main {
    background: white;
    border-radius: 10px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.about-text h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: #3498db;
    border-radius: 1.5px;
}

.about-text p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 25px;
}

/* Карточки философии */
.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.philosophy-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.philosophy-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.philosophy-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.philosophy-card h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.philosophy-card p {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 1em;
    margin-bottom: 0;
}

/* Блок статистики */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stats-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.2);
}

.stats-number {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00ff88;
}

.stats-label {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Секция ценностей */
.values-section {
    background: white;
    border-radius: 10px;
    padding: 50px;
    margin: 60px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
}

.values-title {
    color: #2c3e50;
    font-size: 2em;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.values-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #0a9e3c);
    border-radius: 1.5px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.value-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.value-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left-color: #0a9e3c;
}

.value-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.value-icon {
    font-size: 2em;
}

.value-card h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin: 0;
    font-weight: 600;
}

.value-card p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* Секция команды */
.team-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 50px;
    margin: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.team-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #0a9e3c);
}

.team-title {
    color: white;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.team-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #0a9e3c);
}

.team-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.member-photo {
    font-size: 4em;
    margin-bottom: 20px;
}

.team-member h3 {
    color: white;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

.member-position {
    color: #00ff88;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1em;
}

.member-bio {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95em;
}

/* Секция технологического стека */
.tech-stack-section {
    background: white;
    border-radius: 10px;
    padding: 50px;
    margin: 60px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
}

.tech-stack-title {
    color: #2c3e50;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.tech-stack-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #0a9e3c);
    border-radius: 1.5px;
}

.tech-stack-subtitle {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 50px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tech-category:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, #3498db, #0a9e3c);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Секция сертификатов */
.certificates-section {
    background: white;
    border-radius: 10px;
    padding: 50px;
    margin: 60px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
    position: relative;
    overflow: hidden;
}

.certificates-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2c3e50, #3498db);
}

.certificates-title {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.certificates-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #0a9e3c);
    border-radius: 1.5px;
}

.certificates-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.certificate-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certificate-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.certificate-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.certificate-item p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* Секция призыва к действию */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 60px;
    margin-top: 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #0a9e3c);
}

.cta-title {
    color: white;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #0a9e3c, #00ff88);
    color: white;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 158, 60, 0.3);
    background: linear-gradient(135deg, #088f35, #00e676);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid #3498db;
}

.cta-button.secondary:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

/* Анимация волны */
@keyframes wave {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-title,
.about-subtitle,
.about-main,
.values-section,
.team-section,
.tech-stack-section,
.certificates-section,
.cta-section {
    animation: fadeInUp 0.6s ease-out;
}

.about-main {
    animation-delay: 0.1s;
}

.values-section {
    animation-delay: 0.2s;
}

.team-section {
    animation-delay: 0.3s;
}

.tech-stack-section {
    animation-delay: 0.4s;
}

.certificates-section {
    animation-delay: 0.5s;
}

.cta-section {
    animation-delay: 0.6s;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .about-container {
        margin: 150px auto 80px;
    }

    .about-title {
        font-size: 2.4em;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-main {
        padding: 40px;
    }

    .philosophy-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        padding: 50px 40px;
    }
}

/* Адаптивность для мобильных (планшеты) */
@media (max-width: 768px) {
    .about-container {
        margin: 130px auto 60px;
        padding: 0 15px;
    }

    .about-title {
        font-size: 2em;
        padding: 0 15px 30px;
    }

    .about-subtitle {
        font-size: 1.15em;
        padding: 20px;
    }

    .about-main {
        padding: 30px 20px;
    }

    .about-text h2 {
        font-size: 1.7em;
    }

    .philosophy-cards {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .values-section,
    .team-section,
    .tech-stack-section,
    .certificates-section {
        padding: 35px 20px;
    }

    .values-title,
    .team-title,
    .tech-stack-title,
    .certificates-title {
        font-size: 1.8em;
    }

    .values-grid,
    .team-grid,
    .tech-stack-grid,
    .certificates-content {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 1.8em;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-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: 15px 0 !important;
    }

    .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% непрозрачности */
    }

    .about-container {
        margin: 90px auto 40px !important;
        /* ИЛИ: margin: 50px auto 40px !important; */
        padding: 0 15px !important;
        /* ← ДОБАВИТЬ */
        max-width: 100% !important;
        /* ← ДОБАВИТЬ */
        box-sizing: border-box !important;
        /* ← ДОБАВИТЬ */
    }

    .images {
        margin-bottom: 0 !important;
        max-height: 80px !important;
        overflow: hidden !important;
    }

}