/* ===== ШАПКА ===== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--border, #e8e0d5);
  padding: 0;
}
.hdr-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; height: 64px;
}
.hdr-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr-logo-img { height: 50px; width: auto; display: block; flex-shrink: 0; }
.hdr-logo-name { font-size: 17px; font-weight: 700; line-height: 1; color: #2c2420; }
.hdr-logo-sub { font-size: 11px; color: #7a6e66; font-weight: 400; }
.hdr-nav { display: flex; gap: 20px; flex: 1; }
.hdr-nav a { font-size: 14px; color: #7a6e66; transition: color .2s; white-space: nowrap; }
.hdr-nav a:hover { color: #c98a38; }
.hdr-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hdr-phone { font-size: 16px; font-weight: 700; color: #2c2420; }
.hdr-phone-sub { font-size: 11px; color: #7a6e66; }
.hdr-msgs { display: flex; gap: 6px; align-items: center; }
.hdr-msg {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; border: none; background: none;
}
.hdr-msg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hdr-cta {
  background: #c98a38; color: #fff; border: none; padding: 10px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: background .2s;
}
.hdr-cta:hover { background: #a86e22; }
.hdr-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hdr-burger span { display: block; width: 24px; height: 2px; background: #2c2420; border-radius: 2px; }
.hdr-mob {
  display: none; position: fixed; inset: 0; z-index: 999;
}
.hdr-mob.open { display: flex; flex-direction: column; }
.hdr-mob-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
}
.hdr-mob-panel {
  position: absolute; top: 0; right: 0; width: 280px; height: 100%;
  background: #fff; padding: 24px; display: flex; flex-direction: column;
  gap: 0; overflow-y: auto;
}
.hdr-mob-close {
  align-self: flex-end; background: none; border: none;
  font-size: 24px; cursor: pointer; color: #2c2420; margin-bottom: 16px;
}
.hdr-mob-panel a {
  padding: 14px 0; font-size: 16px; font-weight: 600; color: #2c2420;
  border-bottom: 1px solid #e8e0d5; display: block;
}
.hdr-mob-cta {
  margin-top: 16px; background: #c98a38; color: #fff; border: none;
  padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; width: 100%; font-family: inherit;
}
body { padding-top: 64px; }

@media (max-width: 768px) {
  .hdr-nav, .hdr-right { display: none; }
  .hdr-burger { display: flex; }
}

/* ===== ГЕРОЙ ===== */
.hero { background: #f7f2eb; padding: 56px 0 0; overflow: hidden; }
.hero-in {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: end;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e8e0d5; border-radius: 20px;
  padding: 6px 14px; font-size: 13px; color: #7a6e66; margin-bottom: 20px;
}
.hero-tag::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #4caf50; flex-shrink: 0;
}
.hero h1 {
  font-size: 44px; font-weight: 800; line-height: 1.15;
  color: #2c2420; margin-bottom: 16px;
}
.hero h1 span { color: #c98a38; }
.hero-desc {
  font-size: 16px; color: #7a6e66; margin-bottom: 28px;
  max-width: 440px; line-height: 1.7;
}
.hero-stats { display: flex; gap: 28px; margin-bottom: 32px; }
.hero-stat-num { font-size: 26px; font-weight: 800; color: #2c2420; }
.hero-stat-lbl { font-size: 12px; color: #7a6e66; line-height: 1.3; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-p {
  background: #c98a38; color: #fff; border: none; padding: 14px 28px;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .2s;
}
.hero-btn-p:hover { background: #a86e22; }
.hero-btn-s {
  background: transparent; color: #2c2420; border: 1.5px solid #e8e0d5;
  padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.hero-btn-s:hover { border-color: #c98a38; color: #c98a38; }
.hero-img {
  border-radius: 12px 12px 0 0; overflow: hidden; height: 480px;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8ddd0, #c9b89a);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: #a89880; font-size: 13px;
}

/* ===== ВТОРОЙ ВАРИАНТ СМЕЩЕНИЯ ===== */
@media (min-width: 831px) {
  .hero-img img {
    object-position: calc(50% + 70px) top;   /* сдвиг от центра вправо */
  }
}

@media (max-width: 830px) {
  .hero { padding: 32px 0 0; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 28px; }
  .hero-img { height: 260px; }
  .hero-stats { gap: 16px; }
  .hero-btns { flex-direction: column; }
  .hero-btn-p, .hero-btn-s { text-align: center; }
}

/* ===== БЛОК ДОВЕРИЯ ===== */
.tb { background: #fff; border-top: 1px solid #e8e0d5; border-bottom: 1px solid #e8e0d5; padding: 20px 0; }
.tb-in {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.tb-item { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 140px; }
.tb-icon {
  width: 40px; height: 40px; background: #fef6eb; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.tb-icon img { width: 24px; height: 24px; object-fit: contain; display: block; }
.tb-label { font-size: 13px; font-weight: 600; color: #2c2420; }
.tb-sub { font-size: 11px; color: #7a6e66; }

@media (max-width: 768px) {
  .tb-in { gap: 14px; }
  .tb-item { min-width: 120px; }
}
@media (max-width: 480px) {
  .tb-in { flex-direction: column; align-items: flex-start; }
}

/* ===== ФИКС ПЛАШЕК В ГАЛЕРЕЕ ПРОЕКТОВ ===== */
.proj .pc .pc-img .pc-badge {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important; right: auto !important; bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: #c88a37 !important; color: #fff !important;
  font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 6px 14px !important; border-radius: 8px !important;
  line-height: 1 !important; white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
/* Асинхронное перелистывание галерей */
.dir-card:nth-child(2) .dir-track,
.dir-card:nth-child(2) .dir-dots span { animation-delay: -4s; }
.dir-card:nth-child(3) .dir-track,
.dir-card:nth-child(3) .dir-dots span { animation-delay: -8s; }