/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --color-black: #1a1a1a;
    --color-dark: #1a1a1a;
    --color-text: #5a5a5a;
    --color-text-light: #828c99;
    --color-white: #ffffff;
    --color-bg: #f6f6f6;
    --color-bg-light: #f3f3f3;
    --color-bg-footer: #f3f4f6;
    --color-border: #dddddd;
    --color-border-light: #e5e7eb;
    --color-accent: #1a1a1a;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Raleway', sans-serif;
    --font-button: 'Oswald', sans-serif;
    
    --container-max: 1200px;
    --section-padding-y: 100px;
    --section-padding-x: 30px;
    
    --shadow-sm: 0 1px 2px rgba(13, 19, 30, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-card: 4px 4px 12px rgba(0, 0, 0, 0.06);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --radius-sm: 4px;
    --radius-md: 8px;
}

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

html {
    font-size: 93.75%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover, a:focus-visible {
    color: var(--color-dark);
}

ul, ol {
    list-style: none;
}

/* Justified text globally */
p, li, .about-content-indented p, .about-grid-right p, .about-grid-right li,
.services-grid-text p, .service-card-item p, .service-detail-content p,
.process-content-indented p, .process-grid-right p, .projects-grid-right p,
.contact-info-left p, .footer-col p, .post-content p, .post-content li {
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.73rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.67rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.13rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h5 { font-size: clamp(1rem, 2vw, 1.33rem); }
h6 { font-size: clamp(0.75rem, 1.5vw, 0.8rem); }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px dotted var(--color-dark);
    outline-offset: 2px;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.93rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

/* ===== UNIFIED HEADER NAVIGATION ===== */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: inline-block;
    font-family: var(--font-body);      /* БЫЛО var(--font-button) — вернули как было */
    font-size: 0.95rem;                 /* БЫЛО 0.85rem — вернули как было */
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    color: var(--color-dark);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: var(--color-dark);
}

/* Прозрачный хедер */
.site-header--transparent .nav-menu a {
    color: rgba(255, 255, 255, 0.8);
}
.site-header--transparent .nav-menu a:hover,
.site-header--transparent .nav-menu a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ===== UNIFIED LET'S TALK BUTTON ===== */
.btn-lets-talk {
    display: inline-block;
    font-family: var(--font-body);      /* Тот же шрифт, что и меню */
    font-size: 0.95rem;                 /* Тот же размер, что и меню */
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    text-align: left;
    color: var(--color-dark);
    padding: 4px 0;
    border: none;
    border-bottom: 1px solid var(--color-dark);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-lets-talk:hover {
    border-bottom-color: var(--color-text);
    color: var(--color-text);
}

.btn-lets-talk--light {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}
.btn-lets-talk--light:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Скрываем кнопку Let's Talk на ВСЕХ мобильных */
@media (max-width: 1024px) {
    .btn-lets-talk {
        display: none !important;
    }
}

/* ===== UNIFIED HERO PLATE ON MOBILE ===== */
/* ============================================================
   UNIFIED HERO SECTIONS (для всех страниц)
   ============================================================ */

/* ----- HERO WITH BACKGROUND PHOTO ----- */
.about-hero,
.services-hero,
.projects-hero,
.process-hero,
.contact-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.about-hero-bg,
.services-hero-bg,
.projects-hero-bg,
.process-hero-bg,
.contact-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-hero-overlay,
.services-hero-overlay,
.projects-hero-overlay,
.process-hero-overlay,
.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.about-hero-container,
.services-hero-container,
.projects-hero-container,
.process-hero-container,
.contact-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: var(--section-padding-x);
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* ----- HERO PLATE (полупрозрачная плашка) ----- */
.about-hero-plate,
.services-hero-plate,
.projects-hero-plate,
.process-hero-plate,
.contact-hero-plate {
    position: relative;
    width: auto;
    max-width: 520px;
    padding: 32px 40px;
    background: rgba(20, 20, 20, 0.42);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none;
    border-radius: 0;
    color: white;
    margin-left: 0;
}

.about-hero-plate h1,
.services-hero-plate h1,
.projects-hero-plate h1,
.process-hero-plate h1,
.contact-hero-plate h1 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.about-hero-plate p,
.services-hero-plate p,
.projects-hero-plate p,
.process-hero-plate p,
.contact-hero-plate p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: left;
}

/* Текст на плашке — скрыт на мобильных */
.about-hero-desktop-text,
.services-hero-desktop-text,
.projects-hero-desktop-text,
.process-hero-desktop-text,
.contact-hero-desktop-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: left;
}

/* Текст под фото — скрыт на десктопе, виден на мобильных */
.about-hero-text-mobile,
.services-hero-text-mobile,
.projects-hero-text-mobile,
.process-hero-text-mobile,
.contact-hero-text-mobile {
    display: none;
    padding: 30px 0;
    background: var(--color-bg);
}

.about-hero-text-mobile p,
.services-hero-text-mobile p,
.projects-hero-text-mobile p,
.process-hero-text-mobile p,
.contact-hero-text-mobile p {
    text-align: justify;
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== HERO PLATE MOBILE ===== */
@media (max-width: 768px) {
    .about-hero,
    .services-hero,
    .projects-hero,
    .process-hero,
    .contact-hero {
        min-height: 400px;
    }

    /* Плашка — по ширине заголовка + отступы */
    .about-hero-plate,
    .services-hero-plate,
    .projects-hero-plate,
    .process-hero-plate,
    .contact-hero-plate {
        width: auto !important;
        max-width: 90% !important;
        padding: 20px 28px !important;
        white-space: nowrap;
    }

    .about-hero-plate h1,
    .services-hero-plate h1,
    .projects-hero-plate h1,
    .process-hero-plate h1,
    .contact-hero-plate h1 {
        font-size: 1.6rem;
        margin-bottom: 0;
        white-space: nowrap;
    }

    /* Скрываем десктопный текст на плашке */
    .about-hero-desktop-text,
    .services-hero-desktop-text,
    .projects-hero-desktop-text,
    .process-hero-desktop-text,
    .contact-hero-desktop-text {
        display: none;
    }

    /* Показываем мобильный текст под фото */
    .about-hero-text-mobile,
    .services-hero-text-mobile,
    .projects-hero-text-mobile,
    .process-hero-text-mobile,
    .contact-hero-text-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .about-hero-plate,
    .services-hero-plate,
    .projects-hero-plate,
    .process-hero-plate,
    .contact-hero-plate {
        padding: 16px 20px !important;
    }

    .about-hero-plate h1,
    .services-hero-plate h1,
    .projects-hero-plate h1,
    .process-hero-plate h1,
    .contact-hero-plate h1 {
        font-size: 1.4rem;
    }
}

/* ===== BUTTONS ===== */
.btn-underline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-button);
    font-weight: 600;
    font-size: 0.93rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 0;
    border: none;
    border-bottom: 2px solid var(--color-text);
    background: transparent;
    color: var(--color-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-underline:hover,
.btn-underline:focus-visible {
    color: var(--color-dark);
    border-color: var(--color-dark);
    background-color: var(--color-bg-light);
}

.btn-underline .arrow {
    transition: transform var(--transition-fast);
}

.btn-underline:hover .arrow {
    transform: translateX(4px);
}

/* ===== HEADER ===== */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-width: 150px;
    height: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Transparent header */
.site-header--transparent {
    position: absolute;
    background: transparent;
}
.site-header--transparent .lang-switch-current {
    background: #ffffff;
    color: #444444;
}
.site-header--transparent .lang-switch-arrow {
    color: #ffffff;
    fill: #ffffff;
}
.site-header--transparent .hamburger span {
    background-color: #ffffff;
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    position: relative;
}

.lang-switch-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    height: 36px;
}

.lang-switch-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-dark);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
    text-align: center;
}

.lang-switch-arrow {
    color: var(--color-dark);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    margin-top: 1px;
}

.lang-switch.open .lang-switch-arrow {
    transform: rotate(180deg);
}

.lang-switch-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 170px;
    padding: 6px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--transition-fast);
}

.lang-switch.open .lang-switch-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switch-menu li {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
    list-style: none;
}

.lang-switch-menu li:hover {
    background: var(--color-bg-light);
    color: var(--color-dark);
}

.lang-switch-menu li[aria-selected="true"] {
    font-weight: 600;
    color: var(--color-dark);
    background: var(--color-bg-light);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    background: var(--color-dark);
    border: none;
    padding: 8px;
    border-radius: 0;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-normal);
}

.mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 400px;
    background: var(--color-white);
    z-index: 100000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    visibility: hidden;
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100001;
    pointer-events: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: var(--color-dark) !important;
    padding: 0.75rem 0;
    display: block;
    border-bottom: 1px solid var(--color-border-light);
    text-decoration: none;
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 0;
    background: var(--color-bg);
    position: relative;
    z-index: 2;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.hero-description p {
    text-align: justify;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1 1 200px;
}

.stat-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-dark);
    margin-top: 2px;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
    line-height: 1.3;
    display: block;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text);
}

.hero-stats li,
.stat-item,
.stat-value,
.stat-label {
    text-align: left !important;
}

/* Hero photo */
.hero-photo {
    position: relative;
}

.photo-wrapper {
    position: relative;
    width: 567px;
    max-width: 100%;
}

.photo-wrapper > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 2/3;
    display: block;
}

/* Badge */
.hero-badge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    color: var(--color-white);
    padding: 32px;
    z-index: 5;
    pointer-events: auto;
}

.plate-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-white);
    margin-bottom: 3px;
}

.plate-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}

.plate-divider {
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
}

.hero-badge h3 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.hero-badge p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-badge .social-links {
    display: flex;
    gap: 1rem;
}

.hero-badge .social-links a {
    color: var(--color-white);
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.hero-badge .social-links a:hover {
    opacity: 1;
}

/* ===== GALLERY FULL-WIDTH ===== */
.gallery-fullwidth {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--color-dark);
    position: relative;
    z-index: 1;
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative; /* Добавлено: создает рамки для абсолютного позиционирования картинки */
}

.gallery-slide img {
    position: absolute; /* Добавлено: решает баг Safari с расчетом высоты во flex-элементах */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Принудительно центрирует фото на iOS */
}

/* ===== SERVICES ===== */
.services {
    padding: var(--section-padding-y) 0;
    background: var(--color-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.section-header-left {
    display: flex;
    flex-direction: column;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 30px 0;
}

.service-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.service-card h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--color-text);
    line-height: 1.6;
    text-align: justify;
}

/* ===== PROJECTS ===== */
.projects {
    padding: var(--section-padding-y) 0;
    background: var(--color-bg);
}

.projects-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.projects-text {
    max-width: 500px;
}

.projects-text h2 {
    margin-bottom: 1rem;
}

.projects-text p {
    margin-bottom: 2rem;
}

.projects-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: background var(--transition-fast);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--color-white);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.slider-dot.active {
    background: var(--color-white);
}

/* ===== BLOG POSTS INFINITE SLIDER ===== */
.blog-posts {
    padding: var(--section-padding-y) 0;
    background: var(--color-white);
    overflow: hidden;
}

.blog-posts .section-tag {
    display: block;
    text-align: center;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-slider-wrapper {
    position: relative;
}

.posts-slider-viewport {
    overflow: hidden;
    margin: 0 var(--section-padding-x);
}

.posts-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.post-card {
    flex: 0 0 calc((100% - 50px) / 3);
    width: calc((100% - 50px) / 3);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.post-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-card-body h3 a {
    color: var(--color-dark);
}

.post-card-body h3 a:hover {
    text-decoration: underline;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .btn-underline {
    font-size: 0.85rem;
    align-self: flex-start;
}

.posts-slider-prev { left: 0; }
.posts-slider-next { right: 0; }

.posts-slider-wrapper .slider-dots {
    position: static;
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

/* ===== BLOG INDEX PAGE ===== */
.blog-page {
    padding: 80px 0;
    background: #f2f4f7;
}

.blog-page h1 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
    margin: 0;
    padding: 20px 20px 8px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h3 a:hover {
    color: #4a5568;
}

.blog-card p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
    padding: 0 20px 20px;
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-page {
        padding: 40px 0;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .blog-card img {
        height: 180px;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-bg-footer);
}

.footer-primary {
    padding: 60px 0 50px;
    background: var(--color-bg-footer);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.footer-col p {
    color: var(--color-text);
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-follow-title {
    margin-top: 1.25rem;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social a {
    color: var(--color-dark);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-text);
}

.footer-below {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--color-bg-footer);
    padding: 20px 30px;
}

.footer-below-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p,
.footer-credits p {
    font-size: 0.85rem;
    color: var(--color-text);
    margin: 0;
}

/* ===== SCROLL TO TOP ===== */
#scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 70px;
        --section-padding-x: 25px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-card {
        flex: 0 0 calc((100% - 25px) / 2);
        width: calc((100% - 25px) / 2);
    }
    .footer-primary {
        padding: 50px 0 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85.5%;
    }
    :root {
        --section-padding-y: 60px;
        --section-padding-x: 20px;
    }
    .header-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-photo {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    .photo-wrapper {
        width: 100%;
    }
    .hero-badge {
        display: none !important;
    }
    .gallery-fullwidth {
        height: 350px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .service-card {
        padding: 10px 0;
    }
    .section-header {
        flex-direction: column;
    }
    .projects-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .projects-slider {
        aspect-ratio: 4/3;
    }
    .post-card {
        flex: 0 0 calc((100% - 25px) / 2);
        width: calc((100% - 25px) / 2);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-below-grid {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-primary {
        padding: 40px 0 30px;
    }
    .stat-item {
        flex: 1 1 1px;
    }
    .hero-text .btn-underline {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding-y: 50px;
        --section-padding-x: 16px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .gallery-fullwidth {
        height: 250px;
    }
    .projects-slider {
        aspect-ratio: 3/2;
    }
    .post-card {
        flex: 0 0 85vw;
        width: 85vw;
    }
    .posts-slider-viewport {
        margin: 0 10px;
    }
}
