/* Описание для side-экранов — по умолчанию скрыто */
.side-sub{
  display: none;
}
/* ──────────── О НАС ──────────── */
.about-layout{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text h2{
  margin-bottom: 20px;
}

.about-text p{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-text p:last-child{
  margin-bottom: 0;
}

.about-image{
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image-placeholder{
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--placeholder), var(--placeholder-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

@media(max-width: 960px){
  .about-layout{
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============ PROJECTS ============ */
.filter{
  padding:10px 20px;border-radius:100px;background:var(--card);
  border:1px solid var(--line);color:var(--muted);cursor:pointer;
  font-size:14px;font-family:inherit;transition:.2s;font-weight:500;
}
.filter.active,.filter:hover{
  background:var(--accent);color:var(--on-accent);border-color:var(--accent);
}
/* ──────────── ФИЛЬТРЫ КАТАЛОГА ПРОЕКТОВ ──────────── */
.projects-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:32px;
}

.projects-filters .filter{
  padding:10px 20px;
  border-radius:100px;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
  font-family:inherit;
  font-weight:500;
  cursor:pointer;
  transition:.2s;
}
.projects-filters .filter:hover{
  border-color:var(--accent);
  color:var(--accent);
}
.projects-filters .filter.active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}

/* Кнопка «Все проекты» под сеткой */
.projects-more{
  margin-top:32px;
  text-align:center;
}

.project{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  transition:.3s;cursor:pointer;box-shadow:var(--shadow-sm);
}
.project:hover{
  border-color:var(--accent);transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}
.project-img{
  height:220px;
  background:linear-gradient(135deg,var(--placeholder),var(--placeholder-2));
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-size:14px;position:relative;
}
.project-img::after{content:"Фото проекта";opacity:.55}
.project-body{padding:24px}
.project-body h3{font-size:18px;margin-bottom:14px}
.project-specs{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.spec{font-size:13px;color:var(--muted)}
.spec strong{color:var(--text);display:block;font-size:15px}
.project-price{
  font-size:22px;font-weight:800;color:var(--accent);
  padding-top:16px;border-top:1px solid var(--line-2);
}
.project.hidden{display:none}

/* ============ CALCULATOR ============ */
.calc-wrap{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:48px;
  display:grid;grid-template-columns:1fr 1fr;gap:48px;
  box-shadow:var(--shadow-md);
}
.calc-form label{
  display:block;font-size:14px;color:var(--muted);
  margin-bottom:8px;margin-top:20px;font-weight:500;
}
.calc-form label:first-child{margin-top:0}
.calc-form input,.calc-form select{
  width:100%;padding:14px 16px;background:var(--bg-2);
  border:1px solid var(--line);border-radius:12px;
  color:var(--text);font-family:inherit;font-size:15px;transition:.2s;
}
.calc-form input:focus,.calc-form select:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.calc-result{
  background:var(--accent-soft);
  border:1px solid var(--accent-border);
  border-radius:var(--radius);padding:32px;
  display:flex;flex-direction:column;justify-content:center;
}
.calc-result .label{color:var(--muted);font-size:14px;margin-bottom:8px}
.calc-result .price{
  font-size:40px;font-weight:800;
  color:var(--accent);margin-bottom:16px;
}
.calc-result .note{color:var(--muted);font-size:13px}

/* ============ MATERIALS ============ */
.materials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.material{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-sm);transition:.3s;
}
.material:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.material-img{
  height:160px;
  background:linear-gradient(135deg,var(--placeholder),var(--placeholder-2));
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-size:13px;
}
.material-body{padding:24px}
.material-cat{
  font-size:12px;color:var(--accent);
  text-transform:uppercase;letter-spacing:.08em;font-weight:700;
}
.material-body h3{font-size:18px;margin:8px 0 14px}
.material-body ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.material-body li{
  font-size:14px;color:var(--muted);
  padding-left:18px;position:relative;
}
.material-body li::before{
  content:"•";color:var(--accent);
  position:absolute;left:0;font-weight:700;
}

/* ──────────── ПРИМЕРЫ РАБОТ (ГАЛЕРЕЯ) ──────────── */
.gallery{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}

.gallery-item{
  position:relative;
  aspect-ratio:1;
  border-radius:var(--radius);
  overflow:hidden;
  cursor:pointer;
  border:1px solid var(--line);
  background:var(--placeholder);
  transition:.3s;
}
.gallery-item:hover{
  border-color:var(--accent);
  transform:scale(1.02);
  box-shadow:var(--shadow-md);
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 1-е фото — крупное (2×2) */
.gallery-item:nth-child(1){
  grid-column:span 2;
  grid-row:span 2;
  aspect-ratio:auto;
}

.gallery-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:16px 14px 12px;
  background:linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1.35;
  opacity:0;
  transition:.3s;
  pointer-events:none;
}
.gallery-item:hover .gallery-caption{
  opacity:1;
}

.gallery-empty{
  grid-column:1 / -1;
  text-align:center;
  padding:60px 20px;
  color:var(--muted);
  font-size:15px;
}

@media(max-width:960px){
  .gallery{grid-template-columns:1fr 1fr}
  .gallery-item:nth-child(1){
    grid-column:span 2;
    grid-row:span 1;
  }
}

/* ============ GUARANTEE ============ */
.guarantee-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.guarantee{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:32px;
  box-shadow:var(--shadow-sm);transition:.3s;
}
.guarantee:hover{box-shadow:var(--shadow-md)}
.guarantee h3{font-size:18px;margin-bottom:12px;color:var(--accent-2)}
.guarantee p{color:var(--muted);font-size:15px}

/* ============ FAQ ============ */
.faq{
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px 32px;
  box-shadow: var(--shadow-sm);
  margin: 0;
  max-width: none;
}
.faq-item{border-bottom:1px solid var(--line-2);padding:24px 0;cursor:pointer}
.faq-item:last-child{border-bottom:none}
.faq-q{
  display:flex;justify-content:space-between;align-items:center;
  gap:20px;font-weight:600;font-size:17px;
}
.faq-q::after{
  content:"+";font-size:24px;color:var(--accent);
  transition:.3s;font-weight:400;flex-shrink:0;
}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{
  max-height:0;overflow:hidden;transition:.3s;
  color:var(--muted);font-size:15px;
}
.faq-item.open .faq-a{max-height:400px;padding-top:14px}

/* ============ FORM ============ */
.form-wrap{
  background:var(--accent-soft);
  border:1px solid var(--accent-border);
  border-radius:24px;padding:56px;
  display:grid;grid-template-columns:1fr 1fr;gap:56px;
  box-shadow:var(--shadow-md);
}
.form-wrap h2{margin-bottom:16px}
.form-wrap p{color:var(--muted);margin-bottom:32px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid input,.form-grid textarea{
  width:100%;padding:14px 16px;background:var(--card);
  border:1px solid var(--line);border-radius:12px;
  color:var(--text);font-family:inherit;font-size:15px;transition:.2s;
}
.form-grid input:focus,.form-grid textarea:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.form-grid .full{grid-column:span 2}
.form-grid textarea{resize:vertical;min-height:100px}
.form-contacts{
  display:flex;flex-direction:column;gap:20px;justify-content:center;
}
.contact-item{
  display:flex;gap:14px;align-items:center;
  font-size:16px;color:var(--text);
}
.contact-item a{
  color:var(--text);text-decoration:none;font-weight:600;
}
.contact-item a:hover{color:var(--accent)}

/* ──────────── КАРТИНКИ В ПРОЕКТАХ ──────────── */
.project-img.has-image::after{
  display:none;   /* убираем подпись «Фото проекта» */
}
.project-img.has-image{
  background:none;   /* убираем градиент-заглушку */
}
.project-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ──────────── КАРТИНКИ В АКЦИЯХ ──────────── */
.promo-thumb.has-image{
  background:none;
}
.promo-thumb.has-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:10px;
  display:block;
}

/* ──────────── ФОРМА ЗАЯВКИ: статусы ──────────── */
.lead-status{
  display:none;
  padding:14px 18px;
  border-radius:10px;
  font-size:14.5px;
  line-height:1.5;
  margin-top:12px;
}
.lead-status.show{display:block}
.lead-status.success{
  background:rgba(76,175,122,.12);
  color:#2d8a5c;
  border:1px solid rgba(76,175,122,.3);
}
.lead-status.error{
  background:rgba(255,80,80,.1);
  color:#d64545;
  border:1px solid rgba(255,80,80,.25);
}
.lead-status.loading{
  background:var(--accent-soft);
  color:var(--accent);
  border:1px solid var(--accent-border);
}

.lead-privacy{
  font-size:12.5px;
  color:var(--muted);
  margin-top:10px;
  line-height:1.5;
}

.lead-status.loading::before{
  content:"";
  display:inline-block;
  width:12px;height:12px;
  border:2px solid currentColor;
  border-top-color:transparent;
  border-radius:50%;
  animation:spin 0.7s linear infinite;
  margin-right:8px;
  vertical-align:-1px;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}

/* ──────────── НИЖНЯЯ ЧАСТЬ ФОРМЫ ЗАЯВКИ ──────────── */
.lead-form-footer{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.lead-form-footer .btn{
  align-self:flex-start;
  min-width:220px;
  justify-content:center;
}

@media(max-width:600px){
  .lead-form-footer .btn{
    align-self:stretch;
    width:100%;
  }
}

/* ──────────── ФОРМА ЗАЯВКИ ──────────── */
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.form-grid .full{
  grid-column:span 2;
}

/* Явно задаём раскладку формы заявки, чтобы не зависеть от других правил */
#leadForm{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
#leadForm .full{
  grid-column:span 2;
}
#leadForm .lead-form-footer{
  grid-column:span 2;
}

@media(max-width:600px){
  #leadForm{
    grid-template-columns:1fr;
  }
}

/* ──────────── ФОТО НАГРАД В СПИСКЕ ──────────── */
.award-image{
  margin-bottom:12px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--line);
  aspect-ratio:4/3;
  background:var(--placeholder);
}
.award-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ──────────── МОДАЛКА НАГРАДЫ ──────────── */
#awardModalImageWrap img{
  cursor:zoom-in;
  transition:.2s;
}
#awardModalImageWrap img.zoomed{
  max-width:none;
  width:100%;
  cursor:zoom-out;
}

/* ──────────── МОДАЛКА С КАДАСТРОВОЙ КАРТОЙ ──────────── */
.modal.modal-wide{
  max-width:720px;
}

/* ──────────── МОДАЛКА ПРОЕКТА ДОМА ──────────── */
.project-gallery{
  margin-top:20px;
}

.project-main-image{
  width:100%;
  aspect-ratio:16/10;
  border-radius:12px;
  overflow:hidden;
  background:var(--placeholder);
  border:1px solid var(--line);
  margin-bottom:12px;
}
.project-main-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.project-thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(80px, 1fr));
  gap:8px;
}
.project-thumb{
  aspect-ratio:1;
  border-radius:8px;
  overflow:hidden;
  cursor:pointer;
  border:2px solid transparent;
  background:var(--placeholder);
  transition:.2s;
}
.project-thumb:hover{
  border-color:var(--accent-border);
}
.project-thumb.active{
  border-color:var(--accent);
}
.project-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.project-specs{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin:20px 0;
  font-size:15px;
  color:var(--text);
}
.project-specs span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.project-description{
  margin-top:20px;
  padding:16px 20px;
  background:var(--bg-2);
  border-radius:10px;
  font-size:14.5px;
  line-height:1.65;
  color:var(--text);
  white-space:pre-wrap;
}

.project-section-title{
  font-size:15px;
  font-weight:700;
  margin-top:24px;
  margin-bottom:12px;
  color:var(--text);
}

.project-plans{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:12px;
}
.project-plan{
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--placeholder);
  cursor:pointer;
  transition:.2s;
}
.project-plan:hover{
  border-color:var(--accent);
}
.project-plan img{
  width:100%;
  display:block;
}

@media(max-width:600px){
  .project-specs{font-size:14px;gap:14px}
  .project-thumbs{grid-template-columns:repeat(auto-fill, minmax(60px, 1fr))}
}

/* ──────────── КНОПКА «ВСЕ ПРИМЕРЫ РАБОТ» ──────────── */
.gallery-more{
  margin-top:32px;
  text-align:center;
}

/* ──────────── ЛАЙТБОКС ──────────── */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  backdrop-filter:blur(8px);
  z-index:2000;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  /* Сверху отступ, снизу БОЛЬШОЙ — под миниатюры + текст */
  padding:60px 80px 180px;
}

.lightbox.open{
  display:flex;
}

.lightbox-content{
  position:relative;
  flex:1;
  min-height:0;
  max-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  max-width:100%;
}

.lightbox-content img{
  max-width:100%;
  max-height:100%;
  min-height:0;
  border-radius:10px;
  display:block;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  object-fit:contain;
}

.lightbox-caption{
  color:#fff;
  font-size:15px;
  font-weight:600;
  text-align:center;
  max-width:800px;
  line-height:1.4;
  flex-shrink:0;
  margin-top:6px;
}

.lightbox-description{
  color:rgba(255,255,255,.75);
  font-size:13.5px;
  line-height:1.55;
  text-align:center;
  max-width:800px;
  flex-shrink:0;
}
.lightbox-description:empty{
  display:none;
}

.lightbox-close{
  position:absolute;
  top:20px;
  right:20px;
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s;
  z-index:10;
}
.lightbox-close:hover{
  background:var(--accent);
  border-color:var(--accent);
}

.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:56px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s;
  z-index:10;
  padding-bottom:6px;
}
.lightbox-nav:hover{
  background:var(--accent);
  border-color:var(--accent);
}
.lightbox-prev{left:20px}
.lightbox-next{right:20px}

.lightbox-counter{
  position:absolute;
  top:24px;
  left:24px;
  color:rgba(255,255,255,.75);
  font-size:14px;
  font-weight:500;
  letter-spacing:.05em;
  background:rgba(0,0,0,.4);
  padding:6px 12px;
  border-radius:100px;
}

@media(max-width:700px){
  /* Лайтбокс — на весь экран, без боковых отступов,
     НО — ниже нижней панели, чтобы панель оставалась видна */
  .lightbox{
    padding: 0;
    z-index: 800;         /* ← ниже .mobile-bottom-nav (z-index: 900) */
    bottom: 68px;         /* ← высота нижней панели */
  }

  /* Фото — по центру, с ограничением по высоте */
  .lightbox-content{
    padding: 60px 12px 20px;
    gap: 0;
  }
  .lightbox-content img{
    max-height: calc(100vh - 200px);
    border-radius: 0;
    box-shadow: none;

    /* Отключаем системный зум и жесты браузера — управляем сами через JS */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    /* Плавная анимация зума при двойном тапе */
    transition: transform 0.2s ease;
    transform-origin: center center;
  }

  /* Класс, который снимает transition во время pinch/pan (для Шага 2-3) */
  .lightbox-content img.no-transition{
    transition: none;
  }

  /* Счётчик — маленький, полупрозрачный, сверху слева */
  .lightbox-counter{
    position: absolute;
    top: 16px;
    left: 16px;
    bottom: auto;
    height: auto;
    width: auto;
    background: transparent;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    letter-spacing: .05em;
  }

  /* Крестик — справа сверху, чуть крупнее */
  .lightbox-close{
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Стрелки — крупнее, полупрозрачные */
  .lightbox-nav{
    width: 44px;
    height: 44px;
    font-size: 26px;
    background: rgba(255,255,255,.12);
    border: none;
  }

  /* Убираем hover-эффект на мобильном (стрелки всегда полупрозрачные) */
  .lightbox-nav:hover,
  .lightbox-nav:active,
  .lightbox-nav:focus{
    background: rgba(255,255,255,.12) !important;
    border-color: transparent !important;
  }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }

  /* Подпись — полупрозрачная, не растягивается */
  .lightbox-caption{
    color: rgba(255,255,255,.8);
    font-size: 14px;
    padding: 12px 20px 0;
    margin-top: 0;
  }

  .lightbox-description{
    color: rgba(255,255,255,.6);
    font-size: 13px;
    padding: 4px 20px 0;
  }

  /* Миниатюры — скрыты */
  .lightbox-thumbs{
    display: none !important;
  }
}

.lightbox-thumbs{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  padding:8px 12px;
  max-width:calc(100vw - 120px);
  overflow-x:auto;
  overflow-y:hidden;
  border-radius:12px;
  background:rgba(0,0,0,.4);
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;   /* не «дёргает» родительский скролл */
}

/* Горизонтальный скроллбар под миниатюрами */
.lightbox-thumbs::-webkit-scrollbar{
  height:6px;
}
.lightbox-thumbs::-webkit-scrollbar-track{
  background:transparent;
  margin:0 8px;                     /* ← отступы по краям — не касается углов */
}
.lightbox-thumbs::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.25); /* ← полупрозрачный белый — видно на тёмном */
  border-radius:3px;
  transition:.2s;
}
.lightbox-thumbs::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.5);  /* ← при наведении — ярче */
}

.lightbox-thumb{
  width:60px;
  height:60px;
  flex-shrink:0;
  border-radius:8px;
  overflow:hidden;
  cursor:pointer;
  border:2px solid transparent;
  transition:.2s;
  opacity:.6;
  background:rgba(255,255,255,.05);
}
.lightbox-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.lightbox-thumb:hover{
  opacity:1;
  border-color:rgba(255,255,255,.4);
}
.lightbox-thumb.active{
  opacity:1;
  border-color:var(--accent);
}

@media(max-width:700px){
  .lightbox-thumbs::-webkit-scrollbar{
    display:none;
    height:0;
  }
  .lightbox-thumbs{
    scrollbar-width:none;
  }
}

/* ──────────── НОВОСТИ (обновлённые) ──────────── */
.news-item{
  display:block;
  padding:14px 0;
  text-decoration:none;
  color:var(--text);
  transition:.2s;
}

.news-thumb{
  width:100%;
  aspect-ratio:16/10;
  border-radius:10px;
  overflow:hidden;
  background:var(--placeholder);
  margin-bottom:10px;
}
.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.news-body{
  /* контейнер для текстовой части */
}

.news-item time{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:500;
  letter-spacing:.02em;
  margin-bottom:6px;
}

.news-title{
  display:block;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  margin-bottom:8px;
}

.news-preview{
  font-size:13.5px;
  color:var(--muted);
  line-height:1.5;
  margin-bottom:10px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.news-more{
  display:inline-block;
  font-size:13px;
  font-weight:600;
  color:var(--accent);
  text-decoration:none;
}
.news-more:hover{
  color:var(--accent-2);
}

/* ──────────── СЕКЦИЯ НОВОСТЕЙ (после hero) ──────────── */
.news-head-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.news-head-row h2{
  margin: 0;
}
.news-all-link{
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}
.news-all-link:hover{
  color: var(--accent-2);
}

.news-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Карточка новости в сетке — переиспользует .news-item,
   но добавляет фон, рамку и высоту */
.news-grid .news-item{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  transition: border-color .2s, transform .2s;
}
.news-grid .news-item:hover{
  border-color: var(--accent);
  transform: translateY(-2px);
}
.news-grid .news-thumb{
  margin-bottom: 0;
}

@media(max-width: 960px){
  .news-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 560px){
  .news-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ──────────── МОДАЛКА НОВОСТИ С КАРТИНКАМИ ──────────── */
.news-modal-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:12px;
  margin-bottom:20px;
}

.news-modal-image{
  border-radius:10px;
  overflow:hidden;
  background:var(--placeholder);
  aspect-ratio:16/10;
}
.news-modal-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.news-modal-date{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
  font-weight:500;
}

.news-modal-text{
  font-size:15px;
  line-height:1.65;
  color:var(--text);
  white-space:pre-wrap;
}

/* ──────────── МОДАЛКА ВИДЕО: ЧЁРНЫЙ ФОН ──────────── */
#videoModal .modal{
  background:#000;
}

/* ──────────── МОДАЛКА ПРОЕКТА ПОВЕРХ СПИСКА ──────────── */
/* Когда проект открывается из модалки «Все проекты» —
   он должен быть выше списка */
#projectModal{
  z-index: 1100;
}

/* ──────────── FAQ ВНУТРИ ГАРАНТИЙ ──────────── */
/* Разделитель между блоком Условий и блоком FAQ */
.faq{
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ──────────── КЛИКАБЕЛЬНЫЕ ЗАГОЛОВКИ В КАРТОЧКАХ ──────────── */
.news-title-link,
.award-title-link{
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color .2s;
}

.news-title-link:hover .news-title,
.award-title-link:hover .award-title{
  color: var(--accent);
}

/* ──────────── ДОМА В ПРОДАЖЕ — КАТАЛОГ С КАРТОЙ ──────────── */

.hc-filters-btn{
  display: none;
}

/* Ручка bottom sheet — только для мобильного */
.hc-sheet-handle{
  display: none;
}

/* Фильтры */
.hc-filters{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.hc-filters-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.hc-filter-item{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 220px;
  min-width: 0;
}

.hc-filter-label{
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  padding-left: 2px;
}

.hc-filter-select{
  width: 100%;
  padding: 11px 36px 11px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='%23616b7a' d='M6 8L2 4h8z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
}
.hc-filter-select:hover{
  border-color: var(--accent);
}
.hc-filter-select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Кнопки статуса */
.hc-status-buttons{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.hc-status-btn{
  padding: 11px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.hc-status-btn span{
  font-size: 12.5px;
  opacity: .75;
  font-weight: 700;
}
.hc-status-btn:hover{
  border-color: var(--accent);
  color: var(--text);
}
.hc-status-btn.active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hc-status-btn.active span{
  opacity: .9;
  color: #fff;
}

/* Двухколоночный layout */
.hc-layout{
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}

/* Список домов */
.hc-list-wrap{
  position: relative;
  height: 600px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hc-list{
  height: 100%;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.hc-list::-webkit-scrollbar{
  width: 6px;
}
.hc-list::-webkit-scrollbar-track{
  background: transparent;
}
.hc-list::-webkit-scrollbar-thumb{
  background: var(--line);
  border-radius: 3px;
}
.hc-list::-webkit-scrollbar-thumb:hover{
  background: var(--muted);
}

/* Пустое состояние */
.hc-list-empty{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--bg-2);
}
.hc-list-empty-icon{
  font-size: 36px;
  opacity: .5;
}
.hc-list-empty-text{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Карта */
.hc-map-wrap{
  position: relative;
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--placeholder);
}
.hc-map{
  width: 100%;
  height: 100%;
}

/* Карточка дома в списке */
.hc-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
  flex-shrink: 0;
}
.hc-card:hover{
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hc-card-img{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--placeholder), var(--placeholder-2));
  overflow: hidden;
}
.hc-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hc-card-status{
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.hc-card-status.status-building{
  background: rgba(255, 122, 47, .92);
  color: #fff;
}
.hc-card-status.status-built{
  background: rgba(76, 175, 122, .92);
  color: #fff;
}

.hc-card-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-card-title{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.hc-card-location{
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hc-card-specs{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.hc-card-specs span{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hc-card-price{
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

/* Расширенная карточка (при клике на метку) */
.hc-card-expanded .hc-card-body{
  padding: 16px 18px 18px;
}
.hc-card-expanded .hc-card-title{
  font-size: 17px;
  padding-right: 30px;
}
.hc-card-expanded .hc-card-price{
  font-size: 20px;
  padding-top: 4px;
}
.hc-card-expanded .hc-card-actions{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.hc-card-expanded .hc-card-actions .btn{
  width: 100%;
  justify-content: center;
  font-size: 13.5px;
  padding: 11px 16px;
}
.hc-card-expanded .hc-card-actions .btn-primary{
  background: #4caf7a;
  box-shadow: none;
}
.hc-card-expanded .hc-card-actions .btn-primary:hover{
  background: #3f9b6b;
}

/* Кнопка «назад к списку» в расширенной карточке */
.hc-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
  margin-bottom: 4px;
  align-self: flex-start;
}
.hc-back-btn:hover{
  border-color: var(--accent);
  color: var(--accent);
}

/* Адаптив */
@media(max-width: 1100px){
  .hc-layout{
    grid-template-columns: 340px 1fr;
  }
}

@media(max-width: 900px){
  .hc-layout{
    grid-template-columns: 1fr;
  }
  .hc-list-wrap{
    height: 400px;
    order: 2;
  }
  .hc-map-wrap{
    height: 400px;
    order: 1;
  }
}

@media(max-width: 600px){
  .hc-filter-item{
    flex: 1 1 100%;
  }
  .hc-status-btn{
    font-size: 12.5px;
    padding: 10px 8px;
    gap: 4px;
  }
  .hc-status-btn span{
    font-size: 11.5px;
  }
  .hc-list-wrap,
  .hc-map-wrap{
    height: 360px;
  }
  .hc-list{
    padding: 10px;
    gap: 10px;
  }
}

/* ============================================================
   ЭТАП 2A — КАРТА НА ВЕСЬ ЭКРАН (только мобильный)
   ============================================================ */

@media(max-width: 768px){

  /* Контейнер секции — на весь экран */
  #houses-catalog{
    padding: 0 !important;
    margin: 0 !important;
  }

  #houses-catalog > .container{
    padding: 0 !important;   /* ← добавили !important */
    margin: 0 !important;
    max-width: 100% !important;
    width: 100%;
  }

  /* Скрываем заголовок и описание — они не нужны на карте */
  #houses-catalog > .container > h2,
  #houses-catalog > .container > .section-sub{
    display: none;
  }

  /* Фильтры — пока прячем (сделаем в подэтапе C) */
  #houses-catalog .hc-filters{
    display: none;
  }

  /* Layout — карта на весь экран */
  #houses-catalog .hc-layout{
    display: block;
    position: relative;
    height: calc(100vh - var(--header-height, 80px) - 68px);
    height: calc(100dvh - var(--header-height, 80px) - 68px);
    overflow: hidden;
  }

  /* Карта — на весь экран */
  #houses-catalog .hc-map-wrap{
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 0;
    border: none;
    z-index: 1;
  }

  /* ─── BOTTOM SHEET СПИСКА ─── */

  #houses-catalog .hc-list-wrap{
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;

    background: var(--card);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -8px 30px rgba(0,0,0,.18);

    /* По умолчанию — свёрнут (10vh) */
    height: 15vh;
    max-height: 85vh;
    transition: height .3s cubic-bezier(.32,.72,0,1);
    overflow: hidden;
  }

    /* ─── Во время свайпа — отключаем transition ─── */
  #houses-catalog .hc-list-wrap.hc-sheet--dragging{
    transition: none;
  }

  #houses-catalog .hc-list-wrap.hc-sheet--dragging .hc-sheet-handle{
    cursor: grabbing;
  }

  /* Состояния bottom sheet */
  #houses-catalog .hc-list-wrap.hc-sheet--half{
    height: 45vh;
  }
  #houses-catalog .hc-list-wrap.hc-sheet--expanded{
    height: 75vh;
    height: 75dvh;   /* современный viewport — без адресной строки */
  }

  /* ─── РУЧКА ─── */
  #houses-catalog .hc-sheet-handle{
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 12px;
    cursor: grab;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 1px solid var(--line-2);
  }
  #houses-catalog .hc-sheet-handle:active{
    cursor: grabbing;
  }

  #houses-catalog .hc-sheet-handle-bar{
    width: 44px;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    transition: background .2s;
  }
  #houses-catalog .hc-sheet-handle:hover .hc-sheet-handle-bar,
  #houses-catalog .hc-sheet-handle:active .hc-sheet-handle-bar{
    background: var(--accent);
  }

  #houses-catalog .hc-sheet-handle-info{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
  }

  #houses-catalog .hc-sheet-count{
    color: var(--text);
    font-weight: 600;
  }

  /* ─── СПИСОК ВНУТРИ SHEET ─── */
  #houses-catalog .hc-list{
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  #houses-catalog .hc-list::-webkit-scrollbar{
    width: 4px;
  }
  #houses-catalog .hc-list::-webkit-scrollbar-thumb{
    background: var(--line);
    border-radius: 2px;
  }

  /* Пустое состояние внутри sheet */
  #houses-catalog .hc-list-empty{
    position: static;
    flex: 1;
    padding: 24px;
    background: transparent;
  }

  /* Кнопка «Фильтры» — правый верхний угол карты */
  #houses-catalog .hc-map-wrap::before{
    /* Заглушка — кнопку добавим в подэтапе C */
  }

    /* ─── КНОПКА «ФИЛЬТРЫ» на карте ─── */
  #houses-catalog .hc-filters-btn{
    position: absolute;
    top: 12px;
    right: 60px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: .2s;
    -webkit-tap-highlight-color: transparent;
  }
  #houses-catalog .hc-filters-btn:active{
    transform: scale(.96);
  }

  #houses-catalog .hc-filters-btn-icon{
    font-size: 16px;
    line-height: 1;
  }

  #houses-catalog .hc-filters-btn-label{
    line-height: 1;
  }

  #houses-catalog .hc-filters-btn-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    margin-left: 2px;
  }

  /* ─── DRAWER ФИЛЬТРОВ ─── */
  #hcFiltersSheet{
    max-height: 85vh;
  }

  .hc-filters-sheet-body{
    padding: 4px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
  }

  .hc-filters-sheet-field{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hc-filters-sheet-label{
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    padding-left: 2px;
  }

  .hc-filters-sheet-reset{
    margin-top: 6px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: .2s;
  }
  .hc-filters-sheet-reset:active{
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
  }

    #houses-catalog .hc-filters-btn{
    display: inline-flex;
    /* стили */
  }
}

/* ============================================================
   ЭТАП 3 — VIEW SWITCHING (только мобильный)
   Каждая секция — отдельный экран. Переключение через нижнюю панель.
   ============================================================ */

@media(max-width: 768px){

  /* Hero — скрыт на мобильном */
  body > .hero{
    display: none !important;
  }

    /* Footer — скрыт на мобильном */
  body > footer{
    display: none !important;
  }

  /* Body — без общего скролла. Скролл — только внутри активного экрана */
  body{
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  /* Все секции — скрыты по умолчанию */
  body > section{
    display: none;
    overflow-y: auto;
    overflow-x: hidden;

    /* !important — перебиваем десктопный padding: 100px 0 */
    padding: 16px 0 24px !important;
    margin: 0 !important;
    box-sizing: border-box;

    /* Плавное появление */
    animation: viewFadeIn .25s ease;

    /* Отключаем стандартные паддинги */
    border-bottom: none !important;
  }

  /* Активная секция — фиксированная позиция, растянута от верха до нижней панели */
  body > section.view-active{
    display: block;
    position: fixed;
    top: var(--header-height, 80px);   /* ← высота header — сдвигаем секцию под него */
    left: 0;
    right: 0;
    bottom: 68px;
    z-index: 1;
    animation: viewFadeIn .25s ease;
  }

  @keyframes viewFadeIn{
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* hc-layout внутри карты — уже на 100%, ничего не меняем */
  /* Hc-секция «Дома в продаже» — исключение:
     она уже имеет свою высоту calc(100vh - 68px) — сохраняем */
  body > section#houses-catalog{
    padding: 0;
  }

  /* Внутри активного экрана — элементы прилипают к потолку */
  /* Scroll Snap — отключён. Мешает View Switching.
     Вернём позже — отдельно, только для длинных секций. */
  /*
  body > section.view-active > .container > *{
    scroll-snap-align: start;
  }

  body > section.view-active{
    scroll-snap-type: y proximity;
  }
  */
    /* Сбрасываем scroll-margin-top — он обрезает верх на мобильном */
  #about-us,
  #news,
  #awards,
  #faq,
  #techs,
  #reviews,
  #promos,
  #materials,
  #projects,
  #calc,
  #gallery,
  #guarantee,
  #form {
    scroll-margin-top: 0 !important;
  }

    /* ──────────── КОМПАКТНЫЙ HEADER НА МОБИЛЬНОМ ──────────── */

  body > header{
    padding: 0 !important;
  }

  body > header .container.nav{
    padding: 10px 16px !important;
    gap: 12px;
  }

  /* Логотип — меньше */
  body > header .logo{
    font-size: 17px !important;
    letter-spacing: -.02em;
  }

  /* Правая часть — компактнее */
  body > header .nav-right{
    gap: 10px !important;
  }

  /* Кнопка темы — меньше */
  body > header .theme-toggle{
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }

  /* Кнопка «Заявка» — компактнее */
  body > header .nav-right .btn{
    padding: 8px 16px !important;
    font-size: 13px !important;
    height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* Телефон — на мобильном он не показывается, но на всякий случай */
  body > header .phone{
    display: none !important;
  }

    /* ──────────── РАЗДЕЛЕНИЕ MAIN / SIDE ──────────── */

  /* Если показан "main" — скрыть side-col */
  body > section.view-show-main .side-col{
    display: none !important;
  }

  /* Если показан "side" — скрыть side-main */
  body > section.view-show-side .side-main{
    display: none !important;
  }

  /* ──────────── УНИФИКАЦИЯ ЗАГОЛОВКОВ ДЛЯ SIDE-ЭКРАНОВ ──────────── */

  /* Когда показан side-экран — .side-head выглядит как h2 */
  body > section.view-show-side .side-head{
    display: block;
    border-bottom: none;
    padding: 0;
    margin-bottom: 12px;
  }

  /* Убираем flex-структуру side-head — заголовок и «Все →» друг под другом */
  body > section.view-show-side .side-head h3{
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0 0 12px 0;
  }

  /* Ссылка «Все →» — скрыта на мобильном */
  body > section.view-show-side .side-all{
    display: none !important;
  }

  /* Описание — видно только на side-экране */
  body > section.view-show-side .side-sub{
    display: block;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 32px 0;
    max-width: 640px;
  }

  /* На main-экране — .side-sub скрыт */
  body > section.view-show-main .side-sub,
  body > section:not(.view-show-side) .side-sub{
    display: none;
  }

    /* Кнопка «Все примеры работ →» — скрыта на мобильном */
  #gallery .gallery-more{
    display: none !important;
  }

}

/* ============================================================
   МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ + BOTTOM SHEET
   ============================================================ */

/* По умолчанию — скрыто (для десктопа) */
.mobile-bottom-nav,
.mobile-menu-sheet,
.mobile-menu-sheet-overlay{
  display: none;
}

@media(max-width: 768px){

  /* ──────────── НИЖНЯЯ ПАНЕЛЬ ──────────── */
  .mobile-bottom-nav{
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 6px 4px 4px;
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .mobile-nav-item{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
  }

  .mobile-nav-icon{
    width: 24px;
    height: 24px;
    display: block;
    transition: transform .2s, color .2s;
    color: var(--muted); /* по умолчанию серый */
  }

  /* В активном состоянии — оранжевый */
  .mobile-nav-item.active .mobile-nav-icon{
    color: var(--accent);
    transform: scale(1.1);
  }

  .mobile-nav-label{
    font-size: 10.5px;
    line-height: 1;
    letter-spacing: -.01em;
  }

  /* Нажатие — лёгкое уменьшение */
  .mobile-nav-item:active .mobile-nav-icon{
    transform: scale(0.9);
  }

  /* Отступ снизу — чтобы контент не перекрывался панелью */
  body{
    padding-bottom: 68px;
  }

  /* ──────────── BOTTOM SHEET МЕНЮ ──────────── */
  .mobile-menu-sheet-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .mobile-menu-sheet-overlay.open{
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-sheet{
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--card);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -10px 40px rgba(0,0,0,.35);
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .mobile-menu-sheet.open{
    transform: translateY(0);
  }

  /* Ручка сверху */
  .mobile-menu-sheet-handle{
    width: 40px;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
  }

  /* Шапка меню */
  .mobile-menu-sheet-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 14px;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
  }

  .mobile-menu-sheet-close{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
  }
  .mobile-menu-sheet-close:hover,
  .mobile-menu-sheet-close:active{
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  /* Список ссылок */
  .mobile-menu-sheet-list{
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    overflow-y: auto;
  }

  .mobile-menu-sheet-list a{
    display: block;
    padding: 14px 16px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: background .15s, color .15s;
  }
  .mobile-menu-sheet-list a:active,
  .mobile-menu-sheet-list a:hover{
    background: var(--accent-soft);
    color: var(--accent);
  }
}

/* ============================================================
   ГАЛЕРЕЯ — мобильная выравнивание (фикс съезжания картинок)
   ============================================================ */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Сбрасываем span для первой карточки — на мобильном все равны */
  .gallery-item:nth-child(1) {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 !important;
  }

  .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Кнопки в drawer фильтров */
.hc-filters-sheet-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.hc-btn-reset,
.hc-btn-apply {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  text-align: center;
}

.hc-btn-reset {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.hc-btn-reset:active {
  background: var(--bg-2);
  color: var(--text);
}

.hc-btn-apply {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-soft);
}
.hc-btn-apply:active {
  background: var(--accent-2);
}