@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --brand-dark: #0f1e36;
    --brand-navy: #15294a;
    --brand-light: #f4f6f9;
    --accent-gold: #c5a880;
    --accent-gold-hover: #b09168;
    --accent-burgundy: #7d223a;
    --accent-burgundy-hover: #661a2e;
    --text-main: #2d3748;
    --text-muted: #718096;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --container-width: 1200px;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
}

/* Layout blocks */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Topbar */
.topbar {
    background-color: var(--brand-dark);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar__benefits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar__benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-gold);
}

.topbar__benefit-text {
    color: var(--text-white);
}

.topbar__contacts {
    display: flex;
    gap: 20px;
}

.topbar__link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar__link:hover {
    color: var(--accent-gold);
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header--sticky {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header__logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-icon {
    font-size: 1.8rem;
    color: var(--brand-navy);
}

.header__logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header__nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--brand-navy);
    position: relative;
    padding: 5px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-normal);
}

.header__nav-link:hover {
    color: var(--accent-gold);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone-link {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-navy);
}

.header__phone-link:hover {
    color: var(--accent-gold);
}

/* Common Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.button--primary {
    background-color: var(--accent-burgundy);
    color: var(--text-white);
}

.button--primary:hover {
    background-color: var(--accent-burgundy-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button--secondary {
    background-color: transparent;
    color: var(--brand-navy);
    border: 2px solid var(--brand-navy);
}

.button--secondary:hover {
    background-color: var(--brand-navy);
    color: var(--text-white);
    transform: translateY(-2px);
}

.button--gold {
    background-color: var(--accent-gold);
    color: var(--brand-dark);
}

.button--gold:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 30, 54, 0.95) 0%, rgba(21, 41, 74, 0.85) 100%), url('../img/hero-bg.png') no-repeat center center/cover;
    color: var(--text-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero__info {
    z-index: 10;
}

.hero__badge {
    display: inline-block;
    background-color: rgba(197, 168, 128, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--text-white);
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.hero__bullets {
    margin-bottom: 40px;
    list-style: none;
}

.hero__bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.hero__bullet-icon {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero__photo-wrapper {
    position: relative;
    z-index: 10;
}

.hero__photo-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--accent-gold);
    border-radius: 8px;
    z-index: 1;
}

.hero__photo {
    position: relative;
    z-index: 2;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    max-height: 480px;
    object-fit: cover;
    width: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section--bg-light {
    background-color: var(--brand-light);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section__badge {
    color: var(--accent-burgundy);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.section__title {
    font-size: 2.25rem;
    color: var(--brand-navy);
    position: relative;
    padding-bottom: 15px;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 6px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.service-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background-color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-burgundy);
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.service-card:hover .service-card__icon-wrapper {
    background-color: var(--accent-gold);
    color: var(--brand-dark);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--brand-navy);
}

.service-card__description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.5;
}

.service-card__link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-burgundy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card__link:hover {
    color: var(--accent-gold-hover);
}

/* About Lawyer Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__photo-wrapper {
    position: relative;
}

.about__photo {
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.about__photo-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--brand-navy);
    color: var(--text-white);
    padding: 20px 30px;
    border-radius: 4px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.about__photo-years {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.about__photo-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about__info h2 {
    font-size: 2.25rem;
    color: var(--brand-navy);
    margin-bottom: 25px;
}

.about__desc {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.about__desc-secondary {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about__feature-item {
    display: flex;
    gap: 12px;
}

.about__feature-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.about__feature-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.about__feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Case Studies */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: var(--bg-white);
    border-radius: 6px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-gold);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-burgundy);
}

.case-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.case-card__tag {
    background-color: var(--brand-light);
    color: var(--brand-navy);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.case-card__title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--brand-navy);
}

.case-card__details {
    margin-bottom: 20px;
}

.case-card__detail-item {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.case-card__detail-label {
    font-weight: 600;
    color: var(--text-main);
}

.case-card__result {
    background-color: rgba(197, 168, 128, 0.1);
    border: 1px dashed var(--accent-gold);
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--brand-navy);
    font-weight: 600;
}

/* Pricing Section */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-white);
    border-radius: 6px;
    padding: 50px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card--featured {
    border: 2px solid var(--accent-gold);
    position: relative;
    transform: scale(1.03);
}

.pricing-card--featured::before {
    content: 'РЕКОМЕНДУЕМ';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    color: var(--brand-dark);
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.pricing-card__title {
    font-size: 1.5rem;
    color: var(--brand-navy);
    margin-bottom: 15px;
}

.pricing-card__price {
    margin-bottom: 30px;
}

.pricing-card__amount {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-burgundy);
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 1;
}

.pricing-card__feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--brand-light);
    padding-bottom: 8px;
}

.pricing-card__feature-icon {
    color: var(--accent-gold);
}

/* FAQ Accordion */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-item__question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--brand-navy);
    transition: var(--transition-fast);
}

.faq-item__question:hover {
    background-color: var(--brand-light);
}

.faq-item__icon {
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.faq-item--active .faq-item__icon {
    transform: rotate(45deg);
    color: var(--accent-gold);
}

.faq-item__answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item--active .faq-item__answer {
    padding: 0 25px 20px;
    max-height: 300px;
}

/* Contact Section */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--brand-navy);
    text-transform: uppercase;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info__block {
    background-color: var(--brand-navy);
    color: var(--text-white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
}

.contact-info__title {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.contact-info__list {
    list-style: none;
}

.contact-info__item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-info__icon {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.contact-info__item-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info__item-value {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background-color: var(--brand-dark);
    color: var(--text-white);
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer__col-title {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.footer__col-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer__nav-list {
    list-style: none;
}

.footer__nav-item {
    margin-bottom: 12px;
}

.footer__nav-link:hover {
    color: var(--accent-gold);
}

.footer__contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact-icon {
    color: var(--accent-gold);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Blog Layouts */
.blog-promo {
    background-color: var(--brand-light);
}

.blog-promo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card__image-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    background-color: var(--brand-dark);
}

.blog-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold-hover);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-card__title {
    font-size: 1.2rem;
    color: var(--brand-navy);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.blog-card__link {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-burgundy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card__link:hover {
    color: var(--accent-gold);
}

/* Article Template */
.article-header {
    background-color: var(--brand-navy);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
}

.article-header__meta {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.article-header__title {
    font-size: 2.5rem;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
}

/* =============================================
   YMYL / E-E-A-T ARTICLE ELEMENTS
   ============================================= */

/* Article Meta Bar — author + reading time + date */
.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--brand-light) 0%, #eef1f6 100%);
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.article-meta__author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.article-meta__author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
}

.article-meta__author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.article-meta__author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-navy);
    line-height: 1.2;
}

.article-meta__author-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.article-meta__divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-color);
    flex-shrink: 0;
}

.article-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.article-meta__item-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.article-meta__item strong {
    color: var(--text-main);
    font-weight: 600;
}

.article-meta__verified {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    background-color: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-burgundy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.article-meta__verified-icon {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* Legal Disclaimer — YMYL critical notice */
.ymyl-disclaimer {
    background: linear-gradient(135deg, #fff8f0 0%, #fffcf5 100%);
    border: 1px solid #e8d5b0;
    border-left: 4px solid var(--accent-gold);
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 32px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ymyl-disclaimer__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ymyl-disclaimer__content {
    flex: 1;
}

.ymyl-disclaimer__title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--brand-navy);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ymyl-disclaimer__text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.ymyl-disclaimer__text a {
    color: var(--accent-burgundy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Article Author Bio Card — end of article */
.article-author-bio {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-dark) 100%);
    border-radius: 10px;
    padding: 30px;
    margin: 48px 0 32px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.article-author-bio::before {
    content: '⚖';
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 8rem;
    opacity: 0.04;
    line-height: 1;
}

.article-author-bio__photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
}

.article-author-bio__content {
    flex: 1;
}

.article-author-bio__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    margin-bottom: 6px;
    display: block;
}

.article-author-bio__name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.article-author-bio__title {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
}

.article-author-bio__text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88) !important;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Force all text inside author bio to be readable on dark background */
.article-author-bio p,
.article-author-bio .article-author-bio__text {
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.article-author-bio__credentials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-author-bio__credential {
    background: rgba(197,168,128,0.15);
    border: 1px solid rgba(197,168,128,0.35);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.article-author-bio__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-gold);
    color: var(--brand-dark);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.article-author-bio__cta:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-1px);
}

/* Sources / Legal Basis block */
.article-sources {
    background-color: var(--brand-light);
    border-radius: 6px;
    padding: 22px 26px;
    margin: 32px 0;
    border-top: 3px solid var(--brand-navy);
}

.article-sources__title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-sources__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sources__item {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.4;
}

.article-sources__item:last-child {
    border-bottom: none;
}

.article-sources__item::before {
    content: '§';
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Article Update Badge */
.article-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(21, 41, 74, 0.07);
    border: 1px solid rgba(21, 41, 74, 0.15);
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.78rem;
    color: var(--brand-navy);
    font-weight: 600;
    margin-bottom: 20px;
}

.article-update-badge__dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* Article container */
.article-container {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
    /* NOTE: padding-left/right come from .container class */
}

/* Prevent grid children from overflowing on mobile */
.article-content,
.article-sidebar {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}


.article-content {
    background-color: var(--bg-white);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--brand-navy);
    margin: 35px 0 20px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--brand-navy);
    margin: 25px 0 15px;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-main);
}

.article-content strong {
    font-weight: 700;
    color: var(--brand-dark);
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding: 15px 25px;
    background-color: var(--brand-light);
    margin: 30px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--brand-navy);
}

/* Custom styled inline scheme/flowchart */
.article-scheme {
    background-color: var(--brand-light);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 6px;
    margin: 40px 0;
}

.article-scheme__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.article-scheme__steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-scheme__step {
    background-color: var(--bg-white);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-burgundy);
    display: flex;
    gap: 15px;
    align-items: center;
}

.article-scheme__step-num {
    background-color: var(--accent-burgundy);
    color: var(--text-white);
    width: 30px;
    height: 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.article-scheme__step-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background-color: var(--brand-light);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.sidebar-widget__title {
    font-size: 1.25rem;
    color: var(--brand-navy);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.sidebar-widget__author {
    text-align: center;
}

.sidebar-widget__author-img {
    width: 120px;
    height: 120px;
    border-radius: 100px;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

.sidebar-widget__author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 5px;
}

.sidebar-widget__author-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.sidebar-widget__menu-list {
    list-style: none;
}

.sidebar-widget__menu-item {
    margin-bottom: 12px;
}

.sidebar-widget__menu-link {
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.sidebar-widget__menu-link:hover {
    color: var(--accent-burgundy);
    padding-left: 5px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background-color: var(--brand-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs__item::after {
    content: '/';
    margin-left: 8px;
}

.breadcrumbs__item:last-child::after {
    display: none;
}

.breadcrumbs__link:hover {
    color: var(--accent-burgundy);
}

/* RESPONSIVE DESIGN MEDIA QUERIES */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .article-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .section {
        padding-top: 50px;
        padding-bottom: 50px;
        /* padding-left/right preserved from child .container */
    }
    
    .topbar {
        display: none;
    }

    /* ── Mobile Header Fix ─────────────────────────────────────────── */
    .header__content {
        padding: 0 16px;
        height: 60px;
        gap: 0;
    }

    /* Nav hidden by default — toggled by JS hamburger */
    .header__nav {
        display: none;
    }

    /* Hide phone link and messenger icons — replaced by mobile CTA bar */
    .header__phone-link {
        display: none;
    }

    .header__messengers {
        display: none;
    }

    /* Keep only the 'Записаться' button, make it compact */
    .header__actions {
        gap: 8px;
        margin-left: auto;
    }

    .header__actions .button--secondary {
        padding: 9px 16px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    /* Logo stays left, shrink slightly */
    .header__logo-text {
        font-size: 1.2rem;
    }

    .header__logo-icon {
        font-size: 1.5rem;
    }
    
    .hero {
        padding-top: 60px;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero__badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__bullets {
        display: inline-block;
        text-align: left;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .hero__photo-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__photo-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contacts__wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .pricing-card--featured {
        transform: none;
    }
    
    .pricing-card--featured::before {
        top: -12px;
    }

    /* YMYL Mobile Responsive */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-meta__divider {
        display: none;
    }

    .article-meta__verified {
        margin-left: 0;
    }

    .article-author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .article-author-bio__credentials {
        justify-content: center;
    }

    .article-author-bio__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .header__logo-text {
        font-size: 1.25rem;
    }
    
    .header__logo-icon {
        font-size: 1.5rem;
    }
    
    .button {
        width: 100%; /* Make buttons full width on small screens */
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-info__block {
        padding: 20px;
    }
}

/* =============================================
   UI/UX AUDIT ENHANCEMENTS — CONVERSION BOOST
   ============================================= */

/* Hero Credentials Strip */
.hero__credentials {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 30px;
}

.hero__credential-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
}

.hero__credential-item:hover {
    background-color: rgba(197, 168, 128, 0.15);
    border-color: var(--accent-gold);
}

.hero__credential-icon {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* Hero Photo Overlay — Lawyer credentials plate */
.hero__photo-overlay {
    position: absolute;
    bottom: -10px;
    left: -10px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-navy) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 6px;
    padding: 16px 20px;
    z-index: 10;
    box-shadow: var(--shadow-xl);
    min-width: 220px;
}

.hero__photo-overlay-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.hero__photo-overlay-title {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.hero__photo-overlay-stats {
    display: flex;
    gap: 15px;
}

.hero__photo-stat {
    text-align: center;
}

.hero__photo-stat-num {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    display: block;
}

.hero__photo-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    display: block;
    margin-top: 3px;
}

/* Trust Strip — below hero */
.trust-strip {
    background-color: var(--brand-dark);
    border-top: 1px solid rgba(197, 168, 128, 0.2);
    padding: 18px 0;
}

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

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.trust-strip__icon {
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.trust-strip__text strong {
    color: var(--text-white);
    display: block;
    font-size: 0.95rem;
}

/* Service Card Sub-list */
.service-card__sub-list {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card__sub-item {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 5px 0;
    border-bottom: 1px solid var(--brand-light);
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.3;
}

.service-card__sub-item::before {
    content: '—';
    color: var(--accent-gold);
    font-weight: 700;
    flex-shrink: 0;
}

.service-card__sub-item:last-child {
    border-bottom: none;
}

/* Case card court info */
.case-card__court {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.case-card__court-name {
    font-weight: 600;
    color: var(--brand-navy);
    font-style: normal;
}

/* Messenger Buttons */
.messenger-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.messenger-buttons__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.button--whatsapp {
    background-color: #25d366;
    color: var(--text-white);
    gap: 8px;
    font-size: 0.85rem;
    padding: 10px 18px;
}

.button--whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.button--telegram {
    background-color: #2aabee;
    color: var(--text-white);
    gap: 8px;
    font-size: 0.85rem;
    padding: 10px 18px;
}

.button--telegram:hover {
    background-color: #1e96d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.35);
}

/* Form Disclaimer */
.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.form-disclaimer svg {
    flex-shrink: 0;
    color: var(--accent-gold);
}

/* Mobile Sticky CTA Bar */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px 16px;
    background: rgba(15, 30, 54, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(197, 168, 128, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    gap: 10px;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.mobile-sticky-cta--visible {
    transform: translateY(0);
}

.mobile-sticky-cta--hidden {
    transform: translateY(100%);
}

.mobile-sticky-cta__btn {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: var(--font-sans);
}

.mobile-sticky-cta__btn:active {
    opacity: 0.8;
}

.mobile-sticky-cta__btn--call {
    background-color: var(--accent-gold);
    color: var(--brand-dark);
}

.mobile-sticky-cta__btn--wa {
    background-color: #25d366;
    color: white;
}

/* Header Messenger Links */
.header__messengers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header__messenger-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.header__messenger-link--wa {
    background-color: rgba(37, 211, 102, 0.12);
    color: #25d366;
}

.header__messenger-link--tg {
    background-color: rgba(42, 171, 238, 0.12);
    color: #2aabee;
}

.header__messenger-link--wa:hover {
    background-color: #25d366;
    color: white;
}

.header__messenger-link--tg:hover {
    background-color: #2aabee;
    color: white;
}

/* Body padding compensation for mobile sticky bar */
@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
    }
    
    body {
        padding-bottom: 74px;
    }
    
    /* Keep hero photo overlay readable on mobile */
    .hero__photo-overlay {
        left: 0;
        bottom: 0;
        min-width: 0;
        width: 100%;
        border-radius: 0 0 8px 8px;
        padding: 12px 15px;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 2px solid var(--accent-gold);
    }
    
    .hero__photo-overlay-stats {
        gap: 20px;
    }
    
    .hero__credentials {
        gap: 8px;
    }
    
    .trust-strip__content {
        gap: 20px;
    }
    
    .messenger-buttons {
        flex-direction: column;
    }
    
    .messenger-buttons .button {
        width: 100%;
    }
}

/* =============================================
   ПРАВОВЫЕ КОМПОНЕНТЫ — ФЗ-152, COOKIE
   ============================================= */

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    padding: 20px 0;
    background: rgba(15, 30, 54, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(197, 168, 128, 0.3);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner--hidden {
    transform: translateY(110%);
    pointer-events: none;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cookie-banner__icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.cookie-banner__text {
    flex: 1;
    min-width: 240px;
}

.cookie-banner__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 5px;
    font-family: var(--font-serif);
}

.cookie-banner__desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.cookie-banner__desc a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.cookie-banner__desc a:hover {
    color: var(--accent-gold-hover);
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    padding: 11px 24px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background-color: var(--accent-gold);
    color: var(--brand-dark);
}

.cookie-banner__btn--accept:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-1px);
}

.cookie-banner__btn--decline {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--decline:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.45);
}

.cookie-banner__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    transition: var(--transition-fast);
    flex-shrink: 0;
    align-self: flex-start;
}

.cookie-banner__close:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* PD Consent Checkbox */
.pd-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background-color: rgba(244, 246, 249, 0.7);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.pd-consent__checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-burgundy);
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition-fast);
    position: relative;
    background-color: white;
}

.pd-consent__checkbox:checked {
    background-color: var(--accent-burgundy);
    border-color: var(--accent-burgundy);
}

.pd-consent__checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.pd-consent__checkbox:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.pd-consent__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
    cursor: pointer;
}

.pd-consent__label a {
    color: var(--accent-burgundy);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.pd-consent__label a:hover {
    color: var(--accent-burgundy-hover);
}

/* Privacy notice box */
.privacy-notice {
    background: linear-gradient(135deg, #fffdf5 0%, #fff8e8 100%);
    border: 1px solid #e8d08a;
    border-left: 4px solid var(--accent-gold);
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 30px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.privacy-notice__icon { font-size: 1.5rem; flex-shrink: 0; }
.privacy-notice__title { font-weight: 700; color: var(--brand-navy); font-size: 0.9rem; margin-bottom: 6px; }
.privacy-notice__text { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.privacy-notice__text a { color: var(--accent-burgundy); font-weight: 600; text-decoration: underline; }

/* Article TOC box */
.article-toc {
    background-color: var(--brand-light);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 32px;
    border-left: 4px solid var(--brand-navy);
}

.article-toc__title {
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-navy);
    margin-bottom: 14px;
}

.article-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-c;
}

.article-toc__item {
    counter-increment: toc-c;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.article-toc__item:last-child { border-bottom: none; }

.article-toc__item::before {
    content: counter(toc-c) ".";
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
    min-width: 20px;
}

.article-toc__link {
    font-size: 0.84rem;
    color: var(--brand-navy);
    text-decoration: none;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.article-toc__link:hover {
    color: var(--accent-burgundy);
    text-decoration: underline;
}

/* Footer legal links */
.footer__legal-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 12px;
}

.footer__legal-link {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Mobile — cookie banner sits above mobile CTA bar */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 14px 0;
        bottom: 74px;
    }

    .cookie-banner__icon { display: none; }

    .cookie-banner__actions { width: 100%; }

    .cookie-banner__btn {
        flex: 1;
        text-align: center;
        padding: 10px 14px;
    }
}

/* =============================================
   МОБИЛЬНЫЕ ОТСТУПЫ — ГЛОБАЛЬНЫЙ ФИКС
   Все блоки не должны прилипать к краям экрана
   ============================================= */

@media (max-width: 768px) {

    /* Hero section — текст не прилипает */
    .hero__text,
    .hero__title,
    .hero__subtitle,
    .hero__credentials,
    .hero__bullets,
    .trust-strip__items {
        padding-left: 4px;
        padding-right: 4px;
    }

    /* Article container — одна колонка с отступами */
    .article-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
        padding-bottom: 40px;
        /* horizontal padding comes from .container */
    }

    /* Breadcrumbs */
    .breadcrumbs__list {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Article header title */
    .article-header__title {
        font-size: 1.6rem;
        line-height: 1.35;
        padding: 0 4px;
    }

    /* YMYL meta bar wraps nicely */
    .article-meta {
        gap: 10px;
        padding: 14px;
    }

    /* Author bio card — stack vertically */
    .article-author-bio {
        padding: 20px 16px;
    }

    /* Sources block */
    .article-sources {
        padding: 16px;
    }

    /* Disclaimer block */
    .ymyl-disclaimer {
        padding: 14px;
        gap: 10px;
    }

    /* Article scheme steps */
    .article-scheme {
        padding: 16px;
    }

    .article-scheme__steps {
        flex-direction: column;
        gap: 12px;
    }

    /* Pricing cards — prevent side overflow */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    /* Cases grid */
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        padding: 20px;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 22px 18px;
    }

    /* FAQ */
    .faq-item__question {
        padding: 16px;
        font-size: 0.95rem;
    }

    .faq-item__answer {
        padding: 0 16px 16px;
    }

    /* Trust strip */
    .trust-strip__items {
        flex-direction: column;
        gap: 0;
    }

    .trust-strip__item {
        padding: 14px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .trust-strip__item:last-child {
        border-bottom: none;
    }

    /* Contacts */
    .contact-form {
        padding: 20px 16px;
    }

    /* Sidebar widgets */
    .sidebar-widget {
        padding: 20px 16px;
    }

    /* Footer legal links — stack */
    .footer__legal-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Privacy page tables — scrollable */
    .privacy-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.82rem;
    }

    /* Cookie grid — single column */
    .cookie-grid {
        grid-template-columns: 1fr;
    }

    /* Prevent any img overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Global safety: no horizontal overflow */
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    /* Even tighter: ensure nothing clips on small phones */
    .article-author-bio {
        padding: 16px 14px;
    }

    .article-author-bio__credentials {
        gap: 8px;
    }

    .article-author-bio__credential {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .article-meta__verified {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .service-card__title {
        font-size: 1.05rem;
    }

    .case-card {
        padding: 16px;
    }

    .contact-form {
        padding: 16px 14px;
    }
}
