@font-face { font-family: "Inter"; font-weight: 400; src: url(fonts/inter-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 400; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Inter"; font-weight: 600; src: url(fonts/inter-cyrillic-600-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Inter"; font-weight: 700; src: url(fonts/inter-cyrillic-700-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 700; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

/* Фирменный коралловый цвет взят с вывески центра */
:root {
  --brand: #e5484d;
  --brand-dark: #c8343a;
  --ink: #1f1f1f;
  --soft: #6b6b6b;
  --line: #e7e7e7;
  --bg2: #f5f5f3;
  --radius: 12px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; }
.in { max-width: 1360px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glyph { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Шапка */
.topbar { background: var(--bg2); font-size: 13px; color: var(--soft); }
.topbar .in { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; min-height: 36px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 5px; }
.topbar .ic { width: 15px; height: 15px; }
.topbar a:hover { color: var(--ink); }
.topphone { margin-left: auto; color: var(--ink); font-weight: 600; }
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header > .in { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.logo small { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--soft); }
.logo-sofa { width: 46px; height: 29px; fill: var(--brand); }
.catbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; }
.catbtn:hover, .catbtn[aria-expanded="true"] { background: var(--brand-dark); }
.search { display: flex; flex: 1; min-width: 0; border: 2px solid var(--brand); border-radius: var(--radius); overflow: hidden; }
.search input { flex: 1; min-width: 0; padding: 9px 14px; border: 0; outline: 0; }
.search button { padding: 0 16px; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.tools { display: flex; gap: 6px; }
.tools a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; font-size: 12px; color: var(--soft); }
.tools a:hover { color: var(--ink); }
.tools .ic { width: 24px; height: 24px; color: var(--ink); }
.tools b { position: absolute; top: -2px; right: 8px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.quick { border-bottom: 1px solid var(--line); }
.quick .in { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; padding-block: 11px; font-size: 14px; scrollbar-width: none; }
.quick a:hover { color: var(--brand); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); max-height: calc(100vh - 140px); overflow-y: auto; }
.mega-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; max-width: 1360px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 30px; }
.mega h3 { margin-bottom: 8px; font-size: 15px; }
.mega a { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
.mega a:hover { color: var(--brand); }
.mega a .ic { color: var(--soft); width: 22px; height: 22px; }
.mega small { margin-left: auto; color: var(--soft); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1.5px solid var(--brand-dark); border-radius: var(--radius); background: var(--brand-dark); color: #fff; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: #a92a30; border-color: #a92a30; }
.btn.line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.line:hover { border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.full { width: 100%; }
.btn.small { padding: 8px 14px; }
.more { display: inline-flex; align-items: center; gap: 2px; color: var(--brand-dark); font-weight: 600; font-size: 14px; }
.more .ic { width: 16px; height: 16px; }

/* Главная */
.hero { position: relative; margin-top: 20px; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 20px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; min-height: clamp(240px, 30vw, 380px); padding: clamp(24px, 5vw, 64px); overflow: hidden; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s1 { background: linear-gradient(110deg, #fbe7e3 0%, #f6d3cc 100%); }
.s2 { background: linear-gradient(110deg, #e9eef4 0%, #d5e0ec 100%); }
.s3 { background: linear-gradient(110deg, #f1ede4 0%, #e3dccd 100%); }
.slide-text { position: relative; z-index: 1; max-width: 540px; }
.slide h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.08; }
.slide p { margin: 12px 0 22px; font-size: clamp(15px, 1.4vw, 18px); color: #3c3c3c; }
.banner-glyph { position: absolute; right: 4%; bottom: -6%; width: min(46%, 460px); height: auto; aspect-ratio: 1; fill: none; stroke: rgba(31, 31, 31, .16); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.sl-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: grid; place-items: center; cursor: pointer; }
.sl-btn.prev { left: 14px; } .sl-btn.prev .ic { rotate: 180deg; }
.sl-btn.next { right: 14px; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .22); cursor: pointer; transition: width .2s; }
.dots button[aria-current="true"] { width: 24px; background: var(--brand); }

.block { margin-top: clamp(36px, 5vw, 56px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.circles { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.circle { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; line-height: 1.25; }
.circle > span { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--bg2); color: #555; overflow: hidden; transition: background .15s, color .15s; }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.circle:hover > span { background: #fde8e6; color: var(--brand-dark); }
.circle .glyph { width: 54px; height: 54px; }

.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 26px clamp(20px, 4vw, 40px); border-radius: 20px; background: var(--ink); color: #fff; }
.promo p { margin-top: 4px; color: #cfcfcf; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.brands.wide { margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.brandcard { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.brandcard:hover { border-color: transparent; box-shadow: 0 6px 24px rgba(0, 0, 0, .1); }
.brandcard b { font-size: 18px; }
.brandcard small { color: var(--soft); font-size: 13px; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 48px; }
.perks > div { padding: 22px; border-radius: var(--radius); background: var(--bg2); }
.perks .ic { width: 28px; height: 28px; color: var(--brand); }
.perks h3 { margin: 10px 0 4px; font-size: 17px; }
.perks p { color: var(--soft); font-size: 14px; }
.twocol { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; color: var(--soft); }
.rating { padding: 24px; border-radius: var(--radius); background: var(--bg2); }
.stars { margin: 10px 0 2px; }
.stars b { font-size: 40px; color: var(--brand-dark); }
.rating > p:not(.stars) { color: var(--soft); font-size: 14px; }
.rating ul { margin: 14px 0; }
.rating li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.contacts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.contacts dl, .spec { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 10px 16px; margin: 18px 0 22px; }
dt { color: var(--soft); }
.status { display: block; font-size: 13px; color: var(--soft); }
.status.open { color: #1d7a43; }
.map iframe { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--radius); background: var(--bg2); }
.seo { margin-block: 48px 0; color: var(--soft); font-size: 14px; max-width: 70em; }
.seo h2 { margin-bottom: 8px; color: var(--ink); font-size: 18px; }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 16px; }
.rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(220px, calc((100% - 64px) / 5)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; }
.card-pic { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.card-pic img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .3s; }
.card:hover .card-pic img { transform: scale(1.03); }
.nophoto { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b9b9b9; }
.nophoto small { font-size: 12px; }
.card:hover .nophoto { color: #999; }
.fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.fav .ic { width: 20px; height: 20px; }
.fav.on .ic { fill: var(--brand); stroke: var(--brand); }
.tag { align-self: flex-start; margin-top: 10px; padding: 2px 8px; border-radius: 6px; background: var(--bg2); font-size: 12px; color: var(--soft); }
.card-name { margin-top: 6px; font-size: 15px; line-height: 1.35; }
.card-name:hover { color: var(--brand-dark); }
.card-size { margin-top: 2px; font-size: 13px; color: var(--soft); }
.card-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; font-size: 16px; }
.price.big { font-size: 28px; }
.tocart { width: 42px; height: 42px; flex: none; border: 0; border-radius: var(--radius); background: var(--brand-dark); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tocart:hover { background: #a92a30; }
.tocart.done { background: #1d7a43; }

/* Каталог */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 18px 12px; font-size: 13px; color: var(--soft); }
.crumbs a:hover { color: var(--brand-dark); }
.list-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.count { color: var(--soft); }
.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; margin-top: 20px; align-items: start; }
.filters { position: sticky; top: 90px; display: grid; gap: 18px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head button { border: 0; background: none; color: var(--brand-dark); cursor: pointer; font-size: 14px; }
.filters legend { margin-bottom: 8px; font-weight: 600; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.filters label small { margin-left: auto; color: var(--soft); }
.filters input { width: 18px; height: 18px; accent-color: var(--brand-dark); }
.filters fieldset a { display: block; padding: 4px 0; font-size: 14px; }
.filters fieldset a:hover { color: var(--brand-dark); }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.toolbar select { margin-left: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.showfilters { display: none; margin-right: auto; }
.empty, .lead { margin-top: 16px; color: var(--soft); }
.lead a { color: var(--brand-dark); }

/* Товар */
.product { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.gallery { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bg2); }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: 4%; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 84px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--bg2); overflow: hidden; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery .glyph { width: 120px; height: 120px; }
.fav.big { top: 16px; right: 16px; width: 44px; height: 44px; }
.buybox h1 { margin-top: 10px; }
.buybox .tag { margin-top: 0; }
.pricebox { margin-top: 18px; padding: 22px; border-radius: 16px; box-shadow: 0 4px 24px rgba(0, 0, 0, .09); display: grid; gap: 10px; }
.pricebox p { color: var(--soft); font-size: 14px; margin-bottom: 6px; }
.perks-list { margin-top: 18px; display: grid; gap: 12px; font-size: 14px; color: var(--soft); }
.perks-list li { display: flex; gap: 10px; }
.perks-list .ic { color: var(--brand); }
.tabs h2 { margin-bottom: 4px; }
.tabs h2:not(:first-child) { margin-top: 28px; }
.tabs p { color: var(--soft); margin-top: 8px; }
.spec { max-width: 640px; }
.spec dt, .spec dd { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.spec dd a { color: var(--brand-dark); }

/* Статьи, заявка, избранное */
.article { max-width: 760px; }
.article h2 { margin-block: 26px 8px; }
.article p { color: #3c3c3c; }
.cart { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; margin-top: 20px; align-items: start; }
.cartlist li, .favlist li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cartlist a, .favlist a { flex: 1; font-weight: 600; }
.cartlist a:hover, .favlist a:hover { color: var(--brand-dark); }
.cartlist button, .favlist button { border: 0; background: none; color: var(--soft); cursor: pointer; text-decoration: underline; }
.favlist { margin-top: 16px; max-width: 760px; }
.order { display: grid; gap: 14px; padding: 24px; border-radius: 16px; box-shadow: 0 4px 24px rgba(0, 0, 0, .09); }
.order > p { color: var(--soft); font-size: 14px; }
.order label { display: grid; gap: 4px; font-size: 14px; }
.order input:not([type=checkbox]), .order textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; }
.order .hp { position: absolute; left: -9999px; }
.order .check { display: flex; gap: 8px; align-items: flex-start; }
.order .check a { color: var(--brand-dark); }
.formmsg { min-height: 1.4em; font-size: 14px; }

/* Подвал */
.footer { margin-top: 64px; padding-block: 40px 20px; background: #232323; color: #d6d6d6; font-size: 14px; }
.footer > .in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer h2 { margin-bottom: 10px; color: #fff; font-size: 16px; }
.fcol a { display: block; padding: 3px 0; }
.fcol a:hover { color: #fff; }
.fcol .logo { display: inline-flex; padding: 0; }
.fcol p { margin: 14px 0 8px; }
.logo.light { color: #fff; }
.logo.light small { color: #aaa; }
.fphone { color: #fff; font-weight: 700; font-size: 18px; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid #3a3a3a; font-size: 12.5px; color: #9a9a9a; }
.callbar { display: none; }

@media (max-width: 1000px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(320px, 86vw); padding: 20px; background: #fff; box-shadow: 0 0 40px rgba(0, 0, 0, .25); overflow-y: auto; align-content: start; transform: translateX(-105%); transition: transform .25s; }
  .filters.open { transform: none; }
  .showfilters { display: inline-flex; }
  .product, .twocol, .contacts, .cart { grid-template-columns: minmax(0, 1fr); }
  .tools span { display: none; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
  .hide-s, .topbar .in > a:not(.topphone) { display: none; }
  .header > .in { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .logo { font-size: 18px; }
  .logo-sofa { width: 38px; height: 24px; }
  .tools { margin-left: auto; }
  .catbtn { order: 3; padding: 10px 12px; }
  .search { order: 4; flex: 1 1 200px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .rail { grid-template-columns: none; grid-auto-columns: 46%; }
  .sl-btn { display: none; }
  .banner-glyph { opacity: .5; }
  .card-name { font-size: 14px; }
  .price { font-size: 14px; }
  .tocart { width: 38px; height: 38px; }
  .contacts dl, .spec { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contacts dd, .spec dd { margin-bottom: 8px; }
  .callbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--brand-dark); color: #fff; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { html, .slider { scroll-behavior: auto; } * { transition: none !important; } }
