/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

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

/* Шапка и навигация */
header {
    background-color: #1e2a38;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Мобильное меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
}

/* Основной контент */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e3c5c, #2a5f8a);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #ffc107;
    color: #1e2a38;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #ffb300;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e3c5c;
    border-bottom: 3px solid #ffc107;
    display: inline-block;
    padding-bottom: 5px;
}

/* Таблица сметы */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-table th {
    background: #1e3c5c;
    color: white;
    padding: 15px;
    text-align: left;
}

.price-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.price-table tr:hover {
    background-color: #f1f5f9;
}

/* Карточки фактов */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tip-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card h3 {
    color: #1e3c5c;
    margin-bottom: 10px;
}

/* Форма */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #1e3c5c;
    outline: none;
}

button[type="submit"] {
    background: #1e3c5c;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #14293d;
}

/* Контакты */
.contacts-info {
    font-size: 1.2rem;
    margin: 15px 0;
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background: #1e2a38;
    color: white;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1e2a38;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
}
