/* Техлес — основной сайт. Основа — макет TehlesDemo (site/style.css): без цен, заявки и «В заявку». */
:root {
  --ink: #1B2220;
  --ink-2: #3E4945;
  --muted: #5F6A66;
  --line: #E3E8E6;
  --soft: #F4F6F5;
  --white: #FFFFFF;
  --orange: #EF801A;
  --teal: #02B39D;
  --ok: #00715F;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 64px; padding-bottom: 8px; }
.section-sm { padding-top: 48px; padding-bottom: 64px; }
.h2 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: 15px; color: var(--muted); }
.row-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.link-arrow { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid #BFC8C4; padding-bottom: 1px; }
.link-arrow:hover { border-color: var(--ink); }
.more { margin-top: 28px; }

/* Шапка */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header .main { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 38px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 10px 0; color: var(--ink-2); }
.nav a:hover, .nav a.current { color: var(--ink); }
.nav a.current { box-shadow: inset 0 -2px 0 var(--orange); }
.nav a.nav-sale { color: #B85700; }
.nav a.nav-sale:hover { color: var(--ink); }
.store-facts.mails { margin-bottom: 32px; }
.search { flex: 1 1 220px; display: flex; min-width: 0; max-width: 340px; margin-left: auto; position: relative; }
.search input { flex: 1; min-width: 0; height: 42px; padding: 0 44px 0 14px; border: 1px solid #CDD5D2; border-radius: 10px; background: var(--white); font-size: 14px; }
.search input::placeholder { color: #7A8581; }
.search input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.search button { position: absolute; right: 2px; top: 2px; height: 38px; width: 40px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary, .btn-dark { background: var(--ink); color: var(--white); }
.btn-primary:hover, .btn-dark:hover { background: #33403C; color: var(--white); }

/* Первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.kicker { font-size: 14px; color: var(--muted); font-weight: 500; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 6px; }
.hero-photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Магазины */
.stores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.store { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.store img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 8px; background: var(--soft); transition: opacity .15s; }
.store:hover img { opacity: 0.9; }
.store .t { font-size: 18px; font-weight: 600; }
.store .d { font-size: 14px; color: var(--muted); }

/* Страница магазина */
.store-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 20px; }
.store-text { display: flex; flex-direction: column; gap: 20px; }
.store-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; font-size: 15px; }
.store-facts dt { color: var(--muted); }
.store-facts dd { margin: 0; font-weight: 500; }
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sec { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.sec:hover { border-color: var(--ink); }
.sec .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.sec .n { font-size: 13px; color: var(--muted); }

/* «Уточните в боте или по телефону» */
.ask { background: var(--soft); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ask b { font-size: 15px; font-weight: 600; }
.ask-links { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ask-bot, .ask-tel { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ask-bot { background: var(--ink); color: var(--white); }
.ask-bot:hover { background: #33403C; }
.ask-tel { background: var(--white); border: 1px solid #CDD5D2; color: var(--ink); }
.ask-tel span { color: var(--muted); font-weight: 500; }
.ask-tel:hover { border-color: var(--ink); }

/* Для организаций */
.b2b { background: var(--soft); border-radius: 20px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px 48px; align-items: start; }
.b2b-head { display: flex; flex-direction: column; gap: 10px; }
.b2b-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; grid-row: span 2; }
.b2b-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid var(--orange); }
.b2b-list b { font-size: 16px; font-weight: 600; }
.b2b-list span { font-size: 14px; color: var(--muted); }
.b2b .btn { justify-self: start; align-self: end; }
.steps { margin: 16px 0 24px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

/* Плитка */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card .pic { display: block; background: var(--soft); border-radius: 14px; overflow: hidden; }
.card .pic img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; mix-blend-mode: multiply; }
.card .body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.35; }
.card .name:hover { text-decoration: underline; }
.card .art { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.card .foot { margin-top: auto; padding-top: 8px; }

/* Где есть — метки магазинов */
.where { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 8px; border-radius: 6px; background: #E6F6F3; color: var(--ok); white-space: nowrap; }

/* Распродажа */
.sale-line { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 16px; }
.sale-line b { color: var(--ink); font-weight: 600; }

/* Подвал */
.footer { background: var(--soft); margin-top: 24px; }
.footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.footer .col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer .col b { font-size: 15px; font-weight: 600; }
.footer .col b a { text-decoration: none; }
.footer .col span { color: var(--muted); }
.footer .col a { color: var(--ink); }
.footer .col img { height: 32px; width: auto; align-self: flex-start; margin-bottom: 4px; }

/* ===== Каталог ===== */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.page-title { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.cat-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin: 20px 0 28px; }
.cat-head .lead { margin-top: 6px; }
.cat-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 72px; }
.side { flex: 0 1 240px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; }
.side .ask { padding: 16px; }
.side .ask-links { flex-direction: column; align-items: stretch; }
.side .ask-bot, .side .ask-tel { white-space: normal; height: auto; min-height: 38px; padding: 8px 12px; }
.filters { display: flex; flex-direction: column; gap: 24px; }
.filters summary { display: none; }
.filters fieldset { border: 0; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filters legend { font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.fbtn { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 38px; padding: 6px 12px; border-radius: 8px; font-size: 15px; line-height: 1.3; text-decoration: none; color: var(--ink-2); }
.fbtn:hover { background: var(--soft); }
.fbtn[aria-pressed="true"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.fbtn .n { color: var(--muted); font-weight: 400; font-size: 13px; }
.cat-main { flex: 999 1 600px; min-width: 0; }
.empty { border: 1px dashed #CDD5D2; border-radius: 14px; padding: 40px; text-align: center; color: var(--muted); }
.list-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.seg { display: flex; border: 1px solid #CDD5D2; border-radius: 10px; padding: 3px; background: var(--white); }
.seg a { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 7px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.seg a[aria-pressed="true"] { background: var(--soft); color: var(--ink); font-weight: 600; }

/* Список-прайс (класс без «price»: цен на сайте нет) */
.plist { border-top: 1px solid var(--line); }
.pl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 170px 170px; align-items: center; gap: 0 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.pl-row:hover { background: var(--soft); }
.pl-row > span { padding: 10px 0; min-width: 0; }
.pl-row .thumb { padding: 6px 0 6px 4px; }
.pl-row img { width: 48px; height: 48px; object-fit: contain; display: block; border-radius: 8px; background: var(--soft); mix-blend-mode: multiply; }
.pl-row .nm b { font-weight: 500; display: block; line-height: 1.35; }
.pl-row .nm small { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pl-row .code { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pl-row .sz { font-size: 13px; color: var(--ink-2); }
.pl-head { color: var(--muted); font-size: 13px; font-weight: 500; }
.pl-head > span { padding: 8px 0; }
.txt-ok { color: var(--ok); font-weight: 500; }
.pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding-top: 32px; }
.pages a, .pages span { min-width: 40px; height: 40px; padding: 0 6px; border-radius: 8px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.pages a:hover { background: var(--soft); }
.pages a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }

/* ===== Карточка товара ===== */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 24px; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery .main { aspect-ratio: 1 / 1; background: var(--soft); border-radius: 18px; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumbs a { aspect-ratio: 1; background: var(--soft); border-radius: 10px; overflow: hidden; display: block; }
.thumbs a.on { outline: 2px solid var(--ink); outline-offset: -2px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.buy { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; min-width: 0; }
.buy .brand { font-size: 14px; color: var(--muted); }
.buy h1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 6px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.tags b { color: var(--ink); font-weight: 600; }
.box-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.box-head b { font-weight: 600; }
.box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 12px; }
.box .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.box .line small { display: block; color: var(--muted); font-size: 13px; }
.box .line small a { color: var(--ink); }
.sizes { display: flex; flex-direction: column; gap: 8px; }
.sizes-title { font-size: 14px; color: var(--muted); }
.size-row { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 44px; height: 36px; padding: 0 10px; border: 1px solid #CDD5D2; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.size-table-wrap { overflow-x: auto; }
.size-table { border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: center; min-width: 44px; }
.size-table thead th { background: var(--soft); font-weight: 500; color: var(--muted); }
.size-table tbody th { font-weight: 600; background: var(--soft); }
.size-table td.yes { color: var(--ok); font-weight: 700; background: #E6F6F3; }
.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 56px 0 24px; }
.panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel h2 { font-size: 20px; font-weight: 600; }
.desc { white-space: pre-line; color: var(--ink-2); }
.specs { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 15px; }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 12px; }
.specs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.gone { padding: 40px 0 24px; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }

/* Политика и плашка cookie */
.doc { max-width: 820px; padding: 20px 0 64px; display: flex; flex-direction: column; gap: 12px; }
.doc h2 { font-size: 20px; font-weight: 600; margin-top: 16px; }
.doc p { color: var(--ink-2); }
.footer .col.legal { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.12); font-size: 14px; }
.cookie p { flex: 1; color: var(--ink-2); }
.cookie .btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
@media (max-width: 720px) { .cookie { flex-direction: column; align-items: stretch; } }

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.contact { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.contact img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.contact h2 { font-size: 18px; font-weight: 600; }
.contact h2 a { text-decoration: none; }

/* ===== Планшет и телефон ===== */
@media (max-width: 960px) {
  .hero, .store-head { grid-template-columns: 1fr; gap: 32px; }
  .stores, .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b { grid-template-columns: 1fr; }
  .product, .info { grid-template-columns: 1fr; gap: 32px; }
  /* Код прячем, размеры — строкой под названием. */
  .pl-row { grid-template-columns: 56px minmax(0, 1fr) 150px; }
  .pl-row > span:nth-child(3), .pl-head > span:nth-child(5) { display: none; }
  .pl-row .sz { grid-column: 2; padding-top: 0; }
}
.pl-row .sz:empty { display: none; }
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 44px; }
  .header .main { gap: 10px 16px; }
  .logo img { height: 32px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .nav { order: 4; width: 100%; gap: 0 16px; font-size: 14px; }
  .nav a { padding: 2px 0 6px; }
  .header { position: static; }
  .hero { padding-top: 28px; }
  .hero p { font-size: 16px; }
  .b2b { padding: 24px; }
  .b2b-list { grid-template-columns: 1fr; }
  .stores { gap: 20px 14px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .side { flex: 1 1 100%; }
  .filters { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
  .filters summary { display: block; cursor: pointer; padding: 12px 0; font-weight: 600; }
  .filters[open] summary { margin-bottom: 8px; }
  .pl-row { grid-template-columns: 56px minmax(0, 1fr); }
  .pl-row > span.st { grid-column: 2; padding-top: 0; }
  .pl-head { display: none; }
  .contacts { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1.4fr; }
}
