*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  color: #222;
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-dark {
  background: #2b2b2b;
  color: #fff;
}

.btn-light {
  background: #f4f4f4;
  color: #2b2b2b;
}

.btn-outline {
  border-color: #2b2b2b;
  color: #2b2b2b;
  background: transparent;
}

.btn-outline.light {
  border-color: #f4f4f4;
  color: #f4f4f4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo img {
  width: 130px;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.hero {
  padding: 64px 0 48px;
  background: #fafafa;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero-content h1 span {
  display: block;
  font-weight: 700;
}

.hero-subtitle p {
  margin: 8px 0;
  color: #555;
  font-size: 16px;
}


.hero-content .btn {
  margin-top: 18px;
}

.hero-image {
  min-height: 320px;
  border-radius: 24px;
  background: url("https://whitebox-remont.ru/wp-content/uploads/2025/06/gostinaya-1-1-scaled.jpg")
    center/cover no-repeat;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.intro {
  padding: 60px 0;
  background: #fff;
}

.intro p {
  margin: 0 auto;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  color: #2b2b2b;
  max-width: 900px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.stats {
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.value {
  padding: 60px 0;
  background: #fff;
}

.value-inner {
  display: flex;
  justify-content: center;
}

.value-content {
  max-width: 820px;
  text-align: center;
}

.value-content h2 {
  margin: 0 0 18px;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
  text-align: center;
  max-width: 900px;
  justify-items: center;
}

.value-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  max-width: 260px;
}

@media (min-width: 900px) {
  .value-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .value-item {
    grid-column: span 2;
  }

  .value-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .value-item:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.value-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stat-card {
  padding: 28px;
  border-radius: 24px;
  background: #f3f3f3;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.stat-dark {
  background: #3a3a3a url("https://whitebox-remont.ru/wp-content/uploads/2025/04/buildings_colored_fdefeb-optimised.png")
    bottom right/70% no-repeat;
  color: #fff;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
}

.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: inherit;
}

.stat-image {
  position: absolute;
  bottom: 0;
  right: 12px;
  width: 150px;
}

.stat-icon {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 64px;
}

.projects {
  padding: 50px 0;
}

.projects h2 {
  margin: 0 0 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  font-weight: 600;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.project-card span {
  position: relative;
  z-index: 1;
}

.coverage {
  padding: 70px 0;
  background: #f4f4f4 url("https://whitebox-remont.ru/wp-content/uploads/2025/04/buildings_colored_fdefeb-optimised.png")
    center right/45% no-repeat;
}

.coverage h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}

.coverage h2 span {
  display: block;
  color: #444;
  font-weight: 600;
}

.packages {
  padding: 60px 0;
}

.tariff-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .tariff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.tariff-card {
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  border: 1px solid #e5e5e5;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.tariff-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.tariff-card p {
  margin: 12px 0;
  font-size: 14px;
  color: #444;
}

.tariff-subtitle {
  font-weight: 600;
  color: #2b2b2b;
}

.tariff-card ul {
  margin: 8px 0 12px;
  padding-left: 18px;
}

.tariff-card li {
  margin-bottom: 8px;
  font-size: 14px;
}

.tariff-note {
  margin-top: 10px;
  font-weight: 600;
  color: #2b2b2b;
}

.blog {
  padding: 60px 0;
  background: #fafafa;
}

.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.blog-header h2 span {
  color: #555;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.blog-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.blog-card h3 {
  font-size: 16px;
  margin: 8px 0 10px;
}

.blog-date {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.consult {
  padding: 70px 0;
  background: #3a3a3a;
  color: #fff;
}

.process {
  padding: 60px 0;
  background: #fafafa;
}

.process-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  grid-template-columns: 1fr;
  counter-reset: process-step;
}

.process-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 20px 20px 20px 64px;
  border: 1px solid #dfe4ea;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  counter-increment: process-step;
}

.process-card h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

.process-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.process-card::before {
  content: counter(process-step);
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.process-card::after {
  content: none;
}

.process-detail {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.process-detail-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #dfe4ea;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.process-detail-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #2b2b2b;
}

.process-detail-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.process-detail-card strong {
  color: #2b2b2b;
  font-weight: 700;
}

.process-detail-card .accent {
  color: #2b2b2b;
  font-weight: 600;
}

.process-detail-card ul {
  margin: 0;
  padding-left: 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.process-detail-card li {
  margin-bottom: 6px;
}

.process-detail-note {
  border-color: #2b2b2b;
  background: #2b2b2b;
  color: #fff;
}

.process-detail-note h3,
.process-detail-note p {
  color: #fff;
}

/* Variant B: flat panels with left accent */
.process-variant-b .process-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.process-variant-b .process-card::before {
  background: #f4f4f4;
  color: #2b2b2b;
  border: 1px solid #2b2b2b;
}

.process-variant-b .process-detail-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: none;
  border-left: 4px solid #2b2b2b;
  padding-left: 16px;
}

.process-variant-b .process-detail-note {
  background: #2b2b2b;
  border-color: #2b2b2b;
}

/* Variant C: dark cards with light accents */
.process-variant-c .process-card {
  background: #2b2b2b;
  border: 1px solid #1f1f1f;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.process-variant-c .process-card h3 {
  color: #ffffff;
}

.process-variant-c .process-card p {
  color: #d8d8d8;
}

.process-variant-c .process-card::before {
  background: #ffffff;
  color: #2b2b2b;
}

.process-variant-c .process-detail-card {
  background: #2b2b2b;
  border: 1px solid #1f1f1f;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.process-variant-c .process-detail-card h3,
.process-variant-c .process-detail-card p,
.process-variant-c .process-detail-card ul {
  color: #f5f5f5;
}

.process-variant-c .process-detail-card strong,
.process-variant-c .process-detail-card .accent {
  color: #ffffff;
}

.process-variant-c .process-detail-note {
  background: #1f1f1f;
  border-color: #1f1f1f;
}

@media (min-width: 900px) {
  .process-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
  }

  .process-detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.faq {
  padding: 60px 0;
  background: #fff;
}

.faq-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}

.faq-item {
  border-radius: 16px;
  padding: 16px 18px;
  background: #f6f6f6;
  border: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #2b2b2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 12px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.consult-inner {
  max-width: 700px;
}

.consult-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.consult-form input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #5a5a5a;
  background: #4a4a4a;
  color: #fff;
}

.consent {
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid #eee;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-info {
  text-align: right;
  font-size: 12px;
  color: #666;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-info {
    text-align: left;
  }
}
