/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
/* ------------------- */
/* Reset & Base Styles */
/* ------------------- */
:root {
    --primary-color: #007bff; /* Синий для акцентов, кнопок */
    --secondary-color: #0056b3; /* Темно-синий для hover */
    --text-color: #333;
    --light-text-color: #555;
    --background-color: #fff;
    --light-gray-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745; /* Зеленый для успешных сообщений/иконок */
    --warning-color: #ffc107; /* Желтый для предупреждений */
    --danger-color: #dc3545; /* Красный для ошибок */

    --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --container-max-width: 1290px;
    --container-padding: 15px;

    --border-radius: 0.25rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------- */
/* Container            */
/* -------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container-max-width) + var(--container-padding) * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Sections common styling */
section {
    padding: 40px 0;
}

@media (min-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* -------------------- */
/* Typography           */
/* -------------------- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.2rem; } /* ~35px */
h2 { font-size: 1.8rem; } /* ~29px */
h3 { font-size: 1.5rem; } /* ~24px */
h4 { font-size: 1.2rem; } /* ~19px */

@media (min-width: 768px) {
    h1 { font-size: 2.8rem; } /* ~45px */
    h2 { font-size: 2.2rem; } /* ~35px */
    h3 { font-size: 1.8rem; } /* ~29px */
    h4 { font-size: 1.4rem; } /* ~22px */
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

strong, b {
    font-weight: 600;
}

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

figure {
    margin: 0 0 1em;
}

figcaption {
    font-size: 0.9em;
    color: var(--light-text-color);
    text-align: center;
    margin-top: 0.5em;
}

address {
    font-style: normal;
    line-height: var(--line-height-base);
}

/* -------------------- */
/* Buttons              */
/* -------------------- */
.btn, button[type="submit"], a[role="button"] {
    display: inline-block;
    font-weight: 500;
    color: #fff;
    background-color: var(--primary-color);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    padding: 0.75em 1.5em;
    font-size: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover, button[type="submit"]:hover, a[role="button"]:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--light-gray-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: var(--text-color);
}

/* -------------------- */
/* Header               */
/* -------------------- */
header {
    background-color: var(--background-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

header nav a[aria-label*="На главную"] img {
    max-height: 50px;
}

header nav > div { /* Container for contacts and button */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

header nav address {
    font-size: 0.9em;
    text-align: right;
}
header nav address span {
    display: block;
    margin-bottom: 3px;
}
header nav address span:last-child {
    margin-bottom: 0;
}

header nav a[role="button"] {
    padding: 0.5em 1em;
    font-size: 0.9rem;
}

/* Hero Section */
#hero {
    background-color: var(--light-gray-bg); /* Placeholder for image */
    padding: 40px var(--container-padding);
    text-align: center;
}

#hero h1 {
    margin-bottom: 0.5em;
}
#hero h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--light-text-color);
    margin-bottom: 1.5em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#hero ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
#hero ul li {
    font-size: 1rem;
    padding: 5px 10px;
    background-color: rgba(255,255,255,0.8);
    border-radius: var(--border-radius);
}
#hero ul li strong {
    color: var(--primary-color);
}
#hero a[role="button"] {
    font-size: 1.1rem;
    padding: 0.8em 2em;
}
#hero p:last-of-type { /* "Оставьте заявку..." */
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-top: 1em;
}

@media (min-width: 768px) {
    #hero {
        padding: 60px var(--container-padding);
    }
    header nav > div {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    header nav address {
        display: flex;
        gap: 15px;
    }
     header nav address span {
        margin-bottom: 0;
    }
}

/* -------------------- */
/* Specific Sections    */
/* -------------------- */

/* Problem Section */
#problem ul {
    list-style: none;
    padding: 0;
}
#problem ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
/* #problem ul li::before {
    content: '😟';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
} */
#problem div:last-of-type { /* "Узнайте, подходит ли вам..." */
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-gray-bg);
    border-radius: var(--border-radius);
    text-align: center;
}

/* What You Get Section */
#what-you-get ul {
    list-style: none;
    padding: 0;
}
#what-you-get ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
/* #what-you-get ul li::before {
    content: '✅'; 
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1em;
    color: var(--success-color);
} */
#what-you-get  img {
    border-radius: var(--border-radius);
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover; 
    max-height: 600px;
    width: 100%;
}

/* Procedure Stages Section */
#procedure-stages ol {
    list-style: none;
    padding: 0;
    counter-reset: procedure-counter;
}
#procedure-stages ol li {
    position: relative;
    padding: 15px 0 15px 50px; /* Space for number and icon */
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}
#procedure-stages ol li:last-child {
    border-bottom: none;
}
#procedure-stages ol li::before {
    counter-increment: procedure-counter;
    content: counter(procedure-counter);
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: var(--light-gray-bg);
    border-radius: 50%;
}
#procedure-stages ol li h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3em;
}
#procedure-stages ol li h3 span[role="img"] { /* Emoji icon next to H3 */
    margin-right: 8px;
    font-size: 1.1em;
}

/* About Us (Why Choose Us) Section */
#about-us #company-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin-bottom: 30px;
    text-align: center;
}
#about-us #company-achievements p {
    font-size: 1.1rem;
    background-color: var(--light-gray-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    flex: 1 1 200px; /* Flex grow, shrink, basis */
    min-width: 180px;
}
#about-us #company-achievements p strong {
    display: block;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 5px;
}
#about-us ul {
    list-style: none;
    padding: 0;
}
#about-us ul li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 12px;
}
/* #about-us ul li::before {
    content: '👨‍⚖️'; 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5em;
} */
/* Specific icons for #about-us advantages (example for the first one) */
/* #about-us ul li:nth-child(1)::before { content: '👨‍⚖️'; }
#about-us ul li:nth-child(2)::before { content: '🔑'; }
#about-us ul li:nth-child(3)::before { content: '💰'; }
#about-us ul li:nth-child(4)::before { content: '🛡️'; }
#about-us ul li:nth-child(5)::before { content: '🔒'; }
#about-us ul li:nth-child(6)::before { content: '💳'; }
#about-us ul li:nth-child(7)::before { content: '📞'; }
#about-us ul li:nth-child(8)::before { content: '⚖️'; } */


/* Team Section */
#team {
    background-color: var(--light-gray-bg);
}
#team article {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#team article img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}
#team article h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
#team article p[itemprop="jobTitle"] {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 10px;
}
#team article p[itemprop="description"] {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    #team {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    #team > h2 { /* Make H2 span all columns */
        grid-column: 1 / -1;
    }
    #team article {
        margin-bottom: 0;
    }
}


/* Price Section - Table */
#price table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
#price th, #price td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
#price th {
    background-color: var(--light-gray-bg);
    font-weight: 600;
}
#price td:nth-child(2) { /* Price column */
    text-align: right;
    font-weight: bold;
    white-space: nowrap;
}
#price td:last-child { /* Note column */
    color: var(--light-text-color);
    font-size: 0.85rem;
}
#price tbody tr:nth-child(odd) {
    background-color: #fdfdfd;
}
#price tbody tr:hover {
    background-color: #f1f1f1;
}
#price strong { /* "БАНКРОТСТВО ФИЗИЧЕСКИХ ЛИЦ" etc. */
    color: var(--text-color);
}
#price p em { /* Price notes */
    display: block;
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-top: 10px;
}

/* Responsive Table */
@media (max-width: 767px) {
    #price table, #price thead, #price tbody, #price th, #price td, #price tr {
        display: block;
    }
    #price thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    #price tr {
        border: 1px solid var(--border-color);
        margin-bottom: 10px;
    }
    #price td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Space for label */
        text-align: right; /* Align content to right */
    }
    #price td:nth-child(2) { /* Price column remains right aligned */
        text-align: right;
    }
    #price td:last-child { /* Note column also right */
         text-align: right;
    }
    #price td::before {
        content: attr(data-label); /* Needs data-label attributes in HTML for this to work, or JS */
        /* Fallback if no data-label: use column header text */
        position: absolute;
        left: 10px;
        width: calc(50% - 20px); /* Adjust width */
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
    }
    /* Manually adding pseudo-labels for this example since HTML doesn't have data-label */
    #price td:nth-child(1)::before { content: "Услуга:"; }
    #price td:nth-child(2)::before { content: "Цена:"; }
    #price td:nth-child(3)::before { content: "Примечание:"; }
}


/* Bankruptcy Types Section */
#bankruptcy-types > div { /* Container for articles */
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
#bankruptcy-types article {
    flex: 1 1 300px; /* Grow, shrink, basis */
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-gray-bg);
}
#bankruptcy-types article h3 {
    color: var(--primary-color);
    margin-top: 0;
}
#bankruptcy-types article p strong { /* "Для кого:", "Процесс:" */
    display: block;
    margin-bottom: 3px;
    color: var(--text-color);
}
#bankruptcy-types article em { /* "Ключевые слова" */
    font-size: 0.85em;
    color: var(--light-text-color);
    display: block;
    margin-top: 10px;
}


/* Consequences Section */
#consequences ul {
    list-style: none;
    padding: 0;
}
#consequences ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
/* #consequences ul li::before { 
    content: '🟡';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
}
#consequences ul li:first-child::before { 
    content: '🟢';
} */


/* Cases Section - Simplified */
#cases .download-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

#cases .download-list li {
    margin-bottom: 10px;
}

#cases .download-list li a[download] {
    font-weight: bold;
    text-decoration: none;
    color: var(--link-color, #007bff); /* Используем переменную для цвета или задаем явно */
}

#cases .download-list li a::before {
    content: '📄 '; /* Иконка документа перед ссылкой */
}

#cases .download-list li a[download]::after {
    content: ' (скачать PDF)';
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 5px; /* Небольшой отступ для текста "(скачать PDF)" */
}

#cases .download-list li a[download]:hover {
    text-decoration: underline;
}



/* Reviews Section */
#reviews #external-reviews p {
    margin-bottom: 10px;
}
#reviews #external-reviews p a {
    font-weight: bold;
}
#reviews #external-reviews p span[itemprop="aggregateRating"] { /* Schema rating */
    font-size: 0.9em;
    color: var(--light-text-color);
}
#reviews #text-reviews article {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-gray-bg);
}
#reviews #text-reviews article h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
#reviews #text-reviews article div[itemprop="reviewRating"] p { /* Stars */
    color: var(--warning-color);
    font-size: 1.2em;
    margin-bottom: 5px;
}
#reviews #text-reviews article p[itemprop="reviewBody"] {
    font-style: italic;
    margin-bottom: 0;
}

/* FAQ Section */
#faq div[itemscope][itemtype="https://schema.org/Question"] {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
#faq div[itemscope][itemtype="https://schema.org/Question"]:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
#faq h3[itemprop="name"] {
    font-size: 1.2rem;
    cursor: pointer; /* Hint for future accordion functionality */
    color: var(--primary-color);
}
#faq h3[itemprop="name"]:hover {
    color: var(--secondary-color);
}
#faq div[itemprop="acceptedAnswer"] p {
    margin-bottom: 0;
    padding-left: 20px; /* Indent answer */
}


/* Tags Cloud Section */
#tags-cloud ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#tags-cloud ul li a {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-gray-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}
#tags-cloud ul li a:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: var(--secondary-color);
}


/* Contact Form Section */
/* #contact-form {
    background-color: var(--light-gray-bg);
} */


#contact-form .wpforms-confirmation-container {
    font-weight: 700;
    color: var(--primary-color);;
}

#contact-form form div {
    margin-bottom: 15px;
}
#contact-form form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
#contact-form form input[type="text"],
#contact-form form input[type="tel"],
#contact-form form input[type="email"], /* If you add email field */
#contact-form form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family-base);
}
#contact-form form input[type="text"]:focus,
#contact-form form input[type="tel"]:focus,
#contact-form form input[type="email"]:focus,
#contact-form form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#contact-form form input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}
#contact-form form label[for="agreement"] {
    font-size: 0.85rem;
    font-weight: normal;
    display: inline;
}
#contact-form form button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}
@media (min-width: 576px) {
    #contact-form form button[type="submit"] {
        width: auto;
    }
}
#contact-form p:has(> a[href^="tel:"]) { /* Phone number paragraph */
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
}
#contact-form p:has(> a[href^="mailto:"]),
#contact-form p:has(> a[href^="https://wa.me/"]) {
    margin-top: 10px;
}
#contact-form p svg { /* Inline SVGs for WhatsApp/Telegram */
    vertical-align: middle;
    margin-left: 5px;
    width: 20px;
    height: 20px;
}


/* Contacts & Map Section */
#contacts-map address p {
    margin-bottom: 8px;
}
#contacts-map address p strong[role="img"] { /* Emojis in address */
    margin-right: 8px;
}
#contacts-map iframe {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 20px;
    width: 100%; /* Ensure it's responsive */
}
#contacts-map div:last-of-type p { /* "Мы также имеем офисы..." */
    margin-top: 20px;
    font-size: 0.9rem;
    padding: 10px;
    background-color: var(--light-gray-bg);
    border-radius: var(--border-radius);
}

#contacts-map iframe {
    min-height: 400px;
}


/* -------------------- */
/* Footer               */
/* -------------------- */
  footer {
    background-color: #343a40; 
    color: #adb5bd; 
    padding: 30px 0;
    font-size: 0.9rem;
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
footer div {
    flex: 1 1 280px; 
}
footer h4 {
    /* color: #fff; */
    font-size: 1.1rem;
    margin-bottom: 10px;
}
footer p {
    margin-bottom: 8px;
    line-height: 1.5;
}
/* footer a {
    color: #dee2e6; 
}
footer a:hover {
    color: #fff;
} */
footer img {
    max-height: 35px;
    margin-bottom: 10px;
}  

/* Utility classes (optional) */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
/* ... add more if needed */


/* -------------------- */
/* Media Queries        */
/* -------------------- */

/* Tablets and smaller */
@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }

    #hero ul {
        flex-direction: column;
        align-items: center;
    }
    #hero ul li {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    header nav > div { /* Container for contacts and button */
        align-items: center;
        text-align: center;
    }
     header nav address {
        text-align: center;
        flex-direction: column;
    }

    #about-us #company-achievements {
        flex-direction: column;
    }
    #about-us #company-achievements p {
        width: 100%;
    }

    #bankruptcy-types > div {
        flex-direction: column;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
    footer div {
        margin-bottom: 20px;
    }
    footer img {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 15px;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    .btn, button[type="submit"], a[role="button"] {
        width: 100%; /* Full width buttons on small screens */
        padding: 0.8em 1em;
    }
    a[role="button"]:not(#hero a[role="button"]):not(#contact-form form button[type="submit"]) {
        /* Except hero button and form submit if specifically styled */
    }
    header nav a[role="button"] { /* Header button can be smaller */
        width: auto;
    }

    #price table td {
      padding-left: 40%; /* Adjust for smaller screens */
    }
    #price table td::before {
      width: calc(40% - 20px);
    }
}