@charset "UTF-8";
/* ==========================================================================
   PINHOME STORY — single source of truth for site layout and styling.
   Loaded by the PinHome Story Site Pack plugin. The child theme ships no CSS.
   Built on the LUCETELLE system: same warm graphite, same type and rhythm;
   the one difference is the accent — denim blue instead of copper.

   Layer order (never reorder, never bolt a new layer on the end):
     01 tokens + reset + typography + controls
     02 shell (header / mobile menu / footer / cookie strip)
     03 page container + Blocksy normalisation
     04 editorial sections (hero, cards, lists, FAQ, blog, legal, 404)
     05 calculators and the estimate
     06 responsive
     07 motion and print
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONT — Manrope (SIL OFL 1.1, assets/fonts/OFL.txt), served from this
   plugin, so visitors' browsers never call Google. One variable file per
   subset covers every weight 200–800; latin-ext carries the ₽ sign.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm graphite (same as LUCETELLE) */
  --ph-bg:            #171614;
  --ph-surface:       #1D1C19;
  --ph-surface-2:     #23221E;
  --ph-surface-3:     #2A2824;

  /* Text — warm light */
  --ph-text:          #F2EFE8;
  --ph-text-soft:     #C8C2B7;
  --ph-text-muted:    #979086;

  /* Lines */
  --ph-line:          #33312C;
  --ph-line-strong:   #47443D;

  /* The only accent: denim. Two tones, never swapped:
     --ph-accent      fills, bars, borders, selection   (3.6:1 on bg — UI only)
     --ph-accent-ink  text, links, numbers, labels      (7.6:1 on bg)        */
  --ph-accent:        #56709A;
  --ph-accent-deep:   #3E5275;
  --ph-accent-ink:    #93A9CB;
  --ph-accent-hover:  #ADC0DC;
  --ph-accent-tint:   rgba(86,112,154,.16);

  /* Work panels (1.7.2): calculators and the estimate sit on denim, so the
     thing you fill in stands apart from the page around it. */
  --ph-panel:         #1E2532;
  --ph-panel-2:       #26314A;
  --ph-panel-line:    #34425B;
  --ph-panel-field:   #13161C;
  --ph-panel-edge:    #4A5D80;

  /* Status — only for the estimate: within budget / over budget */
  --ph-ok:            #8CC09A;
  --ph-ok-tint:       #22302A;
  --ph-bad:           #E08A7E;
  --ph-bad-tint:      #3A2422;

  /* Light control surface (primary button) */
  --ph-light:         #F2EFE8;
  --ph-light-hover:   #FFFFFF;
  --ph-on-light:      #17160F;

  /* Radii */
  --ph-r-btn:   999px;
  --ph-r-card:  20px;
  --ph-r-img:   16px;
  --ph-r-field: 14px;

  /* Widths */
  --ph-max:      1440px;
  --ph-max-text: 720px;

  /* Gutters — never let content touch the viewport edge */
  --ph-gutter: clamp(20px, 4vw, 56px);

  /* Space between two stacked cards */
  --ph-band-gap: clamp(20px, 2.8vw, 48px);

  /* Vertical rhythm. Section: 56–88 mobile, 80–140 desktop. */
  --ph-section: clamp(56px, 7.4vw, 140px);

  /* The spacing scale. Used everywhere; no ad-hoc margins. */
  --ph-gap-label: clamp(20px, 2.1vw, 28px);
  --ph-gap-head:  clamp(24px, 2.4vw, 32px);
  --ph-gap-cta:   clamp(32px, 3.4vw, 48px);
  --ph-gap-body:  clamp(14px, 1.2vw, 20px);
  --ph-gap-grid:  clamp(20px, 2.4vw, 40px);

  /* Card interiors: >= 24px mobile, >= 40px desktop */
  --ph-card-pad:    clamp(24px, 3.1vw, 56px);
  --ph-card-pad-sm: clamp(20px, 2.2vw, 40px);

  /* Header */
  --ph-header-h: 64px;

  --ph-ease: cubic-bezier(.22,.61,.36,1);
}

@media (min-width: 1000px) {
  :root { --ph-header-h: 76px; }
}

/* --------------------------------------------------------------------------
   2. RESET — scoped to what this stylesheet owns
   -------------------------------------------------------------------------- */
body.phsp-shell,
body.phsp-shell *,
body.phsp-shell *::before,
body.phsp-shell *::after { box-sizing: border-box; }

body.phsp-shell {
  margin: 0;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: "Manrope", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.phsp-shell img,
body.phsp-shell svg,
body.phsp-shell video { max-width: 100%; }

/* Zero-specificity default, so full-bleed images keep their own height. */
:where(body.phsp-shell) img { display: block; height: auto; }

/* hidden always wins over any layout rule below */
body.phsp-shell [hidden] { display: none; }

/* Never break Russian words mid-glyph. */
body.phsp-shell,
body.phsp-shell h1, body.phsp-shell h2, body.phsp-shell h3,
body.phsp-shell h4, body.phsp-shell p,  body.phsp-shell li,
body.phsp-shell a,  body.phsp-shell span, body.phsp-shell label {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY — zero-specificity defaults; every component beats them.
   -------------------------------------------------------------------------- */
:where(body.phsp-shell) h1,
:where(body.phsp-shell) h2,
:where(body.phsp-shell) h3,
:where(body.phsp-shell) h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.08;
  color: var(--ph-text);
  text-wrap: balance;
}

:where(body.phsp-shell) h1 { font-size: clamp(30px, 5.2vw, 60px); }
:where(body.phsp-shell) h2 { font-size: clamp(25px, 3.7vw, 44px); }
:where(body.phsp-shell) h3 { font-size: clamp(19px, 1.85vw, 26px); line-height: 1.16; }
:where(body.phsp-shell) h4 { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.24; }

:where(body.phsp-shell) p {
  margin: 0;
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.62;
  color: var(--ph-text-soft);
  max-width: var(--ph-max-text);
}
:where(body.phsp-shell) p + p { margin-top: var(--ph-gap-body); }
:where(body.phsp-shell) strong { font-weight: 600; color: var(--ph-text); }
:where(body.phsp-shell) em { font-style: italic; }

:where(body.phsp-shell) a { color: var(--ph-text); text-decoration: none; }
:where(body.phsp-shell) a:hover { color: var(--ph-accent-hover); }

:where(body.phsp-shell) h1 + p,
:where(body.phsp-shell) h2 + p,
:where(body.phsp-shell) h3 + p { margin-top: var(--ph-gap-head); }

/* Denim micro-label. Always followed by --ph-gap-label. */
.ph-kicker {
  display: block;
  margin: 0 0 var(--ph-gap-label);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}

/* --------------------------------------------------------------------------
   4. CONTROLS
   -------------------------------------------------------------------------- */
.ph-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 32px;
  border: 1px solid var(--ph-light);
  border-radius: var(--ph-r-btn);
  background: var(--ph-light);
  color: var(--ph-on-light);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.35;
  text-wrap: balance;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background .22s var(--ph-ease), border-color .22s var(--ph-ease), color .22s var(--ph-ease);
}
.ph-button:hover,
.ph-button:focus-visible {
  background: var(--ph-light-hover);
  border-color: var(--ph-light-hover);
  color: var(--ph-on-light);
}

.ph-button--ghost {
  background: transparent;
  border-color: var(--ph-line-strong);
  color: var(--ph-text);
}
.ph-button--ghost:hover,
.ph-button--ghost:focus-visible {
  background: transparent;
  border-color: var(--ph-accent-ink);
  color: var(--ph-accent-hover);
}

/* Secondary action that points outward («Подобрать на Маркете»). */
.ph-button--outline {
  background: transparent;
  border-color: var(--ph-accent);
  color: var(--ph-accent-ink);
}
.ph-button--outline:hover,
.ph-button--outline:focus-visible {
  background: var(--ph-accent-tint);
  border-color: var(--ph-accent-ink);
  color: var(--ph-accent-hover);
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--ph-gap-cta);
}

.ph-text-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.7;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ph-accent-ink);
}
body.phsp-shell a.ph-text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.ph-text-link:hover { color: var(--ph-accent-hover); }

.ph-more {
  margin-top: var(--ph-gap-cta);
  align-self: flex-start;
}

body.phsp-shell .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* One focus ring for the whole site — never the browser blue. */
body.phsp-shell :focus-visible {
  outline: 2px solid var(--ph-accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
body.phsp-shell ::selection { background: var(--ph-accent); color: #fff; }
body.phsp-shell { accent-color: var(--ph-accent); }

/* ==========================================================================
   02 — SHELL: one header, one mobile menu, one footer.
   ========================================================================== */

/* Blocksy's own header/footer are switched off by the child theme's
   header.php / footer.php; these rules are the defence if an update
   re-registers them. */
body.phsp-shell .ct-header,
body.phsp-shell .ct-footer { display: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.ph-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(23,22,20,.88);
  border-bottom: 1px solid var(--ph-line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: background .32s var(--ph-ease), border-color .32s var(--ph-ease);
}

/* Transparent over the home hero only, and only until scrolled. */
body.home .ph-header:not(.is-stuck) {
  background: linear-gradient(to bottom, rgba(10,9,8,.55), rgba(10,9,8,0));
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.ph-header__inner {
  max-width: var(--ph-max);
  min-height: var(--ph-header-h);
  margin: 0 auto;
  padding: 0 var(--ph-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.ph-header__logo {
  grid-column: 2;
  justify-self: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--ph-text);
  white-space: nowrap;
}
.ph-header__logo:hover { color: var(--ph-text); }

.ph-header__nav { display: none; }

.ph-header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

/* «Смета» with the number of filled lines saved in this browser. */
.ph-smeta-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ph-text);
  white-space: nowrap;
}
.ph-smeta-link:hover { color: var(--ph-accent-hover); }
.ph-smeta-link__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ph-accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}

/* Burger */
.ph-burger {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border: 0;
  background: none;
  cursor: pointer;
}
.ph-burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  color: var(--ph-text);
  border-radius: 2px;
}

/* Body offset so the fixed header never covers content. */
body.phsp-shell { padding-top: var(--ph-header-h); }
body.phsp-shell.home { padding-top: 0; }
body.phsp-shell [id] { scroll-margin-top: calc(var(--ph-header-h) + 16px); }

@media screen and (min-width: 783px) {
  body.phsp-shell.admin-bar .ph-header { top: 32px; }
}
@media screen and (min-width: 601px) and (max-width: 782px) {
  body.phsp-shell.admin-bar .ph-header { top: 46px; }
}

/* --------------------------------------------------------------------------
   Mobile menu — portalled to <body>, fixed to the viewport.
   -------------------------------------------------------------------------- */
.ph-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  background: var(--ph-bg);
  overscroll-behavior: contain;
}
.ph-menu[hidden] { display: none; }

.ph-menu__inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 0 var(--ph-gutter) calc(var(--ph-gutter) + env(safe-area-inset-bottom, 0px));
}

.ph-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ph-header-h);
  margin-bottom: clamp(20px, 5vw, 48px);
}
.ph-menu__top span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2em;
}
.ph-menu__close {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--ph-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.ph-menu__close:hover { color: var(--ph-accent-hover); }

.ph-menu__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 1.2vw, 10px);
}
.ph-menu__nav a {
  padding: 9px 0;
  font-size: clamp(24px, 6.4vw, 34px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.ph-menu__nav a:hover,
.ph-menu__nav a[aria-current="page"] { color: var(--ph-accent-ink); }

.ph-menu__meta {
  margin-top: auto;
  padding-top: clamp(32px, 7vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  border-top: 1px solid var(--ph-line);
}
.ph-menu__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ph-text-muted);
}
.ph-menu__meta a:hover { color: var(--ph-accent-hover); }

html.ph-menu-open,
html.ph-menu-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ph-footer {
  border-top: 1px solid var(--ph-line);
  background: var(--ph-bg);
}
.ph-footer__inner {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: var(--ph-section) var(--ph-gutter) clamp(32px, 4vw, 56px);
  display: grid;
  gap: clamp(36px, 4vw, 56px);
}
.ph-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
.ph-footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ph-text-muted);
}
.ph-footer__brand > a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2em;
}
.ph-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ph-footer__col > span {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.ph-footer__col a { font-size: 14px; color: var(--ph-text-soft); }
.ph-footer__col a:hover { color: var(--ph-accent-hover); }

.ph-footer .ph-footer__linkbtn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ph-text-soft);
  text-align: left;
  cursor: pointer;
}
.ph-footer .ph-footer__linkbtn:hover,
.ph-footer .ph-footer__linkbtn:focus-visible { color: var(--ph-accent-hover); }

.ph-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--ph-line);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ph-text-muted);
}

.ph-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.ph-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 500;
  padding: 12px 20px;
  background: var(--ph-light);
  color: var(--ph-on-light);
  border-radius: var(--ph-r-btn);
}

/* --------------------------------------------------------------------------
   Cookie strip (inc/cookies.php, front.js). Nothing behind it is blocked;
   front.js pads the page by its height. Two buttons of the same size.
   -------------------------------------------------------------------------- */
.ph-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  padding: 0 12px max(12px, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.ph-consent[hidden] { display: none; }
.ph-consent__card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line-strong);
  border-radius: var(--ph-r-field);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}
.ph-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ph-text-soft);
}
.ph-consent__text a { color: var(--ph-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ph-consent__actions {
  display: flex;
  gap: 8px;
}
.ph-consent__actions .ph-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.3;
}

/* ==========================================================================
   03 — PAGE CONTAINER + Blocksy normalisation.
   One wrapper for every page: .ph-shell > .ph-page.
   ========================================================================== */

/* Blocksy draws links, buttons, fields and notices through its palette
   variables; its stock palette is blue (#2872fa). Remapping the variables
   once makes every element we did not style by hand follow our tokens. */
body.phsp-shell {
  --theme-palette-color-1: var(--ph-accent);
  --theme-palette-color-2: var(--ph-accent-ink);
  --theme-palette-color-3: var(--ph-text);
  --theme-palette-color-4: var(--ph-text);
  --theme-palette-color-5: var(--ph-line);
  --theme-palette-color-6: var(--ph-surface-2);
  --theme-palette-color-7: var(--ph-surface);
  --theme-palette-color-8: var(--ph-bg);

  --theme-text-color: var(--ph-text-soft);
  --theme-headings-color: var(--ph-text);
  --theme-border-color: var(--ph-line);
  --theme-box-shadow: none;

  --theme-link-initial-color: var(--ph-accent-ink);
  --theme-link-hover-color: var(--ph-accent-hover);

  --theme-button-background-initial-color: var(--ph-light);
  --theme-button-background-hover-color: var(--ph-light-hover);
  --theme-button-text-initial-color: var(--ph-on-light);
  --theme-button-text-hover-color: var(--ph-on-light);
  --theme-button-border-radius: var(--ph-r-btn);

  --theme-form-field-background-initial-color: var(--ph-bg);
  --theme-form-field-background-focus-color: var(--ph-bg);
  --theme-form-field-border-initial-color: var(--ph-line-strong);
  --theme-form-field-border-focus-color: var(--ph-accent);
  --theme-form-text-initial-color: var(--ph-text);
  --theme-form-text-focus-color: var(--ph-text);
  --theme-form-field-border-radius: var(--ph-r-field);
  --theme-form-selection-color: var(--ph-accent);

  --theme-table-border-color: var(--ph-line);
  --theme-table-heading-color: var(--ph-text);
}

.ph-main { display: block; outline: none; }
.ph-shell { width: 100%; }
.ph-page { width: 100%; }
.ph-page > * { width: 100%; }

/* Blocksy wraps page content in .ct-container / .entry-content with its own
   width and padding. Our sections manage their own width, so the ancestors
   are neutralised exactly once, here. */
body.phsp-shell #main,
body.phsp-shell .site-main,
body.phsp-shell .ct-container,
body.phsp-shell .ct-container-full,
body.phsp-shell .ct-container-narrow,
body.phsp-shell [class*="ct-container"] > article,
body.phsp-shell .entry-content {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}
body.phsp-shell [class*="ct-container"] { padding-block: 0; }
body.phsp-shell .is-layout-constrained > .ph-shell,
body.phsp-shell .entry-content > .ph-shell {
  max-width: none;
  margin-inline: 0;
}

/* Blocksy page title bar / breadcrumbs / sidebar are not part of this design. */
body.phsp-shell .page-title,
body.phsp-shell .hero-section,
body.phsp-shell .ct-breadcrumbs,
body.phsp-shell .ct-sidebar,
body.phsp-shell .entry-header,
body.phsp-shell .post-navigation,
body.phsp-shell .ct-related-posts-container,
body.phsp-shell .ct-comments-container { display: none; }

/* --------------------------------------------------------------------------
   Section primitives. Every section on the site uses one of these.
   -------------------------------------------------------------------------- */
.ph-section {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: var(--ph-section) var(--ph-gutter);
}
.ph-section--calc { padding-top: clamp(32px, 4vw, 64px); }

/* РСЯ block (inc/ads.php). Under a calculator it sits close to the result,
   not adrift between two full section gaps. Nothing is reserved while the
   network has no ad to show. */
.ph-ad {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 0 var(--ph-gutter);
}
.ph-section--calc + .ph-ad { margin-top: calc(-1 * var(--ph-section) + clamp(24px, 3vw, 40px)); }
.ph-article > .ph-ad { max-width: 720px; margin: clamp(32px, 4vw, 48px) 0; padding: 0; }
.ph-ad--preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 20px 24px;
  border: 1px dashed var(--ph-line-strong);
  border-radius: var(--ph-r-card);
  color: var(--ph-text-muted);
  max-width: calc(var(--ph-max) - 2 * var(--ph-gutter));
}
.ph-page > .ph-ad--preview { width: calc(100% - 2 * var(--ph-gutter)); }
.ph-ad--preview span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.ph-ad--preview small { font-size: 13px; line-height: 1.5; }

.ph-head { max-width: 900px; margin-bottom: clamp(32px, 4.2vw, 64px); }
.ph-head p { margin-top: var(--ph-gap-head); }

.ph-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ph-gap-cta);
  max-width: none;
}
.ph-head--row > div { max-width: 760px; }
.ph-head--row .ph-button { flex: none; }

/* ==========================================================================
   04 — EDITORIAL SECTIONS
   ========================================================================== */

/* CONTAINER RULE — every block sits inside the page container. The ONE
   exception is the home hero: its photo runs edge to edge, its text is held
   on the container line by .ph-hero__content. Blocks with their own
   background are cards of exactly the container's width. */
.ph-page > .ph-statement--soft {
  width: calc(100% - 2 * var(--ph-gutter));
  max-width: calc(var(--ph-max) - 2 * var(--ph-gutter));
  margin-inline: auto;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  overflow: hidden;
}
.ph-page > .ph-statement--soft + .ph-statement--soft { margin-top: var(--ph-band-gap); }
.ph-page > .ph-statement--soft:first-child { margin-top: clamp(20px, 3vw, 48px); }
.ph-page > .ph-statement--soft:last-child { margin-bottom: var(--ph-section); }

/* --------------------------------------------------------------------------
   Hero — the home page's first screen. Pins land here, so it says what the
   site does and offers the two ways in at once.
   -------------------------------------------------------------------------- */
.ph-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(84svh, 780px);
  background: var(--ph-surface);
  isolation: isolate;
  overflow: hidden;
}
.ph-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform-origin: 50% 45%;
  animation: ph-hero-settle 7s cubic-bezier(.16, .7, .3, 1) both paused;
}
.ph-hero.is-live .ph-hero__img { animation-play-state: running; }
@keyframes ph-hero-settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.ph-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Phones: the text covers the whole picture, so the whole picture is
     dimmed. Computers: the text sits on the left, so the left side is dark
     and the right side of the photo stays bright. */
  background:
    linear-gradient(180deg,
      rgba(10,9,8,.6) 0%,
      rgba(10,9,8,.5) 30%,
      rgba(10,9,8,.62) 55%,
      rgba(10,9,8,.92) 100%);
}
@media (min-width: 1000px) {
  .ph-hero__shade {
    background:
      linear-gradient(90deg,
        rgba(10,9,8,.74) 0%,
        rgba(10,9,8,.52) 40%,
        rgba(10,9,8,0) 72%),
      linear-gradient(180deg,
        rgba(10,9,8,.52) 0%,
        rgba(10,9,8,.16) 24%,
        rgba(10,9,8,.16) 40%,
        rgba(10,9,8,.66) 72%,
        rgba(10,9,8,.9) 100%);
  }
}
.ph-hero__content {
  width: min(100%, var(--ph-max));
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--ph-gutter) clamp(40px, 6vw, 88px);
  animation: ph-hero-rise 1.1s var(--ph-ease) .3s both;
}
@keyframes ph-hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.ph-hero__kicker { color: #C9D5E8; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.ph-hero__title {
  max-width: 17ch;
  font-size: clamp(34px, 5.6vw, 72px);
  text-wrap: balance;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: 0 1px 24px rgba(0,0,0,.3);
}
body.phsp-shell .ph-hero__lead {
  max-width: 40ch;
  margin-top: var(--ph-gap-head);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.86);
}
.ph-hero .ph-button--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.ph-hero .ph-button--ghost:hover,
.ph-hero .ph-button--ghost:focus-visible { border-color: #fff; color: #fff; }

/* No photo yet: a flat graphite band with the same text, no shade. */
.ph-hero--plain {
  min-height: 0;
  border-bottom: 1px solid var(--ph-line);
}
.ph-hero--plain .ph-hero__content { padding-top: calc(var(--ph-header-h) + clamp(56px, 9vw, 140px)); }
.ph-hero--plain .ph-hero__kicker { color: var(--ph-accent-ink); }
.ph-hero--plain .ph-hero__title { color: var(--ph-text); text-shadow: none; }
body.phsp-shell .ph-hero--plain .ph-hero__lead { color: var(--ph-text-soft); }
.ph-hero--plain .ph-button--ghost { border-color: var(--ph-line-strong); color: var(--ph-text); }
.ph-hero--plain .ph-button--ghost:hover { border-color: var(--ph-accent-ink); color: var(--ph-accent-hover); }

/* --------------------------------------------------------------------------
   Calculator cards ([ph_tools])
   -------------------------------------------------------------------------- */
.ph-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ph-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--ph-card-pad-sm);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface);
  transition: border-color .22s var(--ph-ease), background .22s var(--ph-ease);
}
.ph-tool:hover { border-color: var(--ph-accent); background: var(--ph-surface-2); }
.ph-tool--main { background: var(--ph-surface-2); border-color: var(--ph-accent); }
.ph-tool__num {
  margin-bottom: clamp(18px, 2.4vw, 40px);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .17em;
  color: var(--ph-accent-ink);
}
.ph-tool h3 { font-size: clamp(20px, 1.75vw, 25px); line-height: 1.2; }
.ph-tool h3 a { color: var(--ph-text); }
/* The whole card is one link. */
.ph-tool h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ph-tool p { margin-top: 12px; font-size: 15px; line-height: 1.55; }
.ph-tool .ph-text-link { margin-top: auto; padding-top: clamp(18px, 2vw, 28px); }
.ph-tool:hover .ph-text-link { color: var(--ph-accent-hover); }

/* --------------------------------------------------------------------------
   Split text (two copy columns) + ruled fact lines
   -------------------------------------------------------------------------- */
.ph-split {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: var(--ph-section) var(--ph-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 5vw, 96px);
}
.ph-split h2 + p { margin-top: var(--ph-gap-head); }

.ph-lines {
  display: grid;
  margin-top: var(--ph-gap-head);
  border-top: 1px solid var(--ph-line);
}
.ph-lines span {
  padding: 15px 0;
  border-bottom: 1px solid var(--ph-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ph-text-soft);
}
.ph-lines b { font-weight: 600; color: var(--ph-text); }

/* --------------------------------------------------------------------------
   Statement / brand block
   -------------------------------------------------------------------------- */
.ph-statement {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: var(--ph-section) var(--ph-gutter);
}
.ph-statement h2 { max-width: 22ch; }
.ph-statement p { margin-top: var(--ph-gap-head); }
.ph-statement p + p { margin-top: var(--ph-gap-body); }
.ph-statement > .ph-button { margin-top: var(--ph-gap-cta); }
.ph-statement--soft {
  padding: clamp(36px, 5.6vw, 96px) var(--ph-card-pad);
  background: var(--ph-surface);
}

/* Checklist: what people forget to budget for. */
.ph-checklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--ph-gap-grid);
  margin: var(--ph-gap-head) 0 0;
  padding: 0;
  list-style: none;
}
.ph-checklist li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--ph-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ph-text-soft);
}
.ph-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ph-accent);
  border-radius: 6px;
}
.ph-checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  width: 6px;
  height: 11px;
  border: solid var(--ph-accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Product block: a soft statement with a price button. */
.ph-product h2 { max-width: 20ch; }

/* --------------------------------------------------------------------------
   Funnel (inc/product.php): the product block, bridges, the upsell box beside
   the estimate total, «+ Ещё комната», the price section and the sticky buy
   bar. Everything here renders only when the table is on sale — or for the
   logged-in owner, marked by .ph-preview-note.
   Elements that toggle with [hidden] never set display themselves.
   -------------------------------------------------------------------------- */
.ph-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ph-gap-grid);
  align-items: center;
}
.ph-product__list { margin-top: var(--ph-gap-body); }
.ph-checklist.ph-product__list,
.ph-price .ph-checklist { grid-template-columns: minmax(0, 1fr); }
body.phsp-shell .ph-product__price { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ph-text-muted); }
.ph-product__shot {
  display: block;
  max-width: 600px;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-img);
  background: var(--ph-surface-2);
  transition: border-color .2s var(--ph-ease), transform .3s var(--ph-ease);
}
.ph-product__shot:hover { border-color: var(--ph-accent); transform: translateY(-2px); }
.ph-product__shot img { display: block; width: 100%; height: auto; }
@media (min-width: 1000px) {
  .ph-product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 96px); }
  .ph-product__shot { max-width: none; }
}

body.phsp-shell .ph-preview-note {
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px dashed var(--ph-line-strong);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ph-text-muted);
}

/* One line from a free tool to the table. */
body.phsp-shell .ph-bridge {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ph-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ph-text-soft);
}
body.phsp-shell .ph-bridge a {
  font-weight: 600;
  color: var(--ph-accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.phsp-shell .ph-bridge a:hover { color: var(--ph-accent-hover); }
body.phsp-shell .ph-bridge--over {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(224,138,126,.35);
  border-radius: 12px;
  background: var(--ph-bad-tint);
}

/* Beside the estimate total. */
.ph-upsell {
  margin-top: 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--ph-accent-deep);
  border-radius: 16px;
  background: var(--ph-accent-tint);
}
body.phsp-shell .ph-upsell p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ph-text-soft); }
body.phsp-shell .ph-upsell .ph-upsell__title { margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--ph-text); }
.ph-upsell .ph-button { width: 100%; margin-top: 14px; }

/* «+ Ещё комната». */
.ph-more-room { margin-top: 18px; }
button.ph-text-link { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.ph-more-room__panel {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--ph-line-strong);
  border-radius: 14px;
  background: var(--ph-surface-2);
}
body.phsp-shell .ph-more-room__panel p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ph-text-soft); }
body.phsp-shell .ph-more-room__panel p:last-child { margin-bottom: 0; }
.ph-more-room__panel b { font-weight: 600; color: var(--ph-text); }

/* Product page: «Сколько стоит ошибка в бюджете?» + the second buy box. */
.ph-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ph-gap-grid);
  align-items: center;
}
.ph-price .ph-buy { margin-top: 0; }
@media (min-width: 1000px) {
  .ph-price { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 96px); }
  .ph-price .ph-buy { justify-self: end; width: 100%; }
}

/* Phones: the buy button that follows the reader on the product page. */
.ph-sticky-buy:not([hidden]) {
  position: fixed;
  left: 12px;
  right: 12px;
  width: auto; /* .ph-page > * sets 100% */
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--ph-line-strong);
  border-radius: 999px;
  background: rgba(29,28,25,.95);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.phsp-shell .ph-sticky-buy p { display: grid; margin: 0; line-height: 1.2; }
body.phsp-shell .ph-sticky-buy b { font-size: 18px; font-weight: 600; color: var(--ph-accent-ink); }
body.phsp-shell .ph-sticky-buy span { font-size: 11px; color: var(--ph-text-muted); }
.ph-sticky-buy .ph-button { min-height: 48px; padding-inline: 22px; white-space: nowrap; }
body.has-sticky-buy { padding-bottom: 84px; }
@media (min-width: 1000px) {
  .ph-sticky-buy:not([hidden]) { display: none; }
  body.has-sticky-buy { padding-bottom: 0; }
}

/* The printed estimate carries the site address. */
.ph-print-only { display: none; }

/* --------------------------------------------------------------------------
   Page intro (calculators, hub, estimate, blog, legal)
   -------------------------------------------------------------------------- */
.ph-intro {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) var(--ph-gutter) 0;
}
.ph-intro h1 { max-width: 18ch; }
.ph-intro p { margin-top: var(--ph-gap-head); }
.ph-intro--legal > * { max-width: 788px; }

/* The page's own picture ([ph_page_image]): under the lead on a phone, a
   short 16:9 band; beside the heading on a computer, 4:3. */
.ph-intro__media { margin: var(--ph-gap-head) 0 0; }
body.phsp-shell .ph-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--ph-r-img);
  background: var(--ph-surface-2);
}
@media (min-width: 1000px) {
  .ph-intro:has(> .ph-intro__media) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: clamp(40px, 5vw, 96px);
    align-content: start;
  }
  .ph-intro:has(> .ph-intro__media) > :not(.ph-intro__media) { grid-column: 1; }
  .ph-intro__media { grid-column: 2; grid-row: 1 / span 8; align-self: center; margin: 0; }
  body.phsp-shell .ph-intro__media img { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   Product page (inc/product.php): buy box under the intro, two previews
   -------------------------------------------------------------------------- */
.ph-intro--product p { max-width: 60ch; }
.ph-buy {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 460px;
  margin-top: var(--ph-gap-cta);
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--ph-line-strong);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface);
}
body.phsp-shell .ph-buy__price {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ph-accent-ink);
}
body.phsp-shell .ph-buy__note { margin: 0; font-size: 14px; color: var(--ph-text-soft); }
.ph-buy__button { width: 100%; margin-top: 8px; }
.ph-button.is-disabled,
.ph-button.is-disabled:hover {
  background: transparent;
  border-color: var(--ph-line-strong);
  color: var(--ph-text-muted);
  cursor: default;
}
body.phsp-shell .ph-buy__legal { margin: 0; font-size: 12px; color: var(--ph-text-muted); }
body.phsp-shell .ph-buy__legal a { color: var(--ph-accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.ph-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ph-gap-grid); }

/* «Почему с ней проще?» — four benefits of the web table (1.7.1). */
.ph-perks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ph-perk {
  padding: var(--ph-card-pad-sm);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface);
}
.ph-perk__num { display: block; margin-bottom: clamp(14px, 2vw, 28px); font-size: 11px; font-weight: 650; letter-spacing: .14em; color: var(--ph-accent-ink); }
.ph-perk h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
body.phsp-shell .ph-perk p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ph-text-soft); }
body.phsp-shell .ph-note { margin-top: var(--ph-gap-head); font-size: 14px; color: var(--ph-text-muted); }
@media (min-width: 700px) { .ph-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ph-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { body.phsp-shell .ph-perk p { font-size: 16px; } }

.ph-shots figure { margin: 0; }
body.phsp-shell .ph-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ph-r-img);
  border: 1px solid var(--ph-line);
  background: var(--ph-surface-2);
}
body.phsp-shell .ph-shots figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ph-text-muted); }
.ph-steps li b { color: var(--ph-text); font-weight: 650; }

/* --------------------------------------------------------------------------
   «Как считаем» — numbered, ruled steps
   -------------------------------------------------------------------------- */
.ph-steps {
  counter-reset: ph-step;
  max-width: 880px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ph-line);
}
.ph-steps li {
  counter-increment: ph-step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ph-line);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ph-text-soft);
}
.ph-steps li::before {
  content: counter(ph-step, decimal-leading-zero);
  padding-top: 3px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  color: var(--ph-accent-ink);
}
body.phsp-shell .ph-method__note {
  max-width: 880px;
  margin-top: var(--ph-gap-head);
  font-size: 14px;
  color: var(--ph-text-muted);
}
.ph-method { padding-bottom: 0; }

/* --------------------------------------------------------------------------
   FAQ / legal / 404
   -------------------------------------------------------------------------- */
.ph-faq {
  max-width: var(--ph-max);
  grid-template-columns: minmax(0, 960px);
  margin: 0 auto;
  padding: var(--ph-section) var(--ph-gutter);
  display: grid;
  gap: 0;
}
.ph-faq .ph-head { margin-bottom: clamp(20px, 2.6vw, 36px); }
.ph-faq details { border-bottom: 1px solid var(--ph-line); }
.ph-faq details:first-of-type { border-top: 1px solid var(--ph-line); }
.ph-faq summary {
  padding: clamp(18px, 2.2vw, 26px) 44px clamp(18px, 2.2vw, 26px) 0;
  position: relative;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--ph-accent-ink);
}
.ph-faq details[open] summary::after { content: "–"; }
.ph-faq summary:hover { color: var(--ph-accent-hover); }
.ph-faq details p { padding: 0 44px clamp(20px, 2.4vw, 28px) 0; }
.ph-faq details p a, .ph-faq-more a { color: var(--ph-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.ph-faq details p a:hover, .ph-faq-more a:hover { color: var(--ph-accent-hover); }
body.phsp-shell .ph-faq-more { margin-top: clamp(18px, 2vw, 26px); font-size: 15px; line-height: 1.55; color: var(--ph-text-muted); }

/* «Частые вопросы» (1.7.2): topic chips, groups, two mail cards. */
.ph-faq-nav {
  max-width: var(--ph-max);
  margin: clamp(24px, 2.6vw, 36px) auto 0;
  padding: 0 var(--ph-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ph-faq-nav a {
  padding: 9px 16px;
  border: 1px solid var(--ph-line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ph-text-soft);
  text-decoration: none;
  background: var(--ph-surface);
}
.ph-faq-nav a:hover { border-color: var(--ph-accent); color: var(--ph-text); }
.ph-faq-nav a:last-child { border-color: var(--ph-accent); color: var(--ph-accent-ink); background: var(--ph-accent-tint); }
.ph-faq-nav + .ph-faq { padding-top: clamp(36px, 4vw, 64px); }
.ph-faq + .ph-faq, .ph-faq + .ph-faq-contact { padding-top: 0; }

/* Protected address links (1.7.2): a label until clicked, then the address. */
body.phsp-shell a.ph-mail { color: var(--ph-accent-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
body.phsp-shell a.ph-mail:hover { color: var(--ph-accent-hover); }
body.phsp-shell .ph-menu__meta a.ph-mail { color: var(--ph-text-muted); text-decoration: none; }
body.phsp-shell .ph-footer a.ph-mail { color: var(--ph-text); text-decoration: none; }
body.phsp-shell .ph-menu__meta a.ph-mail:hover, body.phsp-shell .ph-footer a.ph-mail:hover { color: var(--ph-accent-hover); }
.ph-mail-copied {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--ph-panel-edge);
  border-radius: 14px;
  background: var(--ph-panel-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  font-size: 14px;
  color: var(--ph-text);
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .25s var(--ph-ease), transform .25s var(--ph-ease);
  pointer-events: none;
}
.ph-mail-copied.is-on { opacity: 1; transform: translate(-50%, 0); }

.ph-mailcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 960px; }
@media (min-width: 700px) { .ph-mailcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ph-mailcard {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: var(--ph-card-pad-sm);
  border: 1px solid var(--ph-accent);
  border-radius: var(--ph-r-card);
  background: var(--ph-accent-tint);
  color: var(--ph-text);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.ph-mailcard:hover { background: rgba(86,112,154,.26); border-color: var(--ph-accent-ink); }
.ph-mailcard__title { font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.01em; }
.ph-mailcard__text { font-size: 15px; line-height: 1.5; color: var(--ph-text-soft); }
body.phsp-shell a.ph-mailcard__mail { justify-self: start; margin-top: 6px; font-size: clamp(17px, 1.4vw, 19px); font-weight: 600; color: var(--ph-accent-hover); text-decoration: none; }
body.phsp-shell a.ph-mailcard__mail:not(.is-open)::after { content: "\00a0→"; }
/* the whole card answers the click until the address is shown; then the address can be selected */
.ph-mailcard a.ph-mailcard__mail:not(.is-open)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ph-mailcard:has(a.ph-mailcard__mail:not(.is-open)) { cursor: pointer; }

.ph-legal {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: var(--ph-section) var(--ph-gutter);
}
.ph-legal > * { max-width: 788px; }
.ph-legal h2 {
  margin-top: var(--ph-gap-cta);
  font-size: clamp(18px, 1.5vw, 21px);
  letter-spacing: -.005em;
}
.ph-legal h2:first-child { margin-top: 0; }
.ph-legal p { margin-top: var(--ph-gap-head); }
.ph-legal p a,
.ph-legal dd a { color: var(--ph-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.ph-legal ul {
  margin-top: var(--ph-gap-head);
  padding: 0;
  list-style: none;
}
.ph-legal li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  color: var(--ph-text-soft);
}
.ph-legal li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ph-accent-ink);
}
.ph-legal__meta {
  margin: var(--ph-gap-head) 0 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface);
}
.ph-legal__meta dt {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.ph-legal__meta dd {
  margin: 6px 0 0;
  color: var(--ph-text);
  overflow-wrap: anywhere;
}
.ph-legal__meta dd + dt { margin-top: 20px; }

.ph-404 {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: clamp(80px, 14vw, 180px) var(--ph-gutter);
}

.ph-empty { color: var(--ph-text-soft); }

/* --------------------------------------------------------------------------
   Blog (inc/blog.php, templates/blog.php, templates/single-post.php)
   Articles are pasted HTML; plain tags inside .ph-article need no classes.
   -------------------------------------------------------------------------- */
.ph-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 4.4vw, 72px) var(--ph-gap-grid);
}
.ph-post-card { display: flex; flex-direction: column; }
.ph-post-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--ph-r-img);
  overflow: hidden;
  background: var(--ph-surface-2);
}
body.phsp-shell .ph-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ph-ease);
}
.ph-post-card:hover .ph-post-card__media img { transform: scale(1.03); }
.ph-post-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding-top: clamp(16px, 1.6vw, 22px);
}
.ph-post-card__meta,
.ph-post__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ph-text-muted);
}
.ph-post-card__title {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.25;
  text-wrap: balance;
}
.ph-post-card__title a { color: var(--ph-text); }
.ph-post-card__title a:hover { color: var(--ph-accent-hover); }
.ph-post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--ph-text-soft); }
.ph-post-card .ph-more { margin-top: auto; padding-top: 8px; }
/* An article without a cover: a ruled text card instead of an empty grey box. */
.ph-post-card--text { border-top: 1px solid var(--ph-line-strong); }
.ph-post-card--text .ph-post-card__body { padding-top: clamp(20px, 2vw, 28px); }

.ph-pagination { margin-top: clamp(48px, 5vw, 80px); }
.ph-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ph-line-strong);
  border-radius: var(--ph-r-btn);
  font-size: 13px;
  color: var(--ph-text);
}
.ph-pagination a.page-numbers:hover { border-color: var(--ph-accent-ink); color: var(--ph-accent-hover); }
.ph-pagination .page-numbers.current { border-color: var(--ph-accent); color: var(--ph-accent-ink); }
.ph-pagination .page-numbers.dots { border-color: transparent; }

.ph-post {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--ph-gutter) var(--ph-section);
}
.ph-post__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ph-gap-cta);
}
.ph-post__intro { max-width: 760px; }
.ph-post__back { margin-bottom: var(--ph-gap-cta); }
.ph-post__title { max-width: 18ch; }
.ph-post__lead {
  margin-top: var(--ph-gap-head);
  max-width: 34ch;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--ph-text-soft);
}
.ph-post__meta { margin-top: var(--ph-gap-head); }
.ph-post__cover { margin: 0; }
body.phsp-shell .ph-post__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--ph-r-img);
  background: var(--ph-surface-2);
}
.ph-post__cover figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ph-text-muted);
}

/* The article body — typography for plain pasted HTML. */
.ph-article {
  margin-top: clamp(56px, 6vw, 104px);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.75;
  color: var(--ph-text-soft);
}
.ph-article > :not(.ph-a-wide):not(.ph-a-example):not(.ph-calc) { max-width: 720px; }
.ph-article > :first-child { margin-top: 0; }
.ph-article p,
.ph-article ul,
.ph-article ol,
.ph-article blockquote,
.ph-article figure,
.ph-article table,
.ph-article iframe {
  margin: 1.15em 0 0;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.ph-article h2 {
  margin: 2.1em 0 0;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.2;
}
.ph-article h3 {
  margin: 1.8em 0 0;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.3;
}
.ph-article h4 { margin: 1.6em 0 0; }
.ph-article h2 + *,
.ph-article h3 + *,
.ph-article h4 + * { margin-top: .7em; }
.ph-article strong, .ph-article b { color: var(--ph-text); font-weight: 600; }
.ph-article a {
  color: var(--ph-accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ph-article a:hover { color: var(--ph-accent-hover); }
.ph-article ul,
.ph-article ol { padding-left: 1.3em; }
.ph-article li + li { margin-top: .45em; }
.ph-article li::marker { color: var(--ph-accent-ink); }
.ph-article blockquote {
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--ph-accent);
  font-size: 1.12em;
  line-height: 1.6;
  color: var(--ph-text);
}
.ph-article blockquote p:first-child { margin-top: 0; }
.ph-article figure { margin-top: 1.8em; }
.ph-article img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ph-r-img);
}
.ph-article p > img { margin: 1.6em 0; }
.ph-article figcaption {
  margin-top: 12px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ph-text-muted);
}
.ph-article hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--ph-line);
}
.ph-article table {
  display: block;
  overflow-x: auto;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
}
.ph-article th,
.ph-article td {
  padding: 12px 16px 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ph-line);
  text-align: left;
  vertical-align: top;
}
.ph-article th { color: var(--ph-text); font-weight: 600; }
.ph-article iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--ph-r-img);
}
.ph-article > .ph-calc { margin-top: clamp(40px, 4vw, 64px); }

/* Article components — all prefixed ph-a-, so an article never collides
   with the site's own blocks. Reference: README «BLOG COMPONENTS». */
.ph-article .ph-kicker { margin-top: clamp(52px, 5.4vw, 80px); }
.ph-article .ph-kicker + h2,
.ph-article .ph-kicker + h3 { margin-top: 0; }
.ph-article :is(.ph-a-card, .ph-a-example > div) > .ph-kicker:first-child { margin-top: 0; }

.ph-article .ph-a-card {
  margin-top: clamp(48px, 5vw, 72px);
  padding: var(--ph-card-pad);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface);
}
.ph-article .ph-a-card > :first-child { margin-top: 0; }
.ph-article .ph-a-card .ph-button { margin-top: var(--ph-gap-cta); }

.ph-article > .ph-a-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ph-gap-cta);
  align-items: center;
  margin-top: clamp(48px, 5vw, 88px);
}
.ph-article .ph-a-example figure { margin: 0; }
body.phsp-shell .ph-article .ph-a-example img { aspect-ratio: 4 / 5; object-fit: cover; }
.ph-article .ph-a-example > div { max-width: 560px; }
.ph-article .ph-a-example > div > :first-child { margin-top: 0; }
.ph-article .ph-a-example h3 { margin-top: 0; }

.ph-article .ph-a-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 1.3em;
  padding: 0;
  list-style: none;
}
.ph-article .ph-a-swatches li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ph-text-muted);
}
.ph-article .ph-a-swatches li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: var(--c, var(--ph-surface-3));
}

.ph-article .ph-a-sizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1.6em;
}
.ph-article .ph-a-sizes > div {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-field);
  background: var(--ph-surface);
}
.ph-article .ph-a-sizes strong {
  display: block;
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.ph-article .ph-a-sizes p { margin-top: 8px; font-size: 15px; line-height: 1.55; }

.ph-article .ph-a-lines {
  margin-top: 1.4em;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ph-line);
}
.ph-article .ph-a-lines li,
.ph-article .ph-a-lines li + li {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--ph-line);
  font-size: 16px;
  line-height: 1.6;
}

.ph-article .ph-a-note { font-size: 13px; line-height: 1.6; color: var(--ph-text-muted); }
.ph-article a.ph-button { color: var(--ph-on-light); text-decoration: none; }
.ph-article a.ph-button:hover { color: var(--ph-on-light); }
.ph-article .ph-a-cta .ph-text-link { display: table; margin-top: 20px; }

/* ==========================================================================
   05 — CALCULATORS AND THE ESTIMATE
   One form card + one result card. Phone: stacked. From 1000px: side by
   side, the result sticks while the form scrolls.
   ========================================================================== */
.ph-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ph-calc > * { min-width: 0; }

.ph-calc__form {
  margin: 0;
  padding: var(--ph-card-pad-sm);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface);
}
.ph-calc__form > .ph-kicker { margin-bottom: clamp(18px, 2vw, 24px); }
.ph-calc__title { font-size: clamp(21px, 2vw, 28px); line-height: 1.15; }
body.phsp-shell .ph-calc__lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ph-text-muted);
}

.ph-calc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: clamp(18px, 2vw, 24px);
}
.ph-calc__grid--single { grid-template-columns: minmax(0, 1fr); }
.ph-calc__form > .ph-calc__grid:first-child,
.ph-calc__form > .ph-kicker + .ph-calc__grid { margin-top: 0; }

/* A field: label, input with its unit, hint, error. */
.ph-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ph-field__label {
  display: block;
  padding: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ph-text-muted);
}
.ph-input { position: relative; display: block; }
.ph-input input,
.ph-input select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 56px;
  margin: 0;
  padding: 0 52px 0 16px;
  border: 1px solid var(--ph-line-strong);
  border-radius: var(--ph-r-field);
  background: var(--ph-bg);
  color: var(--ph-text);
  font: inherit;
  font-size: 17px;          /* >= 16px stops iOS Safari zooming on focus */
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  box-shadow: none;
  transition: border-color .18s var(--ph-ease), box-shadow .18s var(--ph-ease);
}
.ph-input input::placeholder { color: var(--ph-text-muted); font-weight: 400; }
.ph-input input:focus,
.ph-input select:focus {
  outline: none;
  border-color: var(--ph-accent-ink);
  box-shadow: inset 0 0 0 1px var(--ph-accent-ink);
}
.ph-input i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-style: normal;
  color: var(--ph-text-muted);
  pointer-events: none;
}
.ph-input--select select {
  padding-right: 44px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23979086' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.ph-input--select select option { background: var(--ph-surface); color: var(--ph-text); }

.ph-field__hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ph-text-muted);
}
.ph-field__error {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ph-bad);
}
.ph-field.is-invalid .ph-input input {
  border-color: var(--ph-bad);
  box-shadow: inset 0 0 0 1px var(--ph-bad);
}

/* Segmented control: radio pills. */
.ph-seg-wrap {
  min-width: 0;
  margin: clamp(18px, 2vw, 24px) 0 0;
  padding: 0;
  border: 0;
}
.ph-calc__form > .ph-kicker + .ph-seg-wrap { margin-top: 0; }
.ph-seg-wrap > legend { float: left; width: 100%; margin-bottom: 10px; }

/* How-to hints (1.5.0): what to type, where to find it, an example —
   under every field, under the pill groups and beside each estimate line. */
.ph-seg-wrap > .ph-field__hint { display: block; clear: both; margin-top: 8px; }
.ph-calc__form > .ph-calc__lead + .ph-seg-wrap,
.ph-calc__form > .ph-calc__lead + .ph-calc__grid { margin-top: 20px; }
.ph-howto {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--ph-line);
  border-radius: 14px;
  background: var(--ph-surface-2);
}
body.phsp-shell .ph-howto__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.ph-howto ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.ph-howto li { font-size: 14px; line-height: 1.5; color: var(--ph-text-soft); }
.ph-howto b { font-weight: 600; color: var(--ph-text); }
.ph-howto__example { color: var(--ph-accent-ink); }
/* The line's hint gets its own grid row: under the name on phones, under
   name–quantity–price on wider screens. */
.ph-row.ph-row--hint {
  grid-template-areas:
    "name  name  del"
    "hint  hint  hint"
    "qty   qty   qty"
    "price sum   sum";
}
body.phsp-shell .ph-row__hint {
  grid-area: hint;
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ph-text-muted);
}
@media (min-width: 768px) {
  .ph-row.ph-row--hint {
    grid-template-areas:
      "name qty  price sum del"
      "hint hint hint  .   .";
  }
}
@media (min-width: 1000px) {
  .ph-howto li { font-size: 15px; }
  body.phsp-shell .ph-row__hint { font-size: 13px; }
}
.ph-seg {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ph-seg__item { position: relative; display: inline-flex; }
.ph-seg__item input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ph-seg__item span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ph-line-strong);
  border-radius: var(--ph-r-btn);
  font-size: 14px;
  font-weight: 500;
  color: var(--ph-text-soft);
  transition: border-color .18s var(--ph-ease), background .18s var(--ph-ease), color .18s var(--ph-ease);
}
.ph-seg__item:hover span { border-color: var(--ph-accent); color: var(--ph-text); }
.ph-seg__item input:checked + span {
  border-color: var(--ph-accent);
  background: var(--ph-accent-tint);
  color: var(--ph-text);
}
.ph-seg__item input:focus-visible + span {
  outline: 2px solid var(--ph-accent-ink);
  outline-offset: 3px;
}

/* Checkbox row */
.ph-calc__checks { margin-top: clamp(18px, 2vw, 24px); display: grid; gap: 10px; }
.ph-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ph-text-soft);
  cursor: pointer;
}
.ph-check input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ph-accent);
  cursor: pointer;
}

/* «Ещё параметры» */
.ph-calc__more {
  margin-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid var(--ph-line);
}
.ph-calc__more > summary {
  position: relative;
  padding: 18px 36px 4px 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
  cursor: pointer;
  list-style: none;
}
.ph-calc__more > summary::-webkit-details-marker { display: none; }
.ph-calc__more > summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 14px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}
.ph-calc__more[open] > summary::after { content: "–"; }
.ph-calc__more > summary:hover { color: var(--ph-accent-hover); }

/* Result card */
.ph-calc__result {
  padding: var(--ph-card-pad-sm);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface-2);
}
.ph-calc__result > .ph-kicker { margin-bottom: clamp(16px, 1.8vw, 22px); }
body.phsp-shell .ph-result__label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ph-text-muted);
}
body.phsp-shell .ph-result__value {
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ph-accent-ink);
}
body.phsp-shell .ph-result__sub {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ph-text-soft);
}
body.phsp-shell .ph-result__sub:empty { display: none; }

.ph-result__lines {
  margin: clamp(18px, 2vw, 24px) 0 0;
  border-top: 1px solid var(--ph-line);
}
.ph-result__lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ph-line);
}
.ph-result__lines dt {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ph-text-soft);
}
.ph-result__lines dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ph-text);
  white-space: nowrap;
}
.ph-result__lines:empty { display: none; }

body.phsp-shell .ph-result__error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ph-bad-tint);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ph-bad);
}

.ph-result__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(20px, 2.2vw, 28px);
}
.ph-result__actions .ph-button { width: 100%; padding-inline: 20px; }
body.phsp-shell .ph-result__status {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ph-accent-ink);
}
body.phsp-shell .ph-result__status:empty { display: none; }
body.phsp-shell .ph-result__status a { color: var(--ph-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
body.phsp-shell .ph-result__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ph-text-muted);
}

/* Status badge — within budget / over budget */
body.phsp-shell .ph-badge {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
body.phsp-shell .ph-badge--ok { background: var(--ph-ok-tint); color: var(--ph-ok); }
body.phsp-shell .ph-badge--bad { background: var(--ph-bad-tint); color: var(--ph-bad); }

/* --------------------------------------------------------------------------
   The estimate ([ph_calc type="smeta"])
   -------------------------------------------------------------------------- */
.ph-smeta__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ph-smeta__body > * { min-width: 0; }

.ph-derived {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: clamp(18px, 2vw, 24px) 0 0;
}
.ph-derived > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ph-surface-2);
}
.ph-derived dt {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ph-text-muted);
}
.ph-derived dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ph-text);
}

.ph-rows__head { display: none; }
.ph-rows {
  margin-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid var(--ph-line);
}
.ph-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  grid-template-areas:
    "name  name  del"
    "qty   qty   qty"
    "price sum   sum";
  gap: 8px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ph-line);
}
.ph-row__name  { grid-area: name; min-width: 0; }
.ph-row__qty   { grid-area: qty; min-width: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6px; }
.ph-row__price { grid-area: price; min-width: 0; }
.ph-row__sum   { grid-area: sum; }
.ph-row__del   { grid-area: del; }

.ph-row input,
.ph-row select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ph-line-strong);
  border-radius: 12px;
  background: var(--ph-bg);
  color: var(--ph-text);
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}
.ph-row input:focus,
.ph-row select:focus {
  outline: none;
  border-color: var(--ph-accent-ink);
  box-shadow: inset 0 0 0 1px var(--ph-accent-ink);
}
.ph-row select {
  padding-right: 26px;
  -webkit-appearance: none;
  appearance: none;
  font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23979086' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.ph-row select option { background: var(--ph-surface); color: var(--ph-text); }
.ph-row__name input { font-weight: 500; }
.ph-row__tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.ph-row__label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ph-text-muted);
}
.ph-row__sum {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ph-text);
}
.ph-row__sum .ph-row__label { margin: 0 0 4px; }
.ph-row__sum > span:last-child { display: flex; align-items: center; min-height: 48px; white-space: nowrap; }
.ph-row__sum.is-empty { color: var(--ph-text-muted); font-weight: 400; }
.ph-row__del {
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ph-text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.ph-row__del:hover,
.ph-row__del:focus-visible { color: var(--ph-bad); background: var(--ph-bad-tint); }

.ph-rows__add { margin-top: clamp(18px, 2vw, 24px); }
body.phsp-shell .ph-smeta__settings { margin-top: clamp(20px, 2.2vw, 28px); }

/* --------------------------------------------------------------------------
   Work panels in colour (1.7.2). Owner: «смета почти не выделена на фоне…
   иначе всё сливается». The form is a denim panel, the result a brighter
   one with an accent edge, fields are dark wells inside them, and each line
   of the estimate is its own band.
   -------------------------------------------------------------------------- */
.ph-calc__form {
  border-color: var(--ph-panel-line);
  background: var(--ph-panel);
}
.ph-calc__result {
  border-color: var(--ph-panel-edge);
  background: var(--ph-panel-2);
  box-shadow: inset 0 3px 0 var(--ph-accent);
}
body.phsp-shell .ph-calc__result .ph-result__value { color: var(--ph-accent-hover); }
.ph-calc__result .ph-result__lines,
.ph-calc__result .ph-result__lines > div { border-color: rgba(173,192,220,.16); }
.ph-calc .ph-input input,
.ph-calc .ph-input select,
.ph-calc .ph-row input,
.ph-calc .ph-row select {
  border-color: var(--ph-panel-edge);
  background-color: var(--ph-panel-field);
}
.ph-calc .ph-seg__item span { border-color: var(--ph-panel-edge); }
.ph-calc .ph-derived > div { background: var(--ph-panel-2); }
.ph-calc .ph-howto { border-color: var(--ph-panel-line); background: rgba(86,112,154,.12); }
.ph-calc .ph-rows { border-top-color: var(--ph-panel-line); }
.ph-calc .ph-row { border-bottom-color: var(--ph-panel-line); }
.ph-calc .ph-row:nth-child(even) {
  margin-inline: calc(var(--ph-card-pad-sm) * -1);
  padding-inline: var(--ph-card-pad-sm);
  background: rgba(86,112,154,.08);
}
.ph-calc .ph-row__sum > span:last-child { color: var(--ph-accent-hover); }
.ph-calc .ph-row__sum.is-empty > span:last-child { color: var(--ph-text-muted); }
.ph-calc .ph-calc__more { border-color: var(--ph-panel-line); }
/* Grey labels on the brighter denim need to be a step lighter to stay readable (4.5:1+). */
.ph-calc { --ph-text-muted: #A39C91; }
.ph-calc__result, .ph-calc .ph-derived { --ph-text-muted: #ABA498; }

/* ==========================================================================
   05b — NICHES, PRODUCTS, SETS (1.8.0)
   Three niches on one domain: /, /kuhnya/, /brigada/. Each has its own
   header menu; they meet in the mobile menu, the footer and «Ещё пригодится».
   ========================================================================== */

/* Header: the wordmark and, in a niche, its name under it (phone) or beside it. */
.ph-header__logo { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.ph-header__niche {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.ph-header__cta {
  display: none;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ph-accent);
  border-radius: var(--ph-r-btn);
  background: var(--ph-accent-tint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ph-text);
  white-space: nowrap;
}
.ph-header__cta:hover { background: var(--ph-accent); color: #fff; }
@media (min-width: 560px) { .ph-header__cta { display: inline-flex; } }

/* The footer line under the wordmark wraps by itself on a phone. */
@media (max-width: 767px) { .ph-footer__brand p br { display: none; } }

/* Niche heroes on a phone: keep the kitchen and the room in the frame. */
@media (max-width: 999px) {
  body.ph-niche-kuhnya .ph-hero__img { object-position: 78% 50%; }
  body.ph-niche-brigada .ph-hero__img { object-position: 62% 50%; }
}

/* Niche homes open with the photo, like the main home. */
body.ph-hero-page .ph-header:not(.is-stuck) {
  background: linear-gradient(to bottom, rgba(10,9,8,.55), rgba(10,9,8,0));
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.phsp-shell.ph-hero-page { padding-top: 0; }
/* Without a photo the hero is a flat band: keep it clear of the header. */
body.ph-hero-page .ph-hero--plain { padding-top: var(--ph-header-h); }

/* Mobile menu: the other niches, under the niche's own items. */
.ph-menu__more {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: clamp(24px, 6vw, 40px);
  padding-top: clamp(18px, 4vw, 28px);
  border-top: 1px solid var(--ph-line);
}
.ph-menu__more > span {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ph-accent-ink);
}
.ph-menu__more a {
  padding: 8px 0;
  font-size: clamp(18px, 4.6vw, 22px);
  line-height: 1.25;
  color: var(--ph-text-soft);
}
.ph-menu__more a:hover { color: var(--ph-accent-hover); }
.ph-menu__more + .ph-menu__meta { padding-top: clamp(24px, 6vw, 40px); }

/* «Что входит в цену — отметьте»: two columns of checks on wider screens. */
@media (min-width: 560px) {
  .ph-calc__checks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
}

/* «Ещё пригодится» and «Или по отдельности»: cards that lead to another niche or table. */
.ph-others { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .ph-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ph-other {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: var(--ph-card-pad-sm);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-surface);
  color: var(--ph-text);
  text-decoration: none;
  transition: border-color .2s var(--ph-ease), background .2s var(--ph-ease);
}
.ph-other:hover { border-color: var(--ph-accent); background: var(--ph-surface-2); }
.ph-other b { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.ph-other > span:not(.ph-kicker):not(.ph-text-link) { font-size: 15px; line-height: 1.55; color: var(--ph-text-soft); }
.ph-other .ph-text-link { margin-top: 6px; }
@media (min-width: 1000px) { .ph-other > span:not(.ph-kicker):not(.ph-text-link) { font-size: 16px; } }

/* «Вместе дешевле»: the sets that hold this table. */
.ph-bundles__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) {
  .ph-bundles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-bundle--all { grid-column: 1 / -1; }
}
.ph-bundle {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: var(--ph-card-pad-sm);
  border: 1px solid var(--ph-panel-line);
  border-radius: var(--ph-r-card);
  background: var(--ph-panel);
}
.ph-bundle--all { border-color: var(--ph-panel-edge); background: var(--ph-panel-2); }
.ph-bundle__off {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--ph-r-btn);
  background: var(--ph-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.ph-bundle h3 { margin: 4px 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
body.phsp-shell .ph-bundle__items { margin: 0; font-size: 15px; color: var(--ph-text-soft); }
body.phsp-shell .ph-bundle__price { margin: 6px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ph-bundle__price b { font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; color: var(--ph-accent-hover); }
.ph-bundle__price s { font-size: 16px; color: var(--ph-text-muted); }
.ph-bundle .ph-button { margin-top: 6px; }
body.phsp-shell .ph-bundles__or { margin: var(--ph-gap-head) 0 14px; font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-text-muted); }

/* ==========================================================================
   05c — EMPTY FIELDS, ASSUMED NORMS, «ДОБАВЛЕНО» (1.8.1)
   Owner, 11.10.2026: no example numbers in the fields; after «Добавить в
   смету» the estimate scrolls to the added lines and colours them.
   ========================================================================== */
.ph-field.is-invalid .ph-input select { border-color: var(--ph-bad); box-shadow: inset 0 0 0 1px var(--ph-bad); }

/* Norms used for empty optional fields, named under the result. */
body.phsp-shell .ph-result__assume {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--ph-panel-edge);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ph-text-soft);
}
body.phsp-shell .ph-result__assume[hidden] { display: none; }

/* «✓ Добавлено в смету» in the calculator: a green box with the way on. */
body.phsp-shell .ph-result__status.is-added {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(140,192,154,.55);
  border-radius: 14px;
  background: var(--ph-ok-tint);
  color: var(--ph-text);
}
body.phsp-shell .ph-result__status.is-added p { margin: 0; font-size: inherit; line-height: 1.5; color: var(--ph-text); }
body.phsp-shell .ph-result__status.is-added b { color: var(--ph-ok); font-weight: 650; }
body.phsp-shell .ph-result__status.is-added .ph-button {
  justify-self: start;
  min-height: 46px;
  padding: 10px 22px;
  border-color: var(--ph-ok);
  color: var(--ph-text);
  text-decoration: none;
}
body.phsp-shell .ph-result__status.is-added .ph-button:hover { background: rgba(140,192,154,.18); color: #fff; }

/* What the four numbers under the room are for. */
body.phsp-shell .ph-derived__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ph-text-soft);
}
body.phsp-shell .ph-derived__note.is-todo { color: #E6C17A; }

/* Lines from a calculator: always labelled, coloured when just added. */
.ph-row__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ph-accent);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .08em;
}
.ph-rows__added {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(140,192,154,.55);
  border-radius: 14px 14px 0 0;
  background: var(--ph-ok-tint);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ph-text);
  scroll-margin-top: calc(var(--ph-header-h) + 16px);
}
.ph-rows__added b { display: block; margin-bottom: 4px; color: var(--ph-ok); font-weight: 650; }
.ph-calc .ph-row.is-new,
.ph-row.is-new {
  margin-inline: calc(var(--ph-card-pad-sm) * -1);
  padding-inline: calc(var(--ph-card-pad-sm) - 3px);
  border-left: 3px solid var(--ph-ok);
  background: rgba(140,192,154,.11);
}
.ph-rows__added + .ph-row.is-new { border-top: 0; }
.ph-row.is-new .ph-row__tag { background: var(--ph-ok); color: #14231A; }
.ph-calc .ph-row__sum.is-todo > span:last-child,
.ph-row__sum.is-todo > span:last-child { color: #E6C17A; font-size: 13px; font-weight: 600; }
@media (min-width: 768px) {
  .ph-rows__added { margin-inline: calc(var(--ph-card-pad-sm) * -1); border-radius: 0; border-inline: 0; }
}
@media (min-width: 1000px) {
  body.phsp-shell .ph-result__assume,
  body.phsp-shell .ph-derived__note,
  .ph-rows__added { font-size: 15px; }
}

/* ==========================================================================
   06 — RESPONSIVE
   Mobile-first. Everything above is the phone layout; these queries only
   ever ADD columns. Check at 375 / 390 / 430 / 768 / 1024 / 1280 / 1440.
   ========================================================================== */

/* ---------- >= 560px ---------- */
@media (min-width: 560px) {
  .ph-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-derived { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ph-result__actions { flex-direction: row; flex-wrap: wrap; }
  .ph-result__actions .ph-button { width: auto; flex: 1 1 auto; }
}

/* ---------- >= 768px ---------- */
@media (min-width: 768px) {
  /* Brand on its own row, then Ремонт · Кухня · Бригада · Информация. */
  .ph-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ph-footer__brand { grid-column: 1 / -1; }
  .ph-smeta-link__word { display: inline; }
  .ph-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ph-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-calc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-calc__grid--single { grid-template-columns: minmax(0, 1fr); }
  .ph-article > .ph-a-example {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 104px);
  }
  .ph-article > .ph-a-example--flip > figure { order: 2; }

  .ph-consent { padding: 0 24px 20px; }
  .ph-consent__card { flex-direction: row; align-items: center; gap: 24px; padding: 14px 16px 14px 22px; }
  .ph-consent__text { flex: 1 1 auto; }
  .ph-consent__actions { flex: 0 0 auto; }
  .ph-consent__actions .ph-button { flex: 0 0 auto; min-width: 150px; }

  .ph-legal__meta {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: baseline;
    gap: 14px 24px;
  }
  .ph-legal__meta dt { padding-top: 2px; }
  .ph-legal__meta dd { margin: 0; }
  .ph-legal__meta dd + dt { margin-top: 0; }

  /* Estimate rows become a table: Статья | Количество | Цена | Сумма | × */
  .ph-rows__head {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.45fr) minmax(0, .95fr) minmax(0, .95fr) 44px;
    gap: 10px;
    margin-top: clamp(18px, 2vw, 24px);
    padding-bottom: 10px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ph-text-muted);
  }
  .ph-rows__head span:nth-child(4) { text-align: right; }
  .ph-rows { margin-top: 0; }
  .ph-row {
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.45fr) minmax(0, .95fr) minmax(0, .95fr) 44px;
    grid-template-areas: "name qty price sum del";
    align-items: start;
  }
  .ph-row .ph-row__label { display: none; }
  .ph-row__name input { font-size: 15px; }
  .ph-row__sum { flex-direction: row; justify-content: flex-end; min-height: 48px; align-items: center; text-align: right; }
}

/* ---------- >= 1000px : desktop navigation, side-by-side calculator ---------- */
@media (min-width: 1000px) {
  .ph-burger { display: none; }
  .ph-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(24px, 3vw, 56px);
  }
  .ph-header__logo { grid-column: 1; justify-self: start; font-size: 16px; flex-direction: row; align-items: baseline; gap: 14px; }
  .ph-header__niche { font-size: 11px; }
  .ph-header__nav {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 2vw, 34px);
  }
  .ph-header__nav a {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ph-text);
  }
  .ph-header__nav a:hover,
  .ph-header__nav a[aria-current="page"] { color: var(--ph-accent-ink); }
  .ph-header__actions { grid-column: 3; }
  .ph-menu { display: none; }

  .ph-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ph-tool--main { grid-column: span 2; }
  .ph-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-post__head--cover {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(48px, 6vw, 104px);
  }

  .ph-calc {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
    gap: 16px;
  }
  .ph-calc > .ph-calc__result {
    position: sticky;
    top: calc(var(--ph-header-h) + 20px);
  }
  .ph-smeta { grid-template-columns: minmax(0, 1fr); }
  .ph-smeta__body { grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
  .ph-smeta__total { position: sticky; top: calc(var(--ph-header-h) + 20px); }
  .ph-calc__grid--room { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- >= 1200px : the footer fits in one row ---------- */
@media (min-width: 1200px) {
  .ph-footer__cols { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }
  .ph-footer__brand { grid-column: auto; }
}

/* ---------- >= 1280px ---------- */
@media (min-width: 1280px) {
  .ph-hero { min-height: min(86svh, 860px); }
}

/* ---------- >= 1000px : desktop reading size ----------
   Owner's note (10.10.2026): on a computer the site read too small. The phone
   sizes above stay; on wide screens every text step goes up about 15–25%.
   Kept in one block so the desktop scale can be tuned in one place. */
@media (min-width: 1000px) {
  body.phsp-shell { font-size: 18px; }
  :where(body.phsp-shell) p { font-size: clamp(17px, 1.2vw, 19px); }
  :where(body.phsp-shell) h2 { font-size: clamp(34px, 3.4vw, 50px); }
  .ph-intro p,
  .ph-head p { font-size: clamp(18px, 1.35vw, 21px); }

  .ph-kicker { font-size: 13px; }
  .ph-button { min-height: 60px; padding: 14px 36px; font-size: 14px; }
  .ph-text-link { font-size: 13px; }

  .ph-header__logo { font-size: 18px; }
  .ph-header__nav a { font-size: 13px; }
  .ph-smeta-link { font-size: 13px; }
  .ph-header__cta { min-height: 44px; padding: 0 22px; font-size: 12px; }
  .ph-smeta-link__count { font-size: 12px; }

  .ph-footer__brand > a { font-size: 19px; }
  .ph-footer__brand p,
  .ph-footer__col a,
  .ph-footer .ph-footer__linkbtn { font-size: 16px; }
  .ph-footer__col > span { font-size: 12px; }
  .ph-footer__bottom { font-size: 13px; }
  .ph-consent__text { font-size: 15px; }
  .ph-consent__actions .ph-button { font-size: 12px; }

  .ph-hero__title { font-size: clamp(56px, 5.4vw, 88px); }
  body.phsp-shell .ph-hero__lead { font-size: clamp(19px, 1.5vw, 24px); }

  .ph-tool__num { font-size: 13px; }
  .ph-tool h3 { font-size: clamp(24px, 2vw, 30px); }
  .ph-tool p { font-size: 17px; }
  .ph-lines span,
  .ph-checklist li { font-size: 17px; }
  .ph-steps li { font-size: 18px; }
  .ph-steps li::before { font-size: 13px; }
  body.phsp-shell .ph-method__note { font-size: 16px; }
  .ph-faq summary { font-size: clamp(19px, 1.45vw, 22px); }
  .ph-legal h2 { font-size: clamp(20px, 1.6vw, 24px); }
  .ph-legal__meta dt { font-size: 12px; }

  .ph-post-card__meta,
  .ph-post__meta { font-size: 13px; }
  .ph-post-card__title { font-size: clamp(22px, 1.8vw, 26px); }
  .ph-post-card__excerpt { font-size: 17px; }
  .ph-article { font-size: clamp(18px, 1.25vw, 20px); }

  .ph-calc__title { font-size: clamp(26px, 2.2vw, 32px); }
  body.phsp-shell .ph-calc__lead { font-size: 16px; }
  .ph-field__label { font-size: 12.5px; }
  .ph-input input,
  .ph-input select { height: 60px; font-size: 19px; }
  .ph-input i { font-size: 14px; }
  .ph-field__hint,
  .ph-field__error { font-size: 14px; }
  .ph-seg__item span { font-size: 16px; }
  .ph-check { font-size: 17px; }
  .ph-calc__more > summary { font-size: 12.5px; }

  body.phsp-shell .ph-result__label { font-size: 15px; }
  body.phsp-shell .ph-result__value { font-size: clamp(46px, 4vw, 62px); }
  body.phsp-shell .ph-result__sub { font-size: 17px; }
  .ph-result__lines dt { font-size: 16px; }
  .ph-result__lines dd { font-size: 17px; }
  body.phsp-shell .ph-result__error,
  body.phsp-shell .ph-result__status,
  body.phsp-shell .ph-badge { font-size: 16px; }
  body.phsp-shell .ph-result__note { font-size: 13px; }

  .ph-derived dt { font-size: 11px; }
  .ph-derived dd { font-size: 21px; }
  .ph-rows__head { font-size: 11px; }
  .ph-row input { height: 52px; font-size: 17px; }
  .ph-row select { height: 52px; font-size: 15px; }
  .ph-row__name input { font-size: 16px; }
  .ph-row__tag { font-size: 12px; }
  .ph-row__sum { font-size: 17px; min-height: 52px; }
  .ph-smeta__body { grid-template-columns: minmax(0, 1fr) 400px; }

  body.phsp-shell .ph-buy__note { font-size: 16px; }
  body.phsp-shell .ph-buy__legal { font-size: 13px; }
  body.phsp-shell .ph-shots figcaption { font-size: 15px; }
}

/* ==========================================================================
   07 — MOTION AND PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.phsp-shell *,
  body.phsp-shell *::before,
  body.phsp-shell *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .ph-hero__img,
  .ph-hero__content { animation: none; }
}

/* Short viewports: a sticky panel must never trap the page. */
@media (max-height: 720px) {
  .ph-calc > .ph-calc__result,
  .ph-smeta__total { position: static; }
}

/* Print: the estimate on white paper, values instead of fields. */
@media print {
  .ph-header, .ph-menu, .ph-footer, .ph-consent, .ph-skip,
  .ph-faq, .ph-statement, .ph-product, .ph-method, .ph-tools,
  .ph-rows__add, .ph-result__actions, .ph-row__del, .ph-result__note,
  .ph-calc__more, .ph-field__hint, .ph-ad { display: none !important; }
  body.phsp-shell { background: #fff; color: #000; padding: 0 !important; }
  body.phsp-shell * { color: #000 !important; background: none !important; box-shadow: none !important; }
  .ph-calc__lead, .ph-smeta .ph-kicker, .ph-row__tag { display: none !important; }
  .ph-calc__form, .ph-calc__result { border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 0 18px !important; position: static !important; }
  .ph-derived > div { border: 1px solid #bbb !important; }
  .ph-row input, .ph-row select, .ph-input input, .ph-input select { border: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; background-image: none !important; text-overflow: clip; }
  .ph-row { break-inside: avoid; align-items: center !important; padding: 6px 0 !important; margin-inline: 0 !important; }
  .ph-row__sum, .ph-row__sum > span:last-child { min-height: 0 !important; }
  .ph-rows__head { border-bottom: 1px solid #000; }
  .ph-smeta__body, .ph-calc { display: block; }
  .ph-section { padding: 12px 0; }
  .ph-page > .ph-intro { padding-bottom: 8px !important; }
  .ph-bridge, .ph-upsell, .ph-more-room, .ph-sticky-buy, .ph-preview-note { display: none !important; }
  .ph-howto, .ph-row__hint { display: none !important; }
  .ph-print-only { display: block !important; margin-top: 18px; font-size: 11px; }
}
