/* =========================================================
   STANDING — студия деревянного домостроения
   Общий файл стилей
   Палитра: белый, бежевый, тёмное дерево, графитовый
   ========================================================= */

:root {
  --beige: #f4efe7;
  --beige-dark: #e9e0d2;
  --wood: #4a3b2c;
  --wood-dark: #3a2e21;
  --graphite: #22262a;
  --graphite-soft: #3a4046;
  --white: #ffffff;
  --text: #2b2f33;
  --text-soft: #6b6f73;
  --accent: #8a6d4f;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(34, 38, 42, .10);
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

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

.container { width: min(1200px, 92%); margin: 0 auto; }

h1, h2, h3 { font-weight: 500; letter-spacing: .01em; }

.overline {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--accent);
  font-family: "Segoe UI", Arial, sans-serif;
  margin-bottom: 16px;
}

.section { padding: 96px 0; }

.section-head { max-width: 680px; margin-bottom: 56px; }

.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }

.section-head p { color: var(--text-soft); margin-top: 18px; font-size: 17px; }

/* ============ Шапка ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 38, 42, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo { font-size: 22px; letter-spacing: .08em; color: var(--graphite); font-weight: 600; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--graphite-soft);
  position: relative;
  transition: color var(--transition);
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--graphite); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
}
.header-cta {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  padding: 12px 24px;
  background: var(--graphite);
  color: var(--white);
  border-radius: 40px;
  transition: background var(--transition);
}
.header-cta:hover { background: var(--accent); }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 26px; height: 2px; background: var(--graphite); transition: var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Кнопки ============ */
.btn {
  display: inline-block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: .03em;
  padding: 16px 36px;
  border-radius: 40px;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--graphite); color: var(--graphite); }
.btn-outline:hover { background: var(--graphite); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--graphite); }
.btn-light:hover { background: var(--beige); }

/* ============ Первый экран (главная) ============ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24,20,16,.72) 0%, rgba(24,20,16,.35) 55%, rgba(24,20,16,.15) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 660px; padding: 40px 0; }
.hero-content h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  margin: 18px 0 22px;
}
.hero-content p { font-size: 19px; color: rgba(255,255,255,.85); max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.8);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* ============ Преимущества ============ */
.benefits { background: var(--beige); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.benefit-card { padding: 30px; }
.benefit-card .num {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .12em;
}
.benefit-card h3 { font-size: 19px; margin: 14px 0 10px; }
.benefit-card p { color: var(--text-soft); font-size: 15px; }

/* ============ Услуги ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border: 1px solid rgba(34,38,42,.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img { height: 230px; width: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover img { transform: scale(1.04); }
.service-card-body { padding: 30px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: 15px; }
.service-card a.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--accent);
  transition: gap var(--transition);
}
.service-card a.more:hover { gap: 14px; }

/* ============ Проекты / галерея ============ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--beige);
}
.project-card img { height: 300px; width: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover img { transform: scale(1.05); }
.project-info { padding: 24px; background: var(--white); }
.project-info h3 { font-size: 20px; }
.project-meta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: var(--text-soft);
}
.project-meta b { color: var(--graphite); font-weight: 600; }

/* Фильтр галереи */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid rgba(34,38,42,.14);
  background: transparent;
  color: var(--graphite-soft);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.hidden-item { display: none !important; }

/* ============ Как мы работаем ============ */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid rgba(34,38,42,.08);
}
.step:last-child { border-bottom: 1px solid rgba(34,38,42,.08); }
.step .step-num {
  counter-increment: step;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .1em;
}
.step .step-num::before { content: "0" counter(step); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--text-soft); max-width: 620px; }

/* ============ Отзывы ============ */
.reviews { background: var(--graphite); color: var(--white); }
.reviews .section-head h2 { color: var(--white); }
.reviews .overline { color: var(--beige-dark); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 34px; }
.review-card p { color: rgba(255,255,255,.82); font-size: 16px; }
.review-card .author { margin-top: 20px; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; color: var(--beige-dark); }

/* ============ Контакты / футер ============ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card { background: var(--beige); border-radius: var(--radius); padding: 34px; }
.contact-card h3 { font-size: 18px; margin-bottom: 10px; }
.contact-card a, .contact-card p { color: var(--graphite-soft); font-size: 16px; }
.contact-card a:hover { color: var(--accent); }
.map-placeholder {
  margin-top: 40px;
  height: 380px;
  border-radius: var(--radius);
  background: var(--beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--graphite-soft);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: .05em;
  border: 1px dashed rgba(34,38,42,.2);
}

.footer { background: var(--wood-dark); color: rgba(255,255,255,.75); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer .logo { color: var(--white); }
.footer h4 { font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--beige-dark); margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { font-size: 15px; transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { font-size: 14px; }
.footer-bottom .legal { display: flex; gap: 26px; }

/* Соцсети */
.socials { display: flex; gap: 14px; }
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  transition: var(--transition);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ============ Страница "О компании" ============ */
.page-hero {
  background: var(--beige);
  padding: 90px 0 70px;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.page-hero p { color: var(--text-soft); max-width: 640px; margin-top: 16px; font-size: 17px; }

.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-intro img { border-radius: var(--radius); height: 440px; object-fit: cover; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 70px; }
.number-card { text-align: center; padding: 40px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(34,38,42,.06); }
.number-card .value { font-size: 44px; color: var(--accent); font-family: "Segoe UI", Arial, sans-serif; }
.number-card .label { margin-top: 8px; color: var(--text-soft); font-size: 14px; }

.principles { background: var(--beige); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principle-card { background: var(--white); border-radius: var(--radius); padding: 36px; }
.principle-card h3 { font-size: 19px; margin-bottom: 12px; }
.principle-card p { color: var(--text-soft); font-size: 15px; }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.team img { border-radius: var(--radius); height: 420px; object-fit: cover; }
.team h2 { font-size: 32px; margin-bottom: 18px; }
.team p { color: var(--text-soft); margin-bottom: 14px; }

/* ============ Cookie + модалки ============ */
.cookie-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(680px, 92%);
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  z-index: 200;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.cookie-notice.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cookie-notice p { font-size: 14px; color: rgba(255,255,255,.85); }
.cookie-notice p a { color: var(--beige-dark); text-decoration: underline; }
.cookie-notice .btn { padding: 12px 28px; font-size: 14px; white-space: nowrap; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, .55);
  backdrop-filter: blur(4px);
}
.modal-window {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 44px;
  transform: translateY(16px);
  transition: var(--transition);
}
.modal.show .modal-window { transform: translateY(0); }
.modal-window h3 { font-size: 24px; margin-bottom: 18px; }
.modal-window p, .modal-window li { color: var(--text-soft); font-size: 15px; margin-bottom: 10px; }
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--graphite-soft);
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--accent); }

/* ============ Адаптивность ============ */
@media (max-width: 992px) {
  .benefits-grid, .services-grid, .projects-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .about-intro, .team { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 10px 6%;
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: var(--transition);
  }
  .nav.open { transform: translateY(0); }
  .nav a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(34,38,42,.06); }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--accent); }
  .burger { display: flex; }
  .header-cta { display: none; }
  .benefits-grid, .services-grid, .projects-grid, .reviews-grid { grid-template-columns: 1fr; }
  .cookie-notice { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
  .step { grid-template-columns: 1fr; gap: 12px; }
}
