/* Общие стили страниц дренажа и каталога услуг (dr-*).
   Вынесены из vidy-drenazha, используются всеми страницами раздела. */

/* Хлебные крошки: в строку, через разделитель */
.bread ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
}
.bread li { display: flex; align-items: center; gap: 10px; color: #6b645c; }
.bread li:not(:last-child)::after { content: "/"; color: #c9c0b4; }
.bread a { color: #ed6134; text-decoration: none; }
.bread a:hover { text-decoration: underline; }

.dr-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ed6134;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(237, 97, 52, 0.4);
    transition: transform .2s, box-shadow .2s;
}
.dr-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237, 97, 52, 0.55);
    background: #d94f23;
}
.dr-calc-btn:active { transform: translateY(0); }

.dr-article { max-width: 1100px; margin: 0 auto; padding: 0 16px; line-height: 1.7; color: #2a2a2a; }
.dr-article h2 { font-size: 28px; line-height: 1.25; margin: 56px 0 20px; color: #1a1a1a; }
.dr-article h2:first-of-type { margin-top: 24px; }
.dr-article p { margin: 0 0 16px; font-size: 16px; }
.dr-article ul { margin: 0 0 20px; padding-left: 22px; }
.dr-article ul li { margin-bottom: 8px; font-size: 16px; }
.dr-article ol { margin: 0 0 20px; padding-left: 22px; }
.dr-article ol li { margin-bottom: 8px; font-size: 16px; }
.dr-article svg { margin: 32px 0 24px !important; }

.dr-advice {
    background: #fdf0eb;
    color: #1a1a1a;
    border-left: 4px solid #ed6134;
    margin: 16px 0 20px;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.65;
}

.dr-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; font-size: 14px; background: #fff; border: 1px solid #ebd7d0; border-radius: 0; }
.dr-table caption { text-align: left; font-weight: 700; font-size: 16px; color: #1a1a1a; padding: 0 0 12px; caption-side: top; }
.dr-table td { padding: 12px 14px; border: 1px solid #ebd7d0; text-align: left; vertical-align: middle; line-height: 1.4; border-radius: 0; }
.dr-table tr:first-child { background: #ed6134; color: #fff; }
.dr-table tr:first-child td { border-bottom: 2px solid #b83d16; font-weight: 700; color: #fff; border-radius: 0; }
.dr-table tr:nth-child(even):not(:first-child) { background: #fdfbf9; }
.dr-table tr:hover:not(:first-child) { background: #fceee9; }

.dr-faq { max-width: 1100px; margin: 64px auto; padding: 0 16px; }
.dr-faq > h2 { font-size: 28px; margin: 0 0 24px; color: #1a1a1a; }
.dr-faq__item { border: 1px solid #e2dcc6; border-radius: 8px; margin-bottom: 12px; background: #fff; }
.dr-faq__item[open] { box-shadow: 0 4px 14px rgba(0,0,0,.06); border-color: #ed6134; }
.dr-faq__q { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 17px; color: #1a1a1a; list-style: none; position: relative; user-select: none; }
.dr-faq__q::-webkit-details-marker { display: none; }
.dr-faq__q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: #ed6134; line-height: 1; }
.dr-faq__item[open] .dr-faq__q::after { content: "−"; }
.dr-faq__a { padding: 0 22px 20px; font-size: 16px; line-height: 1.65; color: #444; }
.dr-faq__a p { margin: 0; }

/* === CARDS GRID SYSTEM === */
.dr-grid-section { background: #fbfaf6; padding: 64px 0; border-top: 1px solid #eadecd; border-bottom: 1px solid #eadecd; }
.dr-grid-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.dr-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.dr-card { background: #fff; border: 1px solid #e5dec9; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.dr-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(237,97,52,0.18); border-color: #ed6134; }
.dr-card__thumb { width: 100%; height: 210px; overflow: hidden; position: relative; }
.dr-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dr-card:hover .dr-card__thumb img { transform: scale(1.05); }
.dr-card__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.dr-card__title { font-size: 19px; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.dr-card__title a { color: #1a1a1a; text-decoration: none; }
.dr-card__title a:hover { color: #ed6134; }
.dr-card__desc { font-size: 14.5px; line-height: 1.6; color: #555; margin-bottom: 20px; flex-grow: 1; }
.dr-card__footer { padding: 0 24px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f2edd8; pt: 20px; margin-top: auto; }
.dr-card__price { font-size: 19px; font-weight: 800; color: #ed6134; }
.dr-card__btn { display: inline-block; padding: 10px 18px; background: #ed6134; color: #fff; font-weight: 700; text-decoration: none; border-radius: 6px; font-size: 13.5px; transition: background .2s; }
.dr-card__btn:hover { background: #d94f23; }

/* Этапы работ (нумерованные шаги) */
.dr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0 40px; counter-reset: drstep; }
.dr-step { background: #fff; border: 1px solid #e5dec9; border-radius: 12px; padding: 22px 20px; position: relative; }
.dr-step::before { counter-increment: drstep; content: counter(drstep); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #ed6134; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.dr-step b { display: block; font-size: 16px; margin-bottom: 8px; color: #1a1a1a; }
.dr-step p { margin: 0; font-size: 14px; line-height: 1.55; color: #555; }

@media (max-width: 992px) {
    .dr-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .dr-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dr-article h2 { font-size: 22px; }
    .dr-table { display: block; overflow-x: auto; }
    .dr-faq__q { font-size: 15px; padding: 16px 46px 16px 16px; }
    .dr-cards-grid { grid-template-columns: 1fr; }
    .dr-card__thumb { height: 180px; }
    .dr-steps { grid-template-columns: 1fr; }
}
