/* ----- Сброс и базовые стили ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #fafbfc;
    color: #1e293b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ----- Шапка ----- */
header {
    background: #0b1a33;
    color: #fff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo span {
    color: #facc15;
}

.nav a {
    margin-left: 28px;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
}
.nav a:hover {
    color: #facc15;
}

.btn-primary {
    background: #facc15;
    color: #0b1a33;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.25s;
    font-size: 16px;
    display: inline-block;
}
.btn-primary:hover {
    background: #e6b800;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #facc15;
    color: #facc15;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.25s;
    cursor: pointer;
    display: inline-block;
}
.btn-secondary:hover {
    background: #facc15;
    color: #0b1a33;
}

/* ----- Герой (Hero) ----- */
.hero {
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #0b1a33 0%, #1d3b5c 100%);
    color: #fff;
}
.hero-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.hero-text {
    flex: 1 1 50%;
}
.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-text h1 span {
    color: #facc15;
}
.hero-text p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.hero-image {
    flex: 1 1 40%;
    text-align: center;
}
.hero-image i {
    font-size: 200px;
    color: #facc15;
    opacity: 0.8;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}
.hero-image .sub-icon {
    font-size: 40px;
    margin: 0 8px;
    color: #8bb3d4;
}

/* ----- Секции ----- */
.section {
    padding: 70px 0;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}
.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.benefit-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}
.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.benefit-item i {
    font-size: 48px;
    color: #facc15;
    margin-bottom: 18px;
}
.benefit-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.benefit-item p {
    color: #475569;
}

/* Как работает */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.step {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    flex: 1 1 200px;
    max-width: 260px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border-top: 6px solid #facc15;
}
.step .num {
    background: #0b1a33;
    color: #facc15;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 16px;
}
.step h4 {
    font-size: 20px;
    margin-bottom: 8px;
}
.step p {
    color: #475569;
    font-size: 15px;
}

/* Тарифы */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.pricing-card {
    background: #fff;
    border-radius: 28px;
    padding: 35px 30px;
    flex: 1 1 260px;
    max-width: 320px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.25s;
}
.pricing-card:hover {
    transform: scale(1.02);
}
.pricing-card.popular {
    border: 2px solid #facc15;
    position: relative;
}
.pricing-card.popular::after {
    content: "Популярный";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #facc15;
    color: #0b1a33;
    font-weight: 700;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 14px;
}
.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.pricing-card .price {
    font-size: 42px;
    font-weight: 800;
    color: #0b1a33;
    margin: 16px 0;
}
.pricing-card .price small {
    font-size: 18px;
    font-weight: 400;
    color: #64748b;
}
.pricing-card ul {
    list-style: none;
    margin: 20px 0 30px;
    text-align: left;
}
.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.pricing-card ul li i {
    color: #facc15;
    margin-right: 10px;
}

/* Отзывы */
.reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.review {
    background: #fff;
    padding: 28px 24px;
    border-radius: 20px;
    flex: 1 1 280px;
    max-width: 350px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.review .stars {
    color: #facc15;
    margin-bottom: 10px;
    font-size: 18px;
}
.review p {
    font-style: italic;
    color: #334155;
}
.review .author {
    margin-top: 16px;
    font-weight: 600;
    color: #0b1a33;
}

/* Форма */
.form-section {
    background: #0b1a33;
    color: #fff;
    border-radius: 40px;
    padding: 50px 40px;
    margin: 40px auto;
}
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.form-text {
    flex: 1 1 40%;
}
.form-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
}
.form-text p {
    opacity: 0.8;
    font-size: 18px;
}
.form-fields {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-fields input,
.form-fields textarea {
    padding: 16px 20px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    background: #fff;
    color: #0b1a33;
    outline: none;
    font-family: inherit;
}
.form-fields textarea {
    resize: vertical;
    min-height: 80px;
    border-radius: 20px;
}
.form-fields .btn-primary {
    align-self: flex-start;
    padding: 16px 50px;
    font-size: 18px;
}

/* Подвал */
footer {
    background: #0b1a33;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #1e3a5f;
    margin-top: 40px;
}
footer a {
    color: #facc15;
}
footer .socials {
    margin-bottom: 12px;
}
footer .socials a {
    margin: 0 12px;
    font-size: 22px;
    color: #94a3b8;
    transition: 0.2s;
}
footer .socials a:hover {
    color: #facc15;
}

/* ----- Стили для каталога и страницы фирмы ----- */
.firm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.firm-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.firm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.firm-card__image {
    height: 140px;
    background: #e9edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b1a33;
}
.firm-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.firm-card__initials {
    background: #facc15;
    color: #0b1a33;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}
.firm-card__body {
    padding: 20px;
}
.firm-card__title {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.firm-card__rating {
    color: #facc15;
    margin-bottom: 8px;
}
.firm-card__desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.btn--primary {
    background: #facc15;
    color: #0b1a33;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}
.btn--primary:hover {
    background: #e6b800;
    transform: scale(1.02);
}
.btn--secondary {
    background: #e9edf2;
    color: #0b1a33;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}
.btn--secondary:hover {
    background: #d0d7e0;
}

/* Детальная страница фирмы */
.firm-details {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.firm-details__header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.firm-details__rating {
    font-size: 1.4rem;
}
.firm-details__body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.firm-details__logo {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    padding: 8px;
}
.firm-details__description {
    flex: 1;
}
.firm-details__actions {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #64748b;
}
.breadcrumbs a {
    color: #0b1a33;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 34px;
    }
    .hero-image i {
        font-size: 120px;
    }
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
    .nav a {
        margin: 0 12px;
        font-size: 14px;
    }
    .section-title {
        font-size: 28px;
    }
    .form-section {
        padding: 30px 20px;
    }
    .pricing-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .firm-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
        
    }
    /* Стиль для входа */
.nav .login-link {
    color: #facc15;
    font-weight: 600;
}
.nav .login-link i {
    margin-right: 6px;
}
.nav .login-link:hover {
    color: #fff;
}
}