:root{
  --bg:#F4EDE4; 
  --card:#fff; 
  --text:#2B2F33; 
  --muted:#6C7177; 
  --accent:#4A68A4; /* фирменный синий */
  --radius:18px; 
  --shadow:0 10px 24px rgba(0,0,0,.06);
}

/* base */
*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(8px);
  border-bottom:1px solid #e9e3da;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:10px 16px}
.logo img{height:42px;width:auto;display:block}

/* hero */
.hero{
  padding:56px 0;
  background:radial-gradient(1000px 400px at 50% -100px,rgba(74,104,164,.10),transparent);
}
.hero h1{font-size:42px;margin:0 0 8px}
.lead{color:var(--muted)}
.hero-actions{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}

/* buttons */
.btn{
  background:var(--accent);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:10px 14px;
  font-weight:600;
  text-decoration:none;
  transition:opacity .2s, transform .15s;
}
.btn:hover{
  opacity:.9;
  transform:translateY(-1px);
}
.btn-quiet{
  background:#e9eefb;
  color:#1d2f8a;
}
.btn-special{
  background:#C6A869;
  color:#fff;
}

/* filters */
.filters{padding:20px 0}
.filters-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.search input,.selects select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #ddd;
  background:#fff;
}
.pills{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.pill{
  background:#fff;
  border:1px solid #e6e2da;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
}

/* gallery */
.gallery{padding:20px 0 48px}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .15s ease;
}
.card:hover{transform:translateY(-3px)}
.thumb{width:100%;aspect-ratio:4/5;object-fit:cover;background:#f5f1ea}
.card-body{padding:12px}
.card h3{margin:0 0 4px;font-size:16px}
.desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
  -webkit-line-clamp:2;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.meta{
  margin-top:8px;
  font-size:12px;
  color:#61656b;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.meta .chip{
  background:#f1eee8;
  border:1px solid #e7e1d9;
  border-radius:8px;
  padding:2px 8px;
}

/* about */
.about{padding:40px 0;border-top:1px solid #e9e3da}
.about h2{font-size:28px;margin-bottom:10px}
.about .muted{color:var(--muted)}

/* footer universal */
.footer{
  border-top:1px solid #e9e3da;
  background:rgba(255,255,255,.5);
  padding:24px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  flex-wrap:wrap;
  color:#6C7177;
  font-size:14px;
}
.footer-left{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-copy{
  margin-left:8px;
  line-height:1.4;
}
.footer .icon{
  width:32px;
  height:32px;
  opacity:0.85;
  transition:opacity .2s, transform .2s;
}
.footer .icon:hover{
  opacity:1;
  transform:scale(1.1);
}

/* 📱 mobile footer layout */
@media (max-width:720px){
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .footer-copy{
    margin-left:0;
  }
}

/* insurance: any .icon */
img.icon{ width:32px; height:32px; object-fit:contain; display:inline-block; }

/* mobile tweaks */
@media (max-width:720px){
  .logo img{height:36px}
  .hero{padding:32px 0}
  .hero h1{font-size:28px}
  .lead{font-size:14px}
}

/* modal */
.rb-modal{
  width:min(920px, calc(100% - 24px));
  border:none;
  border-radius:18px;
  padding:0;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.rb-modal::backdrop{ background:rgba(0,0,0,.35); }
.rb-modal__close{
  position:absolute; right:10px; top:10px;
  background:#fff; border:1px solid #e9e3da; border-radius:10px;
  padding:6px 10px; cursor:pointer;
}
.rb-modal__body{ display:flex; gap:16px; padding:16px; }
.rb-modal__media img{ max-width:360px; width:100%; height:auto; border-radius:14px; background:#f5f1ea; }
.rb-modal__meta{ flex:1; min-width:0; }
@media (max-width:720px){
  .rb-modal__body{ flex-direction:column; }
  .rb-modal__media img{ max-width:100%; }
}

/* Telegram button */
.btn-tg {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#4A68A4;
  color:#fff;
  font-weight:700;
  border:none;
  border-radius:12px;
  height:var(--ctrl-h);
  line-height:var(--ctrl-h);
  padding:0 16px;
  margin:0 0 12px 0;
  text-decoration:none;
  transition:opacity .2s;
  box-sizing:border-box;
}
.btn-tg:hover { opacity:.92; }

/* 📱 full-width Telegram button on mobile */
@media (max-width:720px) {
  .btn-tg {
    display:block;
    width:100%;
    text-align:center;
  }
}
