/* 1. Root Variables & Basic Resets */
:root {
    /* Colors */
    --color-text: #333;
    --color-text-secondary: #4d5053;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f0ec;
    --color-dark-bg: #242D36;
    --color-header-bg: rgba(255, 255, 255);
    --color-accent: #8B936E;
    --color-primary: #F3F4EF;
    --color-primary-hover: #DCDDD7;
    --color-button-bg-light: #F6F6F2;
    --color-overlay-dark: rgba(0, 0, 0, 0.75);
    --color-divider-light: rgba(0, 0, 0, 0.08);
    --color-divider-dark: rgba(255, 255, 255, 0.2);
    --color-border-light: #E5E5E5;

    /* Typography */
    --font-family-base: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.9rem;  /* 14.4px */
    --font-size-md: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;/* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-h3: 1.625rem;/* 26px */
    --font-size-h2: clamp(1.8rem, 1.5rem + 2vw, 2.5rem);
    --font-size-h1: clamp(2rem, calc(1.8rem + 2.5vw), 59px);
    --line-height-base: 1.6;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --space-xs: 0.75rem;     /* 12px */
    --space-sm: 1.25rem;     /* 20px */
    --space-md: 1.875rem;    /* 30px */
    --space-lg: 2.5rem;      /* 40px */
    --space-xl: 3.125rem;    /* 50px */
    --space-xxl: 3.75rem;    /* 60px */
    --space-xxxl: 5rem;      /* 80px */
    
    /* Borders & Radii */
    --radius-sm: 20px;
    --radius-md: 25px;
    --radius-lg: 30px; /* For cards */
    --radius-xl: 40px; /* For header container */
    --radius-pill: 50px;
    --radius-special-1: 0 80px 0 0;
    --radius-special-2: 0 326px 0 123px;
    --radius-hero: 200px;
    
    /* Layout */
    --container-padding: 15px;
    --container-max-width-sm: 540px;
    --container-max-width-md: 720px;
    --container-max-width-lg: 960px;
    --container-max-width-xl: 1140px;
    --container-max-width-xxl: 1320px;

    /* Components */
    --header-height: 70px;
    --header-transition: transform 0.3s ease-in-out;
}

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

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

    background-image:
        linear-gradient(to bottom, var(--color-divider-light), var(--color-divider-light)),
        linear-gradient(to bottom, var(--color-divider-light), var(--color-divider-light));
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 1px 100%;
    background-position: 
        calc(0% + 15px),
        calc(100% - 15px);
}

/* The decorative lines in the background. Kept as is for precision. */
@media (min-width: 576px) {
    body {
        background-image:
            linear-gradient(to bottom, var(--color-divider-light), var(--color-divider-light)),
            linear-gradient(to bottom, var(--color-divider-light), var(--color-divider-light)),
            linear-gradient(to bottom, var(--color-divider-light), var(--color-divider-light)),
            linear-gradient(to bottom, var(--color-divider-light), var(--color-divider-light));
        background-position:
            calc(50% - 270px), calc(50% - 90px), calc(50% + 90px), calc(50% + 270px);
    }
}
@media (min-width: 768px) {
    body {
        background-position:
            calc(50% - 360px), calc(50% - 120px), calc(50% + 120px), calc(50% + 360px);
    }
}
@media (min-width: 992px) {
    body {
        background-position:
            calc(50% - 480px), calc(50% - 160px), calc(50% + 160px), calc(50% + 480px);
    }
}
@media (min-width: 1200px) {
    body {
        background-position:
            calc(50% - 570px), calc(50% - 190px), calc(50% + 190px), calc(50% + 570px);
    }
}
@media (min-width: 1400px) {
    body {
        background-position:
            calc(50% - 660px), calc(50% - 220px), calc(50% + 220px), calc(50% + 660px);
    }
}

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

.main-content {
    padding-top: var(--header-height);
}

.homepage .main-content,
.service-page .main-content {
    padding-top: 0;
}


/* 2. Layout: Container */
.container,
.header__content-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}
.container {
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
}
@media (min-width: 576px) { .container, .header__content-container { max-width: var(--container-max-width-sm); } }
@media (min-width: 768px) { .container, .header__content-container { max-width: var(--container-max-width-md); } }
@media (min-width: 992px) { .container, .header__content-container { max-width: var(--container-max-width-lg); } }
@media (min-width: 1200px) { .container, .header__content-container { max-width: var(--container-max-width-xl); } }
@media (min-width: 1400px) { .container, .header__content-container { max-width: var(--container-max-width-xxl); } }

@media (min-width: 992px) {
    .container {
        padding-right: 0;
        padding-left: 0;
    }
}


/* 3. Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--header-transition);
    padding: var(--space-sm) 0 0;
    pointer-events: none; 
}
.site-header.is-hidden {
    transform: translateY(-150%);
}
.site-header.is-scrolled .header__content-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease-in-out;
}

.header__content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: var(--color-header-bg);
    border-radius: var(--radius-xl);
    pointer-events: auto;
}

.header__logo {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s ease;
}

.header__logo img {
    max-width: 110px;
}

.header__cta-btn {
    padding: 8px var(--space-sm);
    background-color: var(--color-button-bg-light);
    color: var(--color-text-secondary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.header__cta-btn:hover {
    background-color: var(--color-primary-hover);
}

/* Navigation (Desktop & Mobile) */
.header__nav ul, .mobile-menu__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.header__nav ul li a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    padding: 5px 0;
}
.mobile-menu__nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    padding: 5px 0;
}
.header__nav ul li a:hover, 
.mobile-menu__nav ul li a:hover {
    color: var(--color-accent);
}

@media (min-width: 992px) {
    .header__nav.desktop-nav { display: block; }
    .header__nav ul { display: flex; gap: var(--space-md); }
    .burger-menu, .mobile-menu, .overlay { display: none; }
}

@media (max-width: 991.98px) {
    .site-header { padding: 15px 10px 0; }
    .header__nav.desktop-nav, .header__cta-btn { display: none; }
    .header__content-container { height: var(--header-height); padding: 0 25px; border-radius: var(--radius-xl); }
    .burger-menu { display: block; padding: 5px; background: none; border: none; cursor: pointer; z-index: 1020; }
    .burger-menu img { width: 30px; height: 30px; }
    .mobile-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        border-top-left-radius: var(--radius-sm);
        border-top-right-radius: var(--radius-sm);
        padding: var(--space-lg) var(--space-sm) var(--space-sm);
        z-index: 1010;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        visibility: hidden;
    }
    .mobile-menu.is-open { transform: translateY(0); visibility: visible; }
    .mobile-menu__nav ul { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
    .mobile-menu__nav ul li a { font-size: 1.2rem; }
    .overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0s 0.4s;
    }
    .overlay.is-active { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
}


/* 4. Index Page: Hero Section */
.hero-section {
    position: relative;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-bottom-left-radius: var(--radius-hero); 
    overflow: hidden;
    color: #fff;
    padding-top: var(--space-xxxl);
    padding-bottom: var(--space-xxxl);
}
.hero-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-section__background img,
.hero-section__background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
    opacity: 0.75; /* Значение по умолчанию */
}
.hero-section__container {
    padding-top: var(--space-xl);
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.hero-content {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}
.hero-widget {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}
.hero-widget__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin: 0 0 1em;
    text-align: center;
}
.hero-content > * { margin: 0; }
.hero-content h1 { font-size: var(--font-size-h1); font-weight: var(--font-weight-medium); line-height: 1.2; }
.hero-content p { font-size: var(--font-size-lg); line-height: 1.7; }
.btn--hero {
    background-color: var(--color-dark-bg);
    color: #fff;
    padding: var(--space-xs) 28px;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    border-radius: var(--radius-md);
    display: inline-block;
}

@media (min-width: 992px) {
    .hero-section__grid--two-col-70-30 {
        grid-template-columns: 7fr 3.5fr; /* Примерно 70/30 */
    }
     .hero-section__grid--two-col-50-50 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 991.98px) {
    .hero-widget {
        margin-top: var(--space-xl);
    }
}

@media (max-width: 767.98px) {
    .hero-section { border-bottom-left-radius: 0; }
    .desktop-only { display: none; }
    .hero-content { max-width: none; text-align: left; }
    .hero-content h1 { font-size: 41px; line-height: 1.1; }
    .hero-content p { font-size: var(--font-size-xl); line-height: 1.4; }
}

/* 5. Index Page: Services Section */
.services-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}
@media (min-width: 992px) {
    .services-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
}
.services-section__title {
    text-align: center;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
    margin-top: 0;
    margin-bottom: var(--space-xxl);
}
.services-grid { display: grid; grid-template-columns: 1fr; }
.service-card { text-align: center; padding: var(--space-sm) var(--space-sm) var(--space-md); }
.service-card:hover { background-color: var(--color-bg-alt); border-radius: var(--radius-lg); }
.service-card__title { font-size: var(--font-size-h3); line-height: 1.4; font-weight: var(--font-weight-regular); }
.service-card__description {
    font-size: var(--font-size-xl);
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 1.5em;
    color: var(--color-text);
    opacity: 0.9;
}
.service-card__link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: color 0.2s ease-in-out;
}
.service-card__link:hover { color: var(--color-accent); }
@media (min-width: 992px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto 1fr auto;
        column-gap: 0;
    }
    .service-card {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
        padding: var(--space-xxl) var(--space-lg) 70px;
        row-gap: 1em;
    }
}


/* 6. Index Page: About Section */
.about-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}
@media (min-width: 992px) {
    .about-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
    .about-section__image-wrapper { height: 100%; }
}
.about-section__container { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.about-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.about-section__title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
    margin: 0 0 1em;
    line-height: 1.3;
}
.about-section__text { margin: 0 0 2em; line-height: 1.7; opacity: 0.9; }
.about-section__stages { margin: 0 0 2em; line-height: 1.7; opacity: 0.9; }
.about-section__image-wrapper { display: none; }
.about-section__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg); 
}
.contact-promo { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: 2.5em; }
.contact-promo__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-promo__icon img { width: 24px; height: 24px; }
.contact-promo__details { display: flex; flex-direction: column; }
.contact-promo__phone {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s;
}
.contact-promo__phone:hover { color: var(--color-accent); }
.contact-promo__caption { font-size: var(--font-size-sm); color: var(--color-text); opacity: 0.7; }
@media (min-width: 992px) {
    .about-section__container { grid-template-columns: 1.2fr 1fr; gap: var(--space-xxxl); align-items: center; }
    .about-section__image-wrapper { display: block; }
    .about-section__image-wrapper img { border-radius: var(--radius-special-2); }
}


/* 7. Index Page: Stats Section */
.stats-section {
    background-color: var(--color-dark-bg); 
    color: #FFFFFF;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}
@media (min-width: 992px) {
   .stats-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); } 
}
.stats-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); text-align: center; }
.stats-item__number {
    display: block;
    font-size: clamp(3rem, 2rem + 5vw, 4.5rem);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 0.25em;
}
.stats-item__caption {
    margin: 0 auto;
    font-size: var(--font-size-md);
    line-height: 1.5;
    opacity: 0.8;
    max-width: 250px;
}
@media (min-width: 992px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
    .stats-item { padding: 0 var(--space-md); }
    .stats-item:not(:last-child) { border-right: 1px solid var(--color-divider-dark); }
}


/* 8. Index Page: Projects Section */
.projects-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}
@media (min-width: 992px) {
    .projects-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }  
}
.projects-section__title {
    text-align: center;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
    margin: 0 0 0.5em;
}
.projects-section__description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xxl);
    line-height: var(--line-height-base);
    opacity: 0.9;
}
.projects-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.project-card { display: block; text-decoration: none; color: inherit; }
.project-card__image-wrapper {
    overflow: hidden;
    border-radius: var(--radius-special-1);
    aspect-ratio: 4 / 3;
    margin-bottom: var(--space-sm);
}
.project-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.project-card:hover .project-card__image-wrapper img { transform: scale(1.05); }
.project-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.project-card__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-medium); margin: 0; }
.project-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-alt);
    border-radius: 50%;
}
.project-card__button img { width: 20px; height: 20px; }
@media (min-width: 992px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xxl) var(--space-lg); }
    .project-card__image-wrapper { border-radius: var(--radius-special-1); }
}


/* 9. Footer */
.site-footer {
    background-color: var(--color-bg-alt);
    padding-top: var(--space-xxxl);
    padding-bottom: var(--space-xxxl);
    font-size: 0.95rem;
}

.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }

.footer-logo {
    display: inline-block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1em;
}

.footer-logo img {
    max-width: 200px;
}

.footer-slogan { margin: 0 0 1.5em; line-height: var(--line-height-base); opacity: 0.8; }
.social-links { display: flex; gap: 15px; list-style: none; padding: 0; margin: 0; }
.social-links a { display: block; transition: opacity 0.2s; }
.social-links a:hover { opacity: 0.7; }
.social-links img { width: 24px; height: 24px; }
.footer-column__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-medium); margin: 0 0 1.2em; }

.footer-nav,
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-nav a,
.footer-contacts a { text-decoration: none; color: inherit; transition: color 0.2s; }

.footer-nav a:hover,
.footer-contacts a:hover { color: var(--color-accent); }

@media (min-width: 992px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-lg); }
    .footer-column { text-align: left; }
    .social-links { justify-content: flex-start; }
}

/* 10. Service Page Styles */
.service-hero {
    position: relative;
    height: 100dvh;
    /* background-image удален */
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: var(--radius-hero);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Новый блок для фона */
.service-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.service-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Старый псевдо-элемент теперь накладывается на картинку */
.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-dark);
    z-index: 1; /* Должен быть выше картинки */
}

.service-hero .container {
    position: relative;
    z-index: 2; /* Контент должен быть выше оверлея */
}

.service-hero .hero-content {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .service-hero {
        border-bottom-left-radius: 0;
    }
    .service-hero .hero-content h1 {
        font-size: 41px;
        line-height: 1.1;
    }
    .service-hero .hero-description {
        font-size: var(--font-size-xl);
        line-height: 1.4;
    }
}

.service-hero--no-image {
    padding-top: var(--space-xxxl);
    padding-bottom: var(--space-xl);
    height: auto; /* Для блоков без картинки высота по контенту */
    min-height: 300px;
    color: var(--color-text); /* Текст будет темным */
    background-color: var(--color-bg-alt); /* И будет фон */
    border-bottom-left-radius: 0;
}
.service-hero--no-image::before {
    display: none; /* Убираем затемнение */
}

.service-hero--no-image h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.service-details {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.service-details__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.service-details__sidebar {
    /* На мобильных тут будет и заголовок, и текст */
}

.service-details__title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.3;
}

.service-details__main-content {
    font-size: var(--font-size-md);
    line-height: 1.8;
    opacity: 0.9;
}
.service-details__main-content p,
.service-details__main-content ul,
.service-details__main-content ol {
    margin-bottom: 1.5em;
}
.service-details__main-content > *:last-child {
    margin-bottom: 0;
}

.service-details__gallery-column {
    /* На мобильных этот блок встанет после .service-details__sidebar */
}

@media (min-width: 992px) {
    .service-details {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    
    .service-details__container--with-gallery {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: flex-start;
    }

    .service-details__title {
        position: static;
    }
}

/* 11. FAQ Section Styles */
.faq-section {
    background-color: var(--color-dark-bg);
    color: #FFFFFF;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

@media (min-width: 992px) {
    .faq-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
}

.faq-section__title {
    text-align: left;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.faq-list {
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-divider-dark);
}

.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    cursor: pointer;
    gap: 20px;
}

.faq-item__question {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin: 0;
    line-height: 1.4;
}

.faq-item__icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    background-color: #FFFFFF;
    transition: transform 0.3s ease-out;
}

/* Горизонтальная палочка (всегда есть) */
.faq-item__icon::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

/* Вертикальная палочка (для плюса) */
.faq-item__icon::before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

/* Стили для открытого вопроса */
.faq-item.is-active .faq-item__icon::before {
    transform: scaleY(0); /* Прячем вертикальную палочку, оставляя минус */
}

/* Стили для тела ответа (анимация) */
.faq-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-item.is-active .faq-item__body {
    /* Значение должно быть больше максимальной высоты ответа */
    max-height: 500px; 
}

.faq-item__answer {
    padding-bottom: var(--space-md);
    line-height: 1.7;
    opacity: 0.9;
}

/* 12. Simple Image Gallery */
.simple-gallery {
    width: 100%;
}
.gallery-main-view {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}
.gallery-main-image-item { /* Новый селектор для обертки */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.gallery-main-image-item.is-active {
    opacity: 1;
}
.gallery-main-image-item img { /* Стили для самой картинки внутри */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs-container {
    position: relative;
}
.gallery-thumbs-scroll-wrapper {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.gallery-thumbs-scroll-wrapper::-webkit-scrollbar {
    display: none;
}
.gallery-thumbs-track {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    scroll-behavior: smooth;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.gallery-thumb:hover {
    border-color: #ccc;
}
.gallery-thumb.is-active {
    border-color: var(--color-accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    bottom: var(--space-xs); 
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border-light);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-arrow:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.gallery-arrow.prev {
    right: calc(var(--space-xs) + 40px + 8px);
}
.gallery-arrow.next {
    right: var(--space-xs);
}

/* 13. Service Packages Section (Replicated from Services Section) */
.packages-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}
@media (min-width: 992px) {
    .packages-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
}
.package-card {
    text-align: center;
    padding: var(--space-sm) var(--space-sm) var(--space-md);
}

/* Стили для 1 и 2 колонок остаются простыми */
.packages-grid--1-col {
    grid-template-columns: 1fr;
}
.packages-grid--1-col .package-card {
    text-align: left; /* Как и просили ранее */
}
.packages-grid--2-col {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}
@media (max-width: 991.98px) {
    .packages-grid--2-col {
        grid-template-columns: 1fr;
    }
}

/* Вся магия subgrid применяется только к 3-колоночной раскладке на десктопе */
@media (min-width: 992px) {
    .packages-grid--3-col {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto 1fr auto; /* Та самая 3-строчная сетка */
        column-gap: 0;
    }
    .packages-grid--3-col .package-card {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid; /* Карточка использует сетку родителя */
        padding: var(--space-xxl) var(--space-lg) 70px; /* Точный padding из источника */
        row-gap: 1em;
    }
}

.package-card:hover {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

/* Стили для дочерних элементов, скопированные из .service-card */
.package-card__title {
    font-size: var(--font-size-h3);
    line-height: 1.4;
    font-weight: var(--font-weight-regular);
}
.package-card__body {
    /* Этот блок теперь играет роль .service-card__description из источника */
    font-size: var(--font-size-xl);
    line-height: 1.4;
    color: var(--color-text);
    opacity: 0.9;
}
/* Стили для цены и описания внутри __body, чтобы они выглядели гармонично */
.package-card__price {
    font-size: 1rem; /* Чуть меньше основного текста */
    font-weight: 500;
    color: inherit;
    margin-bottom: 0.5em;
}
.package-card__description {
    font-size: 0.9rem; /* Еще меньше */
    line-height: 1.5;
    opacity: 0.8;
}

.package-card__link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: color 0.2s ease-in-out;
}
.package-card__link:hover { color: var(--color-accent); }

.packages-view-all-wrapper {
    text-align: center;
    margin-top: var(--space-xl);
}
.packages-view-all-btn {
    background-color: var(--color-dark-bg);
    color: #fff;
    padding: var(--space-xs) 28px;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* 14. Packages Modal */
body.modal-open {
    overflow: hidden;
}
.packages-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.packages-modal.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
.packages-modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}
.packages-modal__dialog {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}
.packages-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.packages-modal__content {
    overflow-y: auto;
    padding: var(--space-lg) var(--space-xl);
}
.packages-modal__title {
    text-align: center;
    margin: 0 0 var(--space-xl);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
}
.modal-package-item {
    padding: var(--space-md);
    border-radius: var(--radius-md);
}
.modal-package-item.even {
    background-color: var(--color-bg-alt);
}
.modal-package-item + .modal-package-item {
    margin-top: var(--space-lg);
}
.modal-package-item__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
@media (min-width: 768px) {
    .modal-package-item__grid {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
}
.modal-package-item__image-wrapper {
    border-radius: var(--radius-special-1); /* Скошенный угол */
    overflow: hidden;
    aspect-ratio: 4/3;
}
.modal-package-item__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-package-item__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5em;
}
.modal-package-item__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin: 0;
}
.modal-package-item__price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    flex-shrink: 0;
}
.modal-package-item__description {
    line-height: 1.7;
    opacity: 0.9;
    margin: 0 0 1.5em;
}
.modal-package-item__button {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: color 0.2s ease-in-out;
}
.modal-package-item__button:hover {
    color: var(--color-accent);
}

/* ИЗМЕНЕНИЕ 3: Стили для списка характеристик */
.modal-package-item__characteristics {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    line-height: 1.7;
    opacity: 0.9;
}
.modal-package-item__characteristics li + li {
    margin-top: 0.25em;
}

/* 15. Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-divider-light);
    padding: var(--space-sm);
    z-index: 1055;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.cookie-consent.is-visible {
    transform: translateY(0);
}
.cookie-consent__text {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    flex-grow: 1;
}
.cookie-consent__text a {
    color: var(--color-accent);
    text-decoration: underline;
}
.cookie-consent__button {
    padding: 10px 24px;
    background-color: var(--color-dark-bg);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}
.cookie-consent__button:hover {
    opacity: 0.9;
}
.cookie-consent__button:active {
    transform: scale(0.98);
}
@media (min-width: 768px) {
    .cookie-consent {
        flex-wrap: nowrap;
        text-align: left;
    }
     .cookie-consent__text {
        text-align: left;
    }
}

/* 16. Forms */
.dynamic-form .form-label {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}
.dynamic-form .form-control,
.dynamic-form .form-select {
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border-light);
}
.dynamic-form .form-control:focus,
.dynamic-form .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.25rem rgba(139, 147, 110, 0.25);
}
.dynamic-form .btn {
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    font-weight: var(--font-weight-bold);
}
.dynamic-form .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
.dynamic-form .btn-primary:hover {
    background-color: #7a825e;
    border-color: #7a825e;
}

/* Стили для формы в Hero-виджете (прозрачный фон) */
.hero-widget .dynamic-form .form-control,
.hero-widget .dynamic-form .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.hero-widget .dynamic-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.hero-widget .dynamic-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.hero-widget .dynamic-form .btn-primary {
    background-color: #fff;
    color: var(--color-text);
    border: none;
}

/* Project Page Specific Styles */
.project-page .main-content {
    padding-top: 0;
}
.project-page .project-hero {
    position: relative;
    color: #fff;
}
.project-page .project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.8) 85%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}
.project-page .project-hero-slider,
.project-page .project-hero-slider .carousel-inner,
.project-page .project-hero-slider .carousel-item {
    height: 100dvh;
    min-height: 600px;
    aspect-ratio: auto;
}
.project-page .project-hero-slider .carousel-item img,
.project-page .project-hero-slider .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Стили для кнопок слайдера */
.project-hero .carousel-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.project-hero .carousel-control-prev,
.project-hero .carousel-control-next,
.project-hero .carousel-pause-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    color: #fff; /* Добавлено это свойство */
    transition: background-color 0.2s ease;
}
.project-hero .carousel-control-prev:hover,
.project-hero .carousel-control-next:hover,
.project-hero .carousel-pause-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}
.project-hero .carousel-control-prev-icon,
.project-hero .carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
}
/* Стили для иконки паузы/плей */
.project-hero .carousel-pause-btn .icon-pause,
.project-hero .carousel-pause-btn.is-paused .icon-play {
    display: flex;
}
.project-hero .carousel-pause-btn .icon-play,
.project-hero .carousel-pause-btn.is-paused .icon-pause {
    display: none;
}
.project-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: var(--space-xxxl) 0;
}
.project-hero__text-content {
    /* Фон теперь не нужен, так как работает общий градиент */
}
.project-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--space-lg);
}
.project-hero .project-title {
    margin: 0;
    flex-basis: 100%;
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
    line-height: 1.1;
    font-weight: var(--font-weight-medium);
}
.project-hero__details {
    display: grid;
    gap: var(--space-sm) var(--space-lg);
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    flex-grow: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.detail-item__key {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-bottom: 0.25em;
    font-weight: var(--font-weight-regular);
}
.detail-item__value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}
@media (min-width: 992px) {
    .project-hero__content {
        flex-wrap: nowrap;
    }
    .project-hero .project-title {
        flex-basis: auto;
        flex-shrink: 0;
        margin-right: var(--space-xxxl);
    }
    .project-hero__details {
        max-width: 550px;
    }
}
.project-content-section {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxxl);
}

.project-header {
    display: none;
}
.project-block {
    margin-bottom: var(--space-xxxl);
}
.project-block:last-child {
    margin-bottom: 0;
}
.project-block__title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
    margin: 0 0 1em;
}
.project-block__content p,
.project-block__content ul,
.project-block__content ol {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5em;
}
.text-content {
    line-height: 1.8;
    opacity: 0.9;
}
.text-image-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}
@media (min-width: 768px) {
    .text-image-block {
        flex-direction: row;
    }
    .text-image-block__text,
    .text-image-block__image {
        flex: 1 1 50%;
    }
    .text-image-block__text--order-first {
        order: -1;
    }
}
.text-image-block__image img {
    border-radius: var(--radius-md);
}
.project-gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 992px) {
    .project-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.project-gallery-grid__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    display: block;
}
.project-gallery-grid__item::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.project-gallery-grid__item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.project-gallery-grid__item img,
.project-gallery-grid__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-out;
}
.project-gallery-grid__item:hover img,
.project-gallery-grid__item:hover video {
    transform: scale(1.05);
}
.form-wrapper {
    max-width: 600px;
    margin: var(--space-xxl) auto 0;
    padding: var(--space-lg);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 26, 27, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    padding: 15px;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.lightbox__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__container img,
.lightbox__container video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox__close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 2001;
}
.lightbox__close:hover {
    opacity: 1;
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: background-color 0.2s ease;
}
.lightbox__nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.lightbox__prev {
    left: 20px;
}
.lightbox__next {
    right: 20px;
}
.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2001;
}
.project-team-block {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}
.team-member-card {
    text-align: center;
}
.team-member-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}
.team-member-card__name {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}
.team-member-card__position {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* === BLOG STYLES START === */

/* Blog Index Page */
.blog-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.blog-card__image-link { display: block; }
.blog-card__image-wrapper {
    aspect-ratio: 4 / 3;
    background-color: var(--color-bg-alt);
}
.blog-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background-color: var(--color-dark-bg);
    color: #fff;
}
.blog-card__placeholder span {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}
.blog-card__content { padding: var(--space-sm); }
.blog-card__meta { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.blog-card__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); margin-bottom: 0.75rem; }
.blog-card__title a { text-decoration: none; color: inherit; }
.blog-card__summary { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: 1rem; }
.blog-card__read-more { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); text-decoration: none; color: var(--color-accent); }

/* Blog Article Page */
.article-body { font-size: 1.1rem; line-height: 1.8; }
.article-body h2 { font-size: 1.8rem; margin-top: 2.5em; margin-bottom: 1em; }
.article-body h3 { font-size: 1.5rem; margin-top: 2em; margin-bottom: 1em; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 1.5em; }
.article-body b, .article-body strong { font-weight: var(--font-weight-bold); }
.article-body i, .article-body em { font-style: italic; }
.article-body a { color: var(--color-accent); text-decoration: underline; }
.blog-block { margin-bottom: var(--space-xxl); }
.blog-block:last-child { margin-bottom: 0; }

.project-preview-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.project-preview-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.project-preview-card__image { flex-shrink: 0; }
.project-preview-card__image img { width: 100%; height: auto; display: block; }
.project-preview-card__content { padding: var(--space-sm); }
.project-preview-card__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); margin-bottom: 0.5em; }
.project-preview-card__details .detail-item { font-size: var(--font-size-sm); margin-bottom: 0.25em; }
.project-preview-card__details .detail-item__key { color: var(--color-text-secondary); }

@media (min-width: 768px) {
    .project-preview-card { flex-direction: row; }
    .project-preview-card__image { width: 200px; }
    .project-preview-card__image img { width: 100%; height: 100%; object-fit: cover; }
}

/* Mobile Gallery Slider in Article */
@media (max-width: 767.98px) {
    .blog-article-page .project-gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 15px;
        margin: 0 -15px; /* Compensate container padding */
        -webkit-overflow-scrolling: touch; /* Momentum scrolling */
        scrollbar-width: none; /* Firefox */
    }
    .blog-article-page .project-gallery-grid::-webkit-scrollbar { display: none; /* Safari/Chrome */ }
    .blog-article-page .project-gallery-grid__item {
        flex: 0 0 80%;
        scroll-snap-align: center;
        max-width: 80%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* === BLOG STYLES END === */