/* Стили для служебных страниц (about, how-it-works, contacts, etc.) */

.page-hero {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    padding: 40px 0 30px;
    border-bottom: 1px solid #f0e6cf;
}

.page-hero h1 {
    font-size: 32px;
    margin: 0 0 10px;
    color: #2c2c2c;
}

.page-hero .page-lead {
    font-size: 17px;
    color: #555;
    max-width: 720px;
    margin: 0;
    line-height: 1.5;
}

.page-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 20px;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

.page-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    color: #2c2c2c;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
    font-size: 17px;
    margin: 22px 0 8px;
    color: #444;
}

.page-content p {
    margin: 0 0 14px;
}

.page-content ul, .page-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content strong {
    color: #2c2c2c;
}

.page-content a {
    color: #e65100;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content .info-box {
    background: #fff8e1;
    border-left: 3px solid #ffb300;
    padding: 14px 18px;
    margin: 18px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #6d4c00;
}

.page-content .info-box strong { color: #5d4037; }

.page-content .steps {
    counter-reset: step;
    padding-left: 0;
    list-style: none;
    margin: 20px 0;
}

.page-content .steps > li {
    counter-increment: step;
    position: relative;
    padding: 14px 16px 14px 56px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 10px;
    min-height: 40px;
}

.page-content .steps > li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e65100;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.contact-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.contact-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #2c2c2c;
}

.contact-card a {
    color: #e65100;
    font-weight: 600;
    text-decoration: none;
}

.cta-block {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 28px;
    margin: 28px 0;
    text-align: center;
}

.cta-block h2 { margin: 0 0 8px; color: #5d4037; }
.cta-block p { color: #6d4c00; margin: 0 0 16px; }

.cta-block .btn {
    display: inline-block;
    padding: 12px 26px;
    background: #e65100;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.cta-block .btn:hover { background: #c54400; }

.faq-page details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-page details summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: #2c2c2c;
    list-style: none;
}

.faq-page details summary::-webkit-details-marker { display: none; }
.faq-page details summary:before {
    content: "▸";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.15s;
    color: #999;
}
.faq-page details[open] summary:before { transform: rotate(90deg); }
.faq-page details summary:hover { background: #fafafa; }
.faq-page details > div {
    padding: 0 18px 16px 42px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.footer-pages {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    font-size: 13px;
}

.footer-pages h4 {
    color: #ccc;
    font-size: 14px;
    margin: 0 0 8px;
}

.footer-pages a {
    display: block;
    color: #999;
    text-decoration: none;
    padding: 3px 0;
}

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