:root {
  --ink: #1F2328;
  --muted: #687066;
  --page-bg: #F3F0EA;
  --panel-bg: rgba(255, 252, 246, 0.60);
  --panel-bg-strong: rgba(255, 252, 246, 0.78);
  --surface-tint: rgba(255, 252, 246, 0.58);
  --surface-tint-heavy: rgba(255, 252, 246, 0.76);
  --surface-dark: rgba(225, 216, 202, 0.64);
  --border-light: rgba(205, 194, 174, 0.55);
  --border-dark: rgba(95, 78, 61, 0.24);
  --glass-blur: blur(22px) saturate(175%);

  /* Графит + медь + теплый бетон */
  --accent-blue: #5C6468;
  --accent-purple: #8D6A50;
  --accent-gold: #B77945;
  --accent-gold-soft: #E9C9A8;
  --accent-gold-deep: #7A4A2B;
  --accent-teal: #4D6657;
  --accent-green: #4D6657;
  --accent-orange: #B77945;

  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.78), inset 0 -1px 0 rgba(95,78,61,0.10);
  --shadow-soft: 0 18px 46px rgba(71, 55, 39, 0.16);
  --shadow-float: 0 28px 70px rgba(71, 55, 39, 0.22);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Golos Text", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Unbounded", "Golos Text", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 252, 246, 0.68), transparent 30%),
    radial-gradient(circle at 84% 4%, rgba(183, 121, 69, 0.18), transparent 28%),
    linear-gradient(135deg, #F8F5EE 0%, #F3F0EA 45%, #E3D8C8 100%);
  font-family: var(--font-body);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, p, a, button, span, b, li, label, input, select, textarea) {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

body.is-loading {
  cursor: progress;
}

img {
  display: block;
  width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
}

button, select {
  cursor: pointer;
}

/* --- АНИМИРОВАННЫЙ ФОН (BLOBS) --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(135deg, #F8F5EE 0%, #F3F0EA 45%, #E3D8C8 100%);
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.58;
  border-radius: 50%;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%; left: -10%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(255, 252, 246, 0.58) 0%, rgba(255, 252, 246, 0) 70%);
  animation-delay: 0s;
}
.blob-2 {
  bottom: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(183, 121, 69, 0.22) 0%, rgba(183, 121, 69, 0) 70%);
  animation-delay: -5s;
}
.blob-3 {
  top: 40%; left: 30%; width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(77, 102, 87, 0.16) 0%, rgba(77, 102, 87, 0) 70%);
  animation-delay: -10s;
}
.blob-4 {
  top: 10%; right: 20%; width: 30vw; height: 30vw;
  background: radial-gradient(circle, rgba(122, 74, 43, 0.14) 0%, rgba(122, 74, 43, 0) 70%);
  animation-delay: -15s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* --- БАЗОВЫЕ КЛАССЫ СТЕКЛА --- */
.glass-panel {
  background: var(--surface-tint);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft), var(--glass-highlight);
  border-radius: var(--radius-lg);
}

.glass-card {
  background: var(--surface-tint-heavy);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(205,194,174,0.52);
  box-shadow: 0 16px 44px rgba(71,55,39,0.14), var(--glass-highlight);
  border-radius: var(--radius-md);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.glass-dark {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  color: var(--ink);
}

/* --- КОНТЕЙНЕРЫ --- */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content-wrapper > * {
  width: 100%;
  max-width: 100%;
}

/* --- ХЕДЕР --- */
.site-header {
  position: sticky;
  top: 20px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 20px auto 40px;
  max-width: 1360px;
  padding: 12px 24px;
  border-radius: 99px; /* Сверхкруглый как Dynamic Island */
  transition: padding 0.22s ease, gap 0.22s ease, box-shadow 0.22s ease;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,252,246,0.46);
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255,255,255,0.46), transparent 34%),
    linear-gradient(145deg, rgba(255,252,246,0.18), rgba(183,121,69,0.10));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 14px 34px rgba(71,55,39,0.13), 0 0 26px rgba(233,201,168,0.28), var(--glass-highlight);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: drop-shadow(0 8px 14px rgba(71,55,39,0.16));
}

.brand strong {
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  padding: 0;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  overflow: visible;
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.22s ease, margin 0.22s ease;
}

.top-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(205,194,174,0.52);
  border-radius: 99px;
  background: rgba(255,252,246,0.18);
  color: #5F4E3D;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.66), 0 8px 20px rgba(71,55,39,0.10);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-nav a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(233,201,168,0.38), rgba(255,252,246,0.28));
  color: var(--ink);
  border-color: rgba(183,121,69,0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 0 0 1px rgba(255,252,246,0.62), 0 0 20px rgba(183,121,69,0.22);
}

.top-nav a:hover {
  background: linear-gradient(180deg, rgba(255,252,246,0.50), rgba(233,201,168,0.26));
  color: var(--ink);
  border-color: rgba(183,121,69,0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 0 0 1px rgba(255,252,246,0.68), 0 0 20px rgba(183,121,69,0.28);
}

.top-nav a:focus-visible {
  border-color: rgba(183,121,69,0.82);
  box-shadow: 0 0 0 4px rgba(183,121,69,0.24);
}

/* --- КНОПКИ --- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: scale(1.02);
}
.button:active {
  transform: scale(0.98);
}

.button.primary {
  color: #FFF8EF;
  background: linear-gradient(135deg, var(--accent-gold-soft), var(--accent-gold), var(--accent-gold-deep));
  border-color: rgba(122,74,43,0.44);
  box-shadow: 0 14px 34px rgba(122,74,43,0.24), var(--glass-highlight);
}
.button.primary:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.06);
  border-color: rgba(122,74,43,0.72);
  box-shadow: 0 20px 44px rgba(122,74,43,0.30), 0 0 24px rgba(233,201,168,0.58), 0 0 0 2px rgba(255,252,246,0.56), var(--glass-highlight);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 252, 246, 0.50);
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 30px rgba(71,55,39,0.12), var(--glass-highlight);
}
.button.secondary:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(183,121,69,0.62);
  box-shadow: 0 16px 34px rgba(71,55,39,0.16), 0 0 22px rgba(233,201,168,0.40), 0 0 0 1px rgba(255,252,246,0.58), var(--glass-highlight);
}

.button.wide {
  width: 100%;
}

.glass-button {
  background: rgba(255,252,246,0.52);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--border-light);
  color: var(--ink);
  box-shadow: var(--glass-highlight);
}
.glass-button:hover {
  background: rgba(255,252,246,0.72);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #FFF8EF;
  background:
    linear-gradient(180deg, rgba(183,121,69,0.92), rgba(122,74,43,0.92)),
    var(--accent-gold);
  border: 1px solid rgba(122,74,43,0.46);
  box-shadow:
    inset 0 1px 0 rgba(255,248,239,0.32),
    0 10px 22px rgba(122,74,43,0.18);
  white-space: nowrap;
}

.header-action:hover {
  transform: translateY(-1px);
  filter: none;
  border-color: rgba(122,74,43,0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,248,239,0.38),
    0 14px 28px rgba(122,74,43,0.24),
    0 0 0 1px rgba(233,201,168,0.28);
}

/* --- ТИПОГРАФИКА --- */
h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 24px;
  hyphens: none;
}

h2 {
  font-family: var(--font-body);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 16px;
  hyphens: none;
}

h3 {
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-orange);
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 850px;
}

/* --- HERO --- */
.hero {
  display: grid;
  align-items: stretch;
  min-height: calc(100vh - 140px);
}

.hero-copy {
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-brief {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-brief article {
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255,252,246,0.62), rgba(225,216,202,0.38));
  box-shadow: var(--glass-highlight);
}

.hero-brief span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
}

.hero-brief p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 0;
}

.proof-grid div {
  padding: 16px;
  background: rgba(255,252,246,0.46);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-highlight);
}

.proof-grid strong {
  display: block;
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
}

.proof-grid span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* Skeleton Loading */
.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 80px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,252,246,0.50), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* --- СЕКЦИИ --- */
.section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
}

.section-head {
  margin-bottom: 48px;
}

.section-head.glass-panel {
  width: 100%;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
}

.section-head h2 {
  max-width: 900px;
}

.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section-head.row > div {
  min-width: 0;
}

.section-head.row .section-cta,
.section-head.row .text-link,
.section-head.row .section-note,
.section-head.row .glass-filters {
  flex: 0 1 auto;
}

.section-cta {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  white-space: nowrap;
}

.text-link {
  color: var(--accent-gold-soft);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
}

/* Trust Band */
.trust-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-grid article {
  padding: 24px;
}

.accent-number {
  display: block;
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.trust-grid b {
  font-family: var(--font-accent);
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.service-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.service-card,
.service-card :where(h3, p, li, span, b, div),
.timeline article,
.timeline article :where(h3, p, li, span, b, div),
.guarantee-card,
.guarantee-card :where(h3, p, li, span, b, div) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.service-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.service-card:hover,
.timeline article:hover,
.guarantee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.service-card .number {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
}

.service-card ul {
  list-style: none;
  margin: 16px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.price-hint {
  margin-top: auto;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list div {
  background: rgba(255,252,246,0.50);
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(205,194,174,0.50);
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 14px 34px rgba(71,55,39,0.12), var(--glass-highlight);
}

.feature-list b {
  display: block;
  font-family: var(--font-accent);
  font-size: 16px;
  margin-bottom: 4px;
}

.feature-list span {
  font-size: 14px;
  color: var(--muted);
}

/* Projects */
.portfolio-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 6vw, 64px);
}

.portfolio-teaser p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.portfolio-page .content-wrapper {
  gap: 28px;
}

.about-page .content-wrapper {
  gap: 28px;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(44px, 7vw, 84px) clamp(22px, 5vw, 72px);
}

.portfolio-hero h1 {
  max-width: 860px;
  margin-bottom: 20px;
}

.portfolio-hero .lead {
  max-width: 760px;
  margin: 0;
}

.portfolio-list {
  padding-top: 0;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px);
}

.about-hero h1 {
  max-width: 860px;
}

.about-hero .lead {
  max-width: 720px;
}

.about-hero-image {
  min-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.about-hero-image img {
  height: 100%;
  object-fit: cover;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-grid article {
  padding: 28px 24px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.about-checks {
  display: grid;
  gap: 12px;
}

.about-checks p {
  position: relative;
  padding: 18px 20px 18px 48px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(255,252,246,0.50);
  color: var(--muted);
}

.about-checks p::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 5px rgba(233,201,168,0.26);
}

.glass-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255,252,246,0.50);
  padding: 6px;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  max-width: 100%;
}

.filter {
  flex: 1 1 auto;
  padding: 8px 20px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  transition: all 0.2s ease;
}

.filter.is-active {
  background: linear-gradient(135deg, rgba(255,252,246,0.78), rgba(233,201,168,0.42));
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(71,55,39,0.14), var(--glass-highlight);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  padding: 8px;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(233,201,168,0.72);
  box-shadow: var(--shadow-float), 0 0 34px rgba(183,121,69,0.24);
}

.project-card.is-hidden {
  display: none;
}

.project-cover {
  position: relative;
  border-radius: calc(var(--radius-md) - 6px);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 16px;
}

.project-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-cover img {
  transform: scale(1.08);
}

.image-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(43,49,58,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F4F6F9;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
}

.project-copy {
  padding: 0 8px 8px;
}

.tag {
  color: var(--accent-gold-deep);
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.project-copy h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.project-copy p:nth-of-type(1) {
  font-size: 13px;
  margin-bottom: 8px;
}
.project-copy p:nth-of-type(2) {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-proof {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}

.project-proof li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.project-proof li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

/* Process & Guarantee */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline article, .guarantee-card, .faq-item {
  padding: 24px;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

/* Form Section (Dark Glass) */
.estimate-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 60px);
}

.estimate-copy p {
  color: var(--muted);
}

.city-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.city-cloud span {
  padding: 6px 12px;
  background: rgba(255,252,246,0.54);
  border: 1px solid rgba(205,194,174,0.52);
  border-radius: 99px;
  font-size: 13px;
  color: var(--ink);
}

.estimate-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255,252,246,0.78) !important;
  color: var(--ink);
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.glass-input {
  color: var(--ink);
  background: rgba(255,252,246,0.58);
  border: 1px solid rgba(205,194,174,0.56);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  transition: all 0.2s ease;
}

/* Поля с обязательным вводом: заметная обводка */
.estimate-form .glass-input[required],
.estimate-form select.glass-input[required],
.estimate-form textarea.glass-input[required] {
  border-color: rgba(183,121,69,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.estimate-form .glass-input[required]:not(:placeholder-shown):valid,
.estimate-form select.glass-input[required]:valid,
.estimate-form textarea.glass-input[required]:not(:placeholder-shown):valid {
  border-color: rgba(77,102,87,0.70);
}

.estimate-form .glass-input.is-invalid {
  border-color: rgba(195,90,90,0.7);
  box-shadow: 0 0 0 4px rgba(195,90,90,0.12), inset 0 1px 0 rgba(255,255,255,0.3);
}

.glass-input:focus {
  background: rgba(255,252,246,0.82);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(183,121,69,0.22);
}

textarea.glass-input {
  resize: vertical;
}

.field-error {
  min-height: 16px;
  color: #A23E2A;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.estimate-form.is-submitting {
  cursor: progress;
}

.estimate-form.is-submitting .glass-input {
  pointer-events: none;
}

.estimate-form button[disabled] {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.form-result {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}
.form-result.is-success { color: var(--accent-green); font-weight: 600; }
.form-result.is-error { color: #d93025; font-weight: 600; }

/* FAQ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  margin-top: 40px;
}

.site-footer span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

/* Dialog (Apple Modal Style) */
.project-dialog {
  margin: auto;
  width: min(900px, calc(100vw - 32px));
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
}

.project-dialog::backdrop {
  background: rgba(43,49,58,0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  font-size: 24px;
}

.dialog-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.dialog-gallery {
  position: relative;
  background: #E3D8C8;
  min-height: 500px;
}

.dialog-gallery img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.dialog-gallery-controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-gallery-controls span {
  background: rgba(43,49,58,0.62);
  backdrop-filter: blur(8px);
  color: #F4F6F9;
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
}

.dialog-info {
  padding: 40px 32px;
  background: rgba(255,252,246,0.80);
}

.dialog-info ul {
  list-style: none;
  margin: 14px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-subtitle {
  margin: 24px 0 0;
  font-size: 16px;
}

.dialog-info li {
  background: rgba(255,252,246,0.54);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(71,55,39,0.12), var(--glass-highlight);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -12px;
}

.service-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(205,194,174,0.58);
  border-radius: 99px;
  background: rgba(255,252,246,0.42);
  color: #5F4E3D;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--glass-highlight);
}

.cabinet-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.cabinet-showcase-copy p {
  max-width: 680px;
  font-size: 18px;
}

.cabinet-mock {
  padding: 20px;
  border: 1px solid rgba(95,78,61,0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255,252,246,0.76), rgba(225,216,202,0.52));
  box-shadow: 0 24px 54px rgba(71,55,39,0.18), var(--glass-highlight);
}

.mock-top,
.mock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.mock-top {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(205,194,174,0.62);
  font-family: var(--font-accent);
  font-size: 14px;
}

.mock-top b {
  padding: 8px 12px;
  border-radius: 99px;
  background: rgba(77,102,87,0.14);
  color: var(--accent-teal);
  font-size: 12px;
}

.mock-progress {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.mock-progress article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(205,194,174,0.54);
  border-radius: var(--radius-sm);
  background: rgba(255,252,246,0.42);
}

.mock-progress b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(104,112,102,0.12);
  font-family: var(--font-accent);
  font-size: 12px;
}

.mock-progress .is-done b,
.mock-progress .is-active b {
  background: var(--accent-teal);
  color: #FFF8EF;
}

.mock-progress .is-active {
  border-color: rgba(77,102,87,0.42);
  box-shadow: 0 0 0 3px rgba(77,102,87,0.10);
}

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

.mock-grid div,
.cabinet-panel,
.admin-project {
  border: 1px solid rgba(205,194,174,0.54);
  border-radius: var(--radius-sm);
  background: rgba(255,252,246,0.44);
}

.mock-grid div {
  padding: 16px;
}

.mock-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.cabinet-page,
.cabinet-page body {
  min-height: 100vh;
}

.cabinet-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  display: grid;
  gap: 20px;
}

.cabinet-panel {
  padding: clamp(22px, 4vw, 40px);
}

.cabinet-panel h1 {
  max-width: 900px;
}

.cabinet-panel h2 {
  font-size: 28px;
}

.cabinet-status-row,
.admin-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cabinet-status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 99px;
  background: rgba(77,102,87,0.14);
  color: var(--accent-teal);
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 20px;
}

.cabinet-side,
.cabinet-timeline,
.cabinet-list,
.admin-projects {
  display: grid;
  gap: 12px;
}

.cabinet-stage,
.cabinet-list article,
.cabinet-file {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(205,194,174,0.54);
  border-radius: var(--radius-sm);
  background: rgba(255,252,246,0.44);
}

.cabinet-stage span,
.cabinet-file span,
.cabinet-list small {
  color: var(--muted);
  font-size: 13px;
}

.admin-shell h1 {
  margin-bottom: 0;
}

.admin-login {
  max-width: 520px;
  margin: 10vh auto 0;
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.admin-project {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-project form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-project form[data-report],
.admin-project form[data-file] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.admin-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-link-row p {
  color: #A23E2A;
  font-weight: 700;
}

.admin-confirm {
  width: min(520px, calc(100vw - 32px));
  margin: auto;
  padding: 28px;
  color: var(--ink);
}

.admin-confirm::backdrop {
  background: rgba(31,35,40,0.34);
  backdrop-filter: blur(6px);
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1120px) {
  h1 { font-size: 44px; }
  h2 { font-size: 38px; }
  .trust-band, .split-section, .estimate-section, .about-hero, .about-story, .cabinet-showcase, .cabinet-layout { grid-template-columns: 1fr; }
  .service-grid, .project-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .about-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .dialog-body { grid-template-columns: 1fr; }
  .dialog-gallery { min-height: 300px; }
  .site-header {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }
  .brand {
    justify-self: center;
  }
  .top-nav {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }
  .header-action {
    display: none;
  }
}

@media (max-width: 780px) {
  h1 { font-size: 34px; line-height: 1.12; }
  h2 { font-size: 30px; line-height: 1.16; }
  h3 { font-size: 20px; }
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px;
    width: calc(100% - 32px);
    margin: 12px auto 28px;
    top: 12px;
    border-radius: 24px;
  }
  .top-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    width: 100%;
    justify-self: stretch;
    gap: 8px;
    font-size: 11px;
    max-height: 180px;
  }
  .top-nav a {
    min-height: 36px;
    padding: 0 8px;
  }
  .header-action { display: none; }
  .proof-grid, .trust-grid, .service-grid, .project-grid, .timeline, .guarantee-grid, .faq-list, .form-row, .about-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid,
  .admin-project form,
  .admin-project form[data-report],
  .admin-project form[data-file],
  .admin-link-row {
    grid-template-columns: 1fr;
  }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .portfolio-teaser,
  .portfolio-hero,
  .about-hero,
  .about-story {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .portfolio-teaser .button,
  .portfolio-hero .button,
  .about-hero .button {
    width: 100%;
  }
  .glass-filters { width: 100%; }
  .about-hero-image { min-height: 300px; }
  .site-footer { flex-direction: column; gap: 24px; text-align: center; }
  .ambient-bg { display: none; } /* Отключаем тяжелые блобы на мобилках */
  body {
    background:
      radial-gradient(circle at 20% 10%, rgba(255,252,246,0.62), transparent 34%),
      linear-gradient(135deg, #F8F5EE 0%, #F3F0EA 45%, #E3D8C8 100%);
  }

  .site-header.is-nav-collapsed {
    gap: 0;
    padding-bottom: 10px;
    box-shadow: 0 16px 44px rgba(71,55,39,0.22), 0 0 28px rgba(233,201,168,0.28), var(--glass-highlight);
  }

  .site-header.is-nav-collapsed .top-nav {
    height: 0 !important;
    min-height: 0;
    max-height: 0;
    margin-top: -8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 25px; line-height: 1.18; }
  h2 { font-size: 24px; line-height: 1.18; }
  h1, h2 {
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .lead { font-size: 16px; }
  h1, h2, h3, .lead, p, a, button, span, b, li, label {
    max-width: 100%;
    white-space: normal;
  }
  .content-wrapper {
    width: 100%;
    max-width: 100vw;
    padding: 0 12px;
    gap: 24px;
    overflow-x: clip;
  }
  .content-wrapper > *,
  .site-header,
  .glass-panel,
  .glass-card {
    max-width: 100%;
  }
  .site-header {
    width: calc(100% - 24px);
    margin: 12px auto 28px;
    border-radius: 24px;
    overflow: hidden;
  }
  .brand { width: 100%; }
  .brand-mark {
    width: 50px;
    height: 50px;
  }
  .brand > span:last-child { flex: 1; }
  .top-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 10px;
    gap: 7px;
  }
  .top-nav a {
    min-height: 36px;
    padding: 0 4px;
  }
  .hero-copy { padding: 28px 18px; overflow: hidden; }
  .hero-brief { grid-template-columns: 1fr; }
  .service-tags span { font-size: 11px; }
  .mock-grid { grid-template-columns: 1fr; }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-actions .button { width: 100%; }
  .section { padding: 36px 20px; overflow: hidden; }
  .section-head { margin-bottom: 28px; }
  .portfolio-hero,
  .portfolio-teaser,
  .about-hero {
    padding: 32px 18px;
  }
  .about-hero-image {
    min-height: 240px;
  }
  .about-checks p {
    padding: 16px 16px 16px 42px;
  }
  .about-checks p::before {
    left: 18px;
    top: 23px;
  }
  .glass-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
  }
  .filter {
    width: 100%;
    padding: 10px 8px;
    font-size: 11px;
  }
  .project-dialog {
    width: calc(100vw - 20px);
  }
  .dialog-info {
    padding: 28px 20px;
  }
  .service-card,
  .timeline article,
  .guarantee-card,
  .faq-item {
    padding: 24px 20px;
  }
  .estimate-section { padding: 44px 20px; }
  .estimate-form { padding: 24px 20px; }
  .filter { padding: 8px 14px; }
}

@media (max-width: 340px) {
  h1 { font-size: 24px; }
  h2 { font-size: 24px; }
  .content-wrapper { padding: 0 10px; }
  .hero-copy { padding: 24px 16px; }
  .section,
  .estimate-section { padding-inline: 16px; }
  .top-nav {
    grid-template-columns: 1fr;
  }
}
