/*
Theme Name: PromAlpProf
Theme URI: https://9169077033.ru
Author: base1194
Author URI: https://t.me/baser1194
Description: Тема для сайта промышленных альпинистов
Version: 1.0.5
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prom-alp-prof
Tags: industrial, alpine, services, business, responsive

Это основная тема для сайта ПромАльпПроф.
*/

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные переменные */
:root {
    --primary-color: #33FF00;
    --secondary-color: #FFFF00;
    --dark-color: #000000;
    --light-color: #fff;
    --gradient: linear-gradient(135deg, #33FF00 0%, #FFFF00 100%);
    --transition: all 0.3s ease;
    --construction-bg: #1a1a1a;
    --metal-color: #7d7d7d;
    --concrete-color: #8c8c8c;
}

/* Основные стили */
body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Двойная диагональная черно-желтая полоса - знак опасной зоны */
.safety-stripe {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #000000,
        #000000 10px,
        #FFFF00 10px,
        #FFFF00 20px
    );
    z-index: 999;
    pointer-events: none;
}

.safety-stripe.secondary {
    top: 82px;
    background: repeating-linear-gradient(
        -45deg,
        #000000,
        #000000 10px,
        #FFFF00 10px,
        #FFFF00 20px
    );
    opacity: 0.8;
}

/* Элементы дизайна - царапины и строительная сетка */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(51, 255, 0, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 0, 0.03) 2px, transparent 2px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Шапка - уменьшенная высота */
.site-header {
    background: #ffffff;
    color: #000000;
    padding: 5px 0 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--primary-color);
    min-height: 70px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
}

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

.logo-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-text h1 {
    font-size: 20px;
    margin-bottom: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-black {
    color: #000000;
}

.logo-green {
    color: #33FF00;
}

.subtitle {
    font-size: 11px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.header-contact {
    text-align: right;
}

.phone {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    transition: var(--transition);
}

.phone:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.header-contact p {
    color: #000000;
    font-size: 12px;
    margin-top: 2px;
}

/* Главное меню */
.main-nav {
    background: #ffffff;
    padding: 8px 0;
    border-top: 1px solid rgba(51, 255, 0, 0.2);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    transition: var(--transition);
    background: transparent;
    border: none;
    font-size: 13px;
    white-space: nowrap;
    display: block;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: transparent;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000000;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* Герой-секция - улучшенный дизайн */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 8px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #000000,
        #000000 10px,
        #FFFF00 10px,
        #FFFF00 20px
    ) 1;
}

/* Эффект строительной сетки на фоне */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.7) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.3;
}

/* Новая структура для hero-секции */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-right {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Текст на герое - улучшенный дизайн */
.hero-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-text h2 span:first-child {
    color: #ffffff;
}

.hero-text h2 span:nth-child(2) {
    color: #33FF00;
    text-shadow: 0 0 10px rgba(51, 255, 0, 0.5);
}

.hero-text h2 span:last-child {
    color: #ffffff;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--secondary-color);
    max-width: 500px;
    font-weight: 500;
}

/* Социальные иконки */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-icon img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(51, 255, 0, 0.5);
}

.social-icon:hover img {
    filter: brightness(0);
}

/* Форма - увеличенная и улучшенная */
.contact-form {
    background: rgba(26, 26, 26, 0.95);
    padding: 30px;
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
}

.contact-form::-webkit-scrollbar {
    width: 6px;
}

.contact-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.contact-form::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(51, 255, 0, 0.3);
}

.form-header h3 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header p {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(51, 255, 0, 0.3);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для select */
.form-control option {
    color: #000000;
    background: #ffffff;
    padding: 10px;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 255, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

select.form-control {
    height: 42px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333FF00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.btn {
    background: var(--gradient);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(51, 255, 0, 0.4);
}

.btn:hover::before {
    left: 100%;
}

/* Секции с декоративными элементами */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

/* Разделители секций с черно-желтыми полосами */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #000000,
        #000000 10px,
        #FFFF00 10px,
        #FFFF00 20px
    );
    z-index: 1;
}

/* Декоративные элементы в секциях */
.section::after {
    content: '⚠️';
    position: absolute;
    font-size: 80px;
    opacity: 0.05;
    left: 5%;
    bottom: 10%;
    z-index: 1;
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2::before {
    content: '▲';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(51, 255, 0, 0.5);
}

.section-title h2::after {
    content: '▲';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(51, 255, 0, 0.5);
}

/* О нас */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.about-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.about-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(51, 255, 0, 0.2);
}

.about-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(51, 255, 0, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.about-item h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.about-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Услуги - строительный стиль */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card.construction-style {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    background-image: 
        linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-image: linear-gradient(45deg, #33FF00, #FFFF00) 1;
}

.service-card.construction-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    z-index: 2;
}

.service-card.construction-style:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(51, 255, 0, 0.2);
    border-color: var(--primary-color);
}

.service-header {
    background: var(--construction-bg);
    padding: 25px 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.service-header h3 {
    color: white;
    font-size: 22px;
    margin: 0;
    flex-grow: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.safety-tag {
    background: #FF0000;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.service-content {
    padding: 25px;
}

.service-description {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(51, 255, 0, 0.3);
}

.service-features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 16px;
}

.service-note {
    background: rgba(51, 255, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 20px 0;
}

.service-footer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.03);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    background: var(--gradient);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: #000;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(51, 255, 0, 0.4);
}

/* Подвал */
.site-footer {
    background: #000;
    color: white;
    padding: 50px 0 20px;
    border-top: 3px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #aaa;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-social .social-icon {
    width: 36px;
    height: 36px;
}

.footer-social .social-icon img {
    width: 18px;
    height: 18px;
}

/* Кнопка "Наверх" */
.back-to-top {
    background: var(--gradient);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    font-size: 20px;
    border: 2px solid #000;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(51, 255, 0, 0.5);
}

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

/* Модальное окно - уменьшенная высота */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-content {
    background: #000;
    padding: 25px;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    position: relative;
    border: 3px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(51, 255, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Компактные стили для модальной формы */
.modal-content .form-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.modal-content .form-header h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.modal-content .form-header p {
    font-size: 13px;
}

.modal-content .form-group {
    margin-bottom: 12px;
}

.modal-content .form-group label {
    font-size: 13px;
    margin-bottom: 4px;
}

.modal-content .form-control {
    padding: 8px 10px;
    font-size: 14px;
    height: 38px;
}

.modal-content select.form-control {
    height: 38px;
    padding-right: 35px;
    background-size: 14px;
}

.modal-content .btn {
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 5px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.close-modal:hover {
    color: var(--secondary-color);
    background: rgba(51, 255, 0, 0.2);
    transform: rotate(90deg);
}

/* Уведомление об успехе */
.success-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 3000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease;
    font-size: 14px;
    border: 2px solid #000;
    max-width: 300px;
}

/* Анимации */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left, .hero-right {
        justify-content: center;
    }
    
    .hero-text p {
        max-width: 100%;
        margin: 0 auto 30px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-text h2 {
        font-size: 32px;
    }
    
    .contact-form {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .modal-content {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-img img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .phone {
        font-size: 15px;
    }
    
    /* Мобильное меню */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .main-nav.active {
        max-height: 400px;
        padding: 15px 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .nav-menu a {
        width: 90%;
        text-align: center;
        padding: 10px 15px;
        color: #000000;
    }
    
    .hero {
        padding: 120px 0 30px;
    }
    
    .hero-text h2 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .modal-content {
        padding: 20px;
        max-height: 80vh;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .safety-tag {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .hero-text h2 {
        font-size: 24px;
    }
    
    .section-title h2 {
        font-size: 28px;
        padding: 0 30px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .modal-content {
        padding: 15px;
        max-height: 75vh;
    }
    
    .modal-content .form-group {
        margin-bottom: 10px;
    }
    
    .modal-content .form-control {
        padding: 7px 9px;
        font-size: 13px;
    }
    
    .modal-content .btn {
        padding: 9px 18px;
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon img {
        width: 22px;
        height: 22px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-height: 700px) {
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-content .form-group {
        margin-bottom: 8px;
    }
    
    .modal-content .form-control {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .modal-content .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-height: 600px) {
    .modal-content {
        max-height: 95vh;
        padding: 15px;
    }
    
    .modal-content .form-header {
        margin-bottom: 15px;
    }
    
    .modal-content .form-header h3 {
        font-size: 20px;
    }
    
    .modal-content .form-group {
        margin-bottom: 6px;
    }
}