/* style.css - Стили для сайта ООО «НИПИ ИМСО» */

:root {
    --primary-color: #005bbb;
    --primary-dark: #003d82;
    --primary-light: #0088ff;
    --secondary-color: #2a9d8f;
    --accent-color: #e63946;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray: #adb5bd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --success-color: #28a745;
    --error-color: #dc3545;
    --logo-size: 85px;
    --logo-size-mobile: 65px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==================== CANVAS АНИМАЦИЯ ==================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ==================== ШАПКА ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: var(--logo-size);
    height: var(--logo-size);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 91, 187, 0.2);
}

.logo-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    padding: 5px;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 91, 187, 0.3);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 3px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
}

/* Навигация */
.nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-size: 15px;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Контакты в шапке */
.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
}

.phone i {
    color: var(--primary-color);
    font-size: 13px;
}

.phone-number {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 91, 187, 0.1);
}

/* ==================== КНОПКИ ==================== */
.btn-primary, .btn-secondary, .btn-request {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 91, 187, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 91, 187, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 91, 187, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 91, 187, 0.1);
}

.btn-request {
    background: linear-gradient(135deg, var(--secondary-color), #2a9d8f);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.2);
    margin-top: 5px;
    padding: 10px 20px;
    font-size: 13px;
}

.btn-request:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

/* Кнопки в карточках услуг */
.service-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.service-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== ГЕРОЙ-СЕКЦИЯ ==================== */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
}

/* ==================== ОБЩИЕ СТИЛИ СЕКЦИЙ ==================== */
section {
    padding: 60px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--white);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

/* ==================== УСЛУГИ ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(0, 91, 187, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ==================== ПРЕИМУЩЕСТВА ==================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.advantage-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.3;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 14px;
}

/* ==================== ОБЪЕКТЫ ==================== */
.objects {
    background-color: var(--bg-color);
}

.objects-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.object-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.object-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.object-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.object-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.object-item:hover .object-image img {
    transform: scale(1.05);
}

.object-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.object-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.object-content h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.object-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 12px;
}

.object-description {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.object-client {
    background-color: var(--bg-color);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    border-left: 3px solid var(--secondary-color);
}

.object-client strong {
    color: var(--primary-dark);
}

.objects-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.objects-loading i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.modal-content {
    max-width: 800px;
    width: 100%;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 15px;
}

.modal-info {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-info h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
}

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

.modal-close:hover {
    background-color: var(--accent-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 5;
}

.modal-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.modal-nav button:hover {
    background-color: var(--primary-color);
}

.modal-meta {
    margin: 10px 0;
}

/* ==================== О КОМПАНИИ ==================== */
.about {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.about-content {
    flex: 1.2;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.about-content strong {
    color: var(--primary-dark);
}

/* Детали компании */
.company-details {
    margin: 20px 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 91, 187, 0.1);
}

.detail-item i {
    font-size: 20px;
    color: var(--primary-color);
    min-width: 32px;
    margin-top: 3px;
}

.detail-item h4 {
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
}

.detail-item p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

/* Фото директора и главного инженера */
.director-photo {
    margin-top: 12px;
    text-align: center;
}

.director-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.director-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.about-image {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    box-shadow: 0 8px 25px rgba(0, 91, 187, 0.2);
}

.image-placeholder p {
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.image-placeholder p:last-child {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.8;
}

/* ==================== КОНТАКТЫ ==================== */
.contacts-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    min-width: 25px;
    margin-top: 3px;
}

.contact-item h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
}

.contact-item .phone-number {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.contact-form h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.contact-form p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 91, 187, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Стили для сообщений формы */
.error-message {
    color: var(--error-color) !important;
    font-size: 13px !important;
    margin-top: 4px !important;
    animation: fadeIn 0.3s ease;
}

#form-message {
    display: none;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для загрузки файлов */
.contact-form input[type="file"] {
    display: none;
}

.contact-form label[for="file-upload"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 0;
}

#file-name {
    font-size: 13px;
    color: var(--text-light);
    margin-left: 8px;
    word-break: break-word;
}

/* ==================== ПОДВАЛ ==================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-logo .logo {
    margin-bottom: 15px;
}

.footer-logo .logo-icon {
    width: 60px;
    height: 60px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 14px;
}

.footer-links h4,
.footer-contacts h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

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

.footer-contacts p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-contacts i {
    width: 16px;
    font-size: 14px;
}

.footer-contacts .phone-number {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Анимация для карточек при появлении */
.service-card, .advantage-card, .object-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.animated, .advantage-card.animated, .object-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для последовательного появления */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.advantage-card:nth-child(1) { transition-delay: 0.1s; }
.advantage-card:nth-child(2) { transition-delay: 0.2s; }
.advantage-card:nth-child(3) { transition-delay: 0.3s; }
.advantage-card:nth-child(4) { transition-delay: 0.4s; }
.advantage-card:nth-child(5) { transition-delay: 0.5s; }
.advantage-card:nth-child(6) { transition-delay: 0.6s; }

/* Анимация для деталей компании */
.detail-item {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.detail-item.animated {
    opacity: 1;
    transform: translateX(0);
}

.detail-item:nth-child(1) { transition-delay: 0.1s; }
.detail-item:nth-child(2) { transition-delay: 0.2s; }
.detail-item:nth-child(3) { transition-delay: 0.3s; }
.detail-item:nth-child(4) { transition-delay: 0.4s; }
.detail-item:nth-child(5) { transition-delay: 0.5s; }

/* Анимация для статистики */
.stat-item {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.2s; }
.stat-item:nth-child(3) { transition-delay: 0.3s; }
.stat-item:nth-child(4) { transition-delay: 0.4s; }

/* Эффект пульсации для кнопок */
.btn-primary:hover {
    animation: pulse 0.5s ease;
}

/* Анимация для иконок в сервисах */
.service-card:hover .service-icon {
    animation: float 2s ease-in-out infinite;
}

/* Анимация для иконок в преимуществах */
.advantage-card:hover .advantage-icon {
    animation: pulse 1s ease;
}

/* Эффект градиента для заголовков */
.section-title {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Подсветка активного пункта меню */
.nav-list a.active {
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 91, 187, 0.2);
}

/* Эффект при наведении на контактные элементы */
.contact-item:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.contact-item i {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Анимация для placeholder изображения */
.image-placeholder {
    animation: float 4s ease-in-out infinite;
}

.image-placeholder i {
    animation: pulse 2s ease-in-out infinite;
}

/* Стили для отключенной кнопки */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    animation: none !important;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1100px) {
    .about {
        gap: 30px;
        padding: 30px;
    }
    
    .contacts-container {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about {
        flex-direction: column;
        gap: 30px;
    }
    
    .contacts-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .objects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .director-img {
        width: 120px;
        height: 120px;
    }
    
    .image-placeholder {
        height: 250px;
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 12px 0;
    }
    
    .logo {
        gap: 12px;
    }
    
    .logo-icon {
        width: var(--logo-size-mobile);
        height: var(--logo-size-mobile);
    }
    
    .logo-title {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 11px;
        line-height: 1.1;
    }
    
    .nav,
    .header-contacts {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-item {
        min-width: auto;
        width: 100%;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .objects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .objects-filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .objects-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .objects-filters::-webkit-scrollbar-track {
        background: var(--gray-light);
        border-radius: 2px;
    }
    
    .objects-filters::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .about {
        padding: 25px;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .director-img {
        width: 100px;
        height: 100px;
    }
    
    .image-placeholder {
        height: 200px;
        font-size: 32px;
    }
    
    .image-placeholder p {
        font-size: 14px;
    }
    
    /* Отключаем некоторые анимации на мобильных для производительности */
    .service-card, .advantage-card, .detail-item, .stat-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover .service-icon {
        animation: none;
    }
    
    .footer-logo .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .service-card,
    .advantage-card {
        padding: 20px 15px;
    }
    
    .service-icon,
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .service-card h3,
    .advantage-card h3 {
        font-size: 16px;
    }
    
    .object-content h3 {
        font-size: 16px;
    }
    
    .object-description {
        font-size: 13px;
    }
    
    .object-client {
        font-size: 12px;
    }
    
    .modal-info h3 {
        font-size: 16px;
    }
    
    .modal-info p {
        font-size: 14px;
    }
    
    .about-content p {
        font-size: 14px;
    }
    
    .detail-item {
        padding: 12px;
        gap: 12px;
    }
    
    .detail-item h4 {
        font-size: 15px;
    }
    
    .detail-item p {
        font-size: 13px;
    }
    
    .contact-form h3 {
        font-size: 18px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 13px;
    }
    
    .contact-item h4 {
        font-size: 15px;
    }
    
    .contact-item p {
        font-size: 13px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-title {
        font-size: 16px;
    }
    
    .logo-subtitle {
        font-size: 9px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-request,
    .service-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .director-img {
        width: 80px;
        height: 80px;
    }
    
    .footer-logo p {
        font-size: 13px;
    }
    
    .footer-links a,
    .footer-contacts p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-text {
        font-size: 13px;
    }
    
    .objects-grid {
        grid-template-columns: 1fr;
    }
    
    .about,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* ==================== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ==================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.w-100 {
    width: 100%;
}

.hidden {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

/* ==================== ПРОГРЕСС БАР ДЛЯ ЗАГРУЗКИ ==================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== УЛУЧШЕНИЯ ДЛЯ ФОРМ ==================== */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: var(--error-color);
}

/* ==================== ПОДСКАЗКИ ==================== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ==================== ПРОЧИЕ ЭФФЕКТЫ ==================== */
.shadow-sm {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-heavy);
}

.rounded {
    border-radius: var(--border-radius);
}

.border {
    border: 1px solid var(--gray-light);
}

.bg-white {
    background-color: var(--white);
}

.bg-light {
    background-color: var(--bg-color);
}

/* ==================== ПРОКРУТКА ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== ВЫДЕЛЕНИЕ ТЕКСТА ==================== */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* ==================== ПЕЧАТЬ ==================== */
@media print {
    .header,
    .hero-buttons,
    .service-btn,
    .contact-form,
    .footer,
    .objects-filters,
    .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section-title {
        color: black;
        background: none;
        -webkit-text-fill-color: black;
    }
}