/* remont.od.ua — page sections, cards, hero, lead form. Colors come from the Kadence palette. */
:root {
  --r-accent: var(--global-palette1, #C2410C);
  --r-accent-hover: var(--global-palette2, #9A3412);
  --r-bright: #F97316;
  --r-ink: var(--global-palette3, #111827);
  --r-text: var(--global-palette4, #1F2937);
  --r-muted: var(--global-palette5, #4B5563);
  --r-line: var(--global-palette7, #E5E7EB);
  --r-shade: var(--global-palette8, #F5F5F4);
  --r-dark: #111827;
  --r-radius: 14px;
  --r-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EA580C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Header wordmark ---------- */
.site-branding .site-title { text-transform: uppercase; font-style: italic; letter-spacing: -0.01em; }
.site-branding .site-title .remont-logo-accent { color: #EA580C; }

/* ---------- Page canvas ---------- */
.remont-page .entry-content-wrap { padding: 0; }
.remont-page .entry-content { margin: 0; }
.remont-page .entry-content > .alignfull { margin-top: 0; margin-bottom: 0; max-width: none; }
.entry-content .remont-section { padding: 72px 20px; }
.remont-section.is-shaded { background: var(--r-shade); }
.remont-wrap { max-width: 1200px; margin: 0 auto; }
.remont-wrap.remont-narrow { max-width: 860px; }
.remont-wrap > :first-child { margin-top: 0; }
.remont-wrap > :last-child { margin-bottom: 0; }
.remont-section h2 { margin: 0 0 16px; }
.remont-section h2::before {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px;
  background: var(--r-bright); margin-bottom: 18px;
}
.remont-section-intro { color: var(--r-muted); font-size: 1.1rem; max-width: 760px; margin: 0 0 8px; }

/* ---------- Hero ---------- */
.remont-hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(249, 115, 22, .28), transparent 62%),
    linear-gradient(180deg, #111827 0%, #1C2433 100%);
  position: relative;
  overflow: hidden;
}
.remont-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.entry-content .remont-hero { padding: 56px 20px 72px; }
.remont-hero .remont-wrap { position: relative; z-index: 1; }
.remont-hero .rank-math-breadcrumb { font-size: .9rem; color: #9CA3AF; margin-bottom: 20px; }
.remont-hero .rank-math-breadcrumb p { margin: 0; }
.remont-hero .rank-math-breadcrumb a { color: #E5E7EB; text-decoration: none; }
.remont-hero .rank-math-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.remont-hero .rank-math-breadcrumb .separator { margin: 0 6px; color: #6B7280; }
h1.remont-hero-title { color: #fff; max-width: 900px; margin: 0 0 18px; }
.remont-lead { font-size: 1.2rem; line-height: 1.6; color: #D1D5DB; max-width: 760px; margin: 0 0 28px; }
.remont-hero .wp-block-buttons { gap: 12px; }
.remont-hero .wp-block-button__link { padding: 14px 26px; font-weight: 700; }
.remont-hero .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: #fff; border: 2px solid rgba(255, 255, 255, .5); background: transparent; }
.remont-hero .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Cards ---------- */
.remont-grid { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.entry-content .remont-grid > *, .entry-content .remont-cta-grid > *, .entry-content .remont-wrap > .wp-block-group:last-child { margin: 0; }
.remont-cols-1 { grid-template-columns: minmax(0, 720px); }
.remont-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.remont-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#zayavka, #ceny, #faq, #raschet { scroll-margin-top: 110px; }

/* hero facts */
.remont-hero ul.remont-hero-facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.remont-hero-facts li { position: relative; padding-left: 26px; color: #E5E7EB; font-weight: 600; margin: 0; }
.remont-hero-facts li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: var(--r-check) center / 16px no-repeat; }
.remont-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
  transition: box-shadow .2s, transform .2s;
}
.remont-section:not(.is-shaded) .remont-card { background: #FAFAF9; }
.remont-card:hover { box-shadow: 0 10px 30px rgba(17, 24, 39, .08); }
.remont-card > * { margin-top: 0; }
.remont-card > :last-child { margin-bottom: 0; }
.remont-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.remont-card h3 a { color: inherit; text-decoration: none; }
.remont-card h3 a:hover { color: var(--r-accent); }
.remont-card p { color: var(--r-muted); margin: 0 0 12px; }
.remont-features .remont-card h3::before {
  content: ""; display: block; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(249, 115, 22, .12) var(--r-check) center / 20px no-repeat;
}
.remont-card ul, .remont-cta-text ul, .remont-features .remont-wrap > ul {
  list-style: none; padding: 0; margin: 4px 0 12px;
}
.remont-card li, .remont-cta-text li, .remont-features .remont-wrap > ul li {
  position: relative; padding-left: 26px; margin: 0 0 6px; color: var(--r-text);
}
.remont-card li::before, .remont-cta-text li::before, .remont-features .remont-wrap > ul li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px;
  background: var(--r-check) center / 16px no-repeat;
}
.remont-features .remont-wrap > ul { display: grid; gap: 12px; margin-top: 28px; }
.remont-features .remont-wrap > ul li {
  background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-radius);
  padding: 18px 20px 18px 50px; margin: 0;
}
.remont-features .remont-wrap > ul li::before { left: 20px; top: 21px; }
.remont-card-more { margin-top: auto !important; padding-top: 8px; font-weight: 700; }
.remont-card-more a { color: var(--r-accent); text-decoration: none; }
.remont-card-more a:hover { color: var(--r-accent-hover); text-decoration: underline; }

/* steps */
.remont-steps { counter-reset: step; }
.remont-step { counter-increment: step; }
.remont-step h3::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px;
  font: 800 1.6rem/1 var(--global-heading-font-family, inherit); color: var(--r-bright);
}

/* prices */
.remont-price { border-top: 4px solid var(--r-bright); }
.remont-price-value { margin: 4px 0 12px !important; }
.remont-price-value strong {
  font-family: var(--global-heading-font-family, inherit); font-weight: 800;
  font-size: 1.55rem; line-height: 1.2; color: var(--r-ink);
}
.remont-note { margin-top: 24px; color: var(--r-muted); font-size: .95rem; }
.remont-note p { margin: 0 0 6px; }

/* ---------- FAQ ---------- */
.wp-block-details.remont-faq {
  background: #fff; border: 1px solid var(--r-line); border-radius: 12px;
  padding: 0; margin: 0 0 12px; overflow: hidden;
}
.wp-block-details.remont-faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--r-ink);
  padding: 18px 56px 18px 22px; position: relative;
}
.wp-block-details.remont-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.remont-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(249, 115, 22, .12); color: #EA580C; font-weight: 800; font-size: 18px; line-height: 1;
}
.wp-block-details.remont-faq[open] summary::after { content: "−"; }
.wp-block-details.remont-faq > p { padding: 0 22px; color: var(--r-muted); margin: 0 0 18px; }
.remont-text .wp-block-details.remont-faq { margin-top: 0; }

/* ---------- Long text ---------- */
.remont-prose h3 { margin: 36px 0 12px; }
.remont-prose h4 { margin: 24px 0 8px; }
.remont-prose p, .remont-prose li { color: var(--r-text); }
.remont-prose ul, .remont-prose ol { padding-left: 1.25em; }
.remont-prose li { margin-bottom: 8px; }

/* ---------- Lead form band ---------- */
.remont-cta { background: linear-gradient(180deg, #111827, #1C2433); color: #E5E7EB; }
.remont-cta h2 { color: #fff; }
.remont-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.remont-cta-text p { color: #D1D5DB; font-size: 1.1rem; }
.remont-cta-text li { color: #F3F4F6; }
.remont-form-card { background: #fff; color: var(--r-text); border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.remont-lead-form { max-width: none; }
.remont-lead-form p { margin: 0 0 14px; }
.remont-lead-form label { font-weight: 600; font-size: .95rem; color: var(--r-ink); }
.remont-lead-form input[type=text], .remont-lead-form input[type=tel], .remont-lead-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: 8px;
  font: inherit; background: #fff; color: var(--r-text);
}
.remont-lead-form input:focus, .remont-lead-form textarea:focus { outline: 2px solid var(--r-bright); outline-offset: 1px; border-color: transparent; }
.remont-lead-form .remont-consent label { font-weight: 400; font-size: .9rem; color: var(--r-muted); }
.remont-lead-form button { width: 100%; padding: 14px 20px; font-weight: 700; font-size: 1.05rem; }
.remont-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.remont-form-msg { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; }
.remont-form-ok { background: #E7F6EC; color: #14532D; }
.remont-form-err { background: #FDECEC; color: #7F1D1D; }

/* ---------- Footer ---------- */
.site-footer .site-middle-footer-wrap, .site-footer .site-bottom-footer-wrap { color: #D1D5DB; }
.site-footer .widget-title, .site-footer h2 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #E5E7EB; }
.site-footer a:hover { color: #fff; }
#colophon .footer-navigation .menu { flex-direction: column; align-items: flex-start; }
#colophon .footer-navigation .menu > li > a { padding: 4px 0; color: #D1D5DB; }
#colophon .footer-navigation .menu > li > a:hover { color: #fff; }
.site-footer a.remont-footer-cta {
  display: inline-block; background: var(--r-accent); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.site-footer a.remont-footer-cta:hover { background: var(--r-accent-hover); }
.site-bottom-footer-wrap { font-size: .9rem; color: #9CA3AF; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .remont-grid, .remont-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .remont-cta-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .entry-content .remont-section { padding: 48px 16px; }
  .entry-content .remont-hero { padding: 36px 16px 48px; }
  .remont-lead { font-size: 1.05rem; }
  .remont-grid, .remont-cols-2, .remont-cols-3 { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .remont-hero ul.remont-hero-facts { flex-direction: column; margin-top: 24px; }
  .remont-card { padding: 20px; }
  .remont-form-card { padding: 20px; }
  .remont-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .remont-hero .wp-block-button { width: 100%; }
  .remont-hero .wp-block-button__link { display: block; text-align: center; }
}

/* ===== v2: warm neutrals, hero prices, calculator, mobile action bar, header contacts ===== */
:root { --r-warm: #F7F4EF; --r-warm-line: #E8E2D8; }
.remont-section.is-shaded { background: var(--r-warm); }
.remont-section.is-shaded .remont-card, .remont-section.is-shaded .wp-block-details.remont-faq { border-color: var(--r-warm-line); }
.remont-section:not(.is-shaded) .remont-card { background: #fff; border-color: var(--r-warm-line); }

/* hero price anchors */
ul.remont-hero-prices { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.remont-hero-prices li {
  display: flex; flex-direction: column; gap: 2px; margin: 0;
  padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(2px);
}
.remont-hero-prices span { color: #D1D5DB; font-size: .9rem; }
.remont-hero-prices strong { color: #fff; font-family: var(--global-heading-font-family, inherit); font-size: 1.35rem; font-weight: 800; }

/* calculator */
.remont-calc-card { background: #fff; border: 1px solid var(--r-warm-line); border-radius: 18px; padding: 28px; box-shadow: 0 12px 40px rgba(17, 24, 39, .06); margin-top: 24px; }
.remont-calc fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.remont-calc legend { font-family: var(--global-heading-font-family, inherit); font-weight: 800; font-size: 1.3rem; color: var(--r-ink); margin-bottom: 16px; padding: 0; }
.remont-calc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.remont-calc-option { position: relative; cursor: pointer; margin: 0; }
.remont-calc-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.remont-calc-option span {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 46px; position: relative;
  border: 1.5px solid var(--r-warm-line); border-radius: 12px; background: #fff; font-weight: 600; color: var(--r-ink);
  transition: border-color .15s, background .15s;
}
.remont-calc-option span::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9C2B6; background: #fff;
}
.remont-calc-option:hover span { border-color: #D6A77F; }
.remont-calc-option input:checked + span { border-color: var(--r-bright); background: #FFF6EE; }
.remont-calc-option input:checked + span::before { border: 5px solid var(--r-bright); }
.remont-calc-option input:focus-visible + span { outline: 2px solid var(--r-bright); outline-offset: 2px; }
.remont-calc-area { display: flex; align-items: center; gap: 18px; }
.remont-calc-area input[type=range] { flex: 1; accent-color: #EA580C; }
.remont-calc-area label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.remont-calc-area input[type=number] { width: 110px; padding: 12px; border: 1.5px solid var(--r-warm-line); border-radius: 10px; font: inherit; font-weight: 700; }
.remont-calc input[type=text], .remont-calc input[type=tel] { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: 8px; font: inherit; }
.remont-calc label { font-weight: 600; color: var(--r-ink); }
.remont-calc .remont-consent label { font-weight: 400; font-size: .9rem; color: var(--r-muted); }
.remont-calc-label { font-weight: 600; color: var(--r-ink); margin: 6px 0 8px; }
.remont-calc-step[data-step="5"] .remont-calc-options { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.remont-calc-step[data-step="5"] .remont-calc-option span { min-height: 46px; }
.remont-calc-result { background: #111827; color: #E5E7EB; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.remont-calc-result:empty { display: none; }
.remont-calc-result span { display: block; font-size: .9rem; color: #9CA3AF; }
.remont-calc-result strong { display: block; font-family: var(--global-heading-font-family, inherit); font-size: 1.9rem; color: #fff; line-height: 1.2; margin: 2px 0 6px; }
.remont-calc-result small { display: block; font-size: .9rem; color: #D1D5DB; }
.remont-calc-progress { height: 6px; background: var(--r-warm); border-radius: 3px; margin: 0 0 24px; position: relative; }
.remont-calc-bar { display: block; height: 100%; width: 20%; background: var(--r-bright); border-radius: 3px; transition: width .25s; }
.remont-calc-count { position: absolute; right: 0; top: 10px; font-size: .8rem; color: var(--r-muted); }
.remont-calc-nav { display: flex; gap: 10px; justify-content: space-between; }
.remont-calc-nav button { padding: 13px 26px; font-weight: 700; }
.remont-calc-nav .remont-calc-next, .remont-calc-nav .remont-calc-submit { margin-left: auto; }
.remont-calc-prev { background: transparent !important; color: var(--r-ink) !important; border: 1.5px solid var(--r-warm-line) !important; }
.remont-calc-hint { color: #B91C1C; font-size: .9rem; margin: 10px 0 0; min-height: 1em; }
.remont-calc:not(.is-js) .remont-calc-progress, .remont-calc:not(.is-js) .remont-calc-prev, .remont-calc:not(.is-js) .remont-calc-next { display: none; }

/* header contacts (render only when phone/messengers are set) */
.remont-contacts { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.remont-contacts-phone { font-weight: 800; color: var(--r-ink); text-decoration: none; font-size: 1.05rem; }
.remont-contacts-phone:hover { color: var(--r-accent); }
.remont-contacts-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; }
.remont-contacts-icon.is-viber { background: #7360F2; }
.remont-contacts-icon.is-telegram { background: #229ED9; }
.remont-contacts-hours { font-size: .8rem; color: var(--r-muted); }

/* mobile action bar */
.remont-mbar { display: none; }
@media (max-width: 767px) {
  .remont-mbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--r-warm-line); box-shadow: 0 -6px 20px rgba(17, 24, 39, .08);
  }
  .remont-mbar-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 52px; border-radius: 12px; text-decoration: none; color: var(--r-ink); font-size: .78rem; font-weight: 700;
    background: var(--r-warm);
  }
  .remont-mbar-item.is-primary { background: var(--r-accent); color: #fff; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .remont-calc-options, .remont-calc-step[data-step="5"] .remont-calc-options { grid-template-columns: 1fr; }
  .remont-calc-card { padding: 20px; }
  .remont-calc-area { flex-direction: column; align-items: stretch; }
  .remont-hero-prices li { flex: 1 1 100%; }
  #scroll-up, .scroll-up-wrap { bottom: 90px !important; }
}

.remont-calc [hidden] { display: none !important; }

/* ===== v3 hero: eyebrow, split layout with image card, calculator quick start ===== */
.remont-eyebrow {
  display: inline-block; margin: 0 0 14px !important; padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; letter-spacing: .01em; color: #FED7AA;
  background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .3);
}
.remont-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.remont-hero-text > :last-child { margin-bottom: 0; }
.entry-content .remont-hero.has-media { padding-top: 48px; padding-bottom: 64px; }
.remont-hero.has-media h1.remont-hero-title { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.remont-hero-media { position: relative; margin: 0 !important; }
.remont-hero-media img.remont-hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover;
  border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
.remont-hero-badge {
  position: absolute; display: flex; align-items: center; gap: 8px; z-index: 2;
  padding: 12px 16px 12px 40px; border-radius: 14px; background: #fff; color: var(--r-ink);
  font-weight: 700; font-size: .92rem; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); text-decoration: none;
}
.remont-hero-badge::before { content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background: var(--r-check) center / 18px no-repeat; }
.remont-hero-badge.is-1 { left: -22px; top: 28px; }
.remont-hero-badge.is-2 { right: -18px; bottom: 54px; }
.remont-hero-badge.is-link { background: var(--r-accent); color: #fff; padding-left: 16px; }
.remont-hero-badge.is-link::before { display: none; }
.remont-hero-badge.is-link:hover { background: var(--r-accent-hover); color: #fff; }
.remont-hero-caption {
  position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 3px 8px; border-radius: 6px;
  font-size: .72rem; color: rgba(255, 255, 255, .85); background: rgba(17, 24, 39, .45);
}

.remont-qs { margin: 4px 0 18px; }
.remont-qs-label { margin: 0 0 10px !important; color: #F3F4F6; font-weight: 700; }
.remont-qs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.remont-qs-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px;
  padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .18); transition: background .15s, border-color .15s;
}
.remont-qs-btn::after { content: "→"; color: #FDBA74; font-weight: 800; }
.remont-qs-btn:hover, .remont-qs-btn:focus-visible { color: #fff; background: rgba(249, 115, 22, .16); border-color: var(--r-bright); }
.remont-hero .remont-qs + .wp-block-buttons { margin-top: 4px; }

@media (max-width: 1024px) {
  .remont-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .remont-hero-media { order: -1; }
  .remont-hero-media img.remont-hero-img { aspect-ratio: 16 / 9; }
  .remont-hero-badge.is-1 { left: 12px; top: 12px; }
  .remont-hero-badge.is-2 { right: 12px; bottom: 12px; }
}
@media (max-width: 640px) {
  .entry-content .remont-hero.has-media { padding-top: 16px; padding-bottom: 40px; }
  .remont-hero-grid { gap: 20px; }
  .remont-hero-media img.remont-hero-img { aspect-ratio: 16 / 10; border-radius: 16px; }
  .remont-hero-badge { font-size: .78rem; padding: 8px 10px 8px 30px; border-radius: 10px; }
  .remont-hero-badge::before { left: 10px; width: 14px; height: 14px; background-size: 14px; }
  .remont-hero-badge.is-link { padding-left: 10px; }
  .remont-hero-caption { left: auto; right: 10px; bottom: auto; top: 10px; font-size: .65rem; }
  .remont-hero-badge.is-2 { bottom: 10px; right: 10px; }
  .remont-eyebrow { font-size: .78rem; }
  ul.remont-hero-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .remont-hero-prices li { padding: 10px 12px; }
  .remont-hero-prices span { font-size: .78rem; line-height: 1.3; }
  .remont-hero-prices strong { font-size: 1.05rem; }
  .remont-qs-btn { min-height: 48px; padding: 10px 12px; font-size: .9rem; }
}

/* ===== v4: services catalog (home) ===== */
#uslugi { scroll-margin-top: 110px; }
.remont-svc-catalog { display: grid; gap: 36px; margin-top: 32px; }
.remont-svc-group-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px !important;
  font-size: 1.1rem !important; letter-spacing: .01em; color: var(--r-ink);
}
.remont-svc-group-title span {
  font-size: .8rem; font-weight: 800; color: #EA580C; padding: 3px 8px; border-radius: 6px; background: rgba(249, 115, 22, .12);
}
.remont-svc-group-title::after { content: ""; flex: 1; height: 1px; background: var(--r-warm-line); }
.remont-svc-grid { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.remont-svc-grid.remont-svc-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.remont-svc {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 100%;
  padding: 18px 18px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--r-warm-line);
  text-decoration: none !important; color: var(--r-text); box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.remont-svc:hover, .remont-svc:focus-visible { transform: translateY(-3px); border-color: #F4B183; box-shadow: 0 14px 30px rgba(17, 24, 39, .09); color: var(--r-text); }
.remont-svc:focus-visible { outline: 2px solid var(--r-bright); outline-offset: 2px; }
.remont-svc-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 12px;
  color: #EA580C; background: rgba(249, 115, 22, .1); transition: background .18s, color .18s;
}
.remont-svc:hover .remont-svc-icon { background: var(--r-bright); color: #fff; }
.remont-svc-name { font-family: var(--global-heading-font-family, inherit); font-weight: 800; font-size: 1.02rem; line-height: 1.3; color: var(--r-ink); }
.remont-svc-desc { font-size: .88rem; line-height: 1.45; color: var(--r-muted); }
.remont-svc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--r-warm-line);
}
.remont-svc-price { font-weight: 800; font-size: .92rem; color: var(--r-ink); white-space: nowrap; }
.remont-svc-arrow {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--r-warm); color: var(--r-ink); font-weight: 800; transition: background .18s, color .18s, transform .18s;
}
.remont-svc:hover .remont-svc-arrow { background: var(--r-accent); color: #fff; transform: translateX(2px); }

@media (max-width: 1100px) {
  .remont-svc-grid, .remont-svc-grid.remont-svc-n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .remont-svc-catalog { gap: 26px; margin-top: 22px; }
  .remont-svc-grid, .remont-svc-grid.remont-svc-n4 { grid-template-columns: 1fr; gap: 10px; }
  .remont-svc {
    display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "icon name arrow" "icon desc arrow" "icon price arrow";
    column-gap: 14px; row-gap: 1px; align-items: center; padding: 12px 12px 12px 14px;
  }
  .remont-svc-icon { grid-area: icon; width: 44px; height: 44px; margin: 0; align-self: start; }
  .remont-svc-name { grid-area: name; font-size: .98rem; }
  .remont-svc-desc { grid-area: desc; font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .remont-svc-foot { display: contents; }
  .remont-svc-price { grid-area: price; font-size: .86rem; color: #C2410C; }
  .remont-svc-arrow { grid-area: arrow; }
  .remont-svc:hover { transform: none; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .remont-hero-media img.remont-hero-img { aspect-ratio: 21 / 9; }
}

/* ===== v5: Google rating badge, phone in header/footer ===== */
.remont-rating {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #E5E7EB; text-decoration: none; font-size: .92rem;
}
.remont-rating:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.remont-rating-stars { color: #FBBF24; letter-spacing: 1px; font-size: .95rem; }
.remont-rating strong { color: #fff; font-weight: 800; }
.remont-rating span:last-child { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.site-footer .remont-phone-link { font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; }
.site-footer .remont-hours { font-size: .9rem; color: #9CA3AF; }
@media (max-width: 1200px) and (min-width: 1025px) { .remont-contacts-phone { font-size: .95rem; } }
.header-html a.remont-contacts-phone { text-decoration: none; }
.remont-hero .wp-block-shortcode:has(.remont-rating), .remont-hero p:has(> .remont-rating) { margin-top: 0; }
.remont-hero .remont-rating { margin-top: 10px; }
.remont-social { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer a.remont-social-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); color: #E5E7EB; text-decoration: none; font-size: .9rem;
}
.site-footer a.remont-social-link:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.remont-social-link svg { width: 18px; height: 18px; }

/* ===== v6: unified service template ===== */
/* CTA pair */
.remont-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 0; }
.remont-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none !important; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.remont-btn svg { width: 18px; height: 18px; }
.remont-btn.is-primary { background: var(--r-accent); color: #fff; border: 2px solid var(--r-accent); }
.remont-btn.is-primary:hover { background: var(--r-accent-hover); border-color: var(--r-accent-hover); color: #fff; }
.remont-btn.is-ghost { background: transparent; color: var(--r-ink); border: 2px solid var(--r-warm-line); }
.remont-btn.is-ghost:hover { border-color: var(--r-bright); color: var(--r-ink); }
.remont-hero .remont-btn.is-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.remont-hero .remont-btn.is-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.remont-hero .remont-cta-row { margin-top: 6px; }

/* why: compact row */
.remont-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.remont-why-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--r-warm-line); }
.remont-section:not(.is-shaded) .remont-why-item { background: var(--r-warm); border-color: transparent; }
.remont-why-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #EA580C; background: rgba(249, 115, 22, .12); }
.remont-why-body strong { display: block; color: var(--r-ink); font-family: var(--global-heading-font-family, inherit); font-weight: 800; font-size: 1rem; line-height: 1.3; margin-bottom: 4px; }
.remont-why-body span { display: block; color: var(--r-muted); font-size: .9rem; line-height: 1.45; }

/* price list table */
.remont-wrap.remont-narrow-wide { max-width: 980px; }
table.remont-pricelist { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0 0; background: #fff; border: 1px solid var(--r-warm-line); border-radius: 16px; overflow: hidden; }
.remont-pricelist th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--r-muted); background: var(--r-warm); padding: 12px 20px; border: 0; }
.remont-pricelist th:last-child, .remont-pricelist td.remont-pl-price { text-align: right; white-space: nowrap; }
.remont-pricelist td { padding: 16px 20px; border: 0; border-top: 1px solid var(--r-warm-line); vertical-align: top; }
.remont-pricelist tbody tr:first-child td { border-top: 0; }
.remont-pricelist tbody tr:hover td { background: #FFFBF6; }
.remont-pricelist td strong { display: block; color: var(--r-ink); font-weight: 700; }
.remont-pl-desc { display: block; color: var(--r-muted); font-size: .92rem; margin-top: 2px; }
.remont-pl-incl { display: block; color: var(--r-muted); font-size: .84rem; margin-top: 6px; }
td.remont-pl-price { font-family: var(--global-heading-font-family, inherit); font-weight: 800; font-size: 1.15rem; color: var(--r-ink); }
.remont-prices-table .remont-note { margin-top: 14px; }

/* mid-page CTA */
.entry-content .remont-midcta { padding: 34px 20px; background: linear-gradient(90deg, #FFF4EA, #FDE7D3); border-top: 1px solid #F6D3B4; border-bottom: 1px solid #F6D3B4; }
.remont-midcta-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.remont-midcta-title { margin: 0 0 4px !important; font-family: var(--global-heading-font-family, inherit); font-weight: 800; font-size: 1.35rem; color: var(--r-ink); }
.remont-midcta-text { margin: 0 !important; color: var(--r-text); }
.remont-midcta .remont-btn.is-ghost { background: #fff; border-color: #F1C7A3; }

/* tips */
ol.remont-tips { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: tip; }
.remont-tips li { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--r-warm-line); }
.remont-section:not(.is-shaded) .remont-tips li { background: var(--r-warm); border-color: transparent; }
.remont-tip-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #B45309; background: #FEF3C7; }
.remont-tip-body strong { display: block; color: var(--r-ink); font-family: var(--global-heading-font-family, inherit); font-weight: 800; margin-bottom: 4px; }
.remont-tip-body span { display: block; color: var(--r-muted); font-size: .95rem; line-height: 1.5; }

/* related services */
.remont-svc-related { margin-top: 24px; }
.remont-svc-grid.remont-svc-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* long text + sticky price card */
.remont-text-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.remont-text-grid .remont-prose { max-width: 780px; }
.remont-text-grid .remont-prose > h2:first-child { margin-top: 0; }
.remont-aside { position: sticky; top: 110px; }
.remont-aside-card { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--r-warm-line); box-shadow: 0 12px 30px rgba(17, 24, 39, .06); }
.remont-aside-label { margin: 0 0 4px !important; color: var(--r-muted); font-size: .9rem; }
.remont-aside-price { margin: 0 0 6px !important; font-family: var(--global-heading-font-family, inherit); font-weight: 800; font-size: 1.6rem; color: var(--r-ink); }
.remont-aside-note { margin: 0 0 14px !important; color: var(--r-muted); font-size: .88rem; }
.remont-aside .remont-cta-row { flex-direction: column; align-items: stretch; gap: 8px; }
.remont-aside .remont-btn { width: 100%; min-height: 46px; }
.remont-aside .remont-rating { margin-top: 12px; background: var(--r-warm); border-color: var(--r-warm-line); color: var(--r-text); }
.remont-aside .remont-rating strong { color: var(--r-ink); }
.remont-aside .remont-rating span:last-child { text-decoration-color: var(--r-warm-line); }

/* cases (rendered only when real projects exist) */
.entry-content .remont-cases { padding: 72px 20px; }
.remont-cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.remont-case { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--r-warm-line); }
.remont-case img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.remont-case figcaption { padding: 14px 16px; }
.remont-case figcaption strong { display: block; color: var(--r-ink); }
.remont-case figcaption span { color: var(--r-muted); font-size: .9rem; }

@media (max-width: 1100px) {
  .remont-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remont-text-grid { grid-template-columns: 1fr; gap: 28px; }
  .remont-aside { position: static; max-width: 420px; }
}
@media (max-width: 760px) {
  .remont-why-grid, ol.remont-tips, .remont-svc-grid.remont-svc-n3, .remont-cases-grid { grid-template-columns: 1fr; }
  .remont-why-grid { gap: 10px; }
  .remont-why-item { padding: 14px; }
  .remont-cta-row { flex-direction: column; align-items: stretch; }
  .remont-btn { width: 100%; }
  .remont-pricelist thead { display: none; }
  .remont-pricelist tr { display: grid; grid-template-columns: 1fr auto; }
  .remont-pricelist td { padding: 14px 14px; }
  td.remont-pl-price { font-size: 1rem; padding-left: 8px; }
  .entry-content .remont-midcta { padding: 26px 16px; }
}
.remont-aside .remont-rating { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; width: 100%; border-radius: 12px; font-size: .86rem; }
