*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #111827;
    background-color: #f9fafb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #ef4444;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    height: 48px;
}

.header__contacts {
    text-align: right;
    font-size: 14px;
}

.header__phone {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

.header__city {
    color: #6b7280;
}

/* Hero */

.hero {
    padding: 32px 0 40px;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.hero__title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.hero__lead {
    font-size: 16px;
    color: #4b5563;
    margin: 0 0 12px;
}

/* Список буллетов в герое */

.hero__bullets {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: #4b5563;
    font-size: 14px;
}

.hero__bullets li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
    line-height: 1.45;
}

.hero__bullets li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #ef4444;
    font-size: 15px;
}

/* Контактный блок в герое */

.hero__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Большая кнопка «Позвонить сейчас» */

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.35);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-call:hover {
    text-decoration: none;
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Блок мессенджеров под кнопкой */

.hero__messengers {
    margin-top: 4px;
}

.messengers__title {
    margin-bottom: 6px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Контейнер кнопок мессенджеров */

.messengers__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Крупные кнопки мессенджеров */

.messenger-btn {
    flex: 1 1 calc(33% - 10px);
    min-width: 110px;
    padding: 11px 10px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.messenger-btn span {
    display: inline-block;
    line-height: 1;
}

.messenger-btn:hover {
    text-decoration: none;
    opacity: 0.96;
    transform: translateY(-1px);
}

/* Цвета под бренд мессенджеров */

.messenger-viber {
    background-color: #7c45d9;
}

.messenger-whatsapp {
    background-color: #25d366;
}

.messenger-telegram {
    background-color: #2ea9e1;
}

.messenger-instagram {
    background: radial-gradient(circle at 30% 30%, #fdf497 0, #fd5949 45%, #d6249f 70%, #285aeb 100%);
}

/* Подпись под мессенджерами */

.messengers__note {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* Бейджи под контактным блоком */

.hero__badges {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.hero__badge-item {
    padding: 6px 10px;
    border-radius: 9999px;
    background-color: #fee2e2;
    color: #b91c1c;
    font-weight: 500;
}

/* Карточка формы */

.hero__form-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px 20px 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.form__title {
    margin: 0 0 4px;
    font-size: 18px;
}

.form__subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.form__success {
    margin-bottom: 10px;
    padding: 8px 10px;
    background-color: #ecfdf3;
    border-radius: 8px;
    font-size: 13px;
    color: #166534;
}

.form__errors {
    margin-bottom: 10px;
    padding: 8px 10px;
    background-color: #fef2f2;
    border-radius: 8px;
    font-size: 13px;
    color: #b91c1c;
}

.form__error-item + .form__error-item {
    margin-top: 2px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__group label {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
    color: #374151;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    background-color: #f9fafb;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: #ef4444;
    background-color: #ffffff;
}

.form__group textarea {
    resize: vertical;
    min-height: 60px;
}

.form__hint {
    margin-top: 3px;
    font-size: 11px;
    color: #9ca3af;
}

.form__footer {
    margin-top: 4px;
}

.form__privacy {
    margin: 6px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Универсальные кнопки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    color: #ffffff;
}

.btn--primary:hover {
    opacity: 0.95;
    text-decoration: none;
}

.btn--full {
    width: 100%;
}

.hero__note {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

/* Sections */

.section {
    padding: 32px 0;
}

.section--gray {
    background-color: #f3f4f6;
}

.section__title {
    font-size: 22px;
    margin: 0 0 12px;
}

.section__subtitle {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 14px;
}

/* Grid */

.grid {
    display: grid;
    gap: 16px;
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 14px 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
    font-size: 14px;
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.feature-card p {
    margin: 0;
    color: #6b7280;
}

/* Steps */

.steps {
    display: grid;
    gap: 10px;
}

.step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.step__number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background-color: #fee2e2;
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* исправлено с justify-content-center */
    font-size: 13px;
    font-weight: 600;
}

.step__content h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.step__content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Location / Map */

.location__text {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
}

.map-frame {
    width: 100%;
    border: 0;
    border-radius: 12px;
    min-height: 260px;
}

/* FAQ */

.faq {
    display: grid;
    gap: 12px;
}

.faq__item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    font-size: 14px;
}

.faq__item h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.faq__item p {
    margin: 0;
    color: #6b7280;
}

/* Footer */

.footer {
    background-color: #111827;
    color: #e5e7eb;
    padding: 20px 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    font-size: 13px;
}

.footer__logo {
    font-weight: 700;
    margin-bottom: 6px;
}

.footer__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.footer__phone {
    display: inline-block;
    margin-bottom: 4px;
    color: #fef2f2;
}

.footer__messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer__messengers a {
    color: #f97373;
    font-size: 12px;
}

/* Responsive */

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 20px;
    }

    .hero__title {
        font-size: 24px;
    }

    .grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .header__contacts {
        text-align: left;
    }

    .messengers__buttons {
        gap: 8px;
    }

    .messenger-btn {
        flex: 1 1 100%;
        min-width: 0;
        padding: 12px 10px;
        font-size: 16px;
    }
}
