/* ========== ОСНОВНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: rgba(98, 96, 96, 0.82);
    --primary-bg-solid: #6a6662;
    --page-bg: #f3f1ee;
    --container-bg: #ddd7d7;
    --card-bg: #ffffff;
    --text-light: #efefef;
    --text-dark: #1d1d1d;
    --text-muted: #666666;
    --nav-desktop-text: #ffffff;
    --nav-desktop-hover: rgba(255, 255, 255, 0.96);
    --nav-desktop-active: #ffffff;
    --border-radius: 14px;
    --border-radius-lg: 22px;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 18px 35px rgba(0, 0, 0, 0.12);
    --transition: all 0.28s ease;
    --telegram-color: #0088cc;
    --email-color: #EA4335;
    --footer-bg: #333333;
    --footer-text: #f0f0f0;
    --line-light: rgba(255, 255, 255, 0.18);

    /* ===== fonts page vars ===== */
    --fonts-card-bg: rgba(255, 255, 255, 0.9);
    --fonts-card-border: rgba(255, 255, 255, 0.58);
    --fonts-soft-bg: #f9f7f5;
    --fonts-accent-dark: #4f4b47;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 32%),
        linear-gradient(180deg, #f7f4f0 0%, #f3f1ee 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1440px;
    width: calc(100% - 24px);
    margin: 12px auto 0;
    background-color: var(--container-bg);
    padding: 0 22px 24px;
    border-radius: 24px;
    flex: 1;
}

/* ========== ШАПКА ========== */
.header-line {
    background: linear-gradient(135deg, rgba(90, 88, 88, 0.9), rgba(114, 109, 103, 0.88));
    backdrop-filter: blur(10px);
    width: 100%;
    padding: 8px 20px 10px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 28px;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.header-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 78px;
    padding: 0 150px 0 40px;
}

.brand-link {
    display: grid;
    grid-template-columns: 82px minmax(260px, auto);
    align-items: center;
    column-gap: 20px;
    text-decoration: none;
    min-width: 0;
}

.header-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    transition: transform 0.28s ease, filter 0.28s ease;
    justify-self: start;
}

.stone-legends {
    position: relative;
    display: inline-block;
    font-size: clamp(24px, 3.5vw, 46px);
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.06;
    transition: color 0.28s ease, text-shadow 0.28s ease;
    text-align: center;
    justify-self: center;
    white-space: nowrap;
}

.stone-legends::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.92);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
    border-radius: 3px;
}

.brand-link:hover .stone-legends,
.brand-link:focus-visible .stone-legends {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.brand-link:hover .header-logo,
.brand-link:focus-visible .header-logo {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.brand-link:hover .stone-legends::after,
.brand-link:focus-visible .stone-legends::after {
    transform: scaleX(1);
}

/* ========== ДЕСКТОПНОЕ МЕНЮ ========== */
.header-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 2px;
    flex-wrap: wrap;
    background: transparent;
}

.header-menu .nav-btn {
    border: none;
    background: transparent;
    font-size: clamp(15px, 1.45vw, 19px);
    color: var(--nav-desktop-text);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 4px 8px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: color 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
    letter-spacing: 0.2px;
}

.header-menu .nav-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
    border-radius: 2px;
}

.header-menu .nav-btn:hover::after,
.header-menu .nav-btn.active::after {
    transform: scaleX(1);
}

.header-menu .nav-btn:hover {
    transform: translateY(-1px);
    color: var(--nav-desktop-hover);
    opacity: 1;
}

.header-menu .nav-btn.active {
    color: var(--nav-desktop-active);
    font-weight: 600;
}

/* ========== БУРГЕР И МОБИЛЬНОЕ МЕНЮ ========== */
.burger-icon {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    cursor: pointer;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: var(--transition);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.burger-icon:hover {
    background: rgba(255,255,255,0.1);
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #efefef;
    transition: 0.28s ease;
}

.burger-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-icon.active span:nth-child(2) {
    opacity: 0;
}

.burger-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-page-indicator {
    display: none;
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.92;
    white-space: nowrap;
    text-align: right;
    max-width: 150px;
    line-height: 1.2;
}

.mobile-menu {
    display: none;
    margin-top: 14px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line-light);
}

.mobile-menu.active {
    display: block;
    animation: fadeDown 0.25s ease;
}

.mobile-menu .nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 18px;
    padding: 14px 16px;
    margin: 6px 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.mobile-menu .nav-btn::after {
    display: none;
}

.mobile-menu .nav-btn.active {
    background: rgba(255,255,255,0.18);
    border-left: 4px solid #fff;
    padding-left: 18px;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 16, 16, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.28s ease;
    z-index: 1000;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ОБЩИЕ БЛОКИ ========== */
.page-header,
.philosophy-text,
.bottom-text,
.geo-section,
.material-card,
.advantage-card,
.process-step,
.materials-filter,
.contact-card,
.article-section,
.faq-section,
.highlight-box,
.care-instructions,
.qr-example,
.benefit-card,
.step,
.placement-card,
.trend-item,
.order-intro,
.order-info-card,
.order-step-card,
.advantage-order-card,
.granite-intro-card,
.treatment-card,
.advantage-granite-card,
.fonts-intro-card,
.font-card,
.technique-block,
.gallery-item,
.story-section,
.highlight-box-story,
.example-box-story,
.symbol-card,
.material-story-card,
.story-text-box,
.process-story-card,
.monuments-section,
.important-note-box,
.climate-card,
.guide-card,
.type-card,
.process-card,
.about-feature__image,
.faq-card,
.faq-story-card,
.faq-item,
.article-toc {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* ========== ТЕКСТОВЫЕ БЛОКИ ========== */
.page-header,
.philosophy-text,
.bottom-text,
.geo-section,
.article-section,
.faq-section,
.highlight-box,
.care-instructions,
.order-intro,
.order-info-card,
.granite-intro-card,
.fonts-intro-card,
.story-section,
.highlight-box-story,
.example-box-story,
.story-text-box,
.monuments-section,
.important-note-box {
    padding: 32px;
    margin-bottom: 32px;
}

.page-header {
    text-align: center;
    margin-bottom: 34px;
}

.page-header h1 {
    font-family: 'Italiana', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.page-header p {
    max-width: 860px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

.philosophy-text,
.bottom-text {
    font-family: 'Italiana', serif;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-dark);
    line-height: 1.8;
}

.philosophy-text p + p,
.bottom-text p + p,
.page-header p + p,
.article-section p + p,
.faq-section p + p,
.care-instructions p + p,
.highlight-box p + p,
.order-intro__content p + p,
.order-info-card p + p,
.granite-intro-card p + p,
.treatment-card p + p,
.fonts-intro-card p + p,
.font-card__content p + p,
.technique-content p + p,
.story-section p + p,
.highlight-box-story p + p,
.example-box-story p + p,
.story-text-box p + p,
.monuments-section p + p,
.important-note-box p + p {
    margin-top: 14px;
}

.section-title {
    font-family: 'Italiana', serif;
    font-size: clamp(30px, 4vw, 44px);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 400;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ========== HERO ========== */
.hero-section {
    margin-bottom: 60px;
    text-align: center;
}

.hero-title {
    font-family: 'Italiana', serif;
    font-size: clamp(26px, 4vw, 42px);
    text-align: center;
    color: var(--text-dark);
    margin: 18px 0;
    line-height: 1.24;
    font-weight: 400;
}

.hero-description {
    font-family: 'Italiana', serif;
    font-size: clamp(18px, 2.3vw, 24px);
    color: var(--text-dark);
    text-align: center;
    max-width: 980px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ========== КНОПКИ ========== */
.cta-button,
.view-all-btn,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button,
.view-all-btn {
    background: var(--primary-bg-solid);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.cta-button:hover,
.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.ghost-button {
    background: transparent;
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.16);
}

.ghost-button:hover {
    background: rgba(255,255,255,0.72);
    transform: translateY(-2px);
}

/* ========== ФИЛЬТР И КАРТОЧКИ МАТЕРИАЛОВ ========== */
.materials-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    margin-bottom: 34px;
}

.filter-btn {
    border: 1px solid rgba(0,0,0,0.08);
    background: #f7f5f3;
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    transform: translateY(-1px);
    background: #ece8e4;
}

.filter-btn.active {
    background: var(--primary-bg-solid);
    color: #fff;
    border-color: var(--primary-bg-solid);
}

.materials-full-grid,
.materials-grid {
    display: grid;
    gap: 28px;
}

.materials-full-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 40px;
}

.materials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.material-card {
    transition: var(--transition);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.material-image {
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
}

.material-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.material-main-img:hover {
    transform: scale(1.06);
}

.material-name {
    font-family: 'Italiana', serif;
    font-size: 26px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 400;
    color: var(--text-dark);
}

.material-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    text-align: center;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* ========== ОБЩИЕ КАРТИНКИ И ГАЛЕРЕИ ========== */
.upper-pictures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 52px;
}

.imgL {
    width: auto;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.imgL:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.featured-image {
    margin-bottom: 60px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.55);
}

.general-jpg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.general-jpg:hover {
    transform: scale(1.02);
}

/* ========== СЕКЦИИ ========== */
.materials-preview,
.advantages-section,
.process-section,
.works-preview,
.order-steps-section,
.order-materials,
.order-advantages,
.granite-treatments-section,
.granite-advantages,
.font-types-section,
.techniques-section,
.gallery-section {
    margin: 64px 0;
}

/* ========== КАРТОЧКИ ПРЕИМУЩЕСТВ И ПРОЦЕССА ========== */
.advantages-grid,
.process-grid,
.order-steps-grid,
.advantages-grid-order,
.granite-treatments-grid,
.advantages-grid-granite,
.font-types-grid,
.gallery-grid,
.symbols-grid-story,
.process-grid-story,
.climate-features-grid,
.guide-grid,
.types-grid,
.faq-grid {
    display: grid;
    gap: 24px;
}

.advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.process-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.order-steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.advantages-grid-order,
.advantages-grid-granite {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 28px;
}

.granite-treatments-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.font-types-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.symbols-grid-story {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 24px;
}

.process-grid-story {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 24px;
}

.climate-features-grid,
.types-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 24px;
}

.guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 24px;
}

.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 24px;
}

.advantage-card,
.process-step,
.contact-card,
.benefit-card,
.step,
.placement-card,
.trend-item,
.order-step-card,
.advantage-order-card,
.treatment-card,
.advantage-granite-card,
.symbol-card,
.material-story-card,
.process-story-card,
.climate-card,
.guide-card,
.type-card,
.process-card,
.faq-card {
    transition: var(--transition);
}

.advantage-card:hover,
.process-step:hover,
.contact-card:hover,
.benefit-card:hover,
.step:hover,
.placement-card:hover,
.trend-item:hover,
.order-step-card:hover,
.advantage-order-card:hover,
.treatment-card:hover,
.advantage-granite-card:hover,
.symbol-card:hover,
.material-story-card:hover,
.process-story-card:hover,
.climate-card:hover,
.guide-card:hover,
.type-card:hover,
.process-card:hover,
.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-card,
.process-step,
.order-step-card,
.advantage-order-card,
.treatment-card,
.advantage-granite-card,
.symbol-card,
.material-story-card,
.process-story-card,
.climate-card,
.guide-card,
.type-card,
.process-card {
    padding: 28px 22px;
}

.advantage-card {
    text-align: center;
}

.process-step {
    text-align: center;
    position: relative;
}

.advantage-icon,
.benefit-icon,
.advantage-order-icon,
.advantage-granite-icon,
.process-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.advantage-card h3,
.process-step h3,
.benefit-card h3,
.step h3,
.placement-card h4,
.trend-item h4,
.order-step-card h3,
.faq-card h3,
.advantage-order-card h3,
.treatment-card h3,
.advantage-granite-card h3,
.font-preview h3,
.technique-content h3,
.symbol-card h3,
.material-story-card h3,
.process-story-card h3,
.faq-story-card h3,
.climate-card h3,
.guide-card h3,
.type-card h3,
.process-card h3,
.contact-card h2 {
    font-family: 'Italiana', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.advantage-card h3,
.process-step h3,
.benefit-card h3,
.step h3,
.placement-card h4,
.trend-item h4,
.order-step-card h3,
.faq-card h3,
.advantage-order-card h3,
.treatment-card h3,
.advantage-granite-card h3,
.font-preview h3,
.symbol-card h3,
.material-story-card h3,
.process-story-card h3,
.faq-story-card h3,
.climate-card h3,
.guide-card h3,
.type-card h3,
.process-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.contact-card h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.advantage-card p,
.process-step p,
.contact-card p,
.article-section p,
.faq-section p,
.care-instructions p,
.highlight-box p,
.qr-description p,
.benefit-card p,
.step p,
.placement-card p,
.trend-item p,
.order-intro__content p,
.order-step-card p,
.order-info-card p,
.faq-card p,
.advantage-order-card p,
.granite-intro-card p,
.treatment-card p,
.advantage-granite-card p,
.fonts-intro-card p,
.font-card__content p,
.technique-content p,
.story-section p,
.highlight-box-story p,
.example-box-story p,
.faq-story-card p,
.symbol-card li,
.material-story-card p,
.story-text-box p,
.process-story-card p,
.monuments-section p,
.important-note-box p,
.climate-card p,
.guide-card p,
.type-card p,
.process-card p,
.faq-item p,
.bottom-text p,
.page-header p,
.article-meta {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 16px;
}

.step-number,
.order-step-number,
.process-story-number,
.guide-number {
    width: 44px;
    height: 44px;
    background: var(--primary-bg-solid);
    color: var(--text-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ========== CTA ========== */
.cta-block {
    background: linear-gradient(135deg, rgba(90, 88, 88, 0.93), rgba(111, 106, 100, 0.9));
    border-radius: 24px;
    padding: 54px 30px;
    margin: 64px 0;
    text-align: center;
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.cta-block h3 {
    font-family: 'Italiana', serif;
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 14px;
    font-weight: 400;
}

.cta-block p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.95;
}

.cta-block .hero-actions {
    margin-top: 8px;
}

.cta-block .ghost-button,
.material-ghost-button,
.article-ghost-button,
.order-ghost-button,
.granite-ghost-button,
.fonts-ghost-button,
.story-ghost-button,
.monuments-ghost-button {
    color: var(--text-light);
    border-color: rgba(255,255,255,0.35);
}

.cta-block .ghost-button:hover,
.material-ghost-button:hover,
.article-ghost-button:hover,
.order-ghost-button:hover,
.granite-ghost-button:hover,
.fonts-ghost-button:hover,
.story-ghost-button:hover,
.monuments-ghost-button:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-light);
}

/* ========== ПОДВАЛ ========== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 44px 0 22px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    font-family: 'Italiana', serif;
    font-size: 24px;
    margin-bottom: 18px;
    color: white;
    font-weight: 400;
}

.footer-section p,
.footer-section a {
    color: #d1d1d1;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-icon {
    margin-right: 10px;
}

.footer-messengers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.footer-messenger-link {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 0 !important;
}

.footer-messenger-link:hover {
    transform: translateX(4px);
}

.footer-messenger-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 26px;
    margin-top: 26px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 14px;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2200;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(6px);
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    margin: auto;
    width: 92%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
}

.close,
.prev,
.next {
    border: none;
    cursor: pointer;
}

.close {
    position: absolute;
    top: -42px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: 700;
    background: transparent;
    z-index: 2201;
    transition: var(--transition);
}

.close:hover {
    color: #ccc;
    transform: scale(1.08);
}

.modal-slide {
    display: none;
    text-align: center;
}

.modal-slide img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(255,255,255,0.08);
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: 700;
    padding: 18px;
    user-select: none;
    background: rgba(0, 0, 0, 0.46);
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.prev {
    left: -76px;
}

.next {
    right: -76px;
}

.prev:hover,
.next:hover {
    background: var(--primary-bg-solid);
    transform: translateY(-50%) scale(1.06);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.75s ease forwards;
}

/* ========== ССЫЛКИ В ТЕКСТОВЫХ БЛОКАХ ========== */
.bottom-text a,
.philosophy-text a,
.page-header a,
.material-breadcrumbs a,
.article-breadcrumbs a,
.order-breadcrumbs a,
.granite-breadcrumbs a,
.fonts-breadcrumbs a,
.story-breadcrumbs a,
.monuments-breadcrumbs a,
.article-toc a {
    color: var(--primary-bg-solid);
    text-decoration: none;
    transition: color 0.28s ease, opacity 0.28s ease;
}

.bottom-text a,
.philosophy-text a,
.page-header a {
    font-weight: 500;
    position: relative;
}

.bottom-text a::after,
.philosophy-text a::after,
.page-header a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgba(106, 102, 98, 0.45);
    transition: background 0.28s ease, transform 0.28s ease;
    transform-origin: left center;
}

.bottom-text a:hover,
.philosophy-text a:hover,
.page-header a:hover,
.material-breadcrumbs a:hover,
.article-breadcrumbs a:hover,
.order-breadcrumbs a:hover,
.granite-breadcrumbs a:hover,
.fonts-breadcrumbs a:hover,
.story-breadcrumbs a:hover,
.monuments-breadcrumbs a:hover,
.article-toc a:hover {
    color: #4f4b47;
}

.bottom-text a:hover::after,
.philosophy-text a:hover::after,
.page-header a:hover::after {
    background: rgba(79, 75, 71, 0.75);
    transform: scaleX(1.02);
}

.bottom-text a:focus-visible,
.philosophy-text a:focus-visible,
.page-header a:focus-visible {
    outline: 2px solid rgba(106, 102, 98, 0.28);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ========== СТРАНИЦА О НАС / УСЛУГИ / РАБОТЫ ========== */
.about-feature {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
    gap: 30px;
    align-items: stretch;
    margin: 64px 0;
}

.about-feature--reverse {
    grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 1fr);
}

.about-feature__image {
    overflow: hidden;
    min-height: 100%;
}

.about-feature__image .general-jpg,
.about-feature__image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.about-feature__content {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.works-preview .materials-full-grid {
    margin-top: 28px;
    margin-bottom: 0;
}

.works-preview .material-card {
    padding: 18px;
}

.works-preview .material-image,
.materials-full-grid .material-image {
    height: 280px;
}

.works-preview .material-name {
    font-size: 24px;
}

.works-preview .material-description {
    font-size: 14px;
    line-height: 1.6;
}

.works-preview .view-all-link {
    margin-top: auto;
    padding-top: 10px;
}

.work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ========== КОНТАКТЫ ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 48px 0 40px;
}

.contact-card {
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.contact-card--link {
    cursor: pointer;
}

.contact-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(106, 102, 98, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.contact-card__icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-card strong {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-card__link-text {
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-bg-solid);
}

.contact-card--link:hover .contact-card__link-text {
    text-decoration: underline;
}

/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
.material-breadcrumbs,
.article-breadcrumbs,
.order-breadcrumbs,
.granite-breadcrumbs,
.fonts-breadcrumbs,
.story-breadcrumbs,
.monuments-breadcrumbs {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.material-breadcrumbs span,
.article-breadcrumbs span,
.order-breadcrumbs span,
.granite-breadcrumbs span,
.fonts-breadcrumbs span,
.story-breadcrumbs span,
.monuments-breadcrumbs span {
    color: var(--text-dark);
}

/* ========== СТРАНИЦА МАТЕРИАЛА: ДЫМОВСКИЙ ГРАНИТ ========== */
.material-intro {
    margin: 64px 0;
}

.material-article-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.material-article-block {
    margin-bottom: 0;
    height: 100%;
}

.material-article-block h2,
.bottom-text h2 {
    font-family: 'Italiana', serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text-dark);
}

.material-side-gallery {
    display: grid;
    gap: 20px;
}

.material-side-gallery img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 20px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.material-side-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.material-detail-section {
    margin: 64px 0;
}

.material-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 28px;
}

.featured-image .general-jpg {
    max-height: 640px;
    object-fit: cover;
}

.material-features {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.material-features li {
    background: #f7f5f3;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.material-features li strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.bottom-text strong,
.philosophy-text strong,
.page-header strong {
    color: var(--text-dark);
    font-weight: 600;
}

.bottom-text ul:not(.material-features),
.philosophy-text ul:not(.material-features) {
    margin: 18px 0 18px 22px;
    color: var(--text-muted);
}

.bottom-text ul:not(.material-features) li,
.philosophy-text ul:not(.material-features) li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.bottom-text h2 + p,
.philosophy-text h2 + p {
    margin-top: 0;
}

/* ========== ARTICLE / БЛОГ / QR / FONTS ========== */
.article-layout,
.order-layout,
.granite-layout,
.fonts-layout,
.story-layout,
.monuments-layout {
    margin: 0 0 64px;
}

.fonts-article {
    width: 100%;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-toc {
    padding: 28px 28px 24px;
    margin-bottom: 32px;
}

.article-toc h2 {
    font-family: 'Italiana', serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-toc ul {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 36px;
}

.article-toc li {
    break-inside: avoid;
    margin-bottom: 10px;
    line-height: 1.65;
}

#importance,
#types,
#choice,
#techniques,
#mistakes,
#gallery,
#faq,
#what-is-qr,
#advantages,
#how-to-create,
#placement,
#durability,
#future {
    scroll-margin-top: 120px;
}

.article-hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 24px;
    margin: 0 0 52px;
}

/* ===== АДАПТИВНЫЕ ИЗОБРАЖЕНИЯ С SRCSET ===== */
.article-hero-gallery img,
.qr-image-container img,
.placement-card img,
.material-side-gallery img,
.technique-image img,
.gallery-item img,
.material-story-image img,
.story-hero-image,
.monuments-hero-image,
.treatment-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.article-hero-gallery img {
    height: 580px;
    object-fit: cover;
}

.placement-card img {
    height: 410px;
    object-fit: cover;
    margin-bottom: 16px;
}

.qr-example,
.technique-block,
.material-story-block {
    display: grid;
    gap: 28px;
    align-items: center;
}

.qr-example {
    grid-template-columns: minmax(220px, 280px) minmax(280px, 1fr);
    padding: 24px;
    margin-top: 24px;
}

.qr-image-container img {
    max-width: 260px;
    height: auto !important;
    margin: 0 auto;
    background: #fff;
    padding: 14px;
    object-fit: contain;
}

.benefits-grid,
.process-steps,
.placement-options,
.future-trends {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.process-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.placement-options,
.future-trends {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.benefit-card,
.step,
.placement-card,
.trend-item,
.faq-item {
    padding: 26px 22px;
}

.placement-card {
    display: flex;
    flex-direction: column;
}

.placement-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.faq-item {
    background: #f9f7f5;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-item p {
    margin-bottom: 0;
}

.faq-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefit-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 15px;
}

.care-instructions ul {
    margin-left: 24px;
    margin-top: 16px;
}

.care-instructions li {
    margin-bottom: 8px;
}

/* ========== ORDER ========== */
.order-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 28px;
}

.order-info-card h2,
.granite-intro-card h2,
.fonts-intro-card h2,
.article-section h2,
.faq-section h2,
.care-instructions h3,
.highlight-box h3,
.story-section h2,
.highlight-box-story h3,
.example-box-story h3,
.monuments-section h2,
.important-note-box h3,
.geo-section h2 {
    font-family: 'Italiana', serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.2;
}

.order-list,
.story-list,
.symbol-card ul {
    margin: 18px 0 18px 18px;
    color: var(--text-muted);
    line-height: 1.75;
}

.order-list li + li,
.story-list li + li,
.symbol-card li + li {
    margin-top: 10px;
}

.faq-grid-story {
    display: grid;
    gap: 24px;
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faq-card,
.faq-story-card {
    padding: 24px 20px;
    background: #f7f5f3;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 18px;
}

/* ========== FONTS PAGE ========== */
.fonts-layout {
    margin: 0 0 64px;
}

.fonts-intro {
    margin: 0 0 52px;
}

.fonts-intro-card {
    padding: 32px;
}

.font-card {
    overflow: hidden;
}

.font-preview {
    padding: 24px 22px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #f7f5f3;
}

.font-preview p {
    font-size: 28px;
    line-height: 1.35;
    color: var(--text-dark);
    word-break: break-word;
}

.font-card__content {
    padding: 22px;
}

.serif-font p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.script-font p {
    font-family: 'Clicker Script', cursive;
    font-size: 34px;
    line-height: 1.5;
}

.gothic-font p {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sans-serif-font p {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.technique-block {
    grid-template-columns: minmax(260px, 340px) minmax(320px, 1fr);
    padding: 24px;
    margin-bottom: 24px;
}

.technique-image img {
    height: 280px;
    object-fit: cover;
}

.gallery-item {
    padding: 14px;
}

.gallery-item img {
    height: 420px;
    object-fit: cover;
}

/* ===== page-specific fonts article overrides ===== */
.fonts-article .page-header {
    text-align: center;
}

.fonts-article .page-header h1 {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.fonts-article .page-header p {
    max-width: 900px;
}

.fonts-article .bottom-text {
    font-family: 'Roboto', sans-serif;
}

.fonts-article .bottom-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.fonts-article .bottom-text h2 {
    font-family: 'Italiana', serif;
}

.fonts-article .faq-section {
    padding: 32px;
}

.fonts-article .faq-card p {
    font-size: 16px;
    line-height: 1.75;
}

/* ========== STORY / SYMBOLS ========== */
.story-hero,
.monuments-hero {
    margin-bottom: 40px;
}

.story-hero-image,
.monuments-hero-image {
    max-height: 560px;
}

.material-story-block {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 380px);
    margin-top: 24px;
    margin-bottom: 20px;
}

.material-story-image img {
    max-height: 260px;
    border-radius: 20px;
    object-fit: cover;
}

/* ========== GEO ========== */
.geo-section {
    margin: 64px 0;
}

.geo-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.geo-section li {
    padding: 12px 16px;
    background: #f7f5f3;
    border-radius: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.04);
}

.geo-section li::before {
    content: "📍";
    font-size: 18px;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1200px) {
    .prev { left: -46px; }
    .next { right: -46px; }

    .article-toc ul {
        column-gap: 24px;
    }
}

@media (max-width: 992px) {
    .container {
        width: calc(100% - 14px);
        padding: 0 16px 24px;
        border-radius: 18px;
    }

    .header-line {
        padding: 10px 16px 12px;
    }

    .header-menu {
        display: none;
    }

    .burger-icon {
        display: flex;
    }

    .mobile-page-indicator {
        display: block;
    }

    .header-top-row {
        justify-content: flex-start;
        min-height: 68px;
        padding: 0 112px 0 0;
    }

    .brand-link {
        grid-template-columns: 64px auto;
        column-gap: 12px;
    }

    .header-logo {
        width: 64px;
        height: 64px;
    }

    .stone-legends {
        font-size: clamp(20px, 3.8vw, 30px);
        text-align: left;
        justify-self: start;
        white-space: normal;
    }

    .footer-messengers {
        align-items: center;
    }

    .footer-messenger-link {
        width: auto;
        justify-content: center;
    }

    .imgL {
        height: 240px;
    }

    .about-feature,
    .about-feature--reverse,
    .material-article-grid,
    .material-detail-grid,
    .order-two-column,
    .qr-example,
    .technique-block,
    .material-story-block {
        grid-template-columns: 1fr;
    }

    .about-feature,
    .about-feature--reverse {
        gap: 24px;
        margin: 52px 0;
    }

    .about-feature__image .general-jpg,
    .about-feature__image img {
        min-height: 300px;
        max-height: 360px;
    }

    .works-preview .material-image,
    .materials-full-grid .material-image {
        height: 200px;
    }

    .material-side-gallery {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .material-side-gallery img {
        min-height: 220px;
        max-height: 260px;
    }

    .article-hero-gallery {
        grid-template-columns: 1fr;
    }

    .article-hero-gallery img {
        height: 260px;
    }

    .placement-card img {
        height: 320px;
    }

    .article-toc ul {
        columns: 1;
    }

    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .font-types-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button,
    .ghost-button,
    .view-all-btn {
        width: 100%;
        max-width: 320px;
    }

    .philosophy-text,
    .bottom-text,
    .geo-section,
    .page-header,
    .article-section,
    .faq-section,
    .care-instructions,
    .highlight-box,
    .order-intro,
    .order-info-card,
    .order-step-card,
    .advantage-order-card,
    .granite-intro-card,
    .treatment-card,
    .advantage-granite-card,
    .fonts-intro-card,
    .font-preview,
    .font-card__content,
    .technique-block,
    .story-section,
    .highlight-box-story,
    .example-box-story,
    .symbol-card,
    .material-story-card,
    .story-text-box,
    .process-story-card,
    .monuments-section,
    .important-note-box,
    .climate-card,
    .guide-card,
    .type-card,
    .process-card,
    .faq-item,
    .article-toc {
        padding: 24px;
    }

    .materials-filter {
        padding: 16px;
    }

    .filter-btn {
        width: 100%;
        max-width: 260px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section a:hover {
        transform: translateX(0);
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    .prev,
    .next {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .material-intro,
    .material-detail-section {
        margin: 52px 0;
    }

    .material-side-gallery {
        grid-template-columns: 1fr;
    }

    .material-side-gallery img {
        min-height: 240px;
        max-height: 280px;
    }

    .material-article-block h2,
    .bottom-text h2 {
        font-size: 30px;
    }

    .material-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .material-features li {
        font-size: 15px;
        padding: 13px 14px;
    }

    .works-preview .material-image,
    .materials-full-grid .material-image {
        height: 180px;
    }

    .works-preview .material-name {
        font-size: 22px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 36px 0 32px;
    }

    .contact-card {
        min-height: auto;
        padding: 24px 20px;
    }

    .contact-card h2 {
        font-size: 24px;
    }

    .contact-card p {
        font-size: 15px;
    }

    .gallery-item img {
        height: 220px;
    }

    .technique-image img {
        height: 240px;
    }

    .treatment-image {
        height: 200px;
    }

    .story-hero-image,
    .monuments-hero-image {
        max-height: 360px;
    }

    .faq-card,
    .faq-story-card {
        padding: 20px 18px;
    }

    .faq-grid,
    .font-types-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-meta {
        font-size: 13px;
    }

    .article-toc h2 {
        font-size: 28px;
    }

    .font-preview h3 {
        font-size: 22px;
    }

    .font-preview p {
        font-size: 24px;
    }

    .script-font p {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .container {
        width: calc(100% - 10px);
        padding: 0 12px 20px;
    }

    .header-line {
        margin-bottom: 24px;
        border-radius: 0 0 18px 18px;
    }

    .header-top-row {
        min-height: 58px;
        padding-right: 52px;
    }

    .brand-link {
        grid-template-columns: 48px auto;
        column-gap: 8px;
    }

    .header-logo {
        width: 48px;
        height: 48px;
    }

    .stone-legends {
        font-size: 18px;
        line-height: 1.06;
        text-align: left;
        white-space: normal;
    }

    .burger-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .mobile-menu .nav-btn {
        font-size: 16px;
        padding: 12px 12px;
    }

    .page-header h1,
    .hero-title {
        font-size: 32px;
    }

    .page-header p,
    .hero-description {
        font-size: 18px;
    }

    .imgL {
        height: 220px;
    }

    .material-image {
        height: 400px;
    }

    .cta-block {
        padding: 40px 20px;
    }

    .about-feature {
        margin: 40px 0;
    }

    .about-feature__image .general-jpg,
    .about-feature__image img {
        min-height: 210px;
        max-height: 250px;
    }

    .works-preview .material-image,
    .materials-full-grid .material-image {
        height: 170px;
    }

    .material-breadcrumbs,
    .article-breadcrumbs,
    .order-breadcrumbs,
    .granite-breadcrumbs,
    .fonts-breadcrumbs,
    .story-breadcrumbs,
    .monuments-breadcrumbs {
        font-size: 13px;
        line-height: 1.6;
    }

    .material-side-gallery img {
        min-height: 210px;
        max-height: 240px;
        border-radius: 16px;
    }

    .featured-image .general-jpg {
        max-height: 300px;
    }

    .font-preview p {
        font-size: 24px;
    }

    .script-font p {
        font-size: 30px;
    }

    .gallery-item img,
    .technique-image img,
    .treatment-image {
        height: 180px;
    }

    .placement-card img {
        height: 280px;
    }

    .story-hero-image,
    .monuments-hero-image {
        max-height: 280px;
    }

    .qr-image-container img {
        max-width: 200px;
    }

    .article-toc {
        padding: 20px 16px 16px;
        border-radius: 18px;
    }

    .article-toc h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .article-toc ul {
        padding-left: 18px;
    }

    .fonts-article .page-header {
        text-align: left;
    }

    .article-meta {
        justify-content: flex-start;
    }

    .font-preview h3 {
        font-size: 20px;
    }

    .script-font p {
        font-size: 28px;
        line-height: 1.45;
    }
}

/* ========== ДОПОЛНИТЕЛЬНО: СТИЛИ ТОЛЬКО ДЛЯ СТРАНИЦЫ MATERIALS ========== */

.material-link-title {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.material-link-title:hover {
    opacity: 0.82;
}

.material-card.has-project {
    position: relative;
}

.material-card.has-project .material-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.material-card.has-project .material-name a {
    color: inherit;
    text-decoration: none;
}

.material-card.has-project .material-name a:hover {
    opacity: 0.82;
}

.material-actions {
    margin-top: 16px;
    text-align: center;
}

.material-actions .view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.material-note {
    font-size: 14px;
    line-height: 1.55;
    color: #6b665f;
    margin-top: 10px;
    text-align: center;
}

.materials-links-block,
.materials-seo-block,
.faq-block {
    margin-top: 50px;
}

.materials-links-block p strong,
.materials-seo-block p strong {
    color: var(--text-dark);
    font-weight: 600;
}

.faq-list {
    display: grid;
    gap: 20px;
}

.faq-block h2 {
    font-family: 'Italiana', serif;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 18px;
}

.faq-item h3 {
    margin-bottom: 8px;
}

/* ===== ДОПОЛНИТЕЛЬНАЯ СТАБИЛИЗАЦИЯ СЕТКИ MATERIALS ===== */

.materials-full-grid {
    align-items: stretch;
}

.materials-full-grid .material-card {
    height: 100%;
}

.materials-full-grid .material-image {
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.materials-full-grid .material-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.materials-full-grid .material-name {
    word-break: break-word;
}

.materials-full-grid .material-description {
    flex-grow: 1;
}

.materials-full-grid .material-actions {
    margin-top: auto;
    padding-top: 12px;
}

/* ===== ДЕСКТОП / БОЛЬШИЕ ПЛАНШЕТЫ ===== */

@media (min-width: 1201px) {
    .materials-full-grid .material-image {
        height: 320px;
    }
}

/* ===== ПЛАНШЕТЫ ===== */

@media (max-width: 1200px) {
    .materials-links-block,
    .materials-seo-block,
    .faq-block {
        margin-top: 42px;
    }

    .materials-full-grid .material-image {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .materials-links-block,
    .materials-seo-block,
    .faq-block {
        margin-top: 38px;
    }

    .materials-full-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .materials-full-grid .material-card {
        padding: 18px;
    }

    .materials-full-grid .material-image {
        height: 240px;
        margin-bottom: 14px;
    }

    .materials-full-grid .material-name {
        font-size: 23px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .materials-full-grid .material-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .material-note {
        font-size: 13px;
        line-height: 1.5;
    }

    .faq-list {
        gap: 18px;
    }
}

/* ===== МОБИЛЬНЫЕ ===== */

@media (max-width: 768px) {
    .materials-links-block,
    .materials-seo-block,
    .faq-block {
        margin-top: 32px;
    }

    .materials-full-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .materials-full-grid .material-card {
        padding: 16px;
        border-radius: 18px;
    }

    .materials-full-grid .material-image {
        width: 100%;
        height: 260px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .materials-full-grid .material-main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .materials-full-grid .material-name {
        font-size: 22px;
        line-height: 1.18;
        margin-bottom: 10px;
    }

    .materials-full-grid .material-description {
        font-size: 14px;
        line-height: 1.62;
        margin-bottom: 8px;
    }

    .material-note {
        font-size: 13px;
        line-height: 1.5;
        margin-top: 8px;
    }

    .material-actions {
        margin-top: 12px;
        padding-top: 0;
    }

    .material-actions .view-all-btn {
        width: 100%;
        max-width: none;
        min-height: 46px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .faq-list {
        gap: 14px;
    }

    .faq-block h2 {
        font-size: clamp(24px, 8vw, 34px);
        margin-bottom: 14px;
    }

    .faq-item {
        padding: 18px 16px;
    }

    .faq-item h3 {
        font-size: 21px;
        line-height: 1.22;
        margin-bottom: 8px;
    }

    .materials-links-block,
    .materials-seo-block,
    .faq-block {
        padding: 22px 18px;
    }
}

/* ===== МАЛЕНЬКИЕ МОБИЛЬНЫЕ ===== */

@media (max-width: 576px) {
    .materials-links-block,
    .materials-seo-block,
    .faq-block {
        margin-top: 26px;
        padding: 20px 14px;
        border-radius: 16px;
    }

    .materials-full-grid {
        gap: 16px;
    }

    .materials-full-grid .material-card {
        padding: 14px;
        border-radius: 16px;
    }

    .materials-full-grid .material-image {
        height: 220px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .materials-full-grid .material-name {
        font-size: 20px;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .materials-full-grid .material-description {
        font-size: 14px;
        line-height: 1.58;
        margin-bottom: 6px;
    }

    .material-note {
        font-size: 12.5px;
        line-height: 1.45;
        margin-top: 6px;
    }

    .material-actions {
        margin-top: 10px;
    }

    .material-actions .view-all-btn {
        width: 100%;
        max-width: none;
        min-height: 44px;
        font-size: 14px;
        padding: 11px 14px;
    }

    .faq-block h2 {
        font-size: 26px;
        line-height: 1.15;
    }

    .faq-item {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .faq-item h3 {
        font-size: 19px;
        line-height: 1.2;
    }
}

/* ===== ОЧЕНЬ УЗКИЕ ЭКРАНЫ ===== */

@media (max-width: 380px) {
    .materials-full-grid .material-image {
        height: 190px;
    }

    .materials-full-grid .material-name {
        font-size: 18px;
    }

    .materials-full-grid .material-description {
        font-size: 13.5px;
    }

    .material-note {
        font-size: 12px;
    }

    .material-actions .view-all-btn {
        min-height: 42px;
        font-size: 13.5px;
        padding: 10px 12px;
    }

    .faq-block h2 {
        font-size: 24px;
    }

    .faq-item h3 {
        font-size: 18px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНО: СТРАНИЦА BALTIC GREEN ========== */

.material-layout .featured-image .general-jpg {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    display: block;
}

.material-layout .material-side-gallery img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.material-layout .material-article-grid,
.material-layout .material-detail-grid {
    align-items: stretch;
}

.material-layout .material-article-block,
.material-layout .bottom-text {
    height: 100%;
}

@media (max-width: 992px) {
    .material-layout .material-article-grid,
    .material-layout .material-detail-grid {
        grid-template-columns: 1fr;
    }

    .material-layout .material-side-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .material-layout .material-side-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .material-layout .material-side-gallery img {
        min-height: 220px;
        max-height: 260px;
    }

    .material-layout .featured-image .general-jpg {
        max-height: 340px;
    }
}

@media (max-width: 576px) {
    .material-layout .material-side-gallery img {
        min-height: 200px;
        max-height: 220px;
    }

    .material-layout .featured-image .general-jpg {
        max-height: 260px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНО: PROJECT PAGE BALTIC GREEN ========== */

.project-layout .featured-image .general-jpg {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    display: block;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 52px;
}

.project-meta-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px 18px;
    text-align: center;
}

.project-meta-card h3 {
    font-family: 'Italiana', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 10px;
}

.project-meta-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

.project-story-grid,
.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 52px;
}

.project-gallery {
    margin: 56px 0;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-gallery-grid .gallery-item {
    padding: 14px;
}

.project-gallery-grid .gallery-item img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.project-list {
    margin: 18px 0 0 20px;
    color: var(--text-muted);
    line-height: 1.75;
}

.project-list li + li {
    margin-top: 10px;
}

@media (max-width: 992px) {
    .project-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-story-grid,
    .project-detail-grid,
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery-grid .gallery-item img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .project-meta-grid {
        gap: 16px;
        margin-bottom: 40px;
    }

    .project-meta-card {
        padding: 18px 14px;
    }

    .project-meta-card h3 {
        font-size: 22px;
    }

    .project-gallery {
        margin: 42px 0;
    }

    .project-gallery-grid {
        gap: 18px;
    }

    .project-gallery-grid .gallery-item img {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .project-meta-grid {
        grid-template-columns: 1fr;
    }

    .project-meta-card h3 {
        font-size: 20px;
    }

    .project-gallery-grid .gallery-item {
        padding: 10px;
    }

    .project-gallery-grid .gallery-item img {
        height: 200px;
    }

    .project-layout .featured-image .general-jpg {
        max-height: 280px;
    }
}

/* ===== Baltic Green page image tuning ===== */
.project-layout .featured-image.small-image {
    max-width: 920px;
    margin: 0 auto 60px;
}

.project-layout .featured-image.small-image .general-jpg {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    display: block;
}

/* Чуть более аккуратная типографика для статьи */
.project-layout .bottom-text h2,
.project-layout .faq-section h2,
.project-layout .highlight-box h2 {
    margin-bottom: 16px;
}

.project-layout .bottom-text p,
.project-layout .faq-card p,
.project-layout .highlight-box p,
.project-layout .project-meta-card p {
    line-height: 1.75;
}

.project-layout .advantage-card p,
.project-layout .project-list li {
    color: var(--text-muted);
}

/* На планшете */
@media (max-width: 992px) {
    .project-layout .featured-image.small-image {
        max-width: 760px;
        margin-bottom: 48px;
    }

    .project-layout .featured-image.small-image .general-jpg {
        max-height: 520px;
    }
}

/* На телефоне */
@media (max-width: 576px) {
    .project-layout .featured-image.small-image {
        max-width: 100%;
        margin-bottom: 36px;
    }

    .project-layout .featured-image.small-image .general-jpg {
        max-height: 320px;
    }
}

/* ===== Crystal White Italy page image tuning ===== */
.material-layout .featured-image.small-image {
    max-width: 460px;
    margin: 0 auto 60px;
}

.material-layout .featured-image.small-image .general-jpg {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    display: block;
}

/* ===== Typography tuning for article ===== */
.material-layout .bottom-text h2,
.material-layout .faq-section h2,
.material-layout .highlight-box h2 {
    margin-bottom: 16px;
}

.material-layout .bottom-text p,
.material-layout .faq-card p,
.material-layout .highlight-box p,
.material-layout .project-meta-card p {
    line-height: 1.75;
}

.material-layout .advantage-card p,
.material-layout .project-list li {
    color: var(--text-muted);
}

/* ===== Tablet ===== */
@media (max-width: 992px) {
    .material-layout .featured-image.small-image {
        max-width: 420px;
        margin-bottom: 48px;
    }

    .material-layout .featured-image.small-image .general-jpg {
        max-height: 520px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 576px) {
    .material-layout .featured-image.small-image {
        max-width: 100%;
        margin-bottom: 36px;
    }

    .material-layout .featured-image.small-image .general-jpg {
        max-height: 320px;
    }
}