* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f7f9fc;
    color: #1e293b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== ШАПКА ===== */
header {
    background: #0f172a;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #f97316;
}

header h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 30px;
}

nav a:hover {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

/* ===== HERO БЛОК ДЛЯ ГЛАВНОЙ ===== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 550px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== HERO ДЛЯ ОСТАЛЬНЫХ СТРАНИЦ ===== */
.page-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.page-hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 32px;
    background: #f97316;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* ===== СЕКЦИИ ===== */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #ffffff;
}

section:nth-child(odd) {
    background-color: #f8fafc;
}

h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0f172a;
}

h3 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    color: #0f172a;
}

/* ===== КАРТОЧКИ ===== */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background: white;
    width: 260px;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 1.4rem;
    margin: 15px 0 8px;
    color: #0f172a;
}

.card p {
    color: #475569;
    font-size: 0.9rem;
}

/* ===== СТРАНИЦА О НАС ===== */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: start;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    margin-top: 20px;
    color: #f97316;
}

.about-text h3:first-child {
    margin-top: 0;
}

.advantages-list {
    list-style: none;
    padding: 0;
}

.advantages-list li {
    padding: 8px 0;
    font-size: 1rem;
    color: #334155;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== СТРАНИЦА УСЛУГ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    display: block;
}

.service-item h3 {
    margin: 15px 0 10px;
}

.service-item p {
    color: #64748b;
    line-height: 1.5;
}

/* ===== ТАБЛИЦА ЦЕН ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

th, td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #0f172a;
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fef3c7;
}

/* ===== СТРАНИЦА КОНТАКТОВ (упрощенная) ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: #f97316;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-item p {
    color: #334155;
    margin: 8px 0;
}

/* ===== ФУТЕР ===== */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 25px 20px;
    margin-top: 20px;
    border-top: 1px solid #f97316;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .hero h2, .page-hero h2 {
        font-size: 1.8rem;
    }
    .hero, .page-hero {
        padding: 50px 20px;
    }
    .card {
        width: 45%;
    }
    h2 {
        font-size: 1.7rem;
    }
    nav {
        gap: 1rem;
    }
    .about-grid {
        flex-direction: column;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }
    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    nav a {
        padding: 8px 20px;
    }
    .hero, .page-hero {
        padding: 40px 16px;
    }
    .hero h2, .page-hero h2 {
        font-size: 1.5rem;
    }
    .card {
        width: 100%;
        max-width: 280px;
    }
    .cards {
        gap: 20px;
    }
    
    /* Адаптивная таблица */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 10px;
        background: white;
    }
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
        padding: 8px 12px;
    }
    td:last-child {
        border-bottom: none;
    }
    td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: #0f172a;
    }
}