/* =========================================================
   Altera — основной стиль (сжатый и без дублей)
   ========================================================= */

/* Inter как основной шрифт */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* -------- Core / Vars -------- */
*{box-sizing:border-box}
:root{
  --charcoal:#333;            /* Dark Charcoal */
  --linen:#FAF0E6;            /* Linen */
  --gray:#A9A9A9;             /* Dark Gray */
  --white:#fff;

  --bg:var(--linen);
  --panel:var(--white);
  --ink:var(--charcoal);
  --muted:var(--gray);
  --shadow:0 8px 24px rgba(0,0,0,.08);

  --pill-bg:rgba(181, 180, 179,.9);
  --pill-bd:rgba(0,0,0,.08);
  --pill-hv:rgba(0,0,0,.06);
  
}
.propusk{
display: none;}
.background-main{
    position: absolute;
    margin-top: -5%;
}

html,body{height:100%}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
.container{width:100%;max-width:1530px;margin:0 auto;padding:0 20px}

/* Заголовки и акценты — Times */
h1,h2,h3,h4,h5,h6,.home-hero__title,.section-title,
.nav-capsule .pill,.btn-ghost.white{
  font-weight: 100;
  font-family:'Times New Roman',Times,serif;
}

.nav-capsule .pill,.btn-ghost.white{
  font-family:'Inter',sans-serif;

}

/* -------- Header over hero -------- */
.site-header.over-hero{position:fixed;top:12px;left:0;right:0;z-index:1000;top: 0;
    background-color: rgb(210 202 192 / 82%);
    height: 100px;
}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px}
.brand img{height:70px;filter:brightness(100)}
.nav-capsule{
  display:flex;gap:10px;margin:0 auto;padding:2px 2px;
  background:var(--pill-bg);border:1px solid var(--pill-bd);
  border-radius:30px;box-shadow:0 3px 12px rgba(0,0,0,.08);
  
}

/* кнопка вызова */
.consult-btn {

  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  cursor: pointer;
  z-index: 1100;
}

/* оверлей */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1099;
}
.overlay.active { display: block; }

/* форма */
.consult-form {
  position: fixed;
  bottom: 0;
  right: -500px; /* спрятана */
  width: 400px;
  height: 100%;
  background: #1a1a1a url("{% static 'realty/images/bg-pattern.png' %}");
  background-size: cover;
  color: #fff;
  padding: 30px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.consult-form.active { right: 0; }

.consult-form h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
}

.consult-form textarea { min-height: 80px; }

.send-btn {
  background: #fff;
  color: #000;
  border-radius: 50px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  align-self: flex-end;
}

/* кнопка закрытия */
.consult-form .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
}

/* адаптив для телефона */
@media (max-width: 768px) {
  .consult-form {
    width: 100%;
    right: -100%;
  }
  .consult-form.active {
    right: 0;
  }
}    


.full-width-img {
  display: block;
  width: 100%;   /* на всю ширину */
  height: auto;  /* высота подстраивается */
}
.nav-capsule .pill{
  display:inline-flex;align-items:center;padding:6px 7px;border-radius:18px;
  font-size:14px;color:#222;transition:background .2s;
}

.nav-capsule .pill:hover{background:var(--pill-hv)}
.nav-capsule .pill.is-active {
  background: #F4EBE2B2; /* светлый линен с прозрачностью */
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.nav-capsule .pill.lang{cursor:default}
.btn-ghost.white img{
width:180px;
}


/* -------- Generic hero (gallery/others) -------- */
.hero{position:relative;min-height:420px;background:var(--hero) center/cover no-repeat}
.hero-overlay{
  position:absolute;inset:0;
  background:radial-gradient(100% 140% at 20% 20%,rgba(0,0,0,.55),rgba(0,0,0,.35) 45%,rgba(0,0,0,.15) 70%,rgba(0,0,0,.10))
}
.hero-inner{position:relative;z-index:1;color:#fff;padding:120px 0 32px;}
.hero-title{font-size:64px;line-height:1.05;margin:0 0 12px}
.hero-sub{margin:0 0 22px;font-size:16px;color:#f0f0f0}

/* Floating search bar */
.searchbar-floating{
  display:flex;align-items:center;gap:10px;width:560px;max-width:100%;
  background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:24px;padding:6px;
  box-shadow:0 8px 20px rgba(0,0,0,.18)
}
.search-input{display:flex;align-items:center;gap:10px;flex:1;padding:6px 10px}
.search-input img{width:16px;opacity:.6}
.search-input input{border:0;outline:0;width:100%;font-size:14px}
.filter-pill{
  display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:16px;
  border:1px solid rgba(0,0,0,.08);background:#f6f6f6;color:#222
}
.filter-pill:hover{background:#eee}
.filter-pill img{width:16px;opacity:.8}

/* Pattern strip under hero */
.pattern.light{
  position:absolute;left:0;right:0;bottom:-1px;height:74px;
  background:url('../images/pattern.svg') center/auto 64px repeat-x;opacity:.55;filter:brightness(102%)
}

/* -------- Home hero -------- */
.home-hero{position:relative;min-height:580px;background:var(--hero) center/cover no-repeat;color:#fff}
.home-hero__overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.15) 60%,rgba(0,0,0,.05))}
.home-hero__inner{position:relative;z-index:1;padding:120px 20px 40px}
.home-hero__title{font-size:64px;line-height:1.05;letter-spacing:.2px;margin:0 0 8px;color:#fff}
.home-hero__sub{color:#efeae3}

/* Glass tiles (2 шт. в ряд) — компактные, фото не касается краёв */
.home-hero__tiles {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    position: absolute;
    margin-top: 50px;
}
.h-tile{
  position:relative;display:grid;grid-template-columns:150px 1fr;min-height:150px;
  flex:1 1 45%;max-width:500px;padding:10px;border-radius:14px;overflow:hidden;color:#fff;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);
  box-shadow:0 10px 20px rgba(0,0,0,.2);backdrop-filter:blur(10px) saturate(1.05)
}
.h-tile::before{content:"";position:absolute;inset:0;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.02) 60%,rgba(0,0,0,.05));pointer-events:none}
.h-thumb{display:flex;align-items:center;justify-content:center;padding:6px}
.h-thumb img{width:100%;height:100%;object-fit:cover;border-radius:10px}
.h-body{display:flex;flex-direction:column;justify-content:space-between;padding:8px 12px;font-size:14px}
.h-list{list-style:none;margin:0;padding:0;display:grid;row-gap:8px}
.h-list li{position:relative;padding-left:22px}
.h-list li::before{
  content:"";position:absolute;left:0;top:2px;width:14px;height:14px;
  background:url("../icons/star.svg") no-repeat center/contain;filter:brightness(0) invert(1);opacity:.9
}
.h-list li.muted{opacity:.55}
.chip-btn{
    left: 20%;
  margin-top:10px;position:relative;align-self:flex-start;
  display:inline-flex;align-items:center;height:37px;padding:0 42px 0 12px;border-radius:16px;border:0;
  background:#fff;color:#111;font-size:13px;font-weight:100;box-shadow:0 6px 14px rgba(0,0,0,.22)
}
.chip-btn .circle.dark{
  position:absolute;right:-2px;top:50%;transform:translateY(-50%);
  width:35px;height:35px;border-radius:50%;background:#111;
  display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.3)
}
.chip-btn .circle.dark img{width:100%;}

/* -------- About section -------- */
.section-title{font-size:40px;margin:0 0 16px}
.muted{color:#5f5f5f}
.about{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;margin:32px auto}
.checklist{margin:16px 0 0;padding:0;list-style:none;display:grid;row-gap:10px}
.checklist li{padding-left:22px;position:relative}
.checklist li:before{content:"✓";position:absolute;left:0;top:0;color:#2a7f2e;font-weight:700}
.panel-dark{background:#1f1f1f;color:#fff;border-radius:14px;border:1px solid #2a2a2a;box-shadow:0 10px 28px rgba(0,0,0,.25);padding:18px}
.panel-dark.patterned{background-image:url('../images/pattern-dark.svg');background-size:auto 90px}
.about__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-self:start}
.stat{display:flex;gap:10px;align-items:center;background:#121212;border:1px solid #2b2b2b;border-radius:10px;padding:12px}
.stat img{width:22px;filter:invert(1);opacity:.9}
.stat b{display:block;font-size:20px}
.stat span{font-size:12px;color:#cfcfcf}

/* мягкая полоска-паттерн */
.pattern.soft{height:70px;background:url('../images/pattern.svg') center/auto 60px repeat-x;opacity:.35}

/* -------- Services -------- */
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.svc-card{position:relative;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.svc-card__media{height:400px;position:relative;filter: brightness(0.8);}
.svc-card__media img{width:100%;height:100%;object-fit:cover}
.svc-card__grad{position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.55))}
.svc-card__body{position:absolute;left:0;right:0;bottom:0;color:#fff;padding:12px 14px}
.svc-card__btn{display:inline-flex;align-items:center;gap:8px;margin-top:6px;background:#fff;color:#111;border-radius:16px;border:1px solid #d9d9d9;padding:6px 10px;font-weight:600}

/* -------- Gallery cards -------- */
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px auto; }
.cards-grid.one-line{
  display:flex;            /* вместо grid */
  flex-wrap:nowrap;        /* строго одна строка */
  gap:18px;
  overflow-x:auto;         /* горизонтальный скролл */
  scroll-behavior:smooth;
}
.cards-grid.one-line > *{
  flex:0 0 calc(33.333% - 12px); /* одновременно видно 3 */
  max-width:calc(33.333% - 12px);
}
.cards-grid.one-line::-webkit-scrollbar{display:none}
.cards-grid.one-line{scrollbar-width:none}
.scroll-controls {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    right: 85%;
}
.scroll-controls img{
  max-width: 160%;
}
.scroll-controls{
  display:flex; gap:10px; justify-content:flex-end;
  margin-top:12px; position:relative; z-index:5; pointer-events:auto;
}
.scroll-btn{
  background:#fff; border:1px solid rgba(0,0,0,.2); border-radius:50%;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  font-size:20px; cursor:pointer; box-shadow:0 4px 10px rgba(0,0,0,.15);
  transition:opacity .2s;
}
.scroll-btn.disabled{ opacity:.4; cursor:default; }
.card{position:relative;background: #f4ebe2;;border-radius:14px;box-shadow:var(--shadow);overflow:hidden;    border: solid 1px;
    border-color: #b2aeab;}
.card-media{position:relative;height:220px}
.card-media img{border-radius: 16px;
    
    width: 98%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    right: 1%;
    top: 3%;}
.badge{position:absolute;top:10px;left:10px;padding:6px 10px;border-radius:12px;color:#fff;font-size:12px;font-weight:600}
.badge-sold{background:#c0392b}.badge-special{background:#f39c12}.badge-lux{background:#8e44ad}

.corner{     position: absolute;
  display: flex;
    left: 15px;
    top: 15px;
    color: #b2aeab;
    border-radius: 16px;
    background: white;
    padding: 3px;
    padding-right: 20px;
}
.only-phone{
    display: none;
}
.corner img{ height: 29px;opacity:.7;margin-right:6px}
.card-body{padding:12px 14px 14px;line-height: 38px;}
.card-title{margin:2px 0 6px;font-size:18px}
.meta{display:flex;gap:16px;flex-wrap:wrap;color:#888;font-size:13px;margin:0 0 8px;padding:0;list-style:none}
.meta li {
  display: flex;
  align-items: center;
  gap: 6px;              /* отступ между иконкой и текстом */
}
.meta img{width:20px;opacity:.7;margin-right:6px}
.price{font-weight:700;display: flex;
}
.price img{ height: 29px;opacity:.7;margin-right:6px}
.card-arrow{position:absolute;right:10px;bottom:10px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff}
.card-arrow img{width:100%;}
.pager-dots{display:flex;justify-content:center;gap:8px;margin:18px 0 34px}
.pager-dots .dot{width:8px;height:8px;border-radius:50%;background:#c7c7c7}
.pager-dots .dot.active{background:#111}

/* -------- Detail page -------- */
.breadcrumbs{padding:14px 0;color:#6e6e6e}
.breadcrumbs a{color:#6e6e6e}
.detail-title{font-size:44px;margin:6px 0 16px}
.detail-grid{display:grid;grid-template-columns:1.35fr .9fr;gap:26px}
.gallery-controls {
  position: relative;
  margin-top: 20px;
}

.cards-scroll {
  overflow: hidden;
  position: relative;
}

.cards-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* убрать скроллбар */
}
.cards-track::-webkit-scrollbar { display: none; }

.cards-track .card {
  flex: 0 0 calc(33.33% - 12px); /* максимум 3 штуки в ряд */
  max-width: calc(33.33% - 12px);
}

.detail-media{position:relative}
.detail-media .main{border-radius:14px;box-shadow:var(--shadow)}
.thumbs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    padding: 4px;
    max-width: 100%;
    overflow-x: auto;       /* даём горизонтальный скролл */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
    justify-content: flex-start;       /* чтобы картинки не центрировались */
}

.thumbs img {
    flex-shrink: 0;     /* запрещаем уменьшаться */
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-arrows{position:relative;left:0;right:0;bottom:62px;display:flex;justify-content:space-between;padding:0 8px;pointer-events:none}
.circle{pointer-events:auto;width:34px;height:34px;border-radius:50%;border:1px solid #d0d0d0;background:#fff}
.detail-aside{align-self:start}
.specs{background:#fff;border:1px solid #e7e7e7;border-radius:12px;box-shadow:var(--shadow);padding:14px 16px}
.specs h3{margin:0 0 10px}
.specs ul{list-style:none;margin:0;padding:0;display:grid;row-gap:8px}
.specs li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #eee;padding:8px 0}
.specs li:last-child{border-bottom:0}
.detail-price{font-size:22px;font-weight:800;margin:12px 0}
.mt8{margin-top:8px}
.detail-text{margin:18px 0 24px;max-width:72ch;color:#444}

/* -------- Footer -------- */
.site-footer{background:#151515;color:#bbb;margin-top:50px;padding:34px 0}
.footer-top{display:grid;gap:20px}
.footer-logo{width:600px;opacity:.95;margin:0 auto}
.footer-cols{display:flex;gap:32px;justify-content:center;flex-wrap:wrap}
.footer-cols a{color:#ddd}
.map{margin:16px auto 0;max-width:420px;text-align:center}
.map img{border-radius:12px;box-shadow:var(--shadow)}

/* ===== About (как на макете) ===== */
.about--dark{background:#262626;padding:70px 80px;color:#fff; line-height: 30px;}
.about__grid{display:grid;grid-template-columns:1.2fr .8fr;gap:36px}

.about__left .section-title{
  font-size:44px; line-height:1.15; margin:0 0 18px; width:700px;
}
.about__lead{max-width:70ch;color:#eaeaea;margin:0 0 16px}
.about__text{color:#d5d5d5;margin:0 0 16px}

/* чек-лист с «искрами» и разделителями */
.about-list{list-style:none;margin:0;padding:0;max-width:640px;line-height: 40px;}
.about-list li{
  position:relative; padding:10px 0 10px 26px;
  border-bottom:1px solid rgba(255,255,255,.14);
  color:#e6e6e6;
}
.about-list li:last-child{border-bottom:0;}
.about-list li::before{
  content:""; position:absolute; left:0; top:22px;
  width:18px; height:14px; opacity:.9;
  background:url("../icons/star.svg") no-repeat center/contain;
  filter:brightness(0) invert(1);
}

/* правая карточка-статистика */
.stats-card{
  display:grid; grid-template-columns:repeat(3,1fr); align-items:center;
  gap:20px; padding:34px 28px;
  border-radius:10px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.35);
}
.stats-card .stat-i{ text-align:center; }
.stat-i {
  width:370px
}
.stat-i img{
    max-width: 190%;
}
.stats-card img{ width:48px; height:48px; filter:invert(1) opacity(.9); margin:0 auto 10px }
.stats-card .num{
  font-family:'Times New Roman', Times, serif;
  font-size:44px; font-weight:400; line-height:1; color:#fff; margin-bottom:6px;
}
.stats-card .cap{ font-size:13px; color:#d6d6d6 }
button.uslugi {
 margin-left:100px
}
 h3.uslugi{
    color: white;
    font-family:'Times New Roman', Times;
    font-size: 22px;
    left: 20px;
    position: absolute;
    top: 0;
}
.uslugi ul {
    position: absolute;
    top: -175px;
}
.h-list.uslugsi{
  list-style: none;
    margin: 15px 0px;
    padding: 0;
    position:absolute;
    top: -270px;
    display: grid;
    row-gap: 8px;
        font-size: 13px;
    line-height: 75px;
}
.liniya{
        position: absolute;
    background: white;
    width: 1.6px;
    height: 85px;
    margin: 0px 7px;

}
 .x{
    top:20%;
}
.uslugsi li::before{

  background:none

}

.uslugsi li{
display: flex;

}
/* слоган под блоком */
.about-slogan{
      top: 90%;
    position: relative;
    right: 5%; 

  color:#fff; opacity:.9; margin:26px auto 0;
  font-family:'Times New Roman', Times, serif; font-size:25px; text-align:right;
}
.t-strip-wrap{position:relative}
.t-strip{
  display:flex; gap:18px; overflow-x:auto; scroll-behavior:smooth;
  padding:4px; scrollbar-width:none;
}
.t-strip::-webkit-scrollbar{display:none}

/* Карточка отзыва */
.t-card{
  flex:0 0 420px;               /* ширина карточки на ленте */
     background: #d9d3cc;; border:1px solid #ececec; border-radius:12px;
 padding:14px 16px; position:relative;
}
.t-head{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.t-ava{width:36px;height:36px;border-radius:50%;object-fit:cover}
.t-name{font-weight:600}
.t-stars{display:flex; gap:2px; margin-top:2px}
.t-stars .star{width:14px; opacity:.35; filter: grayscale(1)}
.t-stars .star.on{opacity:1; filter:none}

.t-text{color:#2B2B2B; margin:6px 0 0; line-height:1.5}
.q{position:absolute; color:#000000; font-size:18px}
.q-l{left:10px; top:50px}
.q-r{right:10px; bottom:10px}
/* ===== CTA блок ограниченный ===== */
.cta-block {
  max-width: 75%;       /* не на всю ширину */
  margin: 40px auto;    /* центрируем */
}

.cta-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 330px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

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

/* правая панель — тёмный фон */
.cta-block__panel {
  background: #1c1c1c url("{% static 'realty/images/bgcss.png' %}") repeat;
  background-size: auto 90px;
  color: #fff;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-block__title{
  font-family:'Times New Roman', Times, serif;
  font-size:44px; line-height:1.1; margin:0 0 10px;
}
.cta-block__lead{
  margin:0 0 14px; color:#eaeaea; max-width:60ch; font-size:14px;
}
.cta-block__form input,
.cta-block__form textarea{
  width:100%; border:1px solid #3b3b3b; background:#ffffff; color:#000000;
  borderRadius:8px; padding:10px 12px; margin-bottom:10px; font:inherit;
}
.cta-block__row{display:grid; grid-template-columns:1fr 1fr; gap:12px}

.cta-block__btn{
  right:-70%;
  position:relative; display:inline-flex; align-items:center; gap:10px;
  height:36px; padding:0 44px 0 14px; border:1px solid #d9d9d9;
  border-radius:18px; background:#fff; color:#111; font-weight:500;
  box-shadow:0 8px 18px rgba(0,0,0,.22);
}
.cta-block__dot{
  position:absolute; right:-6px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%; background:#111;
  display:grid; place-items:center; box-shadow:0 6px 16px rgba(0,0,0,.35);
}
.cta-block__dot img{width:100%; }
/* тёмная пилюля как на скрине */
.filter-pill.dark{
  display:inline-flex; align-items:center; gap:8px;
  height:40px; padding:0 16px; border-radius:12px;
  background:#222; color:#fff; border:1px solid rgba(0,0,0,.3);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  z-index: 0;
}
.filter-pill.dark img{ width:16px;  }

/* поповер */
.filters-popover{
  z-index: 2;
max-width: 500px;
    margin: auto auto;
    background: #2b2b2b;
    border-radius: 20px;
    padding: 25px;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    position: absolute;
    right: 50%;
    top: 50%;
}
.filters-title{ font-weight:600; margin-bottom:8px }
.filters-list{
  display:grid; grid-template-columns:1fr; row-gap:8px;
  max-height: 240px; overflow:auto; padding-right:4px;
}
.cb{ display:flex; align-items:center; gap:10px; cursor:pointer }
.cb input{ width:16px; height:16px }

.filters-actions{
  display:flex; justify-content:flex-end; gap:10px; margin-top:12px;
}
.filters-actions .apply{
  background:#111; color:#fff; border:0; border-radius:10px; padding:8px 12px; cursor:pointer;
}
.filters-actions .reset{
  color:#666; text-decoration:none; padding:8px 10px;
}
/* Общий контейнер */
.filters-popover {
  max-width: 500px;
  margin: 30px auto;
  background: #222;                /* тёмный фон */
  border-radius: 20px;
  padding: 25px;
  color: #f5f5f5;                  /* светлый текст */
  font-family: 'Segoe UI', sans-serif;
}

/* Заголовки */
.filters-title {
  font-size: 15px;
  font-weight: 600;
  margin: 15px 0 10px;
}

/* Радио/чекбоксы в виде таблеток */


.pill input {
  display: none;
}

.pill span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: #F4EBE2B2;
  border: 1px solid #444;
  color:#2B2B2B;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.pill input:checked + span {
  background: #F4EBE2;
  color: #2B2B2B;
  border-color: #f5f5f5;
}

/* Чекбоксы особенностей */
.cb {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.cb input {
  accent-color: #f5f5f5;
  margin-right: 8px;
}

/* Инпуты и select */
.filters-group input[type="number"],
.filters-group select {
  width: 45%;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #555;
  background: #F4EBE2B2;
  color: #2B2B2B;
  text-align: center;
  font-size: 14px;
}
.close-btn{

  all: unset;           /* сбрасывает почти всё, включая 3D-эффект */
  box-shadow: none;
  outline: none;
  cursor: pointer;      /* добавляем обратно курсор */
  display: inline-block; /* чтобы снова вести себя как кнопка */
  padding: 8px 16px;    /* свои отступы */
  background: #ffffff00;  /* свой фон */
  color: #F4EBE2;         /* цвет текста */
  border-radius: 4px;   /* скругление, если нужно */
  text-align: center;
    position: absolute;
  right: 5%;
}
.filters-group select option {
  background: #F4EBE2B2;
  color: #2B2B2B;
}

/* Кнопки */
.filters-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  
}

.filters-actions .apply {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: #f5f5f5;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.filters-actions .apply:hover {
  background: #ddd;
}

.filters-actions .reset {
  display: none; /* скрыта, как в макете */
}


.features {
    margin: 24px 0;
}

.features h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: #e8e8e8;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    border: 1px solid #ddd;
}



/* Дополнительные стили для детальной страницы */
.detail {
    max-width: 85vw;
    margin: 0 auto;
    padding: 40px 20px;
}

.breadcrumbs {
    padding: 20px 0;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #000;
}

.detail-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 800px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Стили для медиа-блока */
.detail-media {
    position: relative;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .bg1{
         position:absolute;display:flex;max-width:75%;z-index:-1;
    }
    .bg2{
        display: none;
    }
.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px;
    scroll-snap-type: x mandatory;
}



.thumb {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    object-fit: cover; /* cover для ровных сеток */
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    scroll-snap-align: start;
}

.thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumb.active {
    border-color: #1a1a1a;
}

.carousel-arrows {
    position: absolute;
    top: 43%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none; /* кликаются только кнопки */
}
.circle {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.circle:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.circle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Стили для боковой панели */
.detail-aside {
    max-width: 500px;
    align-self: start;
}

.specs {
    background: #ffffff00;
    border: 1px solid #000000;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
}

.specs h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    row-gap: 8px;
}

.specs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed #eee;
    padding: 8px 0;
}

.specs li:last-child {
    border-bottom: 0;
}

.specs span {
    color: #666;
    font-size: 14px;
}

.specs b {
    color: #1a1a1a;
    font-weight: 600;
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0;
    text-align: center;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.detail-location img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.dot {
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.btn-ghost:hover .dot {
    background: white;
}

.mt8 {
    margin-top: 8px;
}

/* Стили для текстового блока */
.detail-text {
    background: #f8f8f800;
    padding: 32px;
    border-radius: 12px;
    line-height: 1.6;
    color: #333;
}

/* Стили для особенностей */
.features {
    margin: 24px 0;
}

.features h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: #e8e8e8;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    border: 1px solid #ddd;
}

/* ============ АДАПТИВНОСТЬ ============ */

/* Большие экраны (1200px+) */
@media (max-width: 1450px) {
button.uslugi {
    margin-left: 70px;
}


}

/* Планшеты и маленькие десктопы (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }
    
    .home-hero__title,
    .hero-title {
        font-size: 52px;
    }
        .container {
        max-width: 1530px;
    }
    .stat-i img {
max-width: 100%;

    }
    .about__grid{
        grid-template-columns:none
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-grid {
        grid-template-columns: 1fr 600px;
        gap: 30px;
    }
    
    .about__left .section-title {
        width: 100%;
        font-size: 38px;
    }
    
    .stats-card .num {
        font-size: 36px;
    }
    .about-slogan{
        width: 300px;
        right:20%
    }
    .cta-block {
        max-width: 85%;
    }
     button.uslugi {
        margin-left: 3vw;
    }
}

/* Планшеты (768px - 991px) */
/* ============ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ============ */

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Контейнер и общие стили */
    .container {
        padding: 0 16px;
    }
   .card .card-media {
    height: 220px !important;
   }
    /* Header */
    .scroll-controls{
        visibility: hidden;
    }
    .site-header.over-hero {
        top: 0px;
        padding: 12px 16px;
    }

    @media (max-width: 700px) {
.bg1{
        display: none;
    }
    .bg2
    {
        display: block;
         position:absolute;display:flex;max-width:100%;z-index:-1;
    }
}
    .brand img {
        height: 50px;
    }
    
    .nav-capsule {
        display: none;
    }
    
    .btn-ghost.white img {
        width: 140px;
    }
    
    /* Hero sections */
    .home-hero,
    .hero {
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .home-hero__inner,
    .hero-inner {
        padding: 100px 16px 30px;
        text-align: center;
    }
    
    .home-hero__title,
    .hero-title {
        font-size: 36px;
        line-height: 1.1;
        margin-bottom: 16px;
    }
    
    .hero-sub,
    .home-hero__sub {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    /* Home hero tiles - исправляем проблемный элемент */
    .home-hero__tiles {
        position: relative;
        margin-top: 40px;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        left: 0;
        right: 0;
        padding: 0 16px;
    }
    
    .h-tile {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 100%;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }
 .thumb {
        width: 70px;
        height: 50px;
    }
      .main-image-container {
        height: 180px;
    }
    .h-thumb img {
                
        border-radius: 12px;
    }
    
    .h-body {
        padding: 0;
        gap: 12px;
    }
    
    .h-list {
        justify-content: center;
    }
    
    .h-list li {

    }
 
    
    .chip-btn {
        position: relative;
        left: 0;
        margin: 15px auto 0;
        display: inline-flex;
        justify-content: center;
    }
    
    /* Search bar */
    .searchbar-floating {
        flex-direction: column;
        width: 100%;
        padding: 12px;
        gap: 12px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .filter-pill {
        width: 100%;
        justify-content: center;
    }
    
    /* Grid layouts */
    .about,
    .about__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 24px auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px auto;
    }
    
    .cards-grid.one-line > * {
        flex: 0 0 calc(100% - 16px);
        max-width: calc(100% - 150px);
        min-width: 280px;
    }
    button.uslugi {
        margin-left: 69vw;
    }
    /* Cards */
    .svc-card__media,
    .card-media {
        height: 420;
    }
    
    .card-body {
        padding: 16px;
        line-height: 1.5;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .meta {

        gap: 8px;
        margin-bottom: 12px;
    }
    
    .meta li {
        justify-content: center;
        text-align: center;
    }
    
    .price {
        justify-content: center;
        font-size: 20px;
    }
    
    /* About section */
    .about--dark {
        padding: 40px 20px;
        line-height: 1.6;
    }
    
    .about__left .section-title {
        width: 100%;
        font-size: 32px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .about__lead,
    .about__text {
        text-align: center;
        max-width: 100%;
    }
    
    .about-list {
        max-width: 100%;
        line-height: 1.6;
    }
    
    .about-list li {
        padding: 12px 0 12px 30px;
        text-align: left;
    }
    
    .stats-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
    }
    
    .stat-i {
        width: 100%;
        text-align: center;
    }
    
    .stats-card .num {
        font-size: 36px;
    }
    
    .about-slogan {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin: 30px 0 0;
        font-size: 20px;
  
    }
    
    /* Detail page */
    .detail {
        max-width: 100%;
        padding: 20px 16px;
    }
    
    .breadcrumbs {
        padding: 16px 0;
        text-align: center;
        font-size: 14px;
    }
    
    .detail-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .main-image-container {
        height: 280px;
    }
    
    .thumbs {
        margin: 16px 0;
        padding: 0;
        max-width: 100%;
        margin-left: 0;
        justify-content: center;
    }
    
    .thumbs img {
        width: 100px;
        height: 75px;
        flex-shrink: 0;
    }
    
    .carousel-arrows {
        bottom: 20px;
        padding: 0 16px;
    }
    
    .circle {
        width: 40px;
        height: 40px;
    }
    
    .detail-aside {
        max-width: 100%;
    }
    
    .specs {
        padding: 20px;
        text-align: center;
    }
    
    .specs ul {
        text-align: left;
    }
    
    .detail-price {
        font-size: 24px;
        text-align: center;
    }
    
    .detail-text {
        padding: 20px;
        text-align: center;
        max-width: 100%;
    }
    
    /* CTA block */
    .cta-block {
        max-width: 100%;
        margin: 30px auto;
    }
    
    .cta-block__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .cta-block__panel {
        padding: 24px 20px;
        text-align: center;
    }
    
    .cta-block__title {
        font-size: 32px;
    }
    
    .cta-block__lead {
        text-align: center;
    }
    
    .cta-block__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cta-block__btn {
        position: relative;
        right: 0;
        margin: 20px auto 0;
        display: inline-flex;
        justify-content: center;
    }
    
    /* Testimonials */
    .t-strip-wrap {
        padding: 0 16px;
    }
    
    .t-card {
        flex: 0 0 300px;
        padding: 20px;
        text-align: center;
    }
    
    .t-head {
        justify-content: center;
    }
    
    .t-text {
        text-align: center;
    }
    
    /* Footer */
    .site-footer {
        margin-top: 40px;
        padding: 30px 0;
        text-align: center;
    }
    
    .footer-logo {
        width: 250px;
        margin: 0 auto 20px;
    }
    
    .footer-cols {
        flex-direction: column;
        gap: 20px;
    }
    
    .map {
        max-width: 100%;
        margin: 20px auto 0;
    }
    
    /* Scroll controls */
    .scroll-controls {
        position: relative;
        right: 0;
        justify-content: center;
        margin: 20px 0;
    }
    
    .scroll-controls img {
        max-width: 100%;
    }
    
    /* Filters */
    .filters-popover {
        position: fixed;
        top: 5%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .close-btn {
        right: 15px;
        top: 15px;
    }
    
    /* Utility classes */
    .section-title {
        font-size: 32px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .muted {
        font-size: 14px;
    }
    .propusk{
        display: block;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {

    .price{
        margin-top:40%;
    }
    .home-hero__title,
    .hero-title {
        font-size: 28px;
    }
    
    .home-hero__tiles {
        margin-top: 30px;
        gap: 12px;
    }
    
    .h-tile {
        padding: 16px;
    }
    
    .chip-btn {
        padding: 0 30px 0 12px;
        height: 32px;
        font-size: 12px;
    }
        button.uslugi {
        margin-left: 56vw;
    }
    .chip-btn .circle.dark {
        width: 30px;
        height: 30px;
    }
    .scroll-btn, .circle, .filter-pill {
        min-height: 3.5vh !important;
        min-width: 2vw;
    }
    .stats-card .num {
        font-size: 28px;
    }
    
    .main-image-container {
        height: 220px;
    }
    
    .thumbs img {
        width: 80px;
        height: 60px;
    }
    
    .card-media {
        height: 420px;
    }
    
    .svc-card__media {
        height: 500px;
    }
    
    .t-card {
        flex: 0 0 260px;
        padding: 16px;
    }
}

/* Очень маленькие мобильные (до 320px) */
@media (max-width: 320px) {

    .container {
        padding: 0 12px;
    }
    
    .home-hero__title,
    .hero-title {
        font-size: 24px;
    }
    
    .h-tile {
        padding: 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .stats-card {
        padding: 20px 16px;
    }
    
    .stats-card .num {
        font-size: 24px;
    }
}

/* Портретная ориентация для мобильных */
@media (max-width: 768px) and (orientation: portrait) {
    .home-hero,
    .hero {
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .home-hero__tiles {
        margin-top: 30px;
    }
}

/* Ландшафтная ориентация для мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .home-hero,
    .hero {
        min-height: 120vh;
    }
    
    .home-hero__tiles {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .h-tile {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .scroll-btn,
    .circle,
    .filter-pill {
        min-height: 4vh;
        min-width: 2vw;
    }
    
    .nav-capsule .pill {
        padding: 12px 16px;
    }
    
    .card {
        cursor: pointer;
    }
}

/* Высокопиксельные экраны мобильных */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px), 
       (min-resolution: 192dpi) and (max-width: 768px) {
    .pattern.light,
    .pattern.soft {
        background-size: auto 80px;
    }
    
    .h-list li::before,
    .about-list li::before {
        background-size: contain;
    }
}

/* Большие мобильные (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    /* Typography */
    .home-hero__title,
    .hero-title {
        font-size: 38px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .detail-title {
        font-size: 28px;
    }
    
    /* Hero sections */
    .home-hero,
    .hero {
        min-height: 400px;
    }
    
    .home-hero__inner,
    .hero-inner {
        padding: 80px 16px 30px;
    }
    
    .searchbar-floating {
        flex-direction: column;
        padding: 12px;
    }
    
    .filter-pill {
        margin-top: 10px;
    }
    
    /* Cards and grids */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cards-grid.one-line > * {
        flex: 0 0 calc(100% - 18px);
        max-width: calc(100% - 350px);
    }
    
    .svc-card__media,
    .card-media {
        height: 420px;
    }
    
    /* About section */
    .about--dark {
        padding: 40px 24px;
    }
    
    .about__left .section-title {
        font-size: 32px;
    }
    
    .stats-card {
        grid-template-columns: 1fr;
    }
    
    .stats-card .num {
        font-size: 32px;
    }
    
    /* Detail page */
    .main-image-container {
        height: 300px;
    }
    
    .thumbs img {
        width: 120px;
        height: 90px;
    }
    
    .specs {
        padding: 12px;
    }
    
    .detail-text {
        padding: 24px;
    }
    
    /* Footer */
    .footer-logo {
        width: 300px;
    }
    
    .footer-cols {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .map {
        max-width: 100%;
    }
    
    /* Utility classes */
    .chip-btn {
        left: 0;
        margin: 10px auto;
        display: block;
    }
    
    .about-slogan {
        right: 0;
        text-align: center;
        font-size: 20px;
    width: 100%;
    }
    
    .t-card {
        flex: 0 0 320px;
    }
    .only-phone{
        display: block;
    }
}

/* Мобильные устройства (до 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 16px;
    }
    
    /* Typography */
    .home-hero__title,
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    /* Hero sections */
    .home-hero,
    .hero {
        min-height: 350px;
    }
    
    .home-hero__inner,
    .hero-inner {
        padding: 70px 12px 25px;
    }
    
    .h-tile {
        display: flex;
        
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .h-thumb {
        padding: 10px;
    }
    
    .h-list li {
        padding-left: 15;
    }
    

    
    /* Cards */
    .svc-card__media,
    .card-media {
        height:420px;
    }
    
    .card-body {
        padding: 10px 12px;
        line-height: 1.5;
    }
    
    .meta {

        gap: 8px;
    }
    
    /* About section */
    .about--dark {
        padding: 30px 16px;
    }
    
    .about-list li {
        padding: 8px 0 8px 20px;
    }
    
    .about-list li::before {
        top: 18px;
        width: 14px;
        height: 12px;
    }
    
    /* CTA block */
    .cta-block {
        max-width: 100%;
        margin: 30px auto;
    }
    
    .cta-block__title {
        font-size: 28px;
    }
    
    .cta-block__row {
        grid-template-columns: 1fr;
    }
    
    .cta-block__btn {
        right: 0;
        margin: 0 auto;
        display: block;
    }
    
    /* Detail page */
    .main-image-container {
        height: 250px;
    }
    
    .thumbs {
        margin-left: 0%;
        max-width: 100%;
    }
    
    .thumbs img {
        width: 100px;
        height: 75px;
    }
    
    .carousel-arrows {
        display: flex;
        bottom: 100px;
    }
    
    .circle {
        width: 30px;
        height: 30px;
    }
    
    /* Filters popover */
    .filters-popover {
        max-width: 90%;
        padding: 20px;
        right: 5%;
        left: 5%;
        transform: none;
    }
    
    .filters-group input[type="number"],
    .filters-group select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Footer */
    .site-footer {
        padding: 24px 0;
    }
    
    .footer-logo {
        width: 250px;
    }
}

/* Очень маленькие мобильные (до 375px) */
@media (max-width: 375px) {
    .home-hero__title,
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stats-card .num {
        font-size: 28px;
    }
    
    .svc-card__media,
    .card-media {
        height: 420px;
    }
    
    .t-card {
        flex: 0 0 280px;
        padding: 12px;
    }
    
    .detail-text {
        padding: 16px;
    }
    
    .features-list {
        justify-content: center;

    }

}

/* Портретная ориентация */
@media (max-height: 600px) and (orientation: landscape) {
    .home-hero,
    .hero {
        min-height: 300px;
    }
    
    .home-hero__inner,
    .hero-inner {
        padding: 60px 20px 20px;
    }
    
    .home-hero__tiles {
        margin-top: 20px;
    }
    
    .h-tile {
        min-height: 120px;
    }
}

/* Высокопиксельные экраны (2x и более) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .pattern.light,
    .pattern.soft,
    .panel-dark.patterned {
        background-size: auto 128px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #f4ebe2;
        --panel: #2d2d2d;
        --ink: #252525;
        --muted: #888;
    }
    
    .card {
        background: #f4ebe2;;
        border-color: #404040;
    }
    
    .card-title,
    .price {
        color: #1e1e1e;
    }
    
    .meta {
        color: #bbb;
    }
}
@media (max-width: 750px) {button.uslugi.sre{left: 75vw!important;}}
/* Печать */
@media print {
    .site-header,
    .site-footer,
    .scroll-controls,
    .btn-ghost {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .card,
    .specs {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
@media (max-width: 360px) {
    .main-image-container {
        height: 160px;
    }
    .thumb {
        width: 60px;
        height: 45px;
    }
}