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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Шапка сайта */
.o-nas-header {
    background-color: #101828;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: #ffc107;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-r {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    color: #101828;
}

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

.logo-main {
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    color: #ffc107;
}

.logo-klin {
    color: white;
}

.logo-sub {
    font-size: 12px;
    color: white;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #ffc107;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-link i {
    color: #ffc107;
}

.btn-primary {
    background-color: #ffc107;
    color: #101828;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Герой секция */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Основные секции */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #101828;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.content-block {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-block p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Оборудование */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.equipment-card {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #ffc107;
}

.equipment-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 20px;
}

.equipment-card h3 {
    color: #101828;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.equipment-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 193, 7, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #101828;
    font-size: 2rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Модальное окно галереи */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 1200px;
    animation: modalFadeIn 0.5s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: scale(0.8);}
    to {opacity: 1; transform: scale(1);}
}

.modal-image {
    width: 100%;
    height: 70vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-caption {
    text-align: center;
    color: #f1f1f1;
    font-size: 1.2rem;
    padding: 20px 10px;
    background: rgba(0,0,0,0.7);
    margin: 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #ffc107;
    text-decoration: none;
    cursor: pointer;
}

.prev-btn,
.next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0,0,0,0.5);
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(255, 193, 7, 0.8);
    color: #101828;
}

/* Команда */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #101828;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.team-member:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.team-member h3 {
    color: #101828;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.team-position {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.team-member p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.advantage-card i {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.advantage-card:hover i {
    transform: scale(1.1) rotate(10deg);
}

.advantage-card h3 {
    color: #101828;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.advantage-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Футер (исправленный, как на других страницах) */
footer {
    background-color: #0a0f1a;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #ffc107;
    color: #101828;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffc107;
}

.contact-details {
    line-height: 1.7;
}

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

.contact-icon {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    margin-top: 3px;
}

.contact-details a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #ffc107;
}

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

/* Кнопка звонка */
.call-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #101828;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s;
}

.call-button:hover {
    transform: scale(1.1);
}

/* Адаптивный дизайн */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #101828;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.show {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-section {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-image {
        height: 50vh;
    }
}