/* ===== Дом с умом — Ремонт квартир и коттеджей в Уфе ===== */

:root {
  --ink: #211d1a;
  --ink-soft: #55504a;
  --paper: #faf7f3;
  --paper-alt: #f1ece4;
  --line: #e2dbd0;
  --accent: #a8683c;
  --accent-dark: #7e4c29;
  --accent-soft: #eee2d3;
  --wa: #2fae5a;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(33, 29, 26, 0.35);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 12px; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 17px; }
.section-alt { background: var(--paper-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(47, 174, 90, 0.6);
}
.btn-wa:hover { background: #279148; }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #3a332c; }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 76px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 700;
  font-size: 19px;
  flex-shrink: 0;
}
.logo span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header-phone {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.header-phone small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
}
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #2a241f;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,17,14,0.88) 10%, rgba(20,17,14,0.62) 48%, rgba(20,17,14,0.32) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 90px;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.86);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Fact strip */
.facts {
  background: var(--ink);
  color: #fff;
}
.facts .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 24px;
}
.fact { text-align: center; }
.fact strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.fact span { font-size: 14px; color: rgba(255,255,255,0.68); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 15px; margin-bottom: 0; }

/* Portfolio intro */
.portfolio-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

/* Featured project cards */
.proj-featured { display: flex; flex-direction: column; gap: 64px; }
.proj-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.proj-card.reverse { direction: rtl; }
.proj-card.reverse > * { direction: ltr; }
.proj-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}
.proj-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.proj-body h3 { font-size: 25px; margin-bottom: 4px; }
.proj-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 999px;
}
.pill.alt { background: var(--paper-alt); color: var(--ink-soft); }
.proj-body p { font-size: 15.5px; }

/* Compact grid */
.proj-grid-title { text-align: center; margin: 76px 0 34px; }
.proj-grid-title h3 { font-size: 24px; }
.proj-grid-title p { max-width: 620px; margin: 0 auto; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mini-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mini-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.mini-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.mini-body { padding: 16px 18px 20px; }
.mini-body h4 {
  font-size: 16.5px;
  margin: 0 0 8px;
  font-weight: 700;
}
.mini-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.mini-meta strong { color: var(--ink); }
.mini-body p { font-size: 13.5px; margin: 0; color: var(--ink-soft); }

/* How we work */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; }

/* Reviews */
.reviews-top {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.rating-badge {
  text-align: center;
}
.rating-badge strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
}
.rating-badge span { font-size: 14px; color: var(--ink-soft); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.review-card img { width: 100%; display: block; aspect-ratio: 600 / 1164; object-fit: cover; }
.review-cap {
  padding: 12px 16px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.review-cap strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* Order steps mini repeat used already; contacts */
.contacts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list b { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px;}
.contact-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-cta h3 { margin-bottom: 10px; }
.contact-cta .btn { width: 100%; margin-bottom: 12px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.social-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.social-row a:hover { border-color: var(--accent); color: var(--accent-dark); }

.map-note {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-note iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 44px 0 28px;
  font-size: 13.5px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-top .logo { color: #fff; }
.footer-top .logo span { color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal { line-height: 1.7; }

/* Sticky WhatsApp button (mobile) */
.float-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: var(--wa);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(47,174,90,0.6);
}
.float-wa svg { width: 28px; height: 28px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-wrap { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .proj-card, .proj-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .proj-photos { aspect-ratio: 4/3; }
  .proj-photos img { aspect-ratio: auto; }
  .facts .container { grid-template-columns: 1fr; gap: 22px; padding: 32px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: none; }
  .hero-inner { padding: 96px 0 64px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
