/* CMS theme roles keep the exact original palette as fallbacks.
   Status/validation colors, RAL samples, photographs and optical masks are independent. */
/* Refinements of the established Gemini design, with working UI states preserved. */
:root {
  --color-primary: var(--theme-primary, #102135);
  --color-primary-dark: var(--theme-primary-deep, #0b1725);
  --color-gold: var(--theme-accent, #b78d51);
  --color-gold-light: var(--theme-highlight, #dec18e);
  --color-bg-page: var(--theme-page, #fbfcfe);
  --color-bg-alt: var(--theme-surface-alt, #f0f4f8);
  --color-text-muted: var(--theme-muted, #586a7d);
  --color-border: var(--theme-border, #e0e7ee);
  --container-max: 1320px;
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 16px;
}
body { overflow-x: visible; }
h1,h2,h3,h4,h5,h6,.hero-title,.section-title,.page-hero-title,.privacy-title {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  word-wrap: normal;
  text-wrap: pretty;
}
button,a,input,textarea,select { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline: 2px solid var(--theme-accent-strong, #b78d51); outline-offset: 4px; }
button:disabled { opacity: .65; cursor: wait; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; background: var(--theme-surface, white); color: var(--theme-text, #102135); z-index: 3000; }
.skip-link:focus { top: 10px; }
.header-container { gap: 20px; }
.logo { gap: 9px; flex-shrink: 0; }
.logo-title { font-size: 1rem; letter-spacing: .02em; }
.logo-subtitle { font-size: .52rem; }
.nav-menu { gap: 17px; }
.nav-link { font-size: .83rem; white-space: nowrap; padding: 12px 0; }
.header-actions { gap: 18px; flex-shrink: 0; }
.header-phone-sub { background: none; border: 0; padding: 0; color: var(--theme-accent-on-primary, #dec18e); font-size: .72rem; cursor: pointer; }
.phone-link { font-size: .83rem; white-space: nowrap; }
.btn { min-height: 48px; font-size: .9rem; border-radius: 7px; white-space: normal; }
.btn-gold { background: linear-gradient(115deg,var(--theme-button-start, var(--theme-highlight, #e1c38d)),var(--theme-button-end, var(--theme-accent, #c79e62))); box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-accent, rgb(174 129 62)) 15%, transparent); }
.btn-gold:hover { background: linear-gradient(115deg,var(--theme-button-start, var(--theme-highlight, #e8cf9f)),var(--theme-button-end, var(--theme-accent-soft, #d2ab70))); transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-accent, rgb(174 129 62)) 20%, transparent); }
.btn-gold-sm { min-height: 42px; padding: 10px 14px; font-size: .77rem; }
.btn-outline-gold { color: var(--theme-accent-strong, #8a6738); }
.btn-outline-gold:hover { color: var(--theme-on-button, var(--theme-on-accent, white)); }
.section { padding: 72px 0; }
.section-pretitle { font-size: .73rem; color: var(--theme-accent-strong, #a37a43); letter-spacing: .14em; margin-bottom: 12px; }
.section-title { font-size: clamp(1.85rem,2.75vw,2.5rem); font-weight: 600; line-height: 1.22; letter-spacing: -.025em; }
.section-desc { font-size: 1rem; line-height: 1.75; }
.section-header-row { gap: 28px; margin-bottom: 34px; }
.section-header-row .section-desc { max-width: 720px; }
.section-link { font-size: .89rem; white-space: normal; flex-shrink: 0; }
.hero-section { padding: 52px 0 58px; }
.hero-bg-overlay { display: none !important; }
.hero-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
.hero-content { max-width: none; padding: 12px 0; }
.badge-tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; margin-bottom: 24px; }
.hero-title { font-size: clamp(2.25rem,3.65vw,3.45rem); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; margin-bottom: 26px; }
.hero-title .hero-title-main { display: block; color: var(--theme-on-primary, white); font-style: normal; }
.hero-title .hero-title-city { display: block; color: var(--theme-accent-on-primary, #dec18e); font-style: italic; margin-top: 5px; }
.hero-subtitle { max-width: 480px; font-size: 1.06rem; line-height: 1.75; color: var(--theme-on-primary-muted, #c9d2dc); margin-bottom: 28px; }
.hero-buttons { gap: 12px; }
.hero-buttons .btn { padding: 14px 20px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--theme-on-primary-muted, #b5c2ce); font-size: .76rem; line-height: 1.6; }
.hero-note>span { height: 6px; width: 6px; border-radius: 50%; background: var(--theme-accent, #dec18e); flex-shrink: 0; }
.hero-card { border-radius: 12px; border: 1px solid var(--theme-muted, #607081); box-shadow: 0 16px 40px rgb(0 0 0 / 18%); }
.hero-card img { height: 425px; object-fit: cover; object-position: center 32%; }
.hero-floating-badge { padding: 17px 20px; bottom: 18px; right: 18px; left: auto; max-width: 290px; background: color-mix(in srgb, var(--theme-primary, rgb(12 27 44)) 93%, transparent); border: 1px solid color-mix(in srgb, var(--theme-accent, rgb(222 193 142)) 25%, transparent); border-radius: 8px; }
.hero-badge-title { font-size: .89rem; }
.hero-badge-link { font-size: .79rem; margin-top: 5px; }
.image-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--theme-muted-light, #b2c0cb); font-size: .65rem; }
.features-strip { padding: 28px 0; }
.features-grid { gap: 26px; }
.feature-item { gap: 12px; }
.feature-icon-box { width: 42px; height: 42px; }
.feature-title { font-size: .91rem; }
.feature-desc { font-size: .8rem; line-height: 1.55; }
.home-tools { padding: 30px 0 0; }
.quick-cards-grid { gap: 22px; margin: 0; }
.quick-card { padding: 24px; border: 1px solid var(--theme-border, #e0e7ee); border-radius: 12px; background: var(--theme-surface, white); box-shadow: 0 3px 14px color-mix(in srgb, var(--theme-primary, rgb(22 44 68)) 4%, transparent); flex-direction: row; align-items: center; gap: 16px; }
.quick-card-icon { display: flex; width: 42px; height: 42px; margin-bottom: 14px; }
.quick-card-icon svg { width: 22px; height: 22px; }
.quick-card-title { font-size: 1.05rem; margin-bottom: 8px; }
.quick-card-desc { font-size: .83rem; line-height: 1.6; margin: 0; }
.circle-arrow-btn { width: 40px; height: 40px; flex-shrink: 0; }
.ceiling-types { padding-top: 50px; }
.service-grid { gap: 24px; }
.service-card { border: 1px solid var(--theme-border, #e0e7ee); box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary, rgb(22 44 68)) 4%, transparent); border-radius: 12px; background: var(--theme-surface, white); }
.service-card-img { width: 100%; height: 210px; object-position: center 20%; }
.service-card-body { padding: 22px; }
.service-card-title { font-size: 1.05rem; margin-bottom: 10px; }
.service-card-desc { font-size: .86rem; line-height: 1.65; }
.home-gallery { background: var(--theme-surface-alt, #eef3f8); }
.home-projects-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 245px 245px; gap: 24px; }
.home-projects-grid .work-card:first-child { grid-row: 1/3; }
.home-projects-grid .work-card-img-wrap { height: 100%; }
.work-card { border-radius: 12px; box-shadow: 0 6px 18px color-mix(in srgb, var(--theme-primary, rgb(20 40 60)) 6%, transparent); }
.work-card-img { object-position: center 28%; }
.work-card-content { padding: 24px; }
.work-card-title { font-size: 1.12rem; line-height: 1.4; max-width: calc(100% - 35px); }
.work-card-sub { font-size: .85rem; line-height: 1.5; }
.home-projects-grid .work-card:first-child .work-card-title { font-family: var(--font-serif); font-size: 1.65rem; }
.project-open { position: absolute; right: 22px; bottom: 28px; font-size: 1.6rem; color: var(--theme-accent-strong, #dec18e); }
.gallery-origin { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.gallery-origin p { color: var(--theme-muted, #607084); font-size: .8rem; line-height: 1.6; max-width: 680px; }
.home-services-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 76px; }
.services-photos { position: relative; padding: 0 64px 48px 0; }
.services-main-photo { width: 100%; height: 475px; object-fit: cover; object-position: center; border-radius: 12px; }
.services-detail-photo { position: absolute; bottom: 0; right: 0; width: 230px; background: var(--theme-surface, white); padding: 9px; border: 1px solid var(--theme-border, #e0e7ee); box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary, rgb(18 35 54)) 12%, transparent); border-radius: 10px; }
.services-detail-photo img { width: 100%; height: 160px; object-fit: cover; border-radius: 5px; }
.services-detail-photo>span { display: block; padding: 9px 4px 2px; font-size: .73rem; color: var(--theme-muted, #5c6f82); }
.service-list { margin: 24px 0 26px; }
.service-list>div { display: flex; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--theme-border, #e1e7ed); }
.service-list>div>span { font-size: .75rem; color: var(--theme-accent-strong, #a07a43); padding-top: 4px; }
.service-list h3 { font-size: 1rem; margin-bottom: 6px; }
.service-list p { color: var(--theme-muted, #586a7d); font-size: .86rem; line-height: 1.6; }
.home-prices { background: var(--theme-primary, #102135); color: var(--theme-on-primary, white); }
.home-prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.home-prices .section-pretitle { color: var(--theme-accent-on-primary, #dec18e); }
.home-prices .section-title { color: var(--theme-on-primary, white); }
.home-prices .section-desc { color: var(--theme-on-primary-muted, #c3ced9); margin: 22px 0 26px; max-width: 520px; }
.price-source { max-width: 520px; font-size: .76rem; line-height: 1.65; color: var(--theme-on-primary-muted, #aebccc); margin-top: 22px; }
.price-source a { text-decoration: underline; text-underline-offset: 3px; }
.price-panel { background: var(--theme-surface, white); color: var(--theme-text, #102135); padding: 32px; border-radius: 12px; box-shadow: 0 15px 35px rgb(0 0 0 / 12%); }
.price-panel-label { font-size: .7rem; color: var(--theme-accent-strong, #a37a43); letter-spacing: .11em; }
.price-panel h3 { font-size: 1.35rem; margin: 14px 0 18px; }
.estimate-line { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--theme-border, #e2e7ed); font-size: .87rem; }
.estimate-line strong { white-space: nowrap; font-size: .95rem; }
.estimate-total { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; }
.estimate-total>span { font-size: .95rem; }
.estimate-total strong { font-family: var(--font-serif); font-size: 2.65rem; }
.estimate-total small { font-family: var(--font-sans); font-size: .78rem; font-weight: 500; }
.price-panel>p { color: var(--theme-muted, #607084); line-height: 1.65; font-size: .75rem; margin-top: 14px; }
.home-process .section-header { max-width: 850px; margin-bottom: 34px; }
.process-grid { gap: 24px; }
.process-card { background: var(--theme-surface, white); padding: 26px; border: 1px solid var(--theme-border, #e0e7ee); border-radius: 12px; box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary, rgb(22 44 68)) 3%, transparent); }
.process-title { font-size: 1rem; }
.process-desc { font-size: .84rem; line-height: 1.65; }
.process-number { font-size: 1.2rem; color: var(--theme-accent-strong, #af8449); }
.home-archive { background: var(--theme-surface, white); }
.archive-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; align-items: center; }
.archive-grid .section-title { font-size: 2.1rem; }
.archive-grid .section-desc { font-size: .9rem; margin-bottom: 20px; }
.archive-photo { border: 1px solid var(--theme-border, #e0e7ee); border-radius: 10px; overflow: hidden; background: var(--theme-surface-alt, #f6f8fa); }
.archive-photo>img { height: 230px; width: 100%; object-fit: cover; }
.archive-photo>span { display: flex; justify-content: space-between; gap: 15px; padding: 18px; font-size: .83rem; font-weight: 600; }
.portfolio-archive { background: var(--theme-surface-alt, #eef3f8); }
.portfolio-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.archive-open { padding: 0; text-align: left; font: inherit; color: var(--theme-text, #102135); cursor: pointer; transition: border-color .2s, transform .2s; }
.archive-open:hover { border-color: var(--theme-accent-strong, #b78d51); transform: translateY(-3px); }
.archive-open>img { height: 250px; object-fit: contain; background: var(--theme-border, #e2e7ec); }
.archive-open>span { line-height: 1.6; }
.home-reviews { background: var(--theme-surface-alt, #f0f4f8); }
.home-reviews-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.home-review { background: var(--theme-surface, white); border: 1px solid var(--theme-border, #e0e7ee); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.quote-mark { font-family: Georgia,serif; font-size: 3.2rem; color: var(--theme-accent-strong, #b78d51); line-height: 1; height: 36px; }
.home-review blockquote { font-size: .95rem; line-height: 1.8; margin: 14px 0 24px; flex: 1; }
.review-author { font-weight: 600; font-size: .9rem; }
.review-source { margin-top: 8px; font-size: .77rem; color: var(--theme-accent-strong, #8a6738); }
.home-lead { padding-bottom: 35px; }
.lead-banner { border-radius: 16px; padding: 48px; box-shadow: 0 12px 30px color-mix(in srgb, var(--theme-primary, rgb(17 37 58)) 10%, transparent); }
.lead-banner-title { font-size: 2.3rem; }
.lead-banner-desc { font-size: 1rem; line-height: 1.75; }
.lead-banner-form-box { border-radius: 10px; }
.home-contacts { background: var(--theme-surface-alt, #edf2f7); }
.home-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.home-contact-links>a { display: flex; gap: 18px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--theme-border, #d6dfe8); }
.home-contact-links>a>span:first-child { width: 50px; font-size: .78rem; color: var(--theme-muted, #667789); }
.home-contact-links>a>span:last-child { margin-left: auto; font-size: 1.2rem; }
.home-contact-links strong { font-size: 1.3rem; font-weight: 600; }
.home-contact-links>a.section-link { border: 0; color: var(--theme-accent-strong, #8a6738); padding-bottom: 0; }
.page-hero { padding: 45px 0 50px; }
.page-hero-title { font-size: clamp(2rem,3.4vw,3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.23; }
.page-hero-subtitle { font-size: 1rem; line-height: 1.75; }
.page-image-note { color: var(--theme-on-primary-muted, #b1bfcc); font-size: .74rem; margin-top: 22px; }
.breadcrumbs { flex-wrap: wrap; font-size: .8rem; }
.header-badge-item { font-size: .82rem; }
.source-note { color: var(--theme-muted, #5a6e81); font-size: .82rem; line-height: 1.7; padding: 16px 0; margin-bottom: 18px; }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-input,.form-textarea,.form-select { min-height: 48px; font-size: .93rem; border-radius: 7px; }
.form-label { font-size: .85rem; }
.form-checkbox-label { font-size: .78rem; line-height: 1.6; }
.form-service-note { margin-top: 14px; color: var(--theme-muted, #5c7083); font-size: .75rem; line-height: 1.6; }
.modal-backdrop { z-index: 1500; }
.modal-content { max-height: calc(100dvh - 32px); }
.modal-close { min-width: 40px; min-height: 40px; }
.toast-container { max-width: calc(100vw - 32px); right: 16px; bottom: 16px; }
.toast { min-width: 0; width: min(440px,calc(100vw - 32px)); }
.toast-content { min-width: 0; overflow-wrap: anywhere; }
.faq-question { font-size: 1rem; line-height: 1.6; }
.faq-answer { font-size: .93rem; line-height: 1.75; }
.faq-item.active .faq-answer { max-height: none; }
.reviews-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.review-card { gap: 22px; }
.review-text { line-height: 1.85; font-size: .94rem; }
.visualizer-canvas-wrap { height: auto !important; aspect-ratio: 4/3; }
.visualizer-room-img { object-fit: contain; object-position: center; }
.visualizer-ceiling-overlay,.visualizer-gloss-shine { height: 100%; }
.swatch-item { border: 0; background: none; padding: 2px; text-align: center; cursor: pointer; }
.service-area { background: var(--theme-surface-alt, #edf0ed); padding: 20px; }
.service-area svg { width: 100%; height: auto; fill: none; stroke: var(--theme-border, #b1bcb6); stroke-width: 1; }
.service-area svg text { fill: var(--theme-muted, #617080); stroke: none; font: 11px Inter,sans-serif; letter-spacing: 2px; }
.service-area .area-point { fill: var(--theme-accent-strong, #b78d51); }
.service-area p { text-align: center; font-size: .8rem; padding: 10px; color: var(--theme-muted, #617080); }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-detail img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.service-detail p { margin: 22px 0; }
.service-detail ul { list-style: none; color: var(--theme-muted, #586a7d); }
.service-detail li { padding: 14px 0; border-bottom: 1px solid var(--theme-border, #e0e7ee); }
.design-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.site-footer { background: var(--theme-primary-deep, #0b1725); padding: 55px 0 0; }
.footer-grid { gap: 50px; margin-bottom: 45px; }
.footer-brand { display: inline-block; white-space: nowrap; font-size: 1.12rem; font-weight: 700; }
.footer-brand span { display: inline; color: var(--theme-accent-on-primary, #dec18e); }
.footer-heading { font-size: .78rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 20px; }
.footer-links a,.footer-desc { font-size: .87rem; line-height: 1.7; }
.footer-phone { display: block; margin-bottom: 9px; font-size: 1.05rem; }
.footer-email { display: block; color: var(--theme-accent-on-primary, #dec18e); font-size: .9rem; margin: 16px 0; }
.site-footer .section-link { color: var(--theme-accent-on-primary, #dec18e); font-size: .83rem; }
.footer-bottom { font-size: .75rem; padding: 22px 0; }
.calculator-page [data-calculator] { padding-top: 26px; }
@media(max-width:1350px) {
  .header-actions>.btn { display: none; }
  .nav-menu { gap: 18px; }
}
@media(max-width:1199px) {
  .nav-menu { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; display: none; padding: 24px; background: var(--theme-primary, #102135); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 17px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--theme-primary-soft, #34465b); }
  .nav-link.active::after { display: none; }
  .mobile-toggle { display: flex; width: 44px; height: 44px; }
  .menu-open { overflow: hidden; }
  .hero-grid { gap: 32px; }
  .hero-title { font-size: 2.65rem; }
  .hero-card img { height: 390px; }
  .hero-buttons .btn { padding: 13px 16px; font-size: .84rem; }
  .service-card-body { padding: 18px; }
  .home-services-grid,.home-prices-grid,.home-contacts-grid { gap: 45px; }
  .price-panel { padding: 26px; }
  .process-card { padding: 20px; }
  .footer-grid { gap: 28px; }
}
@media(max-width:900px) {
  .section { padding: 58px 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: .95rem; }
  .hero-card img { height: 360px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-note { font-size: .69rem; }
  .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-cards-grid { gap: 16px; }
  .quick-card { padding: 18px; flex-direction: column; align-items: flex-start; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-projects-grid { grid-template-rows: 220px 220px; gap: 18px; }
  .home-projects-grid .work-card:first-child .work-card-title { font-size: 1.35rem; }
  .work-card-content { padding: 18px; }
  .work-card-title { font-size: 1rem; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-grid>div { grid-column: 1/-1; max-width: 650px; }
  .archive-grid .section-title br { display: none; }
  .services-photos { padding-right: 35px; }
  .services-main-photo { height: 450px; }
  .services-detail-photo { width: 190px; }
  .services-detail-photo img { height: 130px; }
  .home-reviews-grid { gap: 16px; }
  .home-review { padding: 22px; }
  .home-review blockquote { font-size: .87rem; }
  .home-prices-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .estimate-line { font-size: .8rem; }
  .lead-banner { padding: 32px; }
  .lead-banner-title { font-size: 2rem; }
  .home-contact-links strong { font-size: 1.12rem; }
}
@media(max-width:767px) {
  .portfolio-archive-grid { grid-template-columns: 1fr; gap: 20px; }
  .archive-open>img { height: auto; aspect-ratio: 4/3; }
  :root { --header-height: 72px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.95rem; }
  .section-header-row { gap: 20px; align-items: flex-start; }
  .hero-section { padding: 32px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { padding: 0; }
  .hero-title { font-size: clamp(1.9rem,6.3vw,2.8rem); margin-bottom: 20px; }
  .hero-title-main { white-space: nowrap; }
  .badge-tag { font-size: .67rem; margin-bottom: 20px; }
  .hero-subtitle { font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }
  .hero-buttons { flex-direction: row; gap: 12px; }
  .hero-buttons .btn { width: auto; flex: 1 1 160px; font-size: .85rem; }
  .hero-note { margin-top: 20px; font-size: .72rem; }
  .hero-card img { height: auto; aspect-ratio: 4/3; object-position: center; }
  .hero-floating-badge { right: 12px; bottom: 12px; left: auto; max-width: 270px; padding: 13px 16px; }
  .hero-badge-title { font-size: .81rem; }
  .hero-badge-link { font-size: .75rem; }
  .image-caption { font-size: .62rem; }
  .features-strip { padding: 26px 0; }
  .features-grid { gap: 24px; }
  .feature-icon-box { width: 36px; height: 36px; }
  .feature-icon-box svg { width: 21px; height: 21px; }
  .feature-item { gap: 10px; }
  .feature-title { font-size: .84rem; }
  .feature-desc { font-size: .77rem; }
  .home-tools { padding-top: 24px; }
  .quick-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .quick-card { flex-direction: row; align-items: center; padding: 20px; }
  .quick-card-icon { display: none; }
  .quick-card-title { font-size: 1rem; }
  .quick-card-desc { font-size: .85rem; }
  .ceiling-types { padding-top: 38px; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .service-card-img { height: 185px; }
  .service-card-body { padding: 18px; }
  .service-card-title { font-size: .99rem; }
  .service-card-desc { font-size: .83rem; }
  .home-projects-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; }
  .home-projects-grid .work-card:first-child { grid-row: auto; }
  .home-projects-grid .work-card-img-wrap { height: auto; aspect-ratio: 4/3; }
  .home-projects-grid .work-card:first-child .work-card-title { font-family: var(--font-sans); font-size: 1.12rem; }
  .work-card-content { padding: 22px; }
  .work-card-title { font-size: 1.1rem; }
  .gallery-origin { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery-origin p { font-size: .79rem; }
  .home-services-grid,.home-prices-grid,.home-contacts-grid,.service-detail,.design-guide-grid { grid-template-columns: 1fr; gap: 30px; }
  .services-photos { padding: 0 48px 35px 0; max-width: 520px; }
  .services-main-photo { height: 330px; }
  .services-detail-photo { width: 190px; }
  .home-services-grid>div:last-child { order: -1; }
  .home-prices .section-desc { margin-top: 20px; }
  .price-panel { padding: 26px; }
  .estimate-line { font-size: .86rem; }
  .home-process .section-header { margin-bottom: 28px; }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .process-card { padding: 22px; }
  .process-title { font-size: .98rem; }
  .process-desc { font-size: .86rem; }
  .archive-grid { gap: 22px; }
  .archive-photo img { height: 185px; }
  .archive-photo>span { font-size: .8rem; padding: 14px; }
  .home-reviews-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-review { padding: 26px; }
  .home-review blockquote { font-size: .95rem; margin-top: 10px; }
  .home-lead { padding-bottom: 18px; }
  .lead-banner { padding: 30px 22px; }
  .lead-banner-title { font-size: 2rem; }
  .lead-banner-form-box { padding: 20px; }
  .home-contact-links strong { font-size: 1.2rem; }
  .home-contact-links>a { gap: 12px; }
  .page-hero { padding: 32px 0 38px; }
  .page-hero-title { font-size: 2.1rem; }
  .page-hero-subtitle { font-size: .96rem; }
  .page-image-note { font-size: .7rem; }
  .header-badges-row { gap: 14px; }
  .header-badge-item { font-size: .8rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-question { font-size: .93rem; padding: 18px; }
  .faq-answer { padding-left: 18px; padding-right: 18px; font-size: .9rem; }
  .modal-backdrop { padding: 12px; }
  .modal-content { max-height: calc(100dvh - 24px); }
  .modal-body,.modal-header { padding: 20px; }
  .picker-layout { display: flex; flex-direction: column; }
  .picker-controls,.visualizer-display { width: 100%; }
  .visualizer-display { order: -1; position: static; }
  .surface-selector-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .surface-card { padding: 8px; }
  .surface-card img { height: 60px; object-fit: cover; }
  .surface-card-title { font-size: .75rem; }
  .surface-card-desc { font-size: .65rem; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 22px; }
  .footer-grid>div:first-child,.footer-grid>div:last-child { grid-column: 1/-1; }
  .footer-heading { font-size: .74rem; }
  .footer-links a { font-size: .84rem; }
  .footer-bottom { font-size: .72rem; gap: 14px; }
  .source-note { font-size: .77rem; }
}
@media(max-width:480px) {
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-icon-box { width: 40px; height: 40px; }
  .feature-title { font-size: .95rem; }
  .feature-desc { font-size: .84rem; }
  .service-grid,.process-grid { grid-template-columns: 1fr; }
  .service-card-img { height: auto; aspect-ratio: 4/3; object-position: center; }
  .service-card-body { padding: 22px; }
  .service-card-title { font-size: 1.12rem; }
  .service-card-desc { font-size: .9rem; }
  .process-card { padding: 24px; }
  .process-header { margin-bottom: 15px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid>div { grid-column: auto; }
  .archive-photo img { height: auto; aspect-ratio: 4/3; }
  .archive-photo>span { font-size: .85rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; flex-basis: auto; font-size: .93rem; }
}
@media(max-width:360px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-title { font-size: 1.82rem; }
  .hero-note { font-size: .68rem; }
  .hero-badge-title { font-size: .75rem; }
  .hero-floating-badge { max-width: 245px; }
  .section-title { font-size: 1.78rem; }
  .page-hero-title { font-size: 1.9rem; }
  .home-contact-links strong { font-size: 1.04rem; }
  .price-panel { padding: 22px; }
  .price-panel h3 { font-size: 1.15rem; }
  .estimate-line { font-size: .78rem; gap: 12px; }
  .estimate-total strong { font-size: 2.3rem; }
  .quick-card { padding: 20px; gap: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Small screens retain readable text without forcing grid or flex columns wider. */
.archive-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr); }
.archive-grid>*,.home-services-grid>*,.home-prices-grid>*,.home-contacts-grid>* { min-width: 0; }
@media(max-width:900px) { .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) {
  .archive-grid { grid-template-columns: minmax(0,1fr); }
  .calc-field-header { flex-wrap: wrap; gap: 12px; }
  .calc-field-header .calc-label { flex: 1 1 130px; }
  .calc-input-stepper { max-width: 100%; flex-shrink: 0; }
}
@media(max-width:360px) {
  .header-container { gap: 6px; }
  .logo { gap: 6px; }
  .logo-title { font-size: .83rem; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-icon svg { width: 30px; height: 30px; }
  .header-actions { gap: 6px; }
}
@media(max-width:480px) {
  .archive-grid .section-title { font-size: clamp(1.75rem,6.2vw,2.1rem); }
}
