/* ==========================================
   ALMAZI SEO PAGES — FULL PRODUCTION CSS
   Unified layout for all SEO pages
   ========================================== */


/* ==========================================
   MAIN LAYOUT
   ========================================== */

.almaz-seo {
    display: flex;
    align-items: flex-start;
    gap: 90px;
    max-width: 1250px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 16px;
    color: #222;
}

.almaz-seo__main {
    flex: 1 1 auto;
    max-width: 820px;
    min-width: 0;
}

.almaz-seo__sidebar {
    flex: 0 0 260px;
}


/* ==========================================
   SIDEBAR
   ========================================== */

.almaz-seo__sidebar-inner {
    position: sticky;
    top: 120px;
    background: #ffffff;
    border: 2px solid #99745c;
    border-radius: 10px;
    padding: 22px 20px;
}

.almaz-seo__sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: #775441;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.almaz-seo__sidebar-nav a {
    display: block;
    padding: 10px 12px;
    font-size: 14.5px;
    color: #444444;
    text-decoration: none;
    border-radius: 6px;
    border-bottom: 1px dotted #d6ccc5;
    margin-bottom: 6px;
    transition: all 0.15s ease;
}

.almaz-seo__sidebar-nav a:last-child {
    border-bottom: none;
}

.almaz-seo__sidebar-nav a:hover {
    background: #f6f2ef;
    color: #775441;
    transform: translateX(3px);
}

.almaz-seo__sidebar-nav a.active {
    background: #775441;
    color: #ffffff;
    border-bottom-color: transparent;
}


/* ==========================================
   HERO
   ========================================== */

.almaz-seo__hero--with-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.almaz-brand-heading {
    font-size: 28px;
    font-weight: 600;
    color: #775441;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dotted #d6ccc5;
}

.almaz-seo__hero-description {
    font-size: 15px;
    color: #444444;
    line-height: 1.65;
}

.almaz-seo__hero-image img {
    max-width: 300px;
    height: auto;
}


/* ==========================================
   GENERIC SECTIONS
   ========================================== */

.almaz-section {
    margin-top: 70px;
}

.almaz-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #775441;
    margin-bottom: 20px;
}

.almaz-section p {
    color: #444444;
    line-height: 1.7;
    margin-bottom: 16px;
}

.almaz-section__center {
    text-align: center;
}


/* ==========================================
   ZIGZAG LAYOUT
   ========================================== */

.almaz-zigzag {
    display: flex;
    align-items: center;
    gap: 60px;
}

.almaz-zigzag__text {
    flex: 1;
}

.almaz-zigzag__image {
    flex: 1;
}

.almaz-zigzag__image img {
    width: 100%;
    border-radius: 8px;
}


/* ==========================================
   STEPS GRID
   ========================================== */

.almaz-steps {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.almaz-step {
    flex: 1;
    background: #f9f7f5;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.almaz-step__num {
    font-size: 20px;
    font-weight: 600;
    color: #775441;
    margin-bottom: 12px;
}


/* ==========================================
   ACCENT BLOCK
   ========================================== */

.almaz-section--accent {
    background: #f6f2ef;
    padding: 50px 40px;
    border-radius: 12px;
}

.almaz-accent p {
    max-width: 800px;
}


/* ==========================================
   CARDS
   ========================================== */

.almaz-cards {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.almaz-card {
    flex: 1;
    border: 1px solid #ece7e2;
    border-radius: 10px;
    padding: 25px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.almaz-card:hover {
    border-color: #775441;
    transform: translateY(-3px);
}

.almaz-card h3 {
    font-size: 16px;
    color: #775441;
    margin-bottom: 10px;
}


/* ==========================================
   SPLIT SECTION
   ========================================== */

.almaz-split {
    display: flex;
    gap: 60px;
}

.almaz-split__left {
    flex: 1;
}

.almaz-split__right {
    flex: 1;
}

.almaz-split__right ul {
    padding-left: 18px;
}

.almaz-split__right li {
    margin-bottom: 10px;
    color: #444444;
}


/* ==========================================
   CTA
   ========================================== */

.almaz-section--cta {
    text-align: center;
    margin-top: 90px;
}

.almaz-cta p {
    max-width: 700px;
    margin: 0 auto 25px auto;
}

.almaz-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #775441;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.almaz-btn:hover {
    background: #5f3f31;
}


/* ==========================================
   FAQ (оставляем для других страниц)
   ========================================== */

.almaz-faq {
    margin-top: 30px;
    border-top: 1px solid #ece7e2;
}

.almaz-faq__item {
    border-bottom: 1px solid #ece7e2;
}

.almaz-faq__question {
    cursor: pointer;
    padding: 15px 0;
    font-weight: 600;
    color: #775441;
    position: relative;
}

.almaz-faq__question::after {
    content: "+";
    position: absolute;
    right: 0;
}

.almaz-faq__item.active .almaz-faq__question::after {
    content: "-";
}

.almaz-faq__answer {
    display: none;
    padding-bottom: 18px;
    color: #444444;
}

.almaz-faq__item.active .almaz-faq__answer {
    display: block;
}


/* ==========================================
   MOBILE
   ========================================== */

@media(max-width:1024px){

    .almaz-seo {
        flex-direction: column;
        gap: 40px;
    }

    .almaz-zigzag,
    .almaz-steps,
    .almaz-cards,
    .almaz-split {
        flex-direction: column;
    }

    .almaz-section--accent {
        padding: 30px;
    }

}










/* ==========================================
   BROKER PAGE ADDITIONS
   ========================================== */

.almaz-section--narrow {
    max-width: 760px;
}

.almaz-two-cols {
    display: flex;
    gap: 60px;
}

.almaz-two-cols__col {
    flex: 1;
}

.almaz-legal-steps {
    padding-left: 20px;
}

.almaz-legal-steps li {
    margin-bottom: 12px;
    color: #444444;
}






/* ==========================================
   CONTRACT PAGE ADDITIONS
   ========================================== */

.almaz-vertical-steps {
    margin-top: 30px;
}

.almaz-vstep {
    border-left: 3px solid #775441;
    padding-left: 20px;
    margin-bottom: 25px;
}

.almaz-vstep__title {
    font-weight: 600;
    color: #775441;
    margin-bottom: 6px;
}

.almaz-section--compare {
    margin-top: 80px;
}

.almaz-compare {
    display: flex;
    gap: 60px;
}

.almaz-compare__col {
    flex: 1;
}

.almaz-compare__col h3 {
    color: #775441;
    margin-bottom: 10px;
}





/* ==========================================
   FAQ FONT FIX — Override Theme Typography
========================================== */

.almaz-faq h2.almaz-faq__question {
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 600;
    margin: 0;
}

.almaz-faq__answer p {
    font-size: 16px;
    line-height: 1.6;
}




.almaz-split__right ul {
    list-style: none;
    padding-left: 0;
}

.almaz-split__right ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 16px;
    color: #444;
}

.almaz-split__right ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #775441;
    font-weight: 700;
}



.almaz-split__left h2 {
    margin-bottom: 18px;
}

.almaz-split__left p {
    margin-top: 0;
}

.almaz-split__right ul {
    margin: 0;
    padding: 0;
}



.almaz-split__right {
    padding-top: 46px; /* выравнивание по абзацу */
}



/* ==========================================
   FIX SPLIT HORIZONTAL OFFSET
========================================== */

.almaz-split {
    display: flex;
    align-items: flex-start;
    gap: 60px; /* не 90, не 120 */
}

.almaz-split__left,
.almaz-split__right {
    flex: 1;
    min-width: 0;
}

/* Убираем дефолтные отступы списка */
.almaz-split__right ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* Если используете галочки через ::before */
.almaz-split__right ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
}

.almaz-split__right ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #775441;
    font-weight: 600;
}



.almaz-split__left {
    flex: 0 0 52%;
}

.almaz-split__right {
    flex: 0 0 48%;
}



ol.almaz-legal-steps {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

ol.almaz-legal-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
}

ol.almaz-legal-steps li::before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: #775441;
}




.almaz-two-cols__col ul {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

.almaz-two-cols__col ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.almaz-two-cols__col ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #775441;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}






/* ==========================================
   GLOBAL LIST STABILIZATION — ALMAZI SYSTEM
   Stabilizes ALL lists across SEO pages
========================================== */

/* 1️⃣ Сброс дефолтных конфликтов темы */
.almaz-section ul,
.almaz-section ol {
    margin: 0;
    padding-left: 0;
}

/* 2️⃣ Стандартные текстовые списки (two-cols) */
.almaz-two-cols__col ul {
    list-style: none;
    margin-top: 16px;
}

.almaz-two-cols__col ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: #444444;
}

.almaz-two-cols__col ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #775441;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}

/* 3️⃣ SPLIT чек-листы */
.almaz-split__right ul {
    list-style: none;
    margin-top: 16px;
}

.almaz-split__right ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
    color: #444444;
}

.almaz-split__right ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #775441;
    font-weight: 600;
}

/* 4️⃣ Юридические нумерованные списки */
ol.almaz-legal-steps {
    list-style: none;
    counter-reset: step-counter;
    margin-top: 16px;
}

ol.almaz-legal-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    color: #444444;
}

ol.almaz-legal-steps li::before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: #775441;
}

/* 5️⃣ Вертикальные шаги (контрактодержатель) */
.almaz-vertical-steps ul {
    list-style: none;
    padding-left: 0;
}

/* 6️⃣ Гарантия, что тема больше не перебьёт */
.almaz-section ul li,
.almaz-section ol li {
    line-height: 1.6;
}



/* ==========================================
   COMPARE BLOCK LISTS
========================================== */

.almaz-compare__col ul {
    list-style: none;
    margin-top: 16px;
    padding-left: 0;
}

.almaz-compare__col ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: #444444;
}

.almaz-compare__col ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #775441;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}






/* ==========================================
   MOBILE REFINEMENT — ≤768px
   Production adaptive layer
========================================== */

@media (max-width: 768px) {

    /* ===== GLOBAL TYPOGRAPHY ===== */

    .almaz-brand-heading {
        font-size: 22px;
        line-height: 1.35;
        padding-bottom: 10px;
    }

    .almaz-section {
        margin-top: 50px;
    }

    .almaz-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .almaz-section p {
        font-size: 15px;
    }

    /* ===== HERO ===== */

    .almaz-seo__hero--with-image {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .almaz-seo__hero-image img {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }

    /* ===== ZIGZAG ===== */

    .almaz-zigzag {
        flex-direction: column;
        gap: 25px;
    }

    /* ===== STEPS ===== */

    .almaz-steps {
        flex-direction: column;
        gap: 20px;
    }

    .almaz-step {
        padding: 20px;
    }

    /* ===== ACCENT ===== */

    .almaz-section--accent {
        padding: 25px 20px;
    }

    /* ===== CARDS ===== */

    .almaz-cards {
        flex-direction: column;
        gap: 20px;
    }

    .almaz-card {
        padding: 20px;
    }

    /* ===== SPLIT ===== */

    .almaz-split {
        flex-direction: column;
        gap: 25px;
    }

    .almaz-split__right {
        padding-top: 0;
    }

    /* ===== CTA ===== */

    .almaz-section--cta {
        margin-top: 70px;
    }

    .almaz-btn {
        width: 100%;
        padding: 14px;
    }

}





/* ==========================================
   MOBILE EXTENSION — TWO COLS + NARROW
   Applies to all SEO pages
========================================== */

@media (max-width: 768px) {

    /* ===== TWO COLUMNS BLOCK ===== */

    .almaz-two-cols {
        flex-direction: column;
        gap: 35px;
    }

    .almaz-two-cols__col h2 {
        margin-bottom: 14px;
    }

    .almaz-two-cols__col ul {
        margin-top: 10px;
    }

    /* ===== NARROW SECTIONS ===== */

    .almaz-section--narrow {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* ===== LEGAL STEPS ===== */

    ol.almaz-legal-steps li {
        padding-left: 28px;
        font-size: 15px;
    }

    /* ===== HERO TEXT CONTROL ===== */

    .almaz-seo__hero-description {
        font-size: 15px;
        line-height: 1.6;
    }

}







/* ==========================================
   MOBILE EXTENSION — VERTICAL + COMPARE
   System-wide refinement for SEO pages
========================================== */

@media (max-width: 768px) {

    /* ===== VERTICAL STEPS ===== */

    .almaz-vertical-steps {
        margin-top: 20px;
    }

    .almaz-vstep {
        padding-left: 16px;
        margin-bottom: 20px;
    }

    .almaz-vstep__title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .almaz-vstep p {
        font-size: 15px;
    }

    /* ===== COMPARE BLOCK ===== */

    .almaz-compare {
        flex-direction: column;
        gap: 35px;
    }

    .almaz-compare__col h3 {
        margin-bottom: 12px;
        font-size: 17px;
    }

    .almaz-compare__col ul {
        margin-top: 10px;
    }

    /* ===== NARROW LISTS SAFETY ===== */

    .almaz-section--narrow ul li {
        font-size: 15px;
        margin-bottom: 10px;
    }

}







/* ==========================================
   MOBILE EXTENSION — FAQ REFINEMENT
========================================== */

@media (max-width: 768px) {

    .almaz-faq {
        margin-top: 40px;
    }

    .almaz-faq__item {
        padding: 4px 0;
    }

    .almaz-faq__question {
        font-size: 17px;
        line-height: 1.4;
        padding: 14px 0;
        padding-right: 28px;
    }

    .almaz-faq__question::after {
        right: 4px;
        font-size: 18px;
    }

    .almaz-faq__answer {
        padding-bottom: 16px;
    }

    .almaz-faq__answer p {
        font-size: 15px;
        line-height: 1.6;
    }

}





/* ==========================================
   RESPONSIVE SIDEBAR SYSTEM
========================================== */

/* ==============================
   TABLET (≤1024px)
============================== */

@media (max-width: 1024px) {

    .almaz-seo {
        flex-direction: column;
    }

    .almaz-seo__sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .almaz-seo__sidebar-inner {
        position: relative;
        top: auto;
        margin-top: 40px;
    }

}

/* ==============================
   MOBILE (≤768px)
============================== */

@media (max-width: 768px) {

    .almaz-seo__sidebar-inner {
        padding: 20px;
        border-radius: 8px;
    }

    .almaz-seo__sidebar-title {
        text-align: center;
        margin-bottom: 16px;
    }

    .almaz-seo__sidebar-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .almaz-seo__sidebar-nav a {
        text-align: center;
        border: 1px solid #e5ddd6;
        border-radius: 6px;
        padding: 10px;
        background: #faf8f6;
    }

    .almaz-seo__sidebar-nav a:hover {
        transform: none;
    }

}




.almaz-seo__sidebar-group {
    margin-top: 18px;
    font-weight: 600;
    color: #775441;
    font-size: 14px;
}



.almaz-check-list {
    list-style: none;
    padding-left: 0;
}

.almaz-check-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.almaz-check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #775441;
    font-weight: 600;
}
