:root {
    --primary: #0d47a1;
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --secondary: #ff6f00;
    --secondary-light: #ffa040;
    --secondary-dark: #c43e00;
    --dark: #1a237e;
    --light: #e3f2fd;
    --light-bg: #f5f9ff;
    --text: #263238;
    --text-light: #546e7a;
    --white: #ffffff;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(13, 71, 161, 0.05) 0%, transparent 30%);
    z-index: -1;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Шапка */
header {
    background: linear-gradient(120deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.8rem;
    cursor: default;
    position: relative;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    background: var(--white);
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 8px 20px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    transform: translateX(-100%);
    transition: var(--transition);
}

nav a:hover, nav a.active {
    background: rgba(255, 255, 255, 0.1);
}

nav a:hover:after, nav a.active:after {
    transform: translateX(0);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Промо-слайдер */
/*
 * Промо‑слайдер стал выше, чтобы изображения занимали больше места
 * и не обрезались на мобильных устройствах. Высота 300px на десктопе
 * смотрится гармонично и обеспечивает достаточное пространство для
 * текстового контента.
 */
.promo-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 0 10px black;
    opacity: 0;
    transition: opacity 1s ease;
    text-align: center;
}

.slide h2 {
    margin-bottom: 1rem;
}

.slide button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
}

.slide.active {
    opacity: 1;
}

/* Герой-секция */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 4rem;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 111, 0, 0.6);
}

.cta-button:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover:after {
    transform: translateX(100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Секция услуг */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Усиленная тень для лучшей читаемости */
}

.benefits .section-title h2,
.portfolio .section-title h2,
.contact .section-title h2 {
    color: var(--white); /* Белый текст на цветном фоне */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); /* Усиленная тень для контраста */
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--secondary);
    border-radius: 3px;
}

.section-title p {
    font-size: 1.3rem;
    color: var(--white);
    max-width: 700px;
    margin: 1rem auto 0;
}

.services {
    background: var(--white);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.services:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    table-layout: fixed; /* Фиксированная ширина колонок */
}

.services-table th, .services-table td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle; /* Выравнивание по вертикали */
}

.services-table th:first-child, .services-table td:first-child {
    width: 25%; /* Основная колонка для длинных названий тестов */
}

.services-table th:nth-child(2), .services-table td:nth-child(2) {
    width: 15%;
}

.services-table th:nth-child(3), .services-table td:nth-child(3) {
    width: 15%;
}

.services-table th:nth-child(4), .services-table td:nth-child(4) {
    width: 15%;
}

.services-table th:nth-child(5), .services-table td:nth-child(5) {
    width: 15%;
}

/* Шестая колонка (кнопка 'Заказать') также занимает равную долю ширины */
.services-table th:nth-child(6), .services-table td:nth-child(6) {
    width: 15%;
}

.services-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px;
}

.services-table tbody tr {
    transition: background-color 0.3s;
    cursor: pointer; /* Курсор для кликабельности */
    min-height: 80px; /* Минимальная высота строки */
}

.services-table tbody tr td:first-child {
    text-align: left; /* Выравнивание текста в первой колонке по левому краю */
    padding-left: 30px; /* Отступ слева для "глубины" */
}

.services-table tbody tr:hover {
    background: #f9fbff;
}

/* Кнопка для описания услуги */
.description-btn {
    background: var(--secondary);
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
}
.description-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.4);
}

/* Сетка инструментов: 2 ряда по 5 элементов на больших экранах */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(80px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

/* Переход на 3 колонки при ширине ≤1200px */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, minmax(80px, 1fr));
    }
}

/* Переход на 2 колонки при ширине ≤600px */
@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: repeat(2, minmax(80px, 1fr));
    }
}

/* Стили для иконок */
.tool-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background-color: var(--white);
    padding: 10px;
}

.tool-item img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Сетка инструментов: 2 ряда по 5 элементов на больших экранах */
.tools-grid {
    display: grid;
    /* минимум под картинку + padding: 150px (130px картинка + 2×10px padding) */
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

/* 3 колонки при ширине ≤1200px */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

/* 2 колонки при ширине ≤600px */
@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

/* Стили для иконок */
.tools-grid .tool-item img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background-color: var(--white);
    padding: 10px;
}

.tools-grid .tool-item img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/*
 * Для нового блока с инструментами определяем карточку, в которой
 * располагается иконка и подпись. Используем flex‑контейнер для
 * вертикального выравнивания элементов. Размер иконки повторяет
 * стили предыдущей реализации, а подпись размещается под ней.
 */
.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0.5rem;
}

.tool-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background-color: var(--white);
    padding: 10px;
}

.tool-item img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tool-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Графики внутри кейсов */
.case-graph {
    width: 100%;
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* График внутри модального окна */
.modal-graph {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-graph img {
    width: 100%;
    height: auto;
    display: block;
}

/* Кнопка для открытия кейса */
.open-case-btn {
    margin-top: 1rem;
    background: var(--secondary);
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
}
.open-case-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.4);
}

.order-btn {
    background: var(--primary);
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.3);
}

.order-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.4);
}

/* Секция преимуществ */
.benefits {
    background: linear-gradient(to right, var(--primary), var(--dark));
    color: var(--white);
    border-radius: 20px;
    padding: 10rem 3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.benefits:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 3rem 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    text-align: center;
    /* Гарантирует, что весь текст будет внутри карточки */
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    min-width: 0; /* Важно для гридов */
    max-width: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Значки */
.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--secondary);
}



/* Заголовки внутри карточки */
.benefit-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
    max-width: 100%;
}

/* Текст в карточке */
.benefit-card p {
    opacity: 0.9;
    font-size: 1.1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
    max-width: 100%;
}

/* Секция нашего подхода */
.approach {
    background: var(--white);
    border-radius: 20px;
    padding: 5rem 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 5rem;
    position: relative;
}

.approach:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 0 0 20px 20px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    transition: var(--transition);
    background: var(--light-bg);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.4);
}

.step-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Портфолио */
.portfolio {
    background: linear-gradient(to bottom, var(--primary), var(--dark));
    padding: 6rem 2rem;
    border-radius: 20px;
    color: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 5rem;
    position: relative;
    /* Убираем обрезку нижней части секции, чтобы фон
       плавно переходил в следующую секцию и никакие
       элементы не выходили за её пределы */
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

.portfolio:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Используем локальный фон для портфолио, чтобы избежать
       зависимости от сторонних сервисов. График из сети изящно
       подчёркивает тематику производительности. */
    background: url('img/portfolio_bg.png') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-content {
    padding: 2.5rem;
}

.portfolio-content h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.portfolio-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.8; /* Улучшение читаемости */
}

.portfolio-result {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
}

/* Инструменты */
.tools {
    background: var(--white);
    border-radius: 20px;
    padding: 5rem 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 5rem;
    position: relative;
}

.tools-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.tools-table th, .tools-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.tools-table th {
    background: var(--primary);
    color: var(--white);
}

.tools-table tbody tr:hover {
    background: #f9fbff;
}

/* Контакты */
.contact {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    border-radius: 20px;
    padding: 5rem 2rem;
    color: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    opacity: 0.1;
}

.contact-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--secondary);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
}

.contact-details i {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.3rem;
    min-width: 25px;
    padding-top: 3px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Подвал */
footer {
    background: #0a0f2b;
    color: #a0aec0;
    padding: 5rem 2rem 3rem;
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    max-width: 1200px;
    margin: 0 auto; /* Центрирование футера */
}
/* Исправление 2: Почта как текст в подвале */
footer .footer-col p a {
    color: #a0aec0 !important; /* Цвет как у обычного текста */
    text-decoration: none !important; /* Убираем подчеркивание */
    pointer-events: none; /* Отключаем кликабельность */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
}

.footer-col p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-dark);
    transform: translateY(-5px);
}

/* Адаптивность */
/* Адаптивность */
@media (max-width: 1024px) {
    .benefit-card {
        padding: 2rem 1.2rem;
    }
    .benefit-card h3 {
        font-size: 1.3rem;
    }
    .benefit-card p {
        font-size: 0.98rem;
    }
}
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
    }
}
@media (max-width: 600px) {
    .benefit-card {
        padding: 1.2rem 0.7rem;
    }
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    .benefit-card p {
        font-size: 0.89rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.2rem;
    }

    nav {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .services {
        padding: 3rem 1.5rem;
    }

    .services-table,
    .services-table thead,
    .services-table tbody,
    .services-table th,
    .services-table td,
    .services-table tr {
        display: block;
    }

    .services-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .services-table tr {
        border: 1px solid #eef2f7;
        margin-bottom: 1rem;
    }

    .services-table td {
        border: none;
        border-bottom: 1px solid #eef2f7;
        position: relative;
        padding-left: 50%;
        text-align: left;
        word-break: break-word;
        hyphens: auto;
    }

    .services-table td:before {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
    }

    .services-table td:last-child {
        border-bottom: none;
    }

    .services-table th, .services-table td {
        font-size: 0.9rem; /* Уменьшение текста на мобильных */
        padding: 12px 10px;
    }

    .tools-table,
    .tools-table thead,
    .tools-table tbody,
    .tools-table th,
    .tools-table td,
    .tools-table tr {
        display: block;
    }

    .tools-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .tools-table tr {
        border: 1px solid #eef2f7;
        margin-bottom: 1rem;
    }

    .tools-table td {
        border: none;
        border-bottom: 1px solid #eef2f7;
        position: relative;
        padding-left: 50%;
        text-align: left;
        word-break: break-word;
        hyphens: auto;
    }

    .tools-table td:before {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
    }

    .tools-table td:last-child {
        border-bottom: none;
    }

    .step-card {
        margin-bottom: 3rem;
    }

    .step-card:last-child {
        margin-bottom: 0;
    }

    body {
        font-size: 14px; /* Уменьшение общего размера текста на мобильных */
    }

    p, li, td, th {
        word-break: break-word;
        hyphens: auto;
    }

    .benefit-card h3 {
        font-size: 1.4rem;
    }

    .benefit-card p {
        font-size: 1rem;
    }

    .modal-content {
        font-size: 1rem; /* Уменьшение текста в модалах на мобильных */
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal .form-group label, .modal .form-group input, .modal .form-group textarea {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1.1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .promo-slider {
        height: 150px;
    }

    .slide h2 {
        font-size: 1.2rem;
    }

    .slide button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .services-table th, .services-table td {
        font-size: 0.8rem;
    }

    .benefit-card h3 {
        font-size: 1.3rem;
    }

    .benefit-card p {
        font-size: 0.95rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary);
}

.modal-content {
    font-size: 1.2rem; /* Увеличен размер шрифта для читаемости */
    line-height: 1.9; /* Улучшенный интервал */
    color: var(--text);
}

.modal-content p {
    margin-bottom: 1.5rem;
}

.modal-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.modal-content li {
    margin-bottom: 0.8rem;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--secondary);
}

.stat-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Таблицы внутри модальных окон */
.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}

.modal-content th,
.modal-content td {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.modal-content th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.modal-content tr:nth-child(even) td {
    background: var(--light-bg);
}

/* Фикс для форм в модалах */
.modal .form-group label {
    color: var(--primary);
    font-size: 1.1rem; /* Улучшение читаемости */
}

.modal .form-group input,
.modal .form-group textarea {
    background: var(--light-bg);
    color: var(--text);
    font-size: 1.1rem;
}

.modal .form-group input::placeholder,
.modal .form-group textarea::placeholder {
    color: #666; /* Более тёмный placeholder */
}

.modal .submit-btn {
    width: 100%;
}