:root {
  --bg: #ffffff;
  --soft: #f5f6f8;
  --soft-2: #eef1f5;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --text: #14171a;
  --heading: #0f1115;
  --muted: #667085;
  --muted-2: #475467;
  --red: #d71920;
  --red-dark: #a90f16;
  --red-soft: #fff1f2;
  --line: #e5e7eb;
  --line-strong: #d0d5dd;
  --shadow: 0 18px 48px rgba(16, 24, 40, .10);
  --shadow-soft: 0 10px 28px rgba(16, 24, 40, .08);
  --shadow-lift: 0 26px 70px rgba(16, 24, 40, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

::selection {
  background: rgba(215, 25, 32, .14);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(229, 231, 235, .88);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  color: var(--heading);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.logo span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

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

.menu a:not(.btn) {
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 0;
}

.menu a:not(.btn):hover {
  color: var(--red);
}

.btn,
button.btn,
.admin-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 9px;
  padding: 13px 21px;
  border: 1px solid var(--red);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(215, 25, 32, .25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover,
button.btn:hover,
.admin-file-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(215, 25, 32, .31);
}

.btn.alt,
button.btn.alt {
  background: #fff;
  color: var(--heading);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}

.btn.alt:hover,
button.btn.alt:hover {
  color: var(--red);
  border-color: rgba(215, 25, 32, .34);
  box-shadow: 0 14px 34px rgba(16, 24, 40, .10);
}

.btn.danger {
  background: #fff;
  color: var(--red-dark);
  border-color: rgba(215, 25, 32, .35);
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 118px) 0 clamp(48px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .90) 45%, rgba(255, 255, 255, .58) 100%),
    url("assets/images/moderni-exterier-rodinneho-domu.jpg") center/cover no-repeat;
}

.hero::after,
.pagehead::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 25, 32, .28), transparent);
}

.hero h1,
.pagehead h1,
.project-hero h1 {
  max-width: 980px;
  margin: 0 0 20px;
  color: var(--heading);
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p,
.project-hero p,
.seo-head .muted,
.pagehead .muted {
  max-width: 820px;
  color: var(--muted-2);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-premium {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 246, 248, .78)),
    url("assets/images/moderni-rodinny-dum-kamenna-fasada.jpg") center/cover no-repeat;
  padding: clamp(28px, 4vw, 56px) 0 clamp(58px, 7vw, 98px);
}

.hero-premium .hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

.hero-media {
  position: relative;
  min-height: clamp(390px, 55vw, 660px);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}

.hero-media img,
.card-media img,
.gallery-photo img,
.premium-gallery img,
.photo-mosaic img,
.before-after img,
.gallery img,
.realization-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 17, 21, .30), transparent 48%);
  pointer-events: none;
}

.hero-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 45px rgba(16, 24, 40, .18);
  backdrop-filter: blur(14px);
}

.hero-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-card strong {
  display: block;
  color: var(--heading);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.1;
}

.trust-row,
.badges,
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}

.proof-band {
  padding: clamp(22px, 3vw, 34px) 0;
  background: #fff;
  border-block: 1px solid var(--line);
}

.proof-band .stats {
  margin-top: 0;
}

.trust-row .badge b {
  font-size: clamp(20px, 2vw, 27px);
}

.badge,
.stat,
.card,
.review,
.contactbox,
.seo-sidebox,
.admin-stat,
.admin-panel,
.article-cta,
.map-card,
.gallery-photo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.badge,
.stat {
  padding: 19px;
}

.badge b,
.stat strong {
  display: block;
  color: var(--heading);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.12;
}

.badge span,
.stat span,
.muted {
  color: var(--muted);
}

section {
  padding: clamp(58px, 7vw, 96px) 0;
}

.section-soft {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.section-head h2,
.cta h2,
.contactbox h2,
.seo-article h2,
.admin-panel h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted-2);
  font-size: 17px;
}

.grid,
.reviews,
.gallery,
.locality-grid,
.service-grid,
.blog-grid,
.project-gallery,
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card,
.review,
.contactbox,
.seo-sidebox,
.admin-panel {
  padding: clamp(20px, 2.4vw, 30px);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 32, .26);
  box-shadow: var(--shadow);
}

.service-photo-card {
  overflow: hidden;
  padding: 0;
}

.service-photo-card .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft-2);
}

.service-photo-card .card-media img {
  transition: transform .45s ease;
}

.service-photo-card:hover .card-media img {
  transform: scale(1.045);
}

.service-photo-card .icon,
.service-photo-card h3,
.service-photo-card p,
.service-photo-card .text-link {
  margin-inline: clamp(20px, 2.4vw, 30px);
}

.service-photo-card .icon {
  margin-top: clamp(20px, 2.4vw, 30px);
}

.service-photo-card .text-link {
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--red-soft);
  color: transparent;
  font-size: 0;
  display: grid;
  place-items: center;
}

.icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 5px solid var(--red);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.card h2,
.card h3,
.review h3,
.locality-card h2,
.blog-card h2,
.admin-stat strong {
  margin: 0 0 10px;
  color: var(--heading);
  line-height: 1.22;
}

.card h3,
.locality-card h2 {
  font-size: 22px;
}

.card p,
.card li,
.review,
.seo-article p,
.seo-article li,
.blog-card p {
  color: var(--muted-2);
}

.card .btn,
.service-card .text-link,
.blog-card .text-link {
  margin-top: auto;
}

.text-link,
.breadcrumb a {
  color: var(--red);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.photo {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: url("assets/images/minimalisticka-bila-fasada-domu.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.list div,
.benefit-item {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--heading);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
}

.cta {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.cta .box {
  max-width: 930px;
  margin-inline: auto;
  text-align: center;
}

.cta p {
  margin-inline: auto;
  max-width: 720px;
}

.reviews {
  align-items: stretch;
}

.review {
  position: relative;
  color: var(--muted-2);
}

.review::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--red);
}

.review strong {
  display: block;
  margin-top: 18px;
  color: var(--heading);
}

.gallery {
  grid-auto-rows: 230px;
}

.gallery div,
.gallery figure,
.gallery-photo,
.premium-gallery figure {
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery figure {
  margin: 0;
}

.premium-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.premium-gallery figure {
  position: relative;
  margin: 0;
  min-height: 260px;
}

.premium-gallery figure:first-child {
  min-height: 360px;
}

.premium-gallery figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--heading);
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
  backdrop-filter: blur(12px);
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.photo-mosaic figure,
.before-after div {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.photo-mosaic figure {
  aspect-ratio: 4 / 3;
}

.photo-mosaic figcaption,
.before-after span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--heading);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .12);
  backdrop-filter: blur(12px);
}

.photo-mosaic img,
.before-after img {
  transition: transform .45s ease;
}

.photo-mosaic figure:hover img,
.before-after div:hover img {
  transform: scale(1.04);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.before-after div {
  aspect-ratio: 16 / 10;
}

.review::after {
  content: "★★★★★";
  display: block;
  margin-top: 14px;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 2px;
}

form,
.quote-form {
  display: grid;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(215, 25, 32, .62);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

label {
  color: var(--heading);
  font-weight: 800;
}

.quote-intro {
  margin: 0 0 4px;
  color: var(--muted-2);
  font-size: 17px;
}

.quote-help {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(215, 25, 32, .18);
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 850;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
}

.form-section h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
}

.form-grid,
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.form-field label,
.form-label {
  color: var(--heading);
  font-weight: 900;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.choice-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--muted-2);
  font-weight: 850;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.choice-pill input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
  accent-color: var(--red);
  box-shadow: none;
}

.choice-pill:has(input:checked) {
  border-color: rgba(215, 25, 32, .62);
  background: var(--red-soft);
  color: var(--heading);
  box-shadow: 0 8px 22px rgba(215, 25, 32, .08);
}

.file-input {
  border-style: dashed;
  background: #fff;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent input {
  width: auto;
  min-height: auto;
  margin-top: 6px;
  accent-color: var(--red);
}

.form-alert {
  display: none;
  padding: 14px 16px;
  border: 1px solid rgba(28, 160, 87, .35);
  border-radius: 14px;
  background: #ecfdf3;
  color: #067647;
  font-weight: 900;
}

.form-alert.show {
  display: block;
}

.form-alert.error {
  border-color: rgba(215, 25, 32, .35);
  background: var(--red-soft);
  color: var(--red-dark);
}

[hidden] {
  display: none !important;
}

.pagehead {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 86px) 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(245, 246, 248, .92)),
    url("assets/images/ciste-bile-steny-interier.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.seo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.seo-article {
  max-width: 880px;
}

.seo-article h2:not(:first-child) {
  margin-top: 42px;
}

.seo-article h3 {
  margin: 28px 0 8px;
  color: var(--heading);
  font-size: 23px;
}

.seo-article p,
.seo-article li {
  font-size: 17px;
}

.seo-article a {
  color: var(--red);
  font-weight: 900;
}

.seo-sidebox {
  display: grid;
  gap: 14px;
}

.service-card {
  min-height: 150px;
}

.service-card-active {
  border-color: rgba(215, 25, 32, .45);
  background: linear-gradient(180deg, #fff, var(--red-soft));
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--heading);
  font-weight: 950;
}

.faq p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted-2);
}

.mini-links,
.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.mini-links a,
.mini-links span,
.article-links a,
.blog-tag,
.article-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(215, 25, 32, .22);
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
}

.article-links {
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
}

.article-cta {
  margin: 34px 0;
  padding: clamp(22px, 3vw, 32px);
  border-color: rgba(215, 25, 32, .24);
  background: linear-gradient(135deg, var(--red-soft), #fff);
}

.article-cta p {
  color: var(--muted-2);
}

.blog-card {
  gap: 10px;
}

.blog-card h2 {
  font-size: 22px;
}

.blog-article section {
  padding: 0;
}

.blog-article strong {
  color: var(--heading);
}

.footer {
  padding: 48px 0 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer h3 {
  margin: 0 0 10px;
  color: var(--heading);
}

.footer a {
  color: var(--muted-2);
  font-weight: 800;
}

.footer a:hover {
  color: var(--red);
}

.whatsapp,
.sticky-call,
.sticky-whatsapp,
.back-to-top {
  position: fixed;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 16px 36px rgba(16, 24, 40, .22);
}

.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 65;
  display: grid;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.floating-actions.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-call {
  position: static;
  padding: 0 16px;
  background: var(--red);
}

.sticky-whatsapp,
.whatsapp {
  background: #16a34a;
}

.sticky-whatsapp {
  position: static;
  padding: 0 16px;
}

.whatsapp {
  right: 16px;
  bottom: 16px;
  padding: 0 17px;
}

body.has-floating-actions .whatsapp {
  display: none;
}

.back-to-top {
  position: static;
  width: 50px;
  background: var(--heading);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.map-wrap,
.map-card {
  overflow: hidden;
  border-radius: 24px;
}

.map-wrap iframe,
.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.trusted-strip {
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.trusted-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-shell section {
  padding: 38px 0;
}

.admin-workspace {
  padding-top: 0;
}

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

.admin-stat span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 48px);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.admin-panel-head,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-toolbar {
  justify-content: flex-start;
}

.admin-list {
  display: grid;
  gap: 12px;
  max-height: 960px;
  margin-top: 16px;
  overflow: auto;
  padding-right: 4px;
}

.admin-project-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  padding: 14px;
}

.admin-project-row span,
.admin-project-row code {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-preview {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 25, 32, .22);
  border-radius: 16px;
  background: var(--red-soft);
}

.seo-preview span {
  color: var(--red-dark);
  font-weight: 900;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-preview div,
.realization-thumb {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft) center/cover no-repeat;
}

.project-hero {
  padding: clamp(70px, 8vw, 110px) 0;
  background-position: center;
  background-size: cover;
}

.project-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.realization-card {
  display: flex;
  flex-direction: column;
}

.realization-thumb {
  display: block;
  min-height: 210px;
  margin: -4px -4px 16px;
}

.project-params {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0 0 20px;
}

.project-params dt {
  color: var(--muted);
  font-weight: 900;
}

.project-params dd {
  margin: 0;
  color: var(--heading);
  font-weight: 950;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 48px, var(--max));
  }

  .grid,
  .reviews,
  .locality-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid,
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats,
  .badges,
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-gallery {
    grid-template-columns: 1.35fr 1fr;
  }

  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-gallery figure:first-child {
    grid-row: span 2;
  }
}

@media (min-width: 900px) {
  .hero-premium .hero-shell,
  .split {
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  }

  .grid,
  .reviews,
  .gallery,
  .project-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid,
  .locality-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-head {
    grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
    align-items: end;
  }

  .seo-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .seo-sidebox {
    position: sticky;
    top: 104px;
  }

  .footgrid {
    grid-template-columns: 2fr 1fr 1.4fr;
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(350px, .75fr);
  }
}

@media (min-width: 1160px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
  }

  .logo {
    min-width: 0;
    max-width: 52vw;
  }

  .menu {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 5px 12px;
  }

  .menu a:not(.btn) {
    padding: 5px 0;
    font-size: 13px;
  }

  .menu .btn {
    width: 100%;
    margin-top: 4px;
  }

  .btn {
    width: 100%;
  }

  .actions .btn {
    width: 100%;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .sticky-call,
  .sticky-whatsapp {
    min-width: 46px;
    min-height: 46px;
    padding: 0 13px;
    font-size: 13px;
  }

  .back-to-top {
    width: 46px;
    min-height: 46px;
  }

  .project-params {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
