* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background: #f7f7f7;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0b57d0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #111;
    white-space: nowrap;
}

.logo span {
    color: #0b57d0;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

nav a {
    color: #222;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
}

/* Первый экран */
.hero {
    background: linear-gradient(135deg, #0b57d0 0%, #2878f0 100%);
    color: #fff;
    padding: 56px 0;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.15;
}

.hero p {
    margin: 0 0 24px;
    font-size: 18px;
    max-width: 760px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: #fff;
    color: #0b57d0;
}

.btn-primary:hover {
    background: #f1f1f1;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.22);
    text-decoration: none;
}

/* Секции */
.section {
    padding: 48px 0;
}

.section-white {
    background: #fff;
    position: relative;
    z-index: 1;
}

.section h1,
.section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.2;
}

.section h1 {
    font-size: 34px;
}

.section h2 {
    font-size: 30px;
}

.section p.lead {
    font-size: 18px;
    color: #555;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Секция поиска */
.search-section {
    position: relative;
    z-index: 20;
}

/* Виджет */
.widget-box {
    position: relative;
    z-index: 30;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: visible;
}

#hr-widget {
    position: relative;
    z-index: 40;
    width: 100%;
    max-width: 100%;
    min-height: 120px;
}

/* Карточки преимуществ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

/* Отзывы */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.review-card strong {
    display: block;
    margin-top: 10px;
}

/* Контентные блоки */
.content-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.06);
}

.content-box h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 12px;
    font-size: 18px;
    word-break: break-word;
}

.note {
    font-size: 14px;
    color: #666;
}

/* Подвал */
footer {
    background: #111827;
    color: #d6d6d6;
    padding: 28px 0 90px;
    margin-top: 40px;
}

footer a {
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Нижняя мобильная панель */
.mobile-bar {
    display: none;
}

.mobile-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.mobile-call {
    background: #0b57d0;
}

.mobile-wa {
    background: #20b15a;
}

/* Планшеты */
@media (max-width: 900px) {
    .features,
    .reviews {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section h1 {
        font-size: 30px;
    }

    .section h2 {
        font-size: 28px;
    }

    nav {
        gap: 12px;
    }
}

/* Телефоны */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
    }

    nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 14px;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        padding: 36px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p,
    .lead {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 34px 0;
    }

    .section h1 {
        font-size: 26px;
    }

    .section h2 {
        font-size: 24px;
    }

    .content-box,
    .widget-box,
    .feature-card,
    .review-card {
        padding: 16px;
        border-radius: 12px;
    }

    .contact-list li {
        font-size: 16px;
    }

    #hr-widget {
        min-height: 100px;
    }

    .mobile-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        box-shadow: 0 -4px 18px rgba(0,0,0,0.15);
    }
}