/* Каталог напольных покрытий «Атмосфера» — фирменный стиль основного сайта
   (тёмная тема + золото; шрифт Montserrat; адаптив как на atmo-rybinsk.ru) */
:root {
  --gold:#f4c84b;
  --gold-2:#deab68;
  --gold-soft:#ffdf8e;
  --gold-grad:linear-gradient(135deg,#deab68 0%,#f4c84b 48%,#f9d976 100%);
  --teal:#3fc0aa;
  --ink:#111413;
  --ink-2:#191d1b;
  --ink-3:#232826;
  --white:#fff;
  --muted:#9aa29d;
  --muted-2:#6f7773;
  --line:rgba(255,255,255,.1);
  --line-2:rgba(255,255,255,.14);
  --radius:20px;
  --ff:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--ff); background: var(--ink); color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.55; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
img { max-width: 100%; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { color: var(--white); font-family: var(--ff); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 34px; margin: 26px 0 10px; }
h2 { font-size: 26px; margin: 36px 0 16px; }
.muted { color: var(--muted); font-size: 14px; }

/* Шапка: тёмная, sticky, как на основном сайте */
.top { border-bottom: 1px solid var(--line); background: rgba(17,20,19,.94); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; }
.top-in { display: flex; align-items: center; gap: 26px; padding: 14px 20px; }
/* Логотип как на главной: эмблема + белый текст + золотая подпись */
.logo { display: flex; align-items: center; gap: 11px; flex: none; transition: transform .25s var(--ease); }
.logo:hover { transform: translateY(-1px); }
.logo-mark { width: 38px; height: 40px; flex: none; display: grid; place-items: center; transition: transform .5s var(--ease); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-weight: 800; font-size: 19px; color: #fff; letter-spacing: .13em; white-space: nowrap; }
.logo-sub { font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 500; white-space: nowrap; }
.search { flex: 1; display: flex; max-width: 520px; min-width: 160px; }
.search input { flex: 1; min-width: 60px; background: var(--ink-3); border: 1px solid var(--line-2); border-right: 0; border-radius: 26px 0 0 26px; padding: 11px 20px; font-size: 15px; outline: none; font-family: inherit; color: var(--white); }
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: var(--gold); }
.search button { border: 0; background: var(--gold-grad); color: #14110a; font-weight: 600; border-radius: 0 26px 26px 0; padding: 0 26px; font-size: 15px; cursor: pointer; font-family: inherit; }
.search button:hover { filter: brightness(1.06); }
.phone { font-size: 18px; font-weight: 700; color: var(--white); white-space: nowrap; }
.phone:hover { color: var(--gold); }

/* Меню: одна строка + выпадающий каталог */
.menu { background: var(--ink-2); border-top: 1px solid var(--line); }
.menu-in { display: flex; align-items: center; gap: 6px; padding: 7px 20px; flex-wrap: nowrap; overflow: visible; }
.menu-in > a, .drop-btn { display: flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 18px; color: rgba(255,255,255,.75); font-size: 14.5px; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; line-height: 1.3; transition: background .2s, color .2s; }
.menu-in > a:hover, .drop-btn:hover { background: var(--ink-3); color: var(--white); }
.menu-in > a.act { background: var(--gold-grad); color: #14110a; font-weight: 600; }
.menu-phone { margin-left: auto; font-weight: 600; color: var(--gold); }
.menu-phone:hover { background: var(--ink-3); color: var(--gold-soft); }

.drop { position: relative; }
.drop.open .drop-btn, .drop:hover .drop-btn { background: var(--ink-3); color: var(--white); border-radius: 18px 18px 0 0; }
.drop-btn svg { transition: transform .2s; }
.drop:hover .drop-btn svg, .drop.open .drop-btn svg { transform: rotate(180deg); }
.drop-panel { display: none; position: absolute; top: 100%; left: 0; padding-top: 8px; z-index: 60; }
.drop-panel::before { content: ''; display: block; position: absolute; top: 0; left: 0; right: 0; height: 8px; }
.drop-panel-in { background: var(--ink-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.4); padding: 14px; width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.drop:hover .drop-panel, .drop:focus-within .drop-panel, .drop.open .drop-panel { display: block; }
.drop-panel a { padding: 9px 14px; border-radius: 14px; color: rgba(255,255,255,.8); font-size: 14.5px; display: flex; align-items: center; }
.drop-panel a:hover { background: var(--ink-3); color: var(--gold); }
.drop-panel a.act { background: var(--gold-grad); color: #14110a; }

/* Бургер (только мобильный) */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--gold); border-radius: 2px; }

/* Хлебные крошки */
.crumbs { margin: 16px 0 4px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs-sep { margin: 0 6px; color: var(--muted-2); }
.crumbs-cur { color: var(--white); }

/* SEO-текст */
.seo-text { margin: 36px 0 50px; padding: 24px 28px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.seo-text h2 { font-size: 22px; margin-top: 0; margin-bottom: 12px; }
.seo-text p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.72); margin-bottom: 8px; }
.seo-text p:last-child { margin-bottom: 0; }

/* Раскладка каталога */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; margin: 18px 0 50px; }
.filters { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; position: sticky; top: 130px; }
.filters h3 { font-size: 17px; margin-bottom: 12px; font-family: var(--ff); }
.fgroup { margin-bottom: 16px; }
.fgroup .flabel { font-weight: 600; color: var(--white); margin-bottom: 6px; font-size: 14.5px; }
.fgroup label { display: block; font-size: 14px; padding: 3px 0; cursor: pointer; color: rgba(255,255,255,.72); }
.fgroup label:hover { color: var(--gold); }
.fgroup input[type="checkbox"] { accent-color: var(--gold); margin-right: 7px; }
.freset { display: inline-block; margin-top: 6px; font-size: 14px; }

/* Сетка товаров */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 16px; flex-wrap: wrap; }
.toolbar .cnt { color: var(--muted); font-size: 14.5px; }
.toolbar select { border: 1px solid var(--line-2); border-radius: 20px; padding: 8px 14px; font-family: inherit; font-size: 14px; color: var(--white); outline: none; background: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* Карточка товара */
.card { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; color: rgba(255,255,255,.86); position: relative; }
.card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.45); transform: translateY(-3px); border-color: var(--gold-2); }
.card-img { position: relative; aspect-ratio: 1/1; background: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.noimg { color: var(--muted-2); font-size: 14px; }
.badge { position: absolute; top: 12px; left: 12px; border-radius: 12px; padding: 3px 12px; font-size: 12px; font-weight: 600; color: #14110a; background: var(--gold); }
.badge-amber { background: var(--gold); color: #14110a; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 11.5px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.card-name { font-size: 15px; color: var(--white); font-weight: 500; line-height: 1.35; min-height: 40px; }
.card-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.price { font-size: 19px; font-weight: 700; color: var(--gold); }
.price .muted, .card-bottom .muted { color: var(--muted); }
.stock { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.stock.in { color: var(--teal); }
.card.out .card-img { opacity: .75; }

/* Главная */
.hero { background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 70%), radial-gradient(circle at 85% 20%, rgba(244,200,75,.14), transparent 45%); border: 1px solid var(--line); border-radius: var(--radius); padding: 52px 56px; margin: 28px 0 10px; }
.hero h1 { font-size: 40px; margin: 0 0 10px; }
.hero p { max-width: 640px; font-size: 17px; color: rgba(255,255,255,.72); }
.hero .stats { display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.hero .stat b { display: block; font-size: 30px; color: var(--gold); font-weight: 800; }
.hero .stat span { color: var(--muted); font-size: 14px; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 26px 0 40px; }
.brands-tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cat-tile { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--white); display: flex; flex-direction: column; transition: background .25s, transform .25s, box-shadow .25s, border-color .25s; }
.cat-tile:hover { background: var(--ink-3); box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: translateY(-2px); border-color: var(--gold-2); }
.cat-tile .ct-img { display: block; aspect-ratio: 1 / 1; width: 100%; background: var(--ink-3); overflow: hidden; position: relative; }
.cat-tile .ct-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .35s; }
.cat-tile:hover .ct-img img { transform: scale(1.04); }
.cat-tile .ct-img-empty { display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 14px; background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink-3) 100%); }
.cat-tile .ct-icon { display: flex; align-items: center; justify-content: center; height: 70px; color: var(--gold); background: linear-gradient(135deg, rgba(244,200,75,.1) 0%, rgba(244,200,75,.03) 100%); }
.cat-tile .ct-icon svg { width: 36px; height: 36px; }
.cat-tile.brand-tile .ct-icon { color: var(--gold-soft); background: linear-gradient(135deg, rgba(222,171,104,.14) 0%, rgba(222,171,104,.04) 100%); }
.cat-tile .ct-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-tile .ct-name { font-family: var(--ff); font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--white); }
.cat-tile .ct-cnt { color: var(--muted); font-size: 13.5px; }
@media (max-width: 460px) {
  .cat-tile .ct-icon { height: 56px; }
  .cat-tile .ct-icon svg { width: 28px; height: 28px; }
}

/* Карточка товара (страница) */
.pd { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,4fr); gap: 40px; margin: 10px 0 30px; }
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main-img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: var(--ink-2); overflow: hidden; }
.pd-main-img img { max-height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumbs img { width: 74px; height: 74px; object-fit: contain; border-radius: 12px; border: 2px solid var(--line-2); cursor: pointer; background: var(--ink-2); padding: 4px; }
.pd-thumbs img:hover, .pd-thumbs img.act { border-color: var(--gold); }
.pd-info h1 { font-size: 26px; margin: 0 0 6px; }
.pd-brandline { color: var(--muted); margin-bottom: 16px; font-size: 14.5px; }
.pd-brandline b { color: var(--gold); letter-spacing: 1px; }
.pd-price { font-size: 34px; font-weight: 700; color: var(--white); margin: 8px 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pd-price .price, .pd-price b { color: var(--gold); }
.pd-discount { font-size: 14px; font-weight: 600; background: var(--gold); color: #14110a; border-radius: 12px; padding: 4px 14px; font-family: var(--ff); }
.pd-price-note { font-size: 14px; color: var(--muted); margin-top: -2px; margin-bottom: 10px; font-weight: 400; }
.pd-price-note s { color: var(--muted-2); margin-right: 6px; font-weight: 400; }
.pd-stock { display: inline-block; border-radius: 16px; padding: 8px 18px; font-size: 15px; font-weight: 600; margin: 6px 0 18px; background: var(--ink-3); color: var(--muted); }
.pd-stock.in { background: rgba(63,192,170,.14); color: var(--teal); }
.pd-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 22px; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 30px; font-size: 15.5px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--gold); color: var(--gold); background: transparent; font-family: inherit; transition: background .2s, color .2s, filter .2s; }
.btn:hover { background: rgba(244,200,75,.12); color: var(--gold-soft); }
.btn-solid { background: var(--gold-grad); color: #14110a; border-color: transparent; }
.btn-solid:hover { background: var(--gold-grad); color: #14110a; filter: brightness(1.06); }
.btn-amber { border-color: var(--gold-2); color: var(--gold-soft); }
.btn-amber:hover { background: var(--gold-2); color: #14110a; }
.pd-specs { margin-top: 8px; }
.pd-specs table { border-collapse: collapse; width: 100%; }
.pd-specs td { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: rgba(255,255,255,.8); }
.pd-specs td:first-child { color: var(--muted); width: 42%; }
.pd-desc { margin: 8px 0 40px; }
.pd-desc h4 { margin: 18px 0 8px; font-size: 19px; }
.pd-desc p { white-space: pre-line; font-size: 15px; color: rgba(255,255,255,.75); }
.pd-desc li { margin-left: 20px; color: rgba(255,255,255,.75); }
.related { margin: 10px 0 60px; }
.related .grid { margin-top: 16px; }
.stock-note { border-left: 4px solid var(--gold); background: var(--ink-2); border-radius: 0 14px 14px 0; padding: 14px 18px; font-size: 14.5px; margin: 14px 0; color: rgba(255,255,255,.78); }

/* Подвал */
.foot { background: var(--ink-2); border-top: 1px solid var(--line); color: rgba(255,255,255,.72); margin-top: 30px; }
.foot-in { display: flex; gap: 40px; justify-content: space-between; padding: 34px 20px 20px; flex-wrap: wrap; }
.foot .logo-word { font-size: 24px; }
.foot .muted { color: var(--muted); }
.foot .phone { color: var(--white); font-size: 17px; }
.foot .phone:hover { color: var(--gold); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: rgba(255,255,255,.72); }
.foot-links a:hover { color: var(--gold); }
.copy { padding: 18px 20px 26px; color: var(--muted-2); font-size: 13px; }

/* Пагинация умная */
.pager { display: flex; gap: 8px; margin: 30px 0 50px; flex-wrap: wrap; align-items: center; }
.pager a, .pager span.cur, .pager span.dots { padding: 9px 16px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--white); font-size: 14.5px; background: var(--ink-2); }
.pager span.cur { background: var(--gold-grad); border-color: transparent; color: #14110a; font-weight: 600; }
.pager span.dots { border: 0; color: var(--muted); padding: 9px 6px; background: none; }
.pager a:hover { border-color: var(--gold); color: var(--gold); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ==== Мобильная адаптация ==== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .drop-panel { width: 480px; }
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { order: 2; position: static; }
  .pd { grid-template-columns: 1fr; }
  .hero { padding: 36px 26px; }
  .hero h1 { font-size: 30px; }
  .logo-word { font-size: 23px; }
  .logo-sub { font-size: 8.5px; letter-spacing: 2px; }
  .phone { font-size: 16px; }
}
@media (max-width: 780px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Меню-бургер: категории в выпадающую панель */
  .burger { display: flex; }
  .menu-in { flex-wrap: wrap; display: none; padding: 10px 16px 16px; }
  .menu-in.show { display: flex; }
  .menu-in > a, .drop-btn { width: 100%; justify-content: flex-start; padding: 12px 16px; }
  .drop { width: 100%; }
  .drop-panel { position: static; display: none; padding-top: 0; width: 100%; }
  .drop-panel::before { display: none; }
  .drop-panel-in { width: 100%; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 0 10px 14px; grid-template-columns: 1fr 1fr; }
  .drop.open .drop-panel { display: block; }
  .menu-phone { margin-left: 0; }
  /* Поиск переносится ниже логотипа */
  .top-in { flex-wrap: wrap; }
  .search { order: 3; max-width: none; width: 100%; }
  /* Фильтры сворачиваются в кнопку */
  .filters { padding: 0; background: none; border: 0; }
  .filters h3, .fgroup, .freset { display: none; }
  .filters.expanded h3, .filters.expanded .fgroup, .filters.expanded .freset { display: block; }
  .filters.expanded { background: var(--ink-2); border: 1px solid var(--line); padding: 20px; }
  .filters .ftoggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 15px 20px; font-weight: 500; color: var(--white); font-size: 15px; border: 1px solid var(--line-2); cursor: pointer; font-family: inherit; }
  .pager a, .pager span.cur { padding: 8px 12px; font-size: 14px; }
}
@media (min-width: 781px) {
  .filters .ftoggle { display: none; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .card-name { min-height: 0; }
  .hero { padding: 26px 18px; }
  .hero h1 { font-size: 26px; }
  .top-in { gap: 12px; }
  .logo-word { font-size: 21px; }
}

/* Корпоративное уведомление (как в /santehnika/) */
.foot-corp {
  margin: 6px 0 0; padding: 16px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(244, 200, 75, .08); border: 1px solid rgba(244, 200, 75, .22);
  border-radius: var(--r-md);
}
.foot-corp svg { flex: none; margin-top: 2px; color: var(--gold); }
.foot-corp p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.foot-corp b { color: var(--gold); }
@media (max-width: 780px) {
  .foot-corp { flex-direction: column; gap: 8px; padding: 14px 16px; }
}
