/* ==========================================================================
   Адвокат Алексей Барчуков — основные стили
   ========================================================================== */

/* 1. БАЗА */
*, *::before, *::after { box-sizing: border-box; }
html { background: #e9e5da; scroll-behavior: smooth; }
body {
    position: relative;
    margin: 0;
    font-family: 'Roboto', 'Roboto Fallback', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background: #e9e5da url('/files/3-bg.webp') center center / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #4f579a; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #9a754f; }
h1, h2, h3, h4 { font-family: 'Rubik', 'Roboto', Arial, sans-serif; color: #222222; }
p { margin: 0 0 15px; }
ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid #cfc8b8; margin: 26px 0; }
strong { font-weight: 700; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 10px 16px;
    background: #ffffff;
    color: #333333;
    border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* 2. ШАПКА */
.header {
    position: relative;
    z-index: 20;
    height: 190px;
    color: #ffffff;
    background: url('/files/5.webp') center top / 1920px auto no-repeat;
}
.header__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 190px;
    padding-top: 10px;
    padding-bottom: 70px;
}
.header__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    gap: 2px 4px;
}
.header__nav a {
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
.header__nav a:hover,
.header__nav a.is-active {
    background: #d7d4c5;
    color: #2a2a2a;
}
.header__row {
    display: grid;
    grid-template-columns: minmax(220px, 25%) minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}
.header__title {
    grid-column: 2;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(28px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .3px;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, .7);
}
.header__title:hover { color: #d7d4c5; }
.header__contacts {
    grid-column: 3;
    max-width: 260px;
    text-align: right;
    font-size: 12.5px;
    line-height: 1.5;
    color: #ffffff;
}
.header__contacts p { margin: 0; }
.header__contacts a { color: #ffffff; text-decoration: none; }
.header__contacts a:hover { color: #d7d4c5; }
.header__burger {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}
.header__burger span {
    display: block;
    height: 2px;
    margin: 3px 0;
    background: #ffffff;
    border-radius: 2px;
}
.header__strip {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background: linear-gradient(to bottom, #d7d4c5 0 4px, #1b1b1b 4px 6px, #d7d4c5 6px 8px, #1b1b1b 8px 12px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .35);
}

/* 3. МОБИЛЬНОЕ МЕНЮ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    padding: 22px 24px 32px;
    overflow-y: auto;
    color: #ffffff;
    background: linear-gradient(rgba(30, 30, 30, .94), rgba(30, 30, 30, .94)), url('/files/3-bg.webp') center / cover no-repeat;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.mobile-menu__title {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #d7d4c5;
}
.mobile-menu__close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
}
.mobile-menu__nav a:hover { color: #d7d4c5; }
.mobile-menu__contact {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: 14px;
    line-height: 1.65;
}
.mobile-menu__contact a { color: #ffffff; text-decoration: none; }
.mobile-menu__contact a:hover { color: #d7d4c5; }
.mobile-menu__contact p { margin: 0 0 8px; }

/* 4. МАКЕТ */
.layout {
    display: grid;
    grid-template-columns: minmax(220px, 25%) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0 auto 50px;
}
.content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0 0 40px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.sidebar {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 30;
    top: -115px;
    margin-bottom: -152px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.sidebar__statue { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.sidebar__statue img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}
.sidebar__aphorisms {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.sidebar__aphorisms ul { margin: 0; padding: 0; list-style: none; }
.sidebar__aphorisms li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #333333;
}
.sidebar__aphorisms li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #333333;
}
.sidebar__author {
    margin: 12px 0 0;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: #444444;
}

/* 5. ТИПОГРАФИКА КОНТЕНТА */
.content h1 {
    margin: 0 0 18px;
    font-size: clamp(26px, 2.5vw, 30px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.1px;
}
.content h2 {
    margin: 34px 0 14px;
    font-size: clamp(22px, 2.2vw, 27px);
    font-weight: 600;
    line-height: 1.3;
}
.content h3 {
    margin: 28px 0 12px;
    font-size: clamp(19px, 1.8vw, 22px);
    font-weight: 500;
    line-height: 1.35;
}
.content h4 { margin: 22px 0 10px; font-size: 18px; font-weight: 500; }
.content p { margin: 0 0 15px; font-size: 16.5px; line-height: 1.72; }
.content li { font-size: 16.5px; line-height: 1.65; }
.content blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    border-left: 4px solid #9a754f;
    border-radius: 0 6px 6px 0;
    background: rgba(255, 253, 248, .55);
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: #3f3f3f;
}
.content blockquote p:last-child { margin-bottom: 0; }

/* 6. ХЛЕБНЫЕ КРОШКИ */
.breadcrumbs { margin: 0 0 18px; font-size: 13px; color: #6f6a60; }
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcrumbs li { margin: 0; line-height: 1.5; }
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 7px;
    color: #9d978a;
}
.breadcrumbs a { color: #4f579a; text-decoration: none; }
.breadcrumbs a:hover { color: #9a754f; text-decoration: underline; }
.breadcrumbs span { color: #6f6a60; }

/* 7. ГЛАВНАЯ */
.home-banner { margin: 0; }
.home-banner img {
    display: block;
    width: 100%;
    height: auto;
}
.content .home-quote {
    margin: 30px 0 32px;
    padding: 0 4px;
    text-align: right;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
    color: #333333;
}
.content .home-quote p { margin: 0 0 4px; font: inherit; }
.content .home-quote cite {
    display: block;
    margin-top: 6px;
    font-size: .9em;
    font-style: normal;
    color: #555555;
}

/* 8. АНОНСЫ И БЛОГ */
.post-list { margin-top: 6px; }
.post-preview {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}
.post-preview h2 {
    margin: 0 0 6px;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.32;
}
.post-preview h2 a { color: #4f579a; text-decoration: none; }
.post-preview h2 a:hover { color: #9a754f; text-decoration: underline; }
.post-date {
    display: block;
    margin: 0 0 10px;
    font-size: 13px;
    color: #7a756a;
}
.post-preview p { margin: 0 0 10px; }
.post-divider { margin: 24px 0; }
.read-more { font-weight: 500; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    border: 1px solid #4f579a;
    border-radius: 4px;
    background: #4f579a;
    color: #ffffff;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: #3f477f; border-color: #3f477f; color: #ffffff; }

/* 9. СТАТЬИ */
.content .article__date { margin: -6px 0 22px; font-size: 14px; color: #7a756a; }
.article__body::after { content: ''; display: table; clear: both; }
.post-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 0;
    box-shadow: none;
}
.content .article__back { margin: 28px 0 0; }
.doc-back {
    display: inline-block;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4f579a;
    text-decoration: none;
}
.doc-back:hover { color: #9a754f; text-decoration: underline; }

/* 10. О СЕБЕ */
.about-body::after { content: ''; display: table; clear: both; }
.about-photo {
    float: right;
    width: 300px;
    max-width: 45%;
    height: auto;
    margin: 4px 0 20px 26px;
    border-radius: 0;
    box-shadow: none;
}

/* 11. ВОПРОС-ОТВЕТ */
.accordion { margin: 8px 0 0; border-top: 1px solid #cfc8b8; }
.accordion__item { border-bottom: 1px solid #cfc8b8; }
.content .accordion__heading { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.accordion__question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    border: 0;
    background: none;
    color: #333333;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease;
}
.accordion__question:hover { color: #4f579a; }
.accordion__icon {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    margin-left: auto;
}
.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    background: #9a754f;
    transition: transform .25s ease, opacity .25s ease;
}
.accordion__icon::before { left: 2px; right: 2px; top: 10px; height: 2px; }
.accordion__icon::after { top: 2px; bottom: 2px; left: 10px; width: 2px; }
.accordion__item.is-open .accordion__icon::after { transform: rotate(90deg); opacity: 0; }
.accordion__answer {
    padding: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
}
.accordion__answer[hidden] { display: none; }
.accordion__answer p:last-child { margin-bottom: 0; }

/* 12. ПОЛЕЗНО ЗНАТЬ */
.law-content h3 { margin: 0 0 6px; text-align: center; }
.law-content h3:last-of-type { margin-bottom: 22px; }
.law-content > hr:first-child { display: none; }

/* 13. И ЕЩЁ КОЕ-ЧТО */
.content .epigraph {
    margin: 0 0 4px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 19px;
    font-style: italic;
    line-height: 1.5;
    color: #444444;
}
.content .epigraph-author {
    margin: 0 0 24px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    font-style: italic;
    color: #6f6a60;
}

/* 14. КОНТАКТЫ */
.content .contacts-list {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    font-size: 17px;
    line-height: 1.6;
}
.content .contacts-list li { margin: 0 0 10px; }
.map-wrap {
    margin: 22px 0 0;
    overflow: hidden;
    border: 1px solid #cfc8b8;
    border-radius: 0;
    box-shadow: none;
}
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }

/* 15. ПОДВАЛ */
.footer {
    position: relative;
    margin-top: 46px;
    padding: 40px 0 24px;
    background: #232323;
    color: #d8d4ca;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/files/3-bg.webp') center / cover no-repeat;
    opacity: .09;
    pointer-events: none;
}
.footer__inner { position: relative; z-index: 1; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 32px;
}
.footer__brand-name {
    margin: 0 0 10px;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
}
.footer__brand p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: #bdb8ad; }
.footer__phones { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.footer__phones a { color: #ffffff; text-decoration: none; }
.footer__phones a:hover { color: #d7d4c5; }
.footer h4 {
    margin: 0 0 14px;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #ffffff;
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 0 0 8px; }
.footer a { color: #e2ddd1; text-decoration: none; }
.footer a:hover { color: #c9b48a; text-decoration: underline; }
.footer__note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px;
    line-height: 1.65;
    color: #a9a49a;
}
.footer__note p { margin: 0 0 6px; }
.footer__note p:last-child { margin-bottom: 0; }
.footer__dev {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.7;
    color: #8f8a80;
    text-align: right;
}
.footer__dev a { color: #a9a49a; text-decoration: none; }
.footer__dev a:hover { color: #d7d4c5; text-decoration: underline; }
.footer__dev-logo { color: #d8d4ca !important; font-weight: 600; }

/* 16. КНОПКА «НАВЕРХ» */
.scroll-up {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #4f579a;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background-color .2s ease;
}
.scroll-up:hover { background: #3f477f; }
.scroll-up.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-up svg { display: block; width: 20px; height: 20px; margin: 0 auto; }
