/*
Theme Name: ЛюбиДом
Theme URI: https://любидом.com
Author: ЛюбиДом
Description: Информационная тема-шоурум для магазина фасадных и строительных материалов «ЛюбиДом».
Version: 1.0.1
Requires at least: 5.6
Requires PHP: 7.4
Text Domain: lubidom
*/

:root {
  --background: #ffffff;
  --foreground: #1c1d1f;
  --card: #ffffff;
  --card-foreground: #1c1d1f;
  --popover: #ffffff;
  --popover-foreground: #1c1d1f;
  --primary: #202124;
  --primary-foreground: #ffffff;
  --secondary: #f1f1ef;
  --secondary-foreground: #1c1d1f;
  --muted: #f4f4f2;
  --muted-foreground: #6f7174;
  --accent: #f4f4f2;
  --accent-foreground: #1c1d1f;
  --destructive: #d71920;
  --border: #e4e4e0;
  --input: #deded9;
  --ring: #d71920;
  --radius: 0.7rem;
  --red: #d71920;
  --red-dark: #b60f15;
  --graphite: #202124;
  --soft: #f4f4f2;
}

/* Compatibility cleanup for widgets left by the previous site configuration. */
#overlay-sidebar-wrap,
.ht-ctc.ht-ctc-chat,
#qlwapp {
  display: none !important;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 5px);
  --font-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.admin-bar .site-header { top: 32px; }
.ld-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ld-btn-red { background: var(--red); color: #fff; }
.ld-btn-red:hover { background: var(--red-dark); color: #fff; }
.ld-btn-dark { background: var(--graphite); color: #fff; }
.ld-btn-light { background: #fff; color: #202124; }
.ld-btn-outline { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); color: #fff; }
.ld-btn-outline:hover { background: #fff; color: #202124; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.site-content { min-height: 60vh; }
.wp-content { padding-top: 120px; padding-bottom: 80px; }
.wp-content h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.05em; }
.wp-content p { color: #666; line-height: 1.7; }

.container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(32, 33, 36, .08);
  backdrop-filter: blur(18px);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 28px; }
.logo-link { flex: 0 0 auto; }
.brand-logo {
  display: block;
  width: 205px;
  background: transparent;
}
.brand-logo-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.brand-logo-light {
  width: 240px;
  background: transparent;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin-left: auto;
}
.ld-menu { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); margin: 0; padding: 0; list-style: none; }
.ld-menu li { margin: 0; }
.desktop-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #45474a;
  transition: color .2s ease;
}
.desktop-nav a:hover { color: var(--red); }
.header-calc { margin-left: 8px; }
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid #ddd; background: #fff; font-size: 20px; cursor: pointer; }
.mobile-panel {
  position: fixed; z-index: 80; inset: 0 0 0 auto;
  width: min(88vw, 410px); padding: 32px;
  background: #fff; box-shadow: -30px 0 80px rgba(0,0,0,.18);
  transform: translateX(105%); transition: transform .25s ease;
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel .ld-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 40px 0 28px; }
.mobile-panel .ld-menu a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 20px; font-weight: 700; }
.mobile-close { position: absolute; top: 18px; right: 22px; border: 0; background: transparent; font-size: 32px; cursor: pointer; }
.menu-open { overflow: hidden; }
.button-red { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.button-red:hover { background: var(--red-dark) !important; }
.button-graphite { background: var(--graphite) !important; color: #fff !important; }
.button-glass { color: #fff !important; border-color: rgba(255,255,255,.55) !important; background: rgba(255,255,255,.08) !important; backdrop-filter: blur(10px); }
.button-glass:hover { background: #fff !important; color: #222 !important; }
.button-red svg, .button-graphite svg, .button-glass svg { width: 16px; }

.hero {
  min-height: 800px;
  height: min(92vh, 960px);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,11,12,.74) 0%, rgba(10,11,12,.44) 46%, rgba(10,11,12,.08) 78%),
              linear-gradient(0deg, rgba(7,8,9,.54) 0%, transparent 45%);
}
.hero-content { position: relative; z-index: 1; padding-bottom: 82px; }
.eyebrow {
  margin: 0 0 18px;
  color: #666a6d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow-light { color: rgba(255,255,255,.78); }
.eyebrow-red { color: #ff5b60; }
.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(54px, 7vw, 102px);
  line-height: .94;
  font-weight: 600;
  letter-spacing: -.065em;
}
.hero-copy {
  max-width: 620px;
  margin: 30px 0 0;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.45;
  color: rgba(255,255,255,.86);
}
.hero-actions, .visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 54px; color: rgba(255,255,255,.72); font-size: 13px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span:not(:first-child)::before { content: "•"; margin-right: 16px; color: var(--red); }
.hero-meta svg { width: 16px; }
.hero-scroll {
  position: absolute; z-index: 2; right: 30px; bottom: 44px;
  display: flex; align-items: center; gap: 14px;
  transform: rotate(90deg); transform-origin: right center;
  color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.scroll-line { width: 70px; height: 1px; background: rgba(255,255,255,.45); }

.section { padding: 116px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: #1e2022; color: #fff; }
.section-heading { margin-bottom: 50px; }
.section-heading h2 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.055em;
}
.split-heading { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, .8fr); gap: 80px; align-items: end; }
.split-heading > p, .ideas-heading > p:last-child {
  margin: 0; max-width: 450px; color: #74777a; font-size: 16px; line-height: 1.7;
}
.category-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 16px;
}
.category-card { position: relative; overflow: hidden; min-height: 260px; background: #ddd; }
.category-card:nth-child(1), .category-card:nth-child(4) { grid-column: span 7; }
.category-card:nth-child(2), .category-card:nth-child(3) { grid-column: span 5; }
.category-card:nth-child(5), .category-card:nth-child(6) { grid-column: span 6; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,12,.78), rgba(10,11,12,.04) 70%); }
.category-card:hover img { transform: scale(1.035); }
.category-content {
  position: absolute; inset: auto 28px 26px;
  display: grid; grid-template-columns: 34px 1fr 44px; align-items: end; gap: 16px;
  color: #fff;
}
.category-number { color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .12em; }
.category-content h3 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.03em; }
.category-content p { margin: 0; max-width: 520px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.45; }
.round-arrow {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.category-card:hover .round-arrow { background: #fff; color: #111; }
.round-arrow svg { width: 17px; }

.ideas-heading { display: grid; grid-template-columns: 1fr; }
.ideas-heading h2 { max-width: 850px; }
.ideas-heading > p:last-child { margin-top: 24px; color: rgba(255,255,255,.56); }
.ideas-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 340px; gap: 12px;
}
.idea-card { position: relative; overflow: hidden; grid-column: span 4; }
.idea-card:nth-child(1), .idea-card:nth-child(5) { grid-column: span 7; }
.idea-card:nth-child(2), .idea-card:nth-child(6) { grid-column: span 5; }
.idea-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.idea-card:hover img { transform: scale(1.03); }
.idea-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,7,.74), transparent 62%); }
.idea-copy {
  position: absolute; inset: auto 22px 22px;
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
}
.idea-copy p { margin: 0 0 5px; color: rgba(255,255,255,.62); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.idea-copy h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.idea-copy button { opacity: 0; transform: translateY(6px); transition: all .2s ease; }
.idea-card:hover .idea-copy button { opacity: 1; transform: translateY(0); }
.center-action { display: flex; justify-content: center; margin-top: 42px; }

.visualization-preview { overflow: hidden; }
.visualization-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(45px, 7vw, 110px); }
.visualization-copy h2, .visit-content h2, .contact-grid h2, .inner-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.3vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.06em;
}
.visualization-copy > p:not(.eyebrow) {
  margin: 24px 0 0; max-width: 570px; color: #6e7174; font-size: 17px; line-height: 1.7;
}
.steps-mini { display: grid; gap: 14px; margin: 34px 0; }
.steps-mini span { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 600; }
.steps-mini b { color: var(--red); font-size: 11px; letter-spacing: .1em; }
.visualization-frame { padding: 12px; background: #e8e8e5; box-shadow: 0 30px 70px rgba(25,27,28,.12); }
.frame-top { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; color: #666; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.before-after { position: relative; height: 560px; overflow: hidden; }
.before-after img { width: 100%; height: 100%; object-fit: cover; }
.material-tag {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 15px; background: rgba(255,255,255,.92);
  color: #242527; font-size: 12px; font-weight: 700; backdrop-filter: blur(10px);
}
.material-tag svg { width: 15px; color: var(--red); }

.compact-heading { margin-bottom: 40px; }
.compact-heading h2 { font-size: clamp(38px, 4.5vw, 60px); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d9d9d4; border-left: 1px solid #d9d9d4; }
.benefit-card { min-height: 250px; padding: 34px; border-right: 1px solid #d9d9d4; border-bottom: 1px solid #d9d9d4; }
.benefit-icon { width: 46px; height: 46px; display: grid; place-items: center; background: #fff; color: var(--red); }
.benefit-icon svg { width: 20px; }
.benefit-card h3 { margin: 42px 0 10px; font-size: 20px; letter-spacing: -.03em; }
.benefit-card p { margin: 0; color: #737679; font-size: 14px; line-height: 1.65; }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e1e1dd; border-left: 1px solid #e1e1dd; }
.brand-card {
  min-height: 130px; padding: 28px; display: flex; align-items: center; justify-content: space-between;
  border-right: 1px solid #e1e1dd; border-bottom: 1px solid #e1e1dd;
  font-size: 24px; font-weight: 700; letter-spacing: -.04em;
  transition: color .2s, background .2s;
}
.brand-card:hover { color: #fff; background: var(--graphite); }
.brand-card svg { width: 19px; color: var(--red); }

.visit-section { min-height: 690px; position: relative; display: flex; align-items: center; color: #fff; overflow: hidden; }
.visit-section > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,12,.78), rgba(10,11,12,.2) 75%); }
.visit-content { position: relative; z-index: 1; }
.visit-content h2 { max-width: 760px; }
.visit-content > p:not(.eyebrow) { max-width: 570px; margin: 24px 0 0; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.6; }
.visit-content address { margin-top: 30px; font-style: normal; color: rgba(255,255,255,.7); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.contact-grid h2 { font-size: clamp(42px, 5vw, 65px); }
.contact-intro { margin: 24px 0; max-width: 560px; color: #747679; line-height: 1.7; }
.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.contact-direct a:first-child { font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.contact-direct a:last-child { display: flex; align-items: center; gap: 8px; color: var(--red); font-weight: 700; }
.contact-direct svg { width: 18px; }
.lead-form { display: grid; gap: 20px; padding: 36px; background: var(--soft); }
.lead-form label { display: grid; gap: 9px; color: #4e5052; font-size: 12px; font-weight: 700; }
.lead-form input, .lead-form textarea { background: #fff; border-color: #deded9; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-field { position: relative; }
.file-field input { position: absolute; opacity: 0; pointer-events: none; }
.file-field span { min-height: 46px; display: flex; align-items: center; padding: 0 14px; background: #fff; border: 1px dashed #c9c9c4; color: #777; cursor: pointer; }
.form-submit { width: 100%; }
.lead-form small { color: #8b8d90; font-size: 11px; }

.site-footer { padding: 70px 0 28px; background: #efefec; color: #202124; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1fr; gap: 60px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid h3 { margin: 0 0 8px; color: #85878a; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.footer-grid a, .footer-grid span { color: #515356; font-size: 13px; }
.footer-grid > div:first-child p { max-width: 300px; color: #737579; font-size: 13px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 22px; border-top: 1px solid rgba(32,33,36,.12); color: #8b8d90; font-size: 10px; }
.mobile-actions { display: none; }
.mobile-actions b { font-size: 9px; }

.mobile-menu { padding: 28px !important; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin: 36px 0; }
.mobile-menu nav a { padding: 12px 0; border-bottom: 1px solid #eee; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.menu-contacts { display: flex; flex-direction: column; gap: 7px; margin-top: 34px; color: #737579; font-size: 13px; }
.menu-contacts a { color: #222; font-size: 18px; font-weight: 700; }

/* Inner pages */
.inner-hero { min-height: 620px; position: relative; display: flex; align-items: end; color: #fff; overflow: hidden; }
.inner-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inner-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,12,.78), rgba(10,11,12,.1)); }
.inner-copy { position: relative; z-index: 1; padding-bottom: 72px; }
.inner-copy h1 { max-width: 820px; }
.inner-copy > p:last-of-type { max-width: 660px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.6; }
.inner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.detail-grid h2 { margin: 0; font-size: clamp(35px, 4vw, 58px); line-height: 1.03; letter-spacing: -.05em; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ddd; border-left: 1px solid #ddd; }
.detail-list div { min-height: 150px; padding: 26px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.detail-list span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.detail-list h3 { margin: 40px 0 0; font-size: 18px; }
.brand-band { padding: 50px 0; background: #202124; color: #fff; }
.brand-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand-band h2 { margin: 0; font-size: 28px; }
.brand-band p { margin: 8px 0 0; color: rgba(255,255,255,.55); }
.widget-slot {
  min-height: 560px; display: grid; place-items: center; padding: 50px;
  background: #f0f0ed; border: 1px dashed #bfc0bc; text-align: center;
}
.widget-slot > div { max-width: 580px; }
.widget-slot svg { width: 48px; height: 48px; margin: 0 auto 24px; color: var(--red); }
.widget-slot h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.05em; }
.widget-slot p { margin: 18px auto 28px; color: #6f7275; line-height: 1.7; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { padding: 34px; background: var(--soft); }
.contact-card h2 { margin: 0 0 20px; font-size: 28px; }
.contact-card p, .contact-card address { margin: 8px 0; color: #696c6f; font-style: normal; line-height: 1.6; }
.map-frame { min-height: 460px; border: 0; width: 100%; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .header-calc { margin-left: auto; }
  .menu-button { display: inline-flex; margin-left: 0; }
  .hero { min-height: 720px; }
  .category-grid { grid-auto-rows: 240px; }
}

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 28px, 1280px); }
  .site-header { position: absolute; background: rgba(255,255,255,.95); }
  .header-inner { height: 68px; }
  .header-calc { display: none; }
  .hero { min-height: 700px; height: 92svh; align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,8,9,.78), rgba(7,8,9,.08) 78%); }
  .hero-content { padding-bottom: 56px; }
  .hero h1 { font-size: clamp(50px, 14vw, 68px); }
  .hero-copy { font-size: 17px; max-width: 490px; margin-top: 20px; }
  .hero-actions { margin-top: 25px; }
  .hero-actions > * { width: 100%; }
  .hero-meta { margin-top: 28px; gap: 8px 15px; font-size: 11px; }
  .hero-meta span:not(:first-child)::before { display: none; }
  .hero-scroll { display: none; }
  .section { padding: 80px 0; }
  .split-heading, .visualization-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-heading h2 { font-size: clamp(38px, 10vw, 56px); }
  .split-heading { align-items: start; }
  .category-grid { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; margin-right: -14px; padding-right: 14px; }
  .category-card { flex: 0 0 84%; min-height: 410px; scroll-snap-align: start; }
  .category-content { inset: auto 20px 20px; grid-template-columns: 28px 1fr 40px; gap: 10px; }
  .category-content h3 { font-size: 25px; }
  .ideas-grid { grid-template-columns: 1fr; grid-auto-rows: 390px; }
  .idea-card, .idea-card:nth-child(n) { grid-column: auto; }
  .idea-card:nth-child(n+5) { display: none; }
  .idea-copy { align-items: flex-start; flex-direction: column; }
  .idea-copy button { opacity: 1; transform: none; }
  .before-after { height: 450px; }
  .benefit-grid, .brand-grid { grid-template-columns: 1fr 1fr; }
  .benefit-card { min-height: 220px; padding: 24px; }
  .benefit-card h3 { margin-top: 30px; }
  .visit-section { min-height: 650px; }
  .contact-grid { gap: 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 105px; }
  .mobile-actions {
    position: fixed; z-index: 60; inset: auto 8px 8px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    min-height: 64px; padding: 6px;
    background: rgba(28,29,31,.95); color: #fff; box-shadow: 0 16px 50px rgba(0,0,0,.35); backdrop-filter: blur(16px);
  }
  .mobile-actions a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 9px; font-weight: 700; }
  .mobile-actions a:nth-child(2) { background: var(--red); }
  .mobile-actions svg { width: 19px; }
  .inner-hero { min-height: 660px; }
  .detail-list { grid-template-columns: 1fr; }
  .brand-band-inner { align-items: flex-start; flex-direction: column; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

@media (max-width: 520px) {
  .brand-logo { width: 180px; }
  .brand-logo-light { width: 220px; }
  .hero h1 { font-size: 50px; }
  .hero-meta span:nth-child(n+4) { display: none; }
  .section { padding: 68px 0; }
  .category-card { min-height: 380px; }
  .ideas-grid { grid-auto-rows: 360px; }
  .benefit-grid, .brand-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 190px; }
  .brand-card { min-height: 100px; }
  .before-after { height: 380px; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .widget-slot { min-height: 500px; padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
