/*
Theme Name: SSSR69 One Page
Theme URI: https://sssr69.ru/
Author: SSSR69
Description: One-page block theme for a construction company landing page.
Version: 1.0.8
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: sssr69-onepage
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("assets/fonts/RobotoSlab-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(98% 0.006 88);
  --surface: oklch(95% 0.012 84);
  --surface-strong: oklch(91% 0.018 84);
  --ink: oklch(18% 0.026 145);
  --muted: oklch(38% 0.025 130);
  --line: oklch(84% 0.018 95);
  --forest: oklch(31% 0.075 145);
  --forest-deep: oklch(23% 0.06 145);
  --timber: oklch(62% 0.105 68);
  --brick: oklch(43% 0.095 35);
  --brick-dark: oklch(35% 0.082 35);
  --salad: oklch(82% 0.18 132);
  --salad-strong: oklch(74% 0.17 134);
  --white: oklch(100% 0 0);
  --header-h: 76px;
  --wrap: min(1440px, calc(100vw - clamp(32px, 6vw, 96px)));
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.sssr-site {
  min-height: 100dvh;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  color: var(--white);
  background: color-mix(in oklch, var(--forest-deep) 84%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--white) 16%, transparent);
  backdrop-filter: blur(14px);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  border-bottom-color: var(--line);
}

.header-inner {
  width: var(--wrap);
  min-height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  color: oklch(12% 0.045 145);
  background: var(--timber);
  border-radius: 8px;
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text small {
  margin-top: 3px;
  color: currentColor;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
}

.site-nav a,
.phone-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover,
.phone-link:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.14;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::before {
  content: "";
  display: none;
  flex: 0 0 auto;
  width: 1.08em;
  height: 1.08em;
  background: currentColor;
  mask: var(--button-icon) center / contain no-repeat;
  -webkit-mask: var(--button-icon) center / contain no-repeat;
}

.button[href^="tel:"]::before,
.button[href^="#"]::before,
.button[type="submit"]::before {
  display: block;
}

.button[href^="tel:"] {
  --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.5 2.9 3.7 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.4.6 3.7.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 3.8c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.7.1.4 0 .8-.3 1.1l-2.2 2.2Z'/%3E%3C/svg%3E");
}

.button[href^="#"],
.button[type="submit"] {
  --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 4h14v16H5V4Zm3 4v2h8V8H8Zm0 4v2h8v-2H8Zm0 4v2h5v-2H8Z'/%3E%3C/svg%3E");
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: var(--white);
  background: var(--brick);
}

.button-primary:hover {
  background: var(--brick-dark);
}

.button-secondary {
  color: var(--white);
  border-color: color-mix(in oklch, var(--white) 54%, transparent);
  background: color-mix(in oklch, var(--forest-deep) 42%, transparent);
}

.button-secondary:hover {
  background: color-mix(in oklch, var(--forest-deep) 62%, transparent);
}

.button[href^="tel:"] {
  color: var(--forest-deep);
  background: var(--salad);
  border-color: var(--salad);
}

.button[href^="tel:"]:hover {
  background: var(--salad-strong);
  border-color: var(--salad-strong);
}

.site-header.is-scrolled .button-secondary {
  color: var(--forest-deep);
  border-color: var(--forest);
  background: transparent;
}

.site-header.is-scrolled .button[href^="tel:"] {
  color: var(--forest-deep);
  background: var(--salad);
  border-color: var(--salad);
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  color: var(--white);
  background: var(--forest-deep);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--forest-deep) 94%, transparent) 0%, color-mix(in oklch, var(--forest-deep) 72%, transparent) 36%, color-mix(in oklch, var(--forest-deep) 18%, transparent) 72%),
    linear-gradient(180deg, color-mix(in oklch, var(--forest-deep) 18%, transparent), color-mix(in oklch, var(--forest-deep) 36%, transparent));
}

.hero-inner {
  width: var(--wrap);
  min-height: calc(100dvh - var(--header-h));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: clamp(72px, 9vw, 138px) 0 clamp(44px, 7vw, 88px);
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: color-mix(in oklch, var(--white) 82%, var(--timber));
  font-size: 15px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--timber);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  font-size: clamp(48px, 6.6vw, 94px);
  font-weight: 820;
}

h2 {
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 760;
}

h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 760;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: color-mix(in oklch, var(--white) 84%, transparent);
  font-size: clamp(18px, 1.6vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(920px, 100%);
  margin-top: clamp(46px, 7vw, 88px);
  background: color-mix(in oklch, var(--white) 20%, transparent);
  border: 1px solid color-mix(in oklch, var(--white) 20%, transparent);
}

.fact {
  min-height: 126px;
  padding: 22px;
  background: color-mix(in oklch, var(--forest-deep) 74%, transparent);
}

.fact strong {
  display: block;
  color: var(--white);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.fact span {
  display: block;
  margin-top: 10px;
  color: color-mix(in oklch, var(--white) 74%, transparent);
  font-size: 15px;
}

.section {
  padding: clamp(74px, 9vw, 132px) 0;
}

.section-tight {
  padding: clamp(52px, 7vw, 96px) 0;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(26px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.section-head p {
  max-width: 66ch;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 22px;
  max-width: 76ch;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 21px);
}

.about-note {
  padding: clamp(26px, 4vw, 42px);
  color: var(--white);
  background: var(--forest);
  border-radius: var(--radius);
}

.about-note p {
  margin-top: 16px;
  color: color-mix(in oklch, var(--white) 78%, transparent);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.advantage {
  min-height: 250px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg) 72%, var(--surface));
}

.advantage b {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  margin-bottom: 32px;
  color: var(--white);
  background: var(--forest);
  border-radius: 50%;
  font-size: 14px;
}

.advantage p {
  margin-top: 14px;
  color: var(--muted);
}

.materials {
  background: var(--bg);
}

.materials-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  color: var(--white);
  background:
    linear-gradient(135deg, var(--forest-deep), color-mix(in oklch, var(--forest-deep) 86%, var(--timber))),
    var(--forest-deep);
  border-radius: var(--radius);
}

.materials-copy h2 {
  color: var(--white);
  font-size: clamp(34px, 4vw, 58px);
}

.materials-copy p {
  margin-top: 18px;
  max-width: 62ch;
  color: color-mix(in oklch, var(--white) 78%, transparent);
  font-size: clamp(17px, 1.4vw, 21px);
}

.materials-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.materials-points span {
  padding: 10px 12px;
  color: var(--white);
  background: color-mix(in oklch, var(--white) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--white) 14%, transparent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--white) 16%, transparent);
  border-radius: calc(var(--radius) - 2px);
  background: color-mix(in oklch, var(--white) 16%, transparent);
}

.brand-wall img {
  width: 100%;
  height: clamp(96px, 9vw, 140px);
  object-fit: contain;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--bg);
}

.prices {
  background: var(--surface);
}

.price-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.price-group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-group h3 {
  padding: 26px clamp(22px, 3vw, 34px);
  background: var(--forest-deep);
  color: var(--white);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 20px clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.price-row:first-of-type {
  border-top: 0;
}

.price-row span {
  color: var(--muted);
}

.price-row strong {
  white-space: nowrap;
  color: var(--brick-dark);
  font-size: 19px;
}

.price-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  padding: 18px clamp(18px, 3vw, 30px);
  color: var(--white);
  background: var(--forest-deep);
  font-size: 15px;
  font-weight: 900;
  text-align: left;
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
}

.price-table tr {
  border-bottom: 1px solid var(--line);
}

.price-table tbody tr:last-child {
  border-bottom: 0;
}

.price-table td {
  padding: 17px clamp(18px, 3vw, 30px);
  vertical-align: middle;
}

.price-table td strong,
.price-table td span {
  display: block;
}

.price-table td strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.price-table td span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.price-table td:last-child {
  color: var(--brick-dark);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.addon-prices {
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid color-mix(in oklch, var(--line) 78%, var(--forest-deep));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--bg) 88%, var(--timber)) 0%, var(--bg) 52%),
    var(--bg);
}

.addon-prices-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.addon-prices-head h3 {
  font-size: clamp(24px, 2.3vw, 36px);
  color: var(--forest-deep);
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: 22px;
  align-items: start;
}

.addon-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg);
}

.addon-card-head {
  display: grid;
  gap: 4px;
  padding: 18px 18px 16px;
  background: color-mix(in oklch, var(--forest-deep) 94%, var(--timber));
  color: var(--white);
}

.addon-card-head b {
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.05;
}

.addon-card-head span {
  color: color-mix(in oklch, var(--white) 68%, transparent);
  font-size: 13px;
  line-height: 1.35;
}

.addon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.addon-row span {
  min-width: 0;
  color: var(--muted);
  line-height: 1.42;
}

.addon-row strong {
  color: var(--brick-dark);
  white-space: nowrap;
  font-size: 15px;
}

.site-inline-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--forest-deep);
}

.site-inline-cta h3 {
  font-size: clamp(25px, 2.6vw, 38px);
}

.site-inline-cta p {
  max-width: 62ch;
  margin-top: 10px;
  color: color-mix(in oklch, var(--white) 74%, transparent);
}

.site-inline-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-inline-cta .button-secondary {
  color: var(--white);
  border-color: color-mix(in oklch, var(--white) 48%, transparent);
  background: transparent;
}

.site-inline-cta-quiet {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.site-inline-cta-quiet p {
  color: var(--muted);
}

.site-inline-cta-quiet .button-secondary {
  color: var(--forest-deep);
  border-color: var(--forest);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-step {
  min-height: 220px;
  padding: 28px;
  background: var(--bg);
}

.process-step::before {
  content: attr(data-step);
  display: block;
  margin-bottom: 38px;
  color: var(--timber);
  font-family: "Roboto Slab", serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.process-step p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.photo-slider {
  display: grid;
  gap: clamp(10px, 1.6vw, 16px);
  padding: clamp(12px, 2vw, 18px);
  color: var(--ink);
  background: color-mix(in oklch, var(--surface) 78%, var(--white));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.photo-slider:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--timber) 72%, transparent);
  outline-offset: 4px;
}

.photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.photo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
  font-weight: 800;
}

.photo-count {
  color: var(--forest-deep);
  font-family: "Roboto Slab", serif;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
}

.photo-actions {
  display: flex;
  gap: 8px;
}

.photo-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--forest-deep);
  background: var(--bg);
  border: 1px solid color-mix(in oklch, var(--forest) 22%, var(--line));
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.photo-btn:hover {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
  transform: translateY(-1px);
}

.photo-btn:active {
  transform: translateY(1px);
}

.photo-btn:focus-visible,
.photo-thumb:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--timber) 68%, transparent);
  outline-offset: 3px;
}

.photo-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--forest-deep) 20%, transparent);
  border-radius: calc(var(--radius) - 2px);
  background: color-mix(in oklch, var(--forest-deep) 92%, var(--ink));
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.photo-stage.is-dragging {
  cursor: grabbing;
}

.photo-track {
  display: flex;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.photo-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
  height: clamp(340px, 52vw, 640px);
  margin: 0;
  background: color-mix(in oklch, var(--forest-deep) 90%, var(--ink));
}

.photo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
}

.photo-progress {
  height: 3px;
  overflow: hidden;
  background: color-mix(in oklch, var(--forest) 13%, var(--line));
  border-radius: 999px;
}

.photo-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--timber));
  border-radius: inherit;
  transform: scaleX(var(--photo-progress, 0.025));
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.photo-thumbs::-webkit-scrollbar {
  display: none;
}

.photo-thumb {
  flex: 0 0 clamp(64px, 7vw, 88px);
  height: clamp(46px, 5.2vw, 62px);
  padding: 0;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid color-mix(in oklch, var(--forest) 16%, var(--line));
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.68;
  scroll-snap-align: center;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.photo-thumb:hover,
.photo-thumb.is-active {
  opacity: 1;
}

.photo-thumb.is-active {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews {
  color: var(--white);
  background: var(--forest-deep);
}

.reviews .section-head p {
  color: color-mix(in oklch, var(--white) 70%, transparent);
}

.review-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}

.review {
  min-height: 280px;
  padding: clamp(24px, 3vw, 36px);
  background: color-mix(in oklch, var(--white) 9%, transparent);
  border: 1px solid color-mix(in oklch, var(--white) 15%, transparent);
  border-radius: var(--radius);
}

.review blockquote {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
}

.review cite {
  display: block;
  margin-top: 28px;
  color: color-mix(in oklch, var(--white) 88%, var(--timber));
  font-style: normal;
  font-weight: 850;
}

.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.contact .section-head {
  display: block;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.contact .section-head p {
  margin-top: 18px;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-info a {
  text-decoration: none;
}

.contact-line {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-line strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(20px, 2vw, 30px);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 850;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in oklch, var(--muted) 78%, var(--ink));
}

.form-message {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  color: var(--forest-deep);
  background: color-mix(in oklch, var(--forest) 12%, var(--bg));
}

.form-message.error {
  color: var(--brick-dark);
  background: color-mix(in oklch, var(--brick) 12%, var(--bg));
}

.form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.form-consent a {
  color: var(--forest-deep);
  font-weight: 850;
}

.site-footer {
  padding: 34px 0;
  color: color-mix(in oklch, var(--white) 78%, transparent);
  background: var(--forest-deep);
}

.footer-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.footer-copy p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 620px;
}

.footer-links a,
.footer-cookie-button {
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-cookie-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-page {
  background: var(--bg);
  color: var(--ink);
}

.legal-main {
  padding: clamp(58px, 8vw, 108px) 0;
}

.legal-shell {
  max-width: 980px;
}

.legal-shell > .wp-block-post-title {
  max-width: 13ch;
  margin: 0 0 clamp(28px, 5vw, 54px);
  color: var(--forest-deep);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.legal-document {
  display: grid;
  gap: 20px;
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.68;
}

.legal-document > * {
  margin: 0;
}

.legal-document h2 {
  max-width: 22ch;
  margin-top: clamp(22px, 4vw, 44px);
  color: var(--forest-deep);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.legal-document h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
}

.legal-document p,
.legal-document li {
  max-width: 74ch;
  color: color-mix(in oklch, var(--ink) 92%, var(--muted));
}

.legal-document a {
  color: var(--forest);
  font-weight: 800;
  text-underline-offset: 4px;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.legal-requisites {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cookie-consent {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(720px, calc(100vw - 28px));
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 8px color-mix(in oklch, var(--forest-deep) 13%, transparent);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__copy {
  display: grid;
  gap: 6px;
}

.cookie-consent__copy strong {
  color: var(--forest-deep);
  font-size: 1rem;
}

.cookie-consent__copy p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.48;
}

.cookie-consent__copy a {
  color: var(--forest);
  font-weight: 800;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-consent__button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.cookie-consent__button-primary {
  color: var(--white);
  background: var(--forest);
}

.cookie-consent__button-quiet {
  color: var(--forest-deep);
  background: var(--white);
}

.cookie-consent__button:focus-visible,
.footer-cookie-button:focus-visible {
  outline: 3px solid var(--timber);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 680ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 180ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 16px;
  }

  .hero-facts,
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-groups,
  .about-grid,
  .contact-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-panel {
    grid-template-columns: 1fr;
  }

  .brand-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
    --wrap: min(100% - 32px, 720px);
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px max(16px, calc((100vw - 720px) / 2));
    color: var(--ink);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
  }

  .legal-nav {
    display: none;
  }

  .header-actions .phone-link {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero::after {
    background: linear-gradient(180deg, color-mix(in oklch, var(--forest-deep) 88%, transparent), color-mix(in oklch, var(--forest-deep) 66%, transparent));
  }

  .hero-inner {
    min-height: calc(100dvh - var(--header-h));
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.6vw, 50px);
    line-height: 1.08;
  }

  .hero-facts,
  .advantage-grid,
  .addon-grid,
  .brand-wall,
  .process-grid,
  .review-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .materials-panel {
    padding: 24px;
  }

  .price-table {
    table-layout: fixed;
  }

  .price-table th,
  .price-table td {
    padding: 14px 12px;
  }

  .price-table th:first-child,
  .price-table td:first-child {
    width: 58%;
  }

  .price-table th:last-child,
  .price-table td:last-child {
    width: 42%;
  }

  .price-table td strong {
    font-size: 16px;
  }

  .price-table td span {
    font-size: 12px;
  }

  .price-table td:last-child {
    font-size: 15px;
    white-space: normal;
  }

  .photo-toolbar,
  .photo-meta {
    align-items: flex-start;
  }

  .photo-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .photo-meta {
    gap: 6px 10px;
  }

  .photo-meta span:not(.photo-count) {
    font-size: 14px;
    line-height: 1.25;
  }

  .photo-slider {
    padding: 10px;
  }

  .photo-slide {
    height: clamp(260px, 70vw, 500px);
  }

  .photo-btn {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .photo-thumb {
    flex-basis: 62px;
    height: 46px;
  }

  .site-inline-cta {
    grid-template-columns: 1fr;
  }

  .site-inline-cta-actions {
    justify-content: flex-start;
  }

  .legal-main {
    padding: 46px 0 68px;
  }

  .footer-inner,
  .footer-links {
    display: grid;
    justify-content: start;
  }

  .cookie-consent {
    left: 14px;
    right: 14px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .cookie-consent__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  :root {
    --wrap: min(100% - 24px, 420px);
  }

  .brand-mark {
    width: 42px;
    font-size: 16px;
  }

  .brand-text small {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .site-inline-cta-actions .button {
    width: 100%;
  }

  .legal-shell > .wp-block-post-title {
    max-width: 100%;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .fact,
  .advantage,
  .process-step,
  .review {
    min-height: auto;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .price-row strong {
    white-space: normal;
  }

  .addon-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .addon-row strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Roof2 landing */
.roof2-page {
  --roof2-bg: oklch(98.5% 0.004 92);
  --roof2-surface: oklch(100% 0 0);
  --roof2-soft: oklch(96.5% 0.009 96);
  --roof2-ink: oklch(17% 0.02 120);
  --roof2-muted: oklch(39% 0.02 118);
  --roof2-line: oklch(86% 0.012 94);
  --roof2-yellow: oklch(86% 0.17 88);
  --roof2-yellow-soft: oklch(95% 0.05 92);
  --roof2-green: oklch(31% 0.075 145);
  --roof2-green-deep: oklch(22% 0.055 145);
  --roof2-blue: oklch(49% 0.16 253);
  background: var(--roof2-bg);
  color: var(--roof2-ink);
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: clip;
}

.roof2-page h1,
.roof2-page h2,
.roof2-page h3,
.roof2-page p {
  margin: 0;
}

.roof2-page h1,
.roof2-page h2 {
  text-wrap: balance;
}

.roof2-page p {
  text-wrap: pretty;
}

.roof2-shell {
  width: min(1280px, calc(100vw - clamp(24px, 5vw, 88px)));
  margin: 0 auto;
}

.roof2-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: color-mix(in oklch, var(--roof2-surface) 94%, transparent);
  border-bottom: 1px solid var(--roof2-line);
  backdrop-filter: blur(12px);
}

body.admin-bar .roof2-topbar {
  top: 32px;
}

.roof2-topbar-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.roof2-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.roof2-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 10px;
  color: var(--roof2-ink);
  background: var(--roof2-yellow);
  font-family: "Roboto Slab", serif;
  font-weight: 900;
}

.roof2-brand strong,
.roof2-brand small {
  display: block;
  line-height: 1.08;
}

.roof2-brand small {
  margin-top: 3px;
  color: var(--roof2-muted);
  font-size: 13px;
  font-weight: 700;
}

.roof2-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
}

.roof2-nav a,
.roof2-phone {
  color: var(--roof2-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.roof2-nav a {
  color: var(--roof2-muted);
}

.roof2-nav a:hover,
.roof2-phone:hover {
  color: var(--roof2-green-deep);
}

.roof2-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.roof2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.roof2-button:active {
  transform: translateY(1px);
}

.roof2-button-yellow {
  color: var(--roof2-ink);
  background: var(--roof2-yellow);
}

.roof2-button-yellow:hover {
  background: oklch(82% 0.17 88);
}

.roof2-button-ghost {
  color: var(--roof2-green-deep);
  border-color: var(--roof2-green);
  background: transparent;
}

.roof2-button-ghost:hover {
  color: var(--white);
  background: var(--roof2-green);
}

.roof2-button-dark {
  color: var(--white);
  background: var(--roof2-green-deep);
}

.roof2-button-dark:hover {
  background: var(--roof2-green);
}

.roof2-button-clear {
  color: var(--roof2-green-deep);
  border-color: var(--roof2-line);
  background: var(--roof2-surface);
}

.roof2-button-clear:hover {
  border-color: var(--roof2-green);
}

.roof2-hero {
  position: relative;
  padding: clamp(52px, 7vw, 110px) 0 clamp(48px, 6vw, 88px);
  background:
    linear-gradient(108deg, var(--roof2-bg) 0 58%, var(--roof2-yellow-soft) 58% 100%),
    var(--roof2-bg);
  border-bottom: 1px solid var(--roof2-line);
  isolation: isolate;
}

.roof2-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42vw;
  height: 10px;
  background: var(--roof2-yellow);
  z-index: -1;
}

.roof2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: start;
  gap: clamp(34px, 6vw, 84px);
}

.roof2-hero-copy {
  max-width: 760px;
}

.roof2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid color-mix(in oklch, var(--roof2-yellow) 48%, var(--roof2-line));
  border-radius: 999px;
  background: color-mix(in oklch, var(--roof2-yellow) 20%, var(--roof2-surface));
  font-size: 14px;
  font-weight: 900;
}

.roof2-kicker span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--roof2-yellow);
}

.roof2-page h1 {
  max-width: 10.5ch;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.roof2-lead {
  max-width: 64ch;
  margin-top: 24px;
  color: var(--roof2-muted);
  font-size: 20px;
  line-height: 1.55;
}

.roof2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.roof2-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.roof2-trust-row div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--roof2-line);
  border-radius: 14px;
  background: color-mix(in oklch, var(--roof2-surface) 86%, transparent);
}

.roof2-trust-row strong {
  display: block;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.roof2-trust-row span {
  display: block;
  margin-top: 10px;
  color: var(--roof2-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.roof2-master-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--roof2-surface);
  box-shadow: 0 14px 14px color-mix(in oklch, var(--roof2-green-deep) 10%, transparent);
}

.roof2-master-photo {
  position: relative;
  aspect-ratio: 1.18;
  background: var(--roof2-soft);
}

.roof2-master-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roof2-master-photo span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--roof2-green);
  font-size: 13px;
  font-weight: 900;
}

.roof2-master-photo span::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--white);
}

.roof2-master-body {
  padding: 24px;
}

.roof2-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.roof2-rating strong {
  font-size: 26px;
  line-height: 1;
}

.roof2-rating span,
.roof2-review-author span {
  color: var(--roof2-yellow);
  letter-spacing: 0;
}

.roof2-rating a {
  color: var(--roof2-blue);
  font-weight: 800;
}

.roof2-master-body h2 {
  font-size: 32px;
  line-height: 1.1;
}

.roof2-master-body p {
  margin-top: 14px;
  color: var(--roof2-muted);
}

.roof2-service-badge {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--roof2-yellow-soft);
}

.roof2-service-badge b,
.roof2-service-badge span {
  display: block;
}

.roof2-service-badge span {
  margin-top: 2px;
  color: var(--roof2-muted);
  font-size: 14px;
  font-weight: 700;
}

.roof2-master-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.roof2-master-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--roof2-muted);
  background: var(--roof2-soft);
  font-size: 13px;
  font-weight: 800;
}

.roof2-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.roof2-video-grid,
.roof2-process-grid,
.roof2-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

.roof2-video-section {
  background: var(--roof2-surface);
}

.roof2-page h2 {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 3.25rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.roof2-video-grid p,
.roof2-section-head p,
.roof2-order-copy p {
  max-width: 66ch;
  margin-top: 16px;
  color: var(--roof2-muted);
  font-size: 19px;
  line-height: 1.58;
}

.roof2-note {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 14px;
  background: var(--roof2-yellow-soft);
}

.roof2-note strong {
  font-size: 18px;
}

.roof2-note span {
  color: var(--roof2-muted);
}

.roof2-video-frame {
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--roof2-ink);
  box-shadow: 0 14px 14px color-mix(in oklch, var(--roof2-green-deep) 12%, transparent);
}

.roof2-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.roof2-prices {
  background: var(--roof2-soft);
}

.roof2-section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(280px, 0.78fr);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: 36px;
}

.roof2-price-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.roof2-price-card {
  grid-column: span 2;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--roof2-line);
  border-radius: 14px;
  background: var(--roof2-surface);
}

.roof2-price-card-large {
  grid-column: span 3;
  background: var(--roof2-green-deep);
  color: var(--white);
}

.roof2-price-card:nth-child(2) {
  grid-column: span 3;
}

.roof2-price-card h3 {
  font-size: 23px;
  line-height: 1.18;
}

.roof2-price-card p {
  margin-top: 12px;
  color: var(--roof2-muted);
}

.roof2-price-card-large p {
  color: color-mix(in oklch, var(--white) 78%, transparent);
}

.roof2-price-card strong {
  display: block;
  margin-top: auto;
  padding-top: 24px;
  color: var(--roof2-green-deep);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 31px;
  line-height: 1.1;
}

.roof2-price-card-large strong {
  color: var(--roof2-yellow);
}

.roof2-price-card span {
  margin-top: 8px;
  color: var(--roof2-muted);
  font-size: 14px;
  font-weight: 800;
}

.roof2-price-card-large span {
  color: color-mix(in oklch, var(--white) 74%, transparent);
}

.roof2-guarantee {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 16px;
  background: var(--roof2-yellow-soft);
}

.roof2-guarantee-mark {
  display: grid;
  place-items: center;
  width: 68px;
  aspect-ratio: 1;
  border-radius: 14px;
  color: var(--roof2-ink);
  background: var(--roof2-yellow);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 38px;
  font-weight: 900;
}

.roof2-guarantee h3 {
  font-size: 24px;
}

.roof2-guarantee p {
  margin-top: 6px;
  color: var(--roof2-muted);
}

.roof2-section-head-sticky {
  position: sticky;
  top: 104px;
  display: block;
  align-self: start;
  margin-bottom: 0;
}

.roof2-steps {
  display: grid;
  gap: 12px;
}

.roof2-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  padding: 24px;
  border: 1px solid var(--roof2-line);
  border-radius: 14px;
  background: var(--roof2-surface);
}

.roof2-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--roof2-yellow);
  font-weight: 900;
}

.roof2-steps h3 {
  font-size: 23px;
}

.roof2-steps p {
  color: var(--roof2-muted);
}

.roof2-reviews {
  background: var(--roof2-surface);
}

.roof2-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.roof2-review-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 22px;
  border: 1px solid var(--roof2-line);
  border-radius: 16px;
  background: var(--roof2-bg);
}

.roof2-review-card-wide {
  grid-column: auto;
}

.roof2-review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.roof2-review-author img {
  width: 56px;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  background: var(--roof2-soft);
}

.roof2-review-author h3 {
  font-size: 19px;
}

.roof2-review-author span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.roof2-review-text {
  position: relative;
  max-height: 9.2em;
  overflow: hidden;
  color: var(--roof2-muted);
  line-height: 1.58;
}

.roof2-review-card.is-expanded .roof2-review-text {
  max-height: none;
}

.roof2-review-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(180deg, transparent, var(--roof2-bg));
  pointer-events: none;
}

.roof2-review-card.is-expanded .roof2-review-text::after {
  display: none;
}

.roof2-review-toggle {
  align-self: flex-start;
  margin: 12px 0 18px;
  padding: 0;
  border: 0;
  color: var(--roof2-blue);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.roof2-rail,
.roof2-single-photo {
  margin-top: auto;
}

.roof2-rail {
  position: relative;
}

.roof2-rail-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.roof2-rail-track::-webkit-scrollbar {
  display: none;
}

.roof2-rail-track img,
.roof2-single-photo img {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--roof2-soft);
}

.roof2-rail-track img {
  flex: 0 0 min(360px, 84%);
  scroll-snap-align: start;
}

.roof2-rail-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  color: var(--roof2-ink);
  background: color-mix(in oklch, var(--roof2-surface) 92%, transparent);
  box-shadow: 0 8px 12px color-mix(in oklch, var(--roof2-ink) 12%, transparent);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.roof2-rail-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.roof2-rail-prev {
  left: 10px;
}

.roof2-rail-next {
  right: 10px;
}

#roof2-prices,
#roof2-process,
#roof2-reviews,
#roof2-order {
  scroll-margin-top: 96px;
}

.roof2-page .roof2-master-body h2 {
  font-size: 2rem;
  line-height: 1.1;
}

.roof2-review-card.is-static-review .roof2-review-text {
  max-height: none;
}

.roof2-review-card.is-static-review .roof2-review-text::after {
  display: none;
}

.roof2-order {
  background: var(--roof2-green-deep);
  color: var(--white);
}

.roof2-order-copy p {
  color: color-mix(in oklch, var(--white) 76%, transparent);
}

.roof2-callout {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding: 20px;
  border-radius: 14px;
  background: color-mix(in oklch, var(--white) 9%, transparent);
}

.roof2-callout a {
  color: var(--roof2-yellow);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  text-decoration: none;
}

.roof2-callout span {
  color: color-mix(in oklch, var(--white) 72%, transparent);
}

.roof2-form {
  padding: 24px;
  border-radius: 16px;
  background: var(--roof2-surface);
  color: var(--roof2-ink);
}

.roof2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.roof2-form .field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.roof2-submit {
  width: 100%;
  margin-top: 18px;
}

.roof2-footer {
  padding: 28px 0;
  color: color-mix(in oklch, var(--white) 74%, transparent);
  background: oklch(15% 0.02 130);
}

.roof2-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.roof2-footer strong,
.roof2-footer span {
  display: block;
}

.roof2-footer strong {
  color: var(--white);
}

.roof2-footer a {
  color: var(--roof2-yellow);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .roof2-topbar-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .roof2-nav {
    display: none;
  }

  .roof2-hero {
    background: linear-gradient(180deg, var(--roof2-bg), var(--roof2-yellow-soft));
  }

  .roof2-hero-grid,
  .roof2-video-grid,
  .roof2-process-grid,
  .roof2-order-grid {
    grid-template-columns: 1fr;
  }

  .roof2-section-head,
  .roof2-section-head-sticky {
    position: static;
    display: block;
  }

  .roof2-price-card,
  .roof2-price-card:nth-child(2),
  .roof2-price-card-large {
    grid-column: span 3;
  }

}

@media (max-width: 760px) {
  body.admin-bar .roof2-topbar {
    top: 46px;
  }

  .roof2-shell {
    width: min(100% - 24px, 560px);
  }

  .roof2-topbar-inner {
    min-height: 68px;
  }

  .roof2-topbar-actions .roof2-button {
    display: none;
  }

  .roof2-phone {
    font-size: 14px;
  }

  .roof2-brand small {
    display: none;
  }

  .roof2-page h1 {
    max-width: 100%;
    font-size: 3.35rem;
  }

  .roof2-page h2 {
    font-size: 2.35rem;
  }

  .roof2-lead,
  .roof2-video-grid p,
  .roof2-section-head p,
  .roof2-order-copy p {
    font-size: 17px;
  }

  .roof2-actions .roof2-button {
    width: 100%;
  }

  .roof2-trust-row,
  .roof2-form-grid,
  .roof2-review-grid {
    grid-template-columns: 1fr;
  }

  .roof2-review-card-wide {
    grid-column: auto;
  }

  .roof2-price-grid {
    grid-template-columns: 1fr;
  }

  .roof2-price-card,
  .roof2-price-card:nth-child(2),
  .roof2-price-card-large {
    grid-column: auto;
  }

  .roof2-guarantee {
    grid-template-columns: 1fr;
  }

  .roof2-footer-inner {
    display: grid;
  }
}

@media (max-width: 430px) {
  .roof2-brand-mark {
    width: 38px;
  }

  .roof2-phone {
    font-size: 13px;
  }

  .roof2-page h1 {
    font-size: 2.9rem;
  }

  .roof2-master-body,
  .roof2-review-card,
  .roof2-form {
    padding: 18px;
  }

  .roof2-rail-track img,
  .roof2-single-photo img {
    height: 230px;
  }
}

/* Compact pass for the dedicated roofing landing. */
.roof2-hero {
  padding: clamp(38px, 5vw, 72px) 0 clamp(34px, 4vw, 58px);
}

.roof2-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.roof2-kicker {
  margin-bottom: 18px;
}

.roof2-page h1 {
  max-width: 11.2ch;
  font-size: clamp(3.55rem, 6vw, 5rem);
}

.roof2-lead {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 18px;
}

.roof2-actions {
  margin-top: 24px;
}

.roof2-action-note {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--roof2-muted);
  font-size: 14px;
  font-weight: 750;
}

.roof2-trust-row {
  margin-top: 24px;
}

.roof2-trust-row div {
  min-height: 88px;
  padding: 15px;
}

.roof2-trust-row strong {
  font-size: 22px;
}

.roof2-hero-side {
  display: grid;
  gap: 12px;
}

.roof2-master-card {
  display: grid;
  grid-template-columns: minmax(136px, 38%) 1fr;
  border: 1px solid var(--roof2-line);
  border-radius: 14px;
  box-shadow: none;
}

.roof2-master-photo {
  min-height: 228px;
  aspect-ratio: auto;
}

.roof2-master-photo img {
  object-position: center top;
}

.roof2-master-photo span {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
}

.roof2-master-body {
  padding: 18px;
}

.roof2-page .roof2-master-body h2 {
  font-size: 1.6rem;
}

.roof2-master-body p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.roof2-master-meta {
  margin-top: 12px;
}

.roof2-video-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--roof2-line);
  border-radius: 14px;
  background: var(--roof2-surface);
}

.roof2-video-card .roof2-video-frame {
  width: 126px;
  border-radius: 12px;
  box-shadow: none;
}

.roof2-video-card strong,
.roof2-video-card span {
  display: block;
}

.roof2-video-card strong {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 18px;
  line-height: 1.1;
}

.roof2-video-card span {
  margin-top: 4px;
  color: var(--roof2-muted);
  font-size: 14px;
  line-height: 1.35;
}

.roof2-section {
  padding: clamp(42px, 5vw, 72px) 0;
}

.roof2-prices {
  background: var(--roof2-soft);
}

.roof2-section-head {
  display: block;
  margin-bottom: 22px;
}

.roof2-section-head-compact {
  margin-bottom: 18px;
}

.roof2-price-board {
  overflow: hidden;
  border: 1px solid var(--roof2-line);
  border-radius: 14px;
  background: var(--roof2-surface);
}

.roof2-price-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 13px 18px;
  border-top: 1px solid var(--roof2-line);
}

.roof2-price-row:first-child {
  border-top: 0;
}

.roof2-price-row-head {
  min-height: 48px;
  color: var(--white);
  background: var(--roof2-green-deep);
  font-size: 14px;
  font-weight: 900;
}

.roof2-price-row-main {
  background: color-mix(in oklch, var(--roof2-yellow) 16%, var(--roof2-surface));
}

.roof2-price-name {
  display: grid;
  gap: 4px;
}

.roof2-price-name strong {
  font-size: 17px;
  line-height: 1.25;
}

.roof2-price-name small {
  color: var(--roof2-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.roof2-price-row b {
  color: var(--roof2-green-deep);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 21px;
  line-height: 1.1;
  white-space: nowrap;
}

.roof2-price-row span {
  color: var(--roof2-muted);
  font-size: 15px;
  font-weight: 750;
}

.roof2-price-row-head span {
  color: inherit;
  font-size: 13px;
}

.roof2-guarantee {
  gap: 16px;
  margin-top: 12px;
  padding: 16px;
}

.roof2-guarantee-mark {
  width: 54px;
  border-radius: 12px;
  font-size: 30px;
}

.roof2-guarantee h3 {
  font-size: 21px;
}

.roof2-guarantee-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.roof2-guarantee-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--roof2-muted);
  background: color-mix(in oklch, var(--roof2-surface) 72%, var(--roof2-yellow-soft));
  font-size: 13px;
  font-weight: 800;
}

.roof2-inline-cta,
.roof2-process-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 18px;
  border-radius: 14px;
}

.roof2-inline-cta {
  color: var(--white);
  background: var(--roof2-green-deep);
}

.roof2-inline-cta h3,
.roof2-process-cta strong {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 22px;
  line-height: 1.12;
}

.roof2-inline-cta p {
  max-width: 58ch;
  margin-top: 6px;
  color: color-mix(in oklch, var(--white) 74%, transparent);
}

.roof2-inline-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.roof2-process-cta {
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr) auto;
  border: 1px solid var(--roof2-line);
  background: color-mix(in oklch, var(--roof2-yellow-soft) 54%, var(--roof2-surface));
}

.roof2-process-cta span {
  color: var(--roof2-muted);
  line-height: 1.45;
}

.roof2-workline {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
}

.roof2-workline h2 {
  align-self: center;
  font-size: clamp(2.5rem, 4.4vw, 3.85rem);
}

.roof2-work-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--roof2-line);
  border-radius: 14px;
  background: var(--roof2-surface);
}

.roof2-work-steps article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 136px;
  padding: 16px;
  border-left: 1px solid var(--roof2-line);
}

.roof2-work-steps article:first-child {
  border-left: 0;
}

.roof2-work-steps span {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--roof2-ink);
  background: var(--roof2-yellow);
  font-weight: 900;
}

.roof2-work-steps strong {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  line-height: 1.1;
}

.roof2-work-steps small {
  color: var(--roof2-muted);
  font-size: 14px;
  line-height: 1.35;
}

.roof2-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.roof2-review-card {
  min-height: 0;
  padding: 18px;
  border-radius: 14px;
}

.roof2-review-card-wide {
  grid-column: auto;
}

.roof2-review-author {
  gap: 12px;
  margin-bottom: 12px;
}

.roof2-review-author img {
  width: 48px;
}

.roof2-review-author h3 {
  font-size: 18px;
}

.roof2-review-author small {
  display: block;
  margin-top: 2px;
  color: var(--roof2-muted);
  font-size: 12px;
  font-weight: 800;
}

.roof2-review-text {
  max-height: 7.5em;
  font-size: 15px;
  line-height: 1.5;
}

.roof2-review-toggle {
  margin: 9px 0 13px;
  font-size: 15px;
}

.roof2-rail-track img,
.roof2-single-photo img {
  height: 188px;
  border-radius: 10px;
}

.roof2-rail-track img {
  flex-basis: min(280px, 84%);
}

.roof2-rail-button {
  width: 36px;
  font-size: 24px;
  box-shadow: 0 4px 8px color-mix(in oklch, var(--roof2-ink) 10%, transparent);
}

@media (max-width: 1120px) {
  .roof2-hero-grid,
  .roof2-workline {
    grid-template-columns: 1fr;
  }

  .roof2-hero-copy {
    max-width: 880px;
  }

  .roof2-page h1 {
    max-width: 12ch;
  }

  .roof2-workline h2 {
    align-self: start;
  }

  .roof2-review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .roof2-hero {
    padding-top: 28px;
  }

  .roof2-page h1 {
    font-size: clamp(2.65rem, 12vw, 3.35rem);
  }

  .roof2-lead {
    font-size: 17px;
  }

  .roof2-review-list {
    grid-template-columns: 1fr;
  }

  .roof2-trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .roof2-trust-row div {
    min-height: 88px;
    padding: 11px;
  }

  .roof2-trust-row strong {
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .roof2-trust-row span {
    margin-top: 7px;
    font-size: 12px;
  }

  .roof2-master-card {
    grid-template-columns: 118px 1fr;
  }

  .roof2-master-photo {
    min-height: 206px;
  }

  .roof2-video-card {
    grid-template-columns: 102px 1fr;
  }

  .roof2-video-card .roof2-video-frame {
    width: 102px;
  }

  .roof2-price-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px;
  }

  .roof2-price-row-head {
    display: none;
  }

  .roof2-price-row b {
    white-space: normal;
  }

  .roof2-guarantee {
    grid-template-columns: auto 1fr;
  }

  .roof2-guarantee .roof2-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .roof2-inline-cta,
  .roof2-process-cta {
    grid-template-columns: 1fr;
  }

  .roof2-inline-cta-actions {
    justify-content: flex-start;
  }

  .roof2-inline-cta-actions .roof2-button,
  .roof2-process-cta .roof2-button {
    width: 100%;
  }

  .roof2-work-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roof2-work-steps article:nth-child(odd) {
    border-left: 0;
  }

  .roof2-work-steps article:nth-child(n + 3) {
    border-top: 1px solid var(--roof2-line);
  }

  .roof2-review-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .roof2-master-card {
    grid-template-columns: 1fr;
  }

  .roof2-video-card {
    grid-template-columns: 88px 1fr;
  }

  .roof2-master-photo {
    min-height: 260px;
  }

  .roof2-video-card .roof2-video-frame {
    width: 88px;
    justify-self: start;
  }

  .roof2-work-steps {
    grid-template-columns: 1fr;
  }

  .roof2-work-steps article,
  .roof2-work-steps article:nth-child(odd) {
    border-left: 0;
  }

  .roof2-work-steps article:nth-child(n + 2) {
    border-top: 1px solid var(--roof2-line);
  }

  .roof2-rail-track img,
  .roof2-single-photo img {
    height: 210px;
  }
}
