h1, h2, h3 {
    text-wrap: pretty;
}

.landing {
    padding-block: 75px;
}

.landing > .container {
    padding-block: 50px;
}

/* ================================================================
   БЛОК 1: HERO
   ================================================================ */
.hero-section {
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
    padding: 80px 0 60px;
    border-bottom: none;
    text-align: center;
}

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

.hero-section .subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-section .geo {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.advantages-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.advantages-list li {
    font-size: 1.05rem;
    position: relative;
    padding-left: 28px;
}

.advantages-list li::before {
    content: '✔️';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.buttons .btn {
    min-width: 200px;
}

/* ================================================================
   БЛОК 2: ПАРТНЁРЫ (ЛОГОТИПЫ)
   ================================================================ */
.partners {
    background: var(--bg-light);
}

.partners p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logos img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ================================================================
   ТАБЛИЦЫ
   ================================================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table th,
.table td {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    text-wrap: wrap;
}

.table th {
    background: #9D855F;
    color: #fff;
    font-weight: 600;
}

.table .note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 15px;
}

@media (max-width: 768px) {

    .advantages .table,
    .advantages .table tbody,
    .advantages .table tr,
    .advantages .table td {
        display: block;
        width: 100%;
    }

    /* Убираем десктопную раскраску строк */
    .advantages .table tr,
    .advantages .table tr:nth-child(even) {
        background: transparent;
    }

    /* Первый td */
    .advantages .table td:first-child {
        background: #f5f5f5;
        font-weight: 600;
    }

    /* Второй td */
    .advantages .table td:last-child {
        background: #fff;
    }
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.brand-comparison table {
    min-width: 700px;
}

/* ================================================================
   БЛОК 5: СТОИМОСТЬ
   ================================================================ */
.cost-factors .formula {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.cost-factors ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.cost-factors ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

.cost-factors ul li:last-child {
    border-bottom: none;
}

/* ================================================================
   БЛОК 6: НЕ ПЕРЕПЛАЧИВАТЬ
   ================================================================ */
.no-overpay ol {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

.no-overpay li {
    padding: 10px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
}

.no-overpay .highlight {
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-top: 25px;
    font-size: 1.1rem;
}

.no-overpay li.success::marker {
    content: "✅ ";
}

.no-overpay li.danger::marker {
    content: "❌ ";
}

/* ================================================================
   БЛОК 7: ЧЕК-ЛИСТ
   ================================================================ */
.checklist ol {
    max-width: 800px;
    margin: 0 auto 30px;
    padding-left: 20px;
}

.checklist li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checklist .btn {
    display: table;
    margin: 0 auto;
}

/* ================================================================
   БЛОК 8: ПОПУЛЯРНЫЕ РАЗМЕРЫ
   ================================================================ */
.popular-sizes p {
    text-align: center;
    font-weight: 500;
    margin-top: 15px;
}

/* ================================================================
   БЛОК 9: КЕЙСЫ
   ================================================================ */
.cases .case-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: 0.3s;
}

.cases .case-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.cases .case-item h3 {
    color: var(--primary);
    margin-top: 0;
}

.cases .case-item ul {
    list-style: none;
    padding: 0;
}

.cases .case-item li {
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cases .case-item li:last-child {
    border-bottom: none;
}

.cases .case-item em {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* ================================================================
   БЛОК 10: КАК ПРОХОДИТ РАБОТА
   ================================================================ */
.work-process {
    background: var(--bg-light);
}

.work-process ol {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 20px;
    font-size: 1.1rem;
    list-style: auto;
}

.work-process li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* ================================================================
   БЛОК 11: 5 ПРИЗНАКОВ
   ================================================================ */
.quality-signs .intro {
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.quality-signs ul {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.quality-signs li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

/* ================================================================
   БЛОК 12: ДОВЕРИЕ
   ================================================================ */
.trust {
    background: var(--bg-light);
}

.trust ul {
    max-width: 800px;
    margin: 0 auto;
    columns: 2 280px;
    column-gap: 40px;
    list-style: none;
    padding: 0;
}

.trust li {
    padding: 10px 0;
    break-inside: avoid;
    position: relative;
    padding-left: 30px;
}

.trust li::before {
    content: '◆';
    color: var(--secondary);
    position: absolute;
    left: 0;
    top: 10px;
}

/* ================================================================
   БЛОК 13: ОТЗЫВЫ
   ================================================================ */
.reviews .rating {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 30px;
}

.review-item {
    background: #fff;
    border-left: 5px solid var(--primary);
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--box-shadow);
}

.review-item blockquote {
    margin: 0;
}

.review-item blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
}

.review-item footer {
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary);
}

.reviews .note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================================================================
   БЛОК 14: FAQ
   ================================================================ */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 18px 0;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    cursor: pointer;
    margin: 0 0 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 300;
    transition: 0.3s;
}

.faq-item.active h3::after {
    content: '−';
}

.faq-item p {
    margin: 10px 0 0 0;
    color: var(--text-muted);
    display: none;
}

.faq-item.active p {
    display: block;
}

/* ================================================================
   БЛОК 15: ГАРАНТИЯ
   ================================================================ */
.guarantee {
    background: var(--primary-light);
}

.guarantee ul {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    text-align: center;
}

.guarantee li {
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #c5d8f0;
}

.guarantee li:last-child {
    border-bottom: none;
}

/* ================================================================
   БЛОК 16: ФОРМА (ФИНАЛЬНЫЙ ПРИЗЫВ)
   ================================================================ */
.final-form {
    background: var(--primary-dark);
    color: #fff;
    text-align: center;
}

.final-form h2 {
    color: #fff;
}

.final-form h2::after {
    background: var(--secondary);
}

.final-form p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.final-form .bonus {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    margin-bottom: 30px;
}

.final-form .bonus li {
    font-size: 1rem;
    position: relative;
    padding-left: 30px;
}

.final-form .bonus li::before {
    content: '🎁';
    position: absolute;
    left: 0;
    top: -2px;
}

.final-form form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.final-form .form-group {
    width: 100%;
    text-align: left;
}

.final-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.final-form input[type="text"],
.final-form input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: #fff;
    color: var(--text-dark);
}

.final-form input:focus {
    outline: 2px solid var(--secondary);
}

.final-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    background: var(--secondary);
    color: #fff;
    border: none;
}

.final-form .btn:hover {
    background: #d4951f;
    transform: scale(1.02);
}

/* ================================================================
   БЛОК 17: ПОДВАЛ (ЮРИДИЧЕСКАЯ ИНФОРМАЦИЯ)
   ================================================================ */
.footer-legal {
    background: #222;
    color: #aaa;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #ccc;
}

.footer-legal a:hover {
    color: #fff;
}

/* ================================================================
   АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ)
   ================================================================ */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    section { padding: 45px 0; }
    .hero-section { padding: 60px 0 40px; }
    .trust ul { columns: 1; }
}

/* Мобильные телефоны */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
    section { padding: 35px 0; }

    .container { padding: 0 15px; }

    .hero-section h1 { font-size: 1.9rem; }
    .hero-section .subtitle { font-size: 1rem; }
    .hero-section .geo { font-size: 0.95rem; }
    .advantages-list { flex-direction: column; align-items: center; gap: 8px; }
    .advantages-list li { font-size: 0.95rem; }

    .buttons .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        min-width: unset;
    }

    .logos { gap: 20px; }
    .logos img { max-height: 45px; }

    .table th, .table td {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .table-wrap { overflow-x: auto; }

    .cost-factors ul li,
    .no-overpay li,
    .checklist li,
    .quality-signs li,
    .trust li,
    .guarantee li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .cases .case-item {
        padding: 18px 20px;
    }

    .review-item {
        padding: 15px 18px;
    }
    .review-item blockquote p {
        font-size: 0.95rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .final-form .bonus {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .footer-legal {
        font-size: 0.8rem;
        padding: 18px 0;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .hero-section h1 { font-size: 1.6rem; }
    .btn { font-size: 0.9rem; padding: 12px 20px; }
    .table th, .table td { font-size: 0.75rem; padding: 6px 8px; }
    .final-form input[type="text"],
    .final-form input[type="tel"] { padding: 12px 14px; }
}