/* ============================================================
   VíaDomótica — style.css (общий для всех страниц)
   ============================================================ */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 14px 34px rgba(0,0,0,.15);
}

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

/* Фикс рывка при загрузке */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}
body { font-family: 'Garet', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section-dark { background: var(--dark); color: #e2e8f0; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: #94a3b8; }

.section-title { font-size: 2.2rem; text-align: center; color: var(--dark); margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 660px; margin: 0 auto 50px; font-size: 1.05rem; }

/* Кнопки — hover без движения */
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background .25s, box-shadow .25s, border-color .25s; border: none; font-family: 'Garet', Arial, sans-serif; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(14,165,233,.35); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Навигация */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15,23,42,.92); backdrop-filter: blur(10px); transition: background .3s, box-shadow .3s; }
.navbar.scrolled { background: var(--dark); box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 38px; width: auto; display: block; }
.logo-text { font-family: 'Brigens Expanded', Arial, sans-serif; color: #fff; font-size: 1.1rem; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a { color: #cbd5e1; padding: 10px 10px; border-radius: 8px; font-size: .88rem; transition: .2s; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: rgba(255,255,255,.08); }
.mobile-lang-flags { display: none; }
.nav-icons { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.nav-icons a { color: #94a3b8; font-size: 1.15rem; transition: .2s; }
.nav-icons a:hover { color: var(--primary); }
.lang-flags { display: flex; gap: 8px; align-items: center; margin-right: 10px; }
.flag-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #cbd5e1; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: .2s; font-family: 'Garet', Arial, sans-serif; }
.flag-btn:hover { color: #fff; border-color: var(--primary); }
.flag-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 100px; background: #1f2937 url('../images/hero-install.webp') center / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-heading { font-family: 'Garet', Arial, sans-serif; color: #fff; font-size: 6.8rem; font-weight: 400; letter-spacing: normal; text-transform: uppercase; line-height: 1.05; margin-bottom: 34px; }
.hero-sub { color: #d1d5db; font-size: 1.15rem; line-height: 1.85; margin-bottom: 48px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* Подстраницы: hero */
.page-hero { background: #1f2937 url('../images/hero-install.webp') center / cover no-repeat; position: relative; padding: 190px 0 80px; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 1; }
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { font-family: 'Garet', Arial, sans-serif; color: #fff; font-size: 3rem; font-weight: 400; text-transform: uppercase; margin-bottom: 14px; }
.page-hero p { color: #d1d5db; font-size: 1.15rem; }
.page-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: 0; }
.services-hero {
    background: #0f172a;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.services-hero h1 { font-size: 6.8rem; line-height: 1.05; }

/* Услуги */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { position: relative; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 34px 28px; overflow: hidden; transition: .3s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon-wrap { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.service-icon-circle { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #38bdf8); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; }
.service-icon-number { font-size: 2.4rem; font-weight: 700; color: #e2e8f0; line-height: 1; }
.service-card h3 { color: var(--dark); margin-bottom: 10px; font-size: 1.25rem; }
.service-card p { margin-bottom: 16px; font-size: .95rem; }
.service-list { margin-bottom: 18px; }
.service-list li { padding: 7px 0 7px 24px; position: relative; font-size: .9rem; border-bottom: 1px dashed #f1f5f9; }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.service-card-glow { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), #38bdf8); opacity: 0; transition: .3s; }
.service-card:hover .service-card-glow { opacity: 1; }

/* Детальный блок услуги */
.services-content-section { padding-top: 52px; }
.service-detail { margin-top: 0; padding: 52px; border-radius: var(--radius); background: #f8fafc; border: 1px solid #e2e8f0; }
.service-detail-header { display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: start; margin-bottom: 42px; }
.service-detail-kicker { font-size: 3.4rem; line-height: 1; font-weight: 700; color: #94a3b8; }
.service-detail h2 { color: var(--dark); font-size: 2.2rem; margin-bottom: 14px; }
.service-detail-header p { max-width: 900px; color: var(--text-light); font-size: 1.05rem; line-height: 1.8; }
.service-detail-process { padding-left: 100px; }
.service-detail-process h3 { color: var(--dark); font-size: 1.25rem; margin-bottom: 22px; }
.service-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.service-detail-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #e2e8f0; }
.service-detail-number { flex: 0 0 auto; font-size: .82rem; font-weight: 800; color: #0284c7; padding-top: 4px; }
.service-detail-item p { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.65; }
.service-detail-item strong { color: var(--dark); }
.services-poster-wrap { margin-top: 28px; width: 100%; overflow: hidden; border-radius: var(--radius); }
.services-poster { display: block; width: 100%; height: auto; }

.service-installation { margin-top: 28px; }
.service-warranty { margin-top: 28px; padding: 24px 26px; border-radius: 12px; background: var(--dark); color: #fff; }
.service-warranty h4 { margin: 0 0 6px; font-size: 1.15rem; color: #fff; }
.service-warranty p { margin: 0; color: #cbd5e1; font-size: .95rem; }

/* Секторы */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 30px; }
.sector-card { background: var(--dark-2); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); transition: .3s; }
.sector-card:hover { transform: none; box-shadow: var(--shadow-lg); }
.sector-content { padding: 26px; }
.sector-content h3 { color: #fff; margin-bottom: 10px; font-size: 1.3rem; }
.sector-content p { color: #94a3b8; margin-bottom: 14px; font-size: .95rem; }
.sector-benefits li { padding: 6px 0 6px 22px; position: relative; color: #cbd5e1; font-size: .9rem; }
.sector-benefits li::before { content: '•'; position: absolute; left: 6px; color: var(--primary); font-weight: 700; }
.sector-ph, .project-ph, .das-ph { display: flex; align-items: center; justify-content: center; font-size: 4rem; line-height: 1; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.sector-ph { height: 240px; }
.sector-ph-image { height: auto; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: #0f172a; flex: none; }
.sector-image { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.project-ph { height: 210px; }
.das-ph { height: 320px; border-radius: 12px; }

/* Процесс */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.process-step { text-align: center; padding: 32px 22px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius); transition: .3s; }
.process-step:hover { transform: none; box-shadow: var(--shadow); }
.step-number { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #38bdf8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }
.process-step h3 { color: var(--dark); margin-bottom: 10px; font-size: 1.1rem; }
.process-step p { font-size: .92rem; }

/* Почему мы */
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.why-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: .3s; }
.why-card:hover { transform: none; border-color: var(--primary); }
.why-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    background: rgba(255,255,255,.035);
}
.why-icon i { color: #fff; }
.why-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.12rem; }
.why-card p { color: #94a3b8; font-size: .92rem; }

/* Проекты */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.project-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img { position: relative; }
.project-tag { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: .78rem; z-index: 2; }
.project-body { padding: 20px 22px 24px; }
.project-body h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--dark); }
.project-body p { margin: 0 0 14px; color: var(--text-light); font-size: .93rem; }
.project-specs { list-style: none; margin: 0; padding: 0; font-size: .86rem; color: #334155; }
.project-specs li { padding: 6px 0; border-bottom: 1px dashed #e2e8f0; display: flex; gap: 8px; align-items: baseline; }
.project-specs li:last-child { border-bottom: none; }
.project-specs i { color: var(--primary); font-size: .8rem; }

/* Solar */
.solar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 40px; }
.solar-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 30px 26px; transition: .3s; }
.solar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.solar-card-icon { width: 60px; height: 60px; border-radius: 14px; background: linear-gradient(135deg, #fbbf24, #f59e0b); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
.solar-card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--dark); }
.solar-card p { margin: 0; color: var(--text-light); font-size: .93rem; }
.solar-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 38px; }
.solar-benefit { display: flex; gap: 12px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 16px 18px; }
.solar-benefit i { color: #f59e0b; margin-top: 3px; }
.solar-benefit span { color: #78350f; font-size: .92rem; }

/* Бренды */
.brands-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.brand-logo-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 26px 20px; text-align: center; transition: .3s; }
.brand-logo-card:hover { border-color: var(--primary); transform: none; }
.brand-logo-inner { display: flex; flex-direction: column; gap: 6px; }
.brand-name-big { color: #fff; font-size: 1.35rem; font-weight: 800; font-family: 'Garet Heavy', 'Garet', Arial, sans-serif; }
.brand-tag { color: #64748b; font-size: .82rem; }
.brand-spotlight { background: var(--dark-2); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 40px; margin-bottom: 50px; }
.brand-spotlight-badge { display: inline-block; background: var(--primary); color: #fff; padding: 6px 18px; border-radius: 20px; font-weight: 700; margin-bottom: 16px; font-size: .9rem; }
.brand-spotlight-header h3 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.brand-spotlight-desc { color: #94a3b8; max-width: 780px; margin-bottom: 28px; }
.das-tabs { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.das-tab { background: transparent; border: 2px solid rgba(255,255,255,.2); color: #cbd5e1; padding: 11px 24px; border-radius: 8px; cursor: pointer; font-size: .95rem; transition: .25s; font-family: 'Garet', Arial, sans-serif; }
.das-tab:hover { border-color: var(--primary); color: #fff; }
.das-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.das-product-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: start; }
.das-product-info h4 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.das-product-sub { color: #94a3b8; margin-bottom: 18px; font-size: .95rem; }
.das-features li { padding: 7px 0; color: #cbd5e1; font-size: .93rem; display: flex; gap: 10px; align-items: baseline; }
.das-features i { color: var(--primary); }
.das-ideal { margin-top: 20px; background: rgba(14,165,233,.12); border: 1px solid rgba(14,165,233,.35); border-radius: 10px; padding: 14px 18px; color: #7dd3fc; font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.other-brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.other-brand-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px; transition: .3s; }
.other-brand-card:hover { transform: none; border-color: var(--primary); }
.other-brand-icon { width: 54px; height: 54px; border-radius: 12px; background: rgba(14,165,233,.15); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.other-brand-card h4 { color: #fff; margin-bottom: 10px; font-size: 1.15rem; }
.other-brand-card p { color: #94a3b8; font-size: .92rem; margin-bottom: 14px; }
.other-brand-list li { padding: 5px 0 5px 20px; position: relative; color: #cbd5e1; font-size: .88rem; }
.other-brand-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); }

/* CTA */
.cta { background: linear-gradient(135deg, #0c4a6e, var(--dark)); text-align: center; }
.cta h2 { color: #fff; font-size: 2rem; margin-bottom: 14px; }
.cta p { color: #94a3b8; max-width: 620px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-top: 40px; }
.contact-info-card { background: var(--dark-2); color: #e2e8f0; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px; }
.contact-info-card h3 { margin: 0 0 18px; color: #fff; font-size: 1.15rem; }
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i { color: #38bdf8; width: 20px; text-align: center; margin-top: 3px; }
.contact-info-list a { color: #e2e8f0; }
.contact-info-list a:hover { color: #7dd3fc; }
.contact-form { background: #fff; border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.contact-form h3 { margin: 0 0 18px; color: var(--dark); font-size: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .88rem; color: #334155; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .95rem; font-family: 'Garet', Arial, sans-serif; background: #f8fafc; color: var(--dark); box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .8rem; color: var(--text-light); margin: 10px 0 0; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; border: none; padding: 14px 28px; border-radius: 8px; font-size: 1rem; cursor: pointer; font-family: 'Garet', Arial, sans-serif; }
.btn-wa:hover { background: #1da851; }

/* Футер */
.footer { background: #020617; color: #94a3b8; padding: 70px 0 0; }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer-section h3 { color: #fff; margin-bottom: 14px; font-size: 1.4rem; }
.footer-section h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-section p { font-size: .92rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Brigens Expanded', Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-logo-img { height: 36px; width: auto; }
.footer-address { margin-top: 14px; line-height: 1.75; font-size: .88rem; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: .92rem; }
.footer-links a, .footer-contact a { color: #94a3b8; transition: .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: .88rem; }

/* Наверх */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 1.3rem; cursor: pointer; z-index: 998; opacity: 0; visibility: hidden; transition: .3s; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); }

/* Шапка: широкий контейнер */
.navbar .container { max-width: 1560px; padding: 0 24px; }
.nav-container { gap: 12px; }
.nav-menu a { padding: 10px 10px; font-size: .88rem; white-space: nowrap; }

/* Адаптив */
@media (max-width: 1380px) and (min-width: 1025px) { .nav-icons a[aria-label] { display: none; } }
@media (max-width: 1024px) {
    .nav-icons .lang-flags { display: none; }
    .menu-toggle { display: flex; }
    .nav-menu { position: fixed; top: 72px; left: 0; right: 0; z-index: 998; background: var(--dark); flex-direction: column; align-items: stretch; padding: 20px; gap: 6px; transform: translateY(-140%); transition: transform .35s; }
    .nav-menu.active { transform: translateY(0); }
    .nav-menu a { padding: 13px 16px; }
    .mobile-lang-flags { display: flex; gap: 16px; justify-content: center; padding: 14px 0 4px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; }
}
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-title { font-size: 1.65rem; }
    .hero { padding: 120px 0 70px; }
    .hero-heading { font-size: 3rem; margin-bottom: 20px; }
    .hero-sub { font-size: .98rem; margin-bottom: 30px; }
    .page-hero { padding: 150px 0 60px; }
    .page-hero h1 { font-size: 1.8rem; }
    .services-hero { min-height: 420px; }
    .services-hero h1 { font-size: 3rem; }
    .services-content-section { padding-top: 32px; }
    .service-detail { margin-top: 0; padding: 30px 22px; }
    .service-detail-header { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
    .service-detail-kicker { font-size: 2.4rem; }
    .service-detail h2 { font-size: 1.7rem; }
    .service-detail-process { padding-left: 0; }
    .service-detail-list { grid-template-columns: 1fr; gap: 0; }
    .das-product-card { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .cta h2 { font-size: 1.5rem; }
}

/* CTA buttons: smooth gradient hover like Our Services */
.cta .btn {
    transform: none;
}

.cta .btn:hover,
.cta .btn:focus,
.cta .btn:active {
    transform: none;
}

.cta .btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: 1px solid rgba(125, 211, 252, .4);
    box-shadow: none;
}

.cta .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: -1;
}

.cta .btn-primary:hover,
.cta .btn-primary:focus {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: none;
}

.cta .btn-primary:hover::before,
.cta .btn-primary:focus::before {
    opacity: 1;
}

/* ============================================================
   FINAL OVERRIDES — consolidated
   ============================================================ */

/* Cards that must remain completely static */
.sector-card,
.process-step,
.why-card,
.brand-logo-card,
.other-brand-card,
.sector-card:hover,
.sector-card:focus,
.sector-card:active,
.process-step:hover,
.process-step:focus,
.process-step:active,
.why-card:hover,
.why-card:focus,
.why-card:active,
.brand-logo-card:hover,
.brand-logo-card:focus,
.brand-logo-card:active,
.other-brand-card:hover,
.other-brand-card:focus,
.other-brand-card:active {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    outline: none !important;
    transition: none !important;
    cursor: default !important;
}

.sector-card:hover,
.sector-card:focus,
.sector-card:active,
.why-card:hover,
.why-card:focus,
.why-card:active {
    background: var(--dark-2) !important;
    border-color: rgba(255,255,255,.08) !important;
}

.process-step,
.process-step:hover,
.process-step:focus,
.process-step:active {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.brand-logo-card:hover,
.brand-logo-card:focus,
.brand-logo-card:active,
.other-brand-card:hover,
.other-brand-card:focus,
.other-brand-card:active {
    background: var(--dark-2) !important;
    border-color: rgba(255,255,255,.1) !important;
}

/* Projects / Contact hero sizing */
.projects-hero,
.contact-hero {
    background: #0f172a;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.projects-hero h1,
.contact-hero h1 {
    font-family: 'Garet', Arial, sans-serif;
    color: #fff;
    font-size: 6.8rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 34px;
}

.projects-hero p,
.contact-hero p {
    color: #d1d5db;
    font-size: 1.15rem;
    line-height: 1.85;
    max-width: 900px;
    margin: 0 auto;
}

/* Brand logos */
.other-brand-logo-wrap {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.other-brand-logo {
    display: block;
    max-width: 150px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.other-brand-logo-rounded { border-radius: 6px; }
.other-brand-logo-bose { filter: brightness(0) invert(1); }

/* Footer alignment */
.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    font-size: .92rem;
    line-height: 1.65;
}

.footer-links a,
.footer-contact a {
    display: inline;
    margin: 0;
    padding: 0;
}

.footer-content .footer-section:first-child {
    transform: translate(-10px, -18px);
}

/* No reveal animation on page load */
.fade-in,
.fade-in.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
    animation: none !important;
}

/* Services details */
.service-detail-kicker { display: none !important; }
.service-detail-number { display: block !important; }

.service-detail-header {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.service-detail-process { padding-left: 0 !important; }
.service-detail-item { gap: 14px !important; }

.services-poster-wrap + .service-detail {
    margin-top: 28px !important;
}

/* Contact form */
.contact-form {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius) !important;
    padding: 34px 28px !important;
    box-shadow: none !important;
}

.contact-form h3 {
    color: var(--dark) !important;
    margin-bottom: 18px;
}

.contact-form .form-group label { color: #334155 !important; }

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    background: #f8fafc !important;
    color: var(--dark) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: #94a3b8 !important;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    background: #fff !important;
    border-color: var(--primary) !important;
    outline: none;
}

.contact-form .form-note { color: var(--text-light) !important; }

/* Projects cards */
.project-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    overflow: hidden;
    cursor: pointer;
}

.project-body { padding: 28px 28px 30px; }

.project-body h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: var(--dark);
}

.project-body p {
    margin: 0 0 16px;
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.65;
}

.project-specs { font-size: .92rem; }

.project-specs li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.project-card:not(.project-card-modal-card) {
    position: relative;
    transition: .3s !important;
}

.project-card:not(.project-card-modal-card)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 3;
}

.project-card:not(.project-card-modal-card):hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary) !important;
}

.project-card:not(.project-card-modal-card):hover::before {
    opacity: 1;
}

/* Projects modal */
.project-card-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .4s ease !important;
}

.project-card-modal-card {
    position: relative;
    width: min(760px, calc(100vw - 48px)) !important;
    max-width: 760px !important;
    max-height: calc(100vh - 48px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transform-origin: center center;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0,0,0,.26) !important;
    cursor: default;
    opacity: 0;
    scale: .97;
    transition: opacity .4s ease, scale .4s ease !important;
}

.project-card-modal-card .project-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    background: #0f172a !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
}

.project-card-modal-card .project-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.project-card-modal-card .project-body {
    padding: 20px 26px 22px !important;
    overflow: hidden !important;
}

.project-card-modal-card .project-body h3 {
    font-size: 1.55rem !important;
    margin-bottom: 7px !important;
}

.project-card-modal-card .project-body p {
    font-size: .95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.project-card-modal-card .project-specs {
    display: none !important;
}

.project-card-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(15,23,42,.88);
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.project-card-modal.is-visible { opacity: 1; }

.project-card-modal.is-visible .project-card-modal-card {
    opacity: 1;
    scale: 1;
}

body.project-modal-open { overflow: hidden; }

/* Home / Our Services */
.service-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.service-card > p { min-height: 78px; }
.service-card .service-list { width: 100%; }

.service-card .service-list li {
    white-space: nowrap !important;
    font-size: .88rem;
}

.service-card .service-link { margin-top: auto; }

/* Rendering optimization for below-the-fold images */
img[loading="lazy"] {
    content-visibility: auto;
}

@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: minmax(0, 1fr) repeat(3, 170px);
        column-gap: 22px;
    }

    .footer-content .footer-section:nth-child(2),
    .footer-content .footer-section:nth-child(3),
    .footer-content .footer-section:nth-child(4) {
        transform: translateX(-40px);
    }
}

@media (max-width: 768px) {
    .projects-hero,
    .contact-hero {
        min-height: 420px;
    }

    .projects-hero h1,
    .contact-hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .projects-hero p,
    .contact-hero p {
        font-size: .98rem;
    }

    .footer-content .footer-section:first-child,
    .footer-content .footer-section:nth-child(2),
    .footer-content .footer-section:nth-child(3),
    .footer-content .footer-section:nth-child(4) {
        transform: none;
    }

    .services-poster-wrap + .service-detail {
        margin-top: 22px !important;
    }

    .project-card-modal {
        padding: 12px;
    }

    .project-card-modal-card {
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 14px;
    }

    .project-card-modal-card .project-body {
        padding: 18px 18px 20px !important;
    }
}


/* Layout stability — prevent jumps between pages */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
}

.logo-img,
.footer-logo-img {
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.project-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-img .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   HEADER LAYOUT STABILITY
   Keep navigation geometry identical before/after fonts/icons load
   ============================================================ */

.flag-btn {
    width: 42px;
    min-width: 42px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.nav-icons > a {
    width: 20px;
    min-width: 20px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.nav-icons > a > i {
    width: 20px;
    text-align: center;
}

@media (min-width: 1000px) {
    .nav-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .nav-container > .logo {
        justify-self: start;
    }

    .nav-container > .nav-menu {
        justify-self: center;
    }

    .nav-container > .nav-icons {
        justify-self: end;
        min-width: 250px;
        justify-content: flex-end;
    }

    /* Fixed menu slots prevent ES/EN/RU and font metrics
       from moving the whole navigation left/right. */
    .nav-menu > li:nth-child(1) > a,
    .nav-menu > li:nth-child(2) > a,
    .nav-menu > li:nth-child(3) > a,
    .nav-menu > li:nth-child(4) > a,
    .nav-menu > li:nth-child(5) > a {
        display: block;
        width: 92px;
        padding-left: 6px;
        padding-right: 6px;
        text-align: center;
    }
}


/* Home hero styles moved from index.html for dynamic navigation */
/* Hero: заголовок чуть толще (550) */
    .hero-heading {
        font-weight: 550 !important;
    }

    /* Hero-кнопки: без движения, без свечения, ниже ростом */
    .hero-buttons { gap: 20px; }
    .hero-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 12px 34px;
        border-radius: 12px;
        font-size: 1rem;
        font-family: 'Garet', Arial, sans-serif;
        cursor: pointer;
        transition: background .3s ease, border-color .3s ease;
    }
    .hero-btn-primary {
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        color: #fff;
        border: 1px solid rgba(125, 211, 252, .4);
        box-shadow: none;
        overflow: hidden;
        isolation: isolate;
    }
    .hero-btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
        opacity: 0;
        transition: opacity .3s ease;
        z-index: -1;
    }
    .hero-btn-primary:hover::before {
        opacity: 1;
    }
    .hero-btn-arrow { display: inline-block; transition: transform .3s ease; }
    .hero-btn-primary:hover .hero-btn-arrow { transform: translateX(5px); }
    .hero-btn-ghost {
        background: rgba(255,255,255,.06);
        color: #fff;
        border: 1.5px solid rgba(255,255,255,.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .hero-btn-ghost:hover {
        background: rgba(255,255,255,.14);
        border-color: rgba(255,255,255,.6);
    }
    @media (max-width: 768px) {
        .hero-btn { padding: 11px 24px; font-size: .95rem; width: 100%; justify-content: center; }
    }

    /* Текст на hero: ниже от центра */
    .hero-content { text-align: center; margin-top: 110px; }
    @media (max-width: 768px) { .hero-content { margin-top: 50px; } }

/* Persistent page shell */
#pageContent {
    display: block;
    width: 100%;
}


/* Smaller header menu hover/active frame */
@media (min-width: 1000px) {
    .nav-menu > li > a {
        padding: 7px 10px !important;
        border-radius: 8px !important;
    }

    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        padding: 7px 10px !important;
    }
}


/* Footer bottom credit */
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-credit,
.footer-copyright {
    margin: 0;
}

.footer-credit {
    text-align: left;
}

.footer-copyright {
    text-align: right;
}

.footer-credit a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-credit a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
    }

    .footer-credit,
    .footer-copyright {
        text-align: center;
    }
}


/* DYSTRA footer credit logo */
.footer-credit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dystra-credit-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.dystra-credit-logo {
    display: block;
    width: auto;
    height: 24px;
    max-width: 150px;
    object-fit: contain;
    transition: opacity .2s ease;
}

.dystra-credit-link:hover .dystra-credit-logo {
    opacity: .72;
}

@media (max-width: 768px) {
    .footer-credit {
        justify-content: center;
    }

    .dystra-credit-logo {
        height: 22px;
    }
}


/* Align first footer column with the site's main content line */
@media (min-width: 769px) {
    .footer-content .footer-section:first-child {
        transform: translate(4px, -18px) !important;
    }
}


/* Align DYSTRA credit with the first footer column */
@media (min-width: 769px) {
    .footer-credit {
        transform: translateX(4px);
    }
}

@media (max-width: 768px) {
    .footer-credit {
        transform: none;
    }
}


/* ============================================================
   MOBILE FIXES: header fits the screen, footer without overflow
   ============================================================ */
@media (max-width: 1024px) {
    .nav-container > .logo { order: 1; min-width: 0; margin-right: auto; }
    .nav-container > .nav-icons { order: 2; }
    .nav-container > .menu-toggle { order: 3; margin-right: -8px; }
}

@media (max-width: 768px) {
    .navbar .container { padding: 0 16px; }
    .nav-container { gap: 10px; }
    .logo { gap: 8px; }
    .logo-img { height: 30px; }
    .logo-text { font-size: .82rem; letter-spacing: 1px; }
    .nav-icons { gap: 10px; }
    .nav-icons > a { font-size: 1.05rem; }

    .footer { padding-top: 50px; }
    .footer-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 20px;
        row-gap: 30px;
        padding-bottom: 36px;
    }
    .footer-content .footer-section:first-child,
    .footer-content .footer-section:nth-child(4) { grid-column: 1 / -1; }
    .footer-section { min-width: 0; overflow-wrap: break-word; }
    .footer-bottom { padding-bottom: 84px; }
    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (max-width: 360px) {
    .nav-icons > a { display: none; }
    .footer-content { grid-template-columns: minmax(0, 1fr); }
}


/* SEO kicker line inside H1 */
h1 .h1-kicker {
    display: block;
    font-family: 'Garet', Arial, sans-serif;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    h1 .h1-kicker { font-size: .72rem; letter-spacing: 1.5px; margin-bottom: 10px; }
}


/* ============================================================
   BLOG, ARTICLES, MADRID LANDING
   ============================================================ */
.breadcrumbs { font-size: .82rem; color: #cbd5e1; margin-bottom: 18px; letter-spacing: .5px; }
.breadcrumbs a { color: #e2e8f0; }
.breadcrumbs a:hover { color: #7dd3fc; }
.breadcrumbs span { margin: 0 4px; color: #94a3b8; }
.breadcrumbs span[aria-current] { margin: 0; color: #cbd5e1; }
.article-hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.article-hero p { max-width: 720px; margin-left: auto; margin-right: auto; }
.article-hero .article-meta { margin-top: 14px; font-size: .85rem; color: #94a3b8; }

.article-section { padding-top: 64px; }
.article-body { max-width: 780px; margin: 0 auto; font-size: 1.04rem; line-height: 1.85; color: var(--text); }
.article-body h2 { color: var(--dark); font-size: 1.6rem; margin: 46px 0 14px; }
.article-body h3 { color: var(--dark); font-size: 1.18rem; margin: 28px 0 8px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; padding-left: 4px; }
.article-body li::marker { color: var(--primary); }
.article-body a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary); }
.article-body strong { color: var(--dark); }
.article-note { background: #f0f9ff; border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; padding: 16px 20px; }

.article-table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid #e2e8f0; border-radius: 10px; }
.article-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.article-table th, .article-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.article-table thead th { background: var(--dark); color: #fff; font-weight: 400; }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table td:first-child { color: var(--dark); font-weight: 600; }

.faq-list { display: grid; gap: 12px; margin-bottom: 10px; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 16px 0; color: var(--dark); font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 13px; font-size: 1.3rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; }

.article-cta { max-width: 780px; margin: 50px auto 0; background: linear-gradient(135deg, #0c4a6e, var(--dark)); border-radius: var(--radius); padding: 36px 32px; text-align: center; }
.article-cta h2 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.article-cta p { color: #cbd5e1; margin-bottom: 24px; }
.article-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.article-cta-buttons .btn { display: inline-flex; align-items: center; gap: 10px; }

.article-related { margin-top: 70px; }
.article-related > h2 { text-align: center; color: var(--dark); font-size: 1.7rem; margin-bottom: 28px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark-2); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-kicker { font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px; }
.blog-card h3 { color: var(--dark); font-size: 1.15rem; margin-bottom: 10px; }
.blog-card p { font-size: .92rem; color: var(--text-light); margin-bottom: 16px; flex: 1; }
.blog-card-more { color: var(--primary-dark); font-size: .9rem; }

@media (max-width: 768px) {
    .article-section { padding-top: 40px; }
    .article-body { font-size: 1rem; line-height: 1.8; }
    .article-body h2 { font-size: 1.35rem; margin-top: 36px; }
    .article-cta { padding: 28px 20px; margin-top: 40px; }
    .article-cta-buttons .btn { width: 100%; justify-content: center; }
    .article-related { margin-top: 50px; }
    .breadcrumbs { font-size: .75rem; }
}

@media (max-width: 768px) {
    .article-hero p { font-size: .98rem; }
}

/* Card thumbnails render immediately (no content-visibility pop-in) */
.blog-card-img img { content-visibility: visible; }

/* Very narrow phones: long uppercase words in big hero titles */
@media (max-width: 360px) {
    .projects-hero h1,
    .contact-hero h1,
    .services-hero h1 { font-size: 2.4rem; }
}
