/* ------------------ Глобальные стили ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------ Хедер ------------------ */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.logo span {
    color: #2563eb;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
    white-space: nowrap;
}
nav a:hover {
    color: #2563eb;
}

.btn-primary {
    background: #2563eb;
    color: white !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background: #1d4ed8;
}
.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

/* ------------------ Главный блок ------------------ */
.hero {
    padding: 60px 0 40px;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1 1 400px;
}
.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}
.hero-text p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 30px;
    max-width: 500px;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image {
    flex: 0 1 400px;
    background: #e2e8f0;
    border-radius: 16px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
}

/* ------------------ Карточки услуг ------------------ */
.services {
    padding: 40px 0 60px;
}
.services h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0f172a;
}
.card p {
    color: #475569;
    font-size: 15px;
}

/* ------------------ Контакты ------------------ */
.contacts {
    padding: 40px 0 60px;
    text-align: center;
}
.contacts h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}
.contacts p {
    font-size: 17px;
    color: #334155;
    margin-bottom: 8px;
}
.contacts a {
    color: #2563eb;
    text-decoration: none;
}
.contacts a:hover {
    text-decoration: underline;
}

/* ------------------ Подвал ------------------ */
.footer {
    background: white;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #e9edf2;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ------------------ Адаптивность ------------------ */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    nav {
        justify-content: center;
        gap: 15px;
    }
    .hero-text h1 {
        font-size: 32px;
    }
}

/* ------------------ Заглушки страниц ------------------ */
.page-stub {
    padding: 80px 0;
    text-align: center;
}
.page-stub h1 {
    font-size: 40px;
    color: #0f172a;
    margin-bottom: 20px;
}
.stub-text {
    font-size: 20px;
    color: #64748b;
    background: #f1f5f9;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
}
.contact-block {
    margin-top: 30px;
    font-size: 18px;
}
.contact-block a {
    color: #2563eb;
    text-decoration: none;
}
.contact-block a:hover {
    text-decoration: underline;
}

/* Картинка в hero */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ------------------ Форма обратной связи ------------------ */
.divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 40px auto;
    max-width: 500px;
}

.form-heading {
    font-size: 26px;
    margin-bottom: 20px;
    color: #0f172a;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 15px;
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
    margin-top: 6px;
}

/* Флеш-сообщения */
.flashes {
    max-width: 560px;
    margin: 0 auto 20px;
    text-align: left;
}
.flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 10px;
}
.flash-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}