/* ============================================
   ООО "Техно-Сервис" — Основной файл стилей
   ============================================ */

/* --- Сброс и базовые настройки --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Шапка сайта --- */
header {
    background: #1a3c5e;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo a {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}

.logo span {
    color: #f0a500;
}

nav a {
    color: #ddd;
    margin-left: 25px;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

nav a:hover {
    color: #f0a500;
    border-bottom-color: #f0a500;
}

nav a.active {
    color: #f0a500;
    border-bottom-color: #f0a500;
    font-weight: 600;
}

.header-contacts span {
    font-size: 16px;
    font-weight: 500;
}

/* --- Мобильное меню --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: #152d47;
    flex-direction: column;
    padding: 10px 20px;
}

.mobile-menu a {
    color: #ddd;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    display: block;
}

.mobile-menu a:hover {
    color: #f0a500;
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 900px) {
    header nav {
        display: none;
    }
    .header-contacts {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    header {
        padding: 15px 20px;
    }
}

/* --- Заголовок страницы (page-header) --- */
.page-header {
    background: linear-gradient(135deg, #1a3c5e, #2a5a8a);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 15px;
    color: #ccc;
}

.breadcrumbs a {
    color: #f0a500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- Главная: Герой-блок --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-content {
    max-width: 750px;
}

.hero-content h1 {
    font-size: 44px;
    margin-bottom: 18px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: #f0a500;
    color: #1a3c5e;
}

.btn-primary:hover {
    background: #e09600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 165, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1a3c5e;
    transform: translateY(-2px);
}

/* --- Преимущества --- */
.advantages {
    padding: 60px 0;
    background: white;
}

.advantages h2,
.popular-services h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
    color: #1a3c5e;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.adv-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.adv-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.adv-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.adv-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a3c5e;
}

/* --- Популярные услуги (карточки) --- */
.popular-services {
    padding: 60px 0;
    background: #f0f2f5;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #1a3c5e;
}

.card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

.card-link {
    color: #f0a500;
    font-weight: 600;
    font-size: 15px;
}

.card-link:hover {
    text-decoration: underline;
}

/* --- О компании (главная) --- */
.about-preview {
    padding: 60px 0;
    background: white;
}

.about-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1 1 400px;
}

.about-text h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #1a3c5e;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.about-stats {
    flex: 1 1 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat {
    background: #1a3c5e;
    color: white;
    padding: 25px 15px;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #f0a500;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* --- Страница "О нас" --- */
.history {
    padding: 60px 0;
    background: white;
}

.history-content {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: center;
}

.history-text {
    flex: 1 1 400px;
}

.history-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a3c5e;
}

.history-text p {
    margin-bottom: 15px;
    color: #555;
}

.history-image {
    flex: 1 1 350px;
}

.image-placeholder {
    background: #ddd;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
    border-radius: 10px;
}

/* Миссия */
.mission {
    padding: 60px 0;
    background: #f0f2f5;
}

.mission h2,
.certificates h2,
.team h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #1a3c5e;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.mission-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.mission-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a3c5e;
}

/* Сертификаты */
.certificates {
    padding: 60px 0;
    background: white;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

.cert-item {
    padding: 25px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.cert-item:hover {
    border-color: #f0a500;
}

.cert-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Команда */
.team {
    padding: 60px 0;
    background: #f0f2f5;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
}

.team-member {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    font-size: 60px;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 18px;
    color: #1a3c5e;
    margin-bottom: 5px;
}

.team-member p {
    color: #777;
    font-size: 14px;
}

/* --- Страница "Услуги" --- */
.services-list {
    padding: 60px 0;
    background: white;
}

.service-block {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.service-block:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-icon-large {
    font-size: 60px;
    min-width: 80px;
    text-align: center;
}

.service-info {
    flex: 1 1 300px;
}

.service-info h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a3c5e;
}

.service-info p {
    margin-bottom: 15px;
    color: #555;
}

/* --- Страница "Цены" --- */
.prices-section {
    padding: 60px 0;
    background: white;
}

.prices-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 35px;
    color: #856404;
    font-size: 15px;
}

.prices-section h2 {
    font-size: 24px;
    color: #1a3c5e;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0a500;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.price-table thead {
    background: #1a3c5e;
    color: white;
}

.price-table th {
    padding: 15px;
    text-align: left;
    font-size: 15px;
}

.price-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.price-table tbody tr:hover {
    background: #f8f9fa;
}

.price-table td:last-child {
    font-weight: 600;
    color: #1a3c5e;
}

@media (max-width: 600px) {
    .price-table {
        font-size: 13px;
    }
    .price-table th, .price-table td {
        padding: 10px 8px;
    }
}

/* --- Страница "Контакты" --- */
.contacts-section {
    padding: 60px 0;
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-details h2,
.contact-form-wrap h2 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #1a3c5e;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 28px;
    min-width: 35px;
}

.contact-item h3 {
    font-size: 17px;
    margin-bottom: 3px;
    color: #1a3c5e;
}

.contact-item p {
    color: #555;
}

/* Карта */
.map-section {
    padding: 40px 0 60px;
    background: #f0f2f5;
}

.map-section h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    color: #1a3c5e;
}

.map-placeholder {
    background: #ddd;
    height: 350px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
}

/* --- Форма обратной связи --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f0a500;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- CTA-блок --- */
.cta {
    background: linear-gradient(135deg, #1a3c5e, #2a5a8a);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta p {
    font-size: 17px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* --- Подвал (футер) --- */
footer {
    background: #111;
    color: #ccc;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h4 {
    color: white;
    font-size: 17px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: #f0a500;
}

.footer-col a {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #f0a500;
}

.footer-col p {
    font-size: 15px;
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* --- Анимация появления --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Утилиты --- */
.text-center {
    text-align: center;
}