/* Shared section chrome */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
}

.section-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
  white-space: nowrap;
}

/* —— Features strip —— */
.features {
  margin-top: -1.25rem;
  position: relative;
  z-index: 5;
  padding-bottom: 0.5rem;
}

.features-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 1.35rem 1.1rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.feature {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.feature strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

/* —— About —— */
.about {
  background: color-mix(in srgb, var(--bg) 92%, #f3f3f3);
}

html[data-theme="light"] .about {
  background: #fafafa;
}

html[data-theme="dark"] .about {
  background: #161616;
}

html[data-theme="sand"] .about {
  background: #e5dccb;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.stat {
  padding: 1rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.stat b {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.services-list {
  display: grid;
  gap: 0.7rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.service-item span {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.service-item strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.service-item p {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

/* —— Projects —— */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: grid;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.project-card figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  aspect-ratio: 4 / 3;
  background: #ddd;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.project-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="dark"] .project-tag {
  background: rgba(28, 28, 28, 0.9);
  color: var(--ink);
}

.project-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.project-meta svg {
  color: var(--accent);
}

/* —— Reviews —— */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review {
  padding: 1.25rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.review-stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.review p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.review footer {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

/* —— Process —— */
.process-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.process-list li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.9rem;
  padding: 0 0 1.35rem;
  position: relative;
}

.process-list li:last-child {
  padding-bottom: 0;
}

.process-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.5rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.process-num {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--bg-elevated);
  position: relative;
  z-index: 1;
}

.process-list strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.process-list p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* —— Lead —— */
.lead {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  color: #f7f7f7;
  overflow: hidden;
}

.lead-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.88) 0%, rgba(12, 12, 12, 0.72) 48%, rgba(12, 12, 12, 0.55) 100%),
    url("../media/lead/banner.jpg") center / cover no-repeat;
}

.lead-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.lead h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.lead p {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.lead-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.65rem;
}

.lead-form input[type="text"],
.lead-form input[type="tel"] {
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-weight: 600;
}

.lead-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.lead-form .btn {
  white-space: nowrap;
}

.lead-agree {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.lead-agree input {
  margin-top: 0.15rem;
}

.lead-note {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f0d27a;
}

/* —— Footer —— */
.site-footer {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem;
  background: #141414;
  color: #ececec;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1.1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand-mark {
  width: 4.2rem;
  height: 4.2rem;
  filter: none;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col a,
.footer-col li {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.9;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contacts {
  display: grid;
  gap: 0.55rem;
}

.footer-contacts a,
.footer-contacts span {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-contacts svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .features-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .about-grid,
  .lead-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lead-row {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .features-panel {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
