.walls-page {
    padding: 32px 0 80px;
    color: #14231e;
    background: #f6f8f7;
}

.walls-shell {
    /* Соответствует центральной колонке col-xl-10 у «Ленточного фундамента». */
    max-width: 960px;
    margin: auto;
}

.walls-breadcrumbs {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    padding: 8px 12px;
    margin: 0 0 28px;
    color: #61706a;
    background: #edf4ef;
    border: 1px solid #d7e5dc;
    border-radius: 999px;
}

.walls-breadcrumbs a {
    color: #08724e;
    font-weight: 700;
    text-decoration: none;
}

.walls-hero {
    max-width: 760px;
    margin-bottom: 36px;
}

.walls-eyebrow {
    margin: 0 0 8px;
    color: #08724e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.walls-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.walls-hero p {
    margin: 0;
    color: #56675f;
    font-size: 1.1rem;
}

.walls-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.walls-card {
    padding: 28px;
    background: #fff;
    border: 1px solid #dce6e0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgb(16 40 32 / 7%);
}

.walls-form-section + .walls-form-section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid #dce6e0;
}

.walls-card h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
}

.walls-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.walls-field label {
    display: block;
    margin: 0 0 7px;
    color: #31423a;
    font-size: 0.9rem;
    font-weight: 700;
}

.walls-field input,
.walls-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: #14231e;
    font: inherit;
    background: #fff;
    border: 1px solid #b8c9c0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgb(16 40 32 / 4%);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.walls-field input:hover,
.walls-field select:hover {
    border-color: #7e9b8d;
}

.walls-field input:focus,
.walls-field select:focus {
    border-color: #14805c;
    outline: 0;
    box-shadow: 0 0 0 4px rgb(20 128 92 / 15%);
}

.walls-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    margin-top: 28px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #19a874, #08724e);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgb(8 114 78 / 25%);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.walls-submit:hover {
    box-shadow: 0 11px 24px rgb(8 114 78 / 31%);
    transform: translateY(-1px);
}

.walls-submit:active {
    transform: translateY(0);
}

.walls-result {
    position: sticky;
    top: 16px;
}

.walls-result dl {
    margin: 0;
}

.walls-result dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e5ebe7;
}

.walls-result dt {
    color: #61706a;
}

.walls-result dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.walls-total dt,
.walls-total dd {
    color: #08724e;
    font-weight: 800;
}

.walls-result > p {
    margin: 18px 0 0;
    color: #61706a;
    font-size: 0.85rem;
}

.walls-content {
    max-width: 820px;
    padding-top: 64px;
}

.walls-content h2 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.walls-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 48px;
}

.walls-benefits article {
    padding: 20px;
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 14px;
}

.walls-benefits h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.walls-benefits p,
.walls-content li {
    color: #61706a;
}

.walls-benefits p {
    margin: 0;
}

.walls-content ol {
    padding-left: 22px;
}

.walls-content li + li {
    margin-top: 8px;
}

.walls-warning {
    padding: 24px;
    margin: 10px 0 28px;
    background: #fff4d9;
    border: 1px solid #f1dcaa;
    border-radius: 14px;
}

.walls-faq details {
    padding: 16px 0;
    border-top: 1px solid #dce6e0;
}

.walls-content > h2:not(:first-child),
.walls-content > ol {
    max-width: 820px;
}

.walls-faq summary {
    font-weight: 700;
    cursor: pointer;
}

.walls-faq p {
    color: #61706a;
}

.walls-diagrams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 28px;
}

.walls-diagram {
    padding: 14px;
    margin: 0;
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgb(16 40 32 / 5%);
}

.walls-diagram img {
    display: block;
    width: 100%;
    height: auto;
    background: #f8fbf9;
    border: 1px solid #e1e9e4;
    border-radius: 10px;
}

.walls-diagram figcaption {
    padding: 13px 4px 2px;
    color: #61706a;
    font-size: 0.88rem;
    line-height: 1.45;
}

@media (max-width: 991px) {
    .walls-layout {
        grid-template-columns: 1fr;
    }

    .walls-result {
        position: static;
    }
}

@media (max-width: 767px) {
    .walls-page {
        padding: 24px 0 56px;
    }

    .walls-card {
        padding: 20px;
    }

    .walls-fields,
    .walls-benefits,
    .walls-diagrams {
        grid-template-columns: 1fr;
    }

    .walls-diagrams {
        gap: 14px;
    }

    .walls-diagram {
        padding: 10px;
    }

    .walls-submit {
        width: 100%;
    }

    .walls-content {
        padding-top: 44px;
    }
}

/* Защита от внешних стилей шаблона: схемы всегда две в ряд на десктопе. */
.walls-page .walls-diagrams {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px;
}

.walls-page .walls-diagram {
    min-width: 0;
}

@media (max-width: 767px) {
    .walls-page .walls-diagrams {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
}
