/* ===== FONTS ===== */
@font-face {
  font-family: 'TT Commons Pro';
  src: url('../fonts/TT_Commons_Pro/TT_Commons_Pro_Regular.woff2') format('woff2'),
       url('../fonts/TT_Commons_Pro/TT_Commons_Pro_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Ramillas';
  src: url('../fonts/TT_Ramillas/TT_Ramillas_Light.woff2') format('woff2'),
       url('../fonts/TT_Ramillas/TT_Ramillas_Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #101010;
  --bg-lighter: #1a1a1a;
  --primary: #cb3b25;
  --primary-hover: #e14c35;
  --orange: #ff673d;
  --amber: #ffa15e;
  --green: #93d200;
  --white: #ffffff;
  --text-muted: rgba(255,255,255,0.6);
  --content_width: 1360px;
  --transparent_white_color: rgb(255 255 255 / 60%);
  --color_1: #ffa25f;
  --text-dim: rgba(255,255,255,0.4);
  --border: rgba(255,255,255,0.1);
  --border-light: rgba(255,255,255,0.15);
  --font-heading: 'TT Ramillas', 'TT Ramillas Trl', Georgia, serif;
  --font-body: 'TT Commons Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1920px;
  --container: 1440px;
  --header-h: 112px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--bg);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}
body.is_fixed{
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(203, 59, 37, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-light);
}

.btn--outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

.btn--small{
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  line-height: 1.2;
}

.btn--large {
  padding: 18px 48px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1000;
  border-bottom: 0;
  transform: none;
  transition: background var(--transition), box-shadow var(--transition);
}

.header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: rgba(16, 16, 16, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42px;
  background: rgba(16, 16, 16, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.header--scrolled {
  position: fixed;
  height: 70px;
  background: transparent;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header--scrolled::before {
  background: rgba(16, 16, 16, 0.84);
}

.header--scrolled::after {
  display: none;
}

.header--scrolled .header__top-row {
  display: none;
}

.header .container {
  max-width: var(--container);
  padding-left: 40px;
  padding-right: 40px;
  position: relative;
  z-index: 1;
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0;
}

.header__top-row,
.header__main-row {
  width: 100%;
  display: flex;
  align-items: center;
}

.header__top-row {
  justify-content: center;
  min-height: 42px;
  padding: 10px 0 4px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header__main-row {
  /* Ряд растянут на всю ширину контейнера: логотип по левому краю рельса,
     блок кнопок — по правому. Свободное место уходит в промежутки. */
  justify-content: space-between;
  min-height: 70px;
  gap: 32px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header__top-nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__top-link {
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.48);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition);
}

.header__top-link:hover {
  color: var(--white);
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header__nav {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__nav-list--mobile-secondary {
  display: none;
}

.header__nav-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--white);
}
.header__catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(203,59,37,0.26);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.header__catalog-btn::before {
  content: '';
  width: 17px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(#fff, #fff) 0 0 / 17px 2px no-repeat,
    linear-gradient(#fff, #fff) 0 5px / 17px 2px no-repeat,
    linear-gradient(#fff, #fff) 0 10px / 17px 2px no-repeat;
  border-radius: 1px;
}
.header__catalog-btn:hover,
.header__catalog-btn:focus-visible,
.header__nav-dropdown.open .header__catalog-btn {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 14px 34px rgba(203,59,37,0.34);
  transform: translateY(-1px);
}
.header__catalog-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 3px;
}
/* Phone in mobile nav (below socials) */
.header__nav-phone-link {
  display: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-top: 16px;
}
.header__nav-phone-link:hover {
  color: #fff;
}

/* слева, потому что правый верхний угол занят сердечком избранного */
.product-card__project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #cb3b25;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(203,59,37,0.35);
  pointer-events: none;
}
/* Phone in desktop actions (after WA+IG) */
.header__phone-desktop {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 8px;
}
.header__phone-desktop:hover {
  color: #fff;
}
.header__messengers,
.header__nav-messengers {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header__messenger-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.68);
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}
.header__messenger-link:hover,
.header__messenger-link:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}
.header__messenger-icon {
  width: 19px;
  height: 19px;
  display: block;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.74;
  transition: opacity var(--transition);
}
.header__messenger-link:hover .header__messenger-icon,
.header__messenger-link:focus-visible .header__messenger-icon {
  opacity: 1;
}
.header__nav-messengers {
  display: none;
}
/* Ниже 1440 контейнер перестаёт упираться в потолок и сжимается вместе с
   окном — поджимаем содержимое шапки, чтобы оно продолжало помещаться. */
@media (max-width: 1439px) and (min-width: 1101px) {
  /* Паддинг шапки здесь не уменьшаем: он должен совпадать с остальными
     контейнерами, иначе ряд шапки станет шире рельса секций и футера. */
  .header__logo-img {
    height: 38px;
  }
  .header__top-nav-list {
    gap: 18px;
  }
  .header__top-link {
    font-size: 14px;
  }
  .header__main-row {
    gap: 24px;
  }
  .header__nav-list {
    gap: 14px;
  }
  .header__nav-link {
    font-size: 14px;
  }
  .header__catalog-btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }
  .header__phone-desktop {
    font-size: 13px;
    margin-left: 0;
  }
  .header__actions {
    gap: 8px;
  }
  .header__actions .header__cta-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
  .header__search-btn,
  .header__fav-btn {
    width: 36px;
    height: 36px;
  }
  .header__messengers {
    gap: 4px;
  }
  .header__messenger-link {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 1240px) and (min-width: 1101px) {
  .header__messengers { display: none; }
}
/* Самая узкая десктопная полоса: пять пунктов меню, кнопки и логотип
   помещаются впритык. Поджимаем промежутки, чтобы не пришлось уменьшать
   паддинг контейнера и уводить ряд шапки за общий рельс. */
@media (max-width: 1160px) and (min-width: 1101px) {
  .header__main-row {
    gap: 16px;
  }
  .header__nav-list {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .header__phone-desktop,
  .header__messengers { display: none; }
}
@media (max-width: 1100px) {
  .header__phone-desktop,
  .header__messengers { display: none; }
}

.header__nav-link svg {
  transition: transform var(--transition);
}

.header__nav-dropdown {
  position: relative;
}

.header__nav-dropdown--catalog {
  position: relative;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 300px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  margin-top: 16px;
}

.header__nav-dropdown--simple .header__dropdown-menu {
  min-width: 240px;
}

.header__nav-dropdown:hover .header__dropdown-menu,
.header__nav-dropdown:focus-within .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__nav-dropdown:hover .header__nav-link svg,
.header__nav-dropdown:focus-within .header__nav-link svg {
  transform: rotate(180deg);
}

.header__dropdown-menu li a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-muted);
  transition: all var(--transition);
}

.header__dropdown-menu li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.header__mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  width: min(690px, calc(100vw - 48px));
  max-height: min(76vh, 640px);
  overflow-y: auto;
  padding: 18px;
  background: rgba(20,20,20,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.header__mega-menu--showcase {
  display: grid;
  grid-template-columns: 240px minmax(0, 390px);
  gap: 16px;
  justify-content: center;
}
.header__nav-dropdown.open .header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.header__mega-tabs {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.header__mega-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 14px 10px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,0.66);
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: left;
  transition: color var(--transition), background var(--transition);
}
.header__mega-tab::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}
.header__mega-tab::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
}
.header__mega-tab:hover,
.header__mega-tab:focus-visible,
.header__mega-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.header__mega-tab.active::before {
  background: var(--primary);
}
.header__mega-panels {
  min-width: 0;
}
.header__mega-panel {
  display: none;
}
.header__mega-panel.active {
  display: block;
}
.header__mega-panel-head {
  margin-bottom: 10px;
  padding: 4px 2px 0;
}
.header__mega-panel-head p {
  max-width: 600px;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
  line-height: 1.45;
}
.header__mega-cards {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow-x: visible;
  padding-bottom: 2px;
}
.header__mega-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  isolation: isolate;
}
.header__mega-card--large {
  width: 100%;
}
.header__mega-card:nth-child(3):last-child {
  grid-column: 1 / -1;
  aspect-ratio: 5 / 3;
}
.header__mega-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  transition: transform var(--transition), opacity var(--transition);
  z-index: -2;
}
@media (min-width: 1101px) {
  .header__mega-card[href*="subcategory=bannye-portaly"] img {
    object-position: center 42%;
    transform: scale(1.14);
  }
}
.header__mega-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.72));
  z-index: -1;
}
.header__mega-card span {
  align-self: flex-end;
  display: block;
  width: 100%;
  padding: 16px 14px 14px;
  font-family: var(--font-heading);
  font-size: 1.04rem;
  line-height: 1.18;
}
.header__mega-card small {
  display: none;
}
.header__mega-card--large span {
  padding: 16px 14px 14px;
  font-size: 1.04rem;
}
.header__mega-card:hover,
.header__mega-card:focus-visible {
  border-color: rgba(203,59,37,0.45);
}
.header__mega-card:hover img,
.header__mega-card:focus-visible img {
  opacity: 1;
  transform: scale(1.04);
}
@media (min-width: 1101px) {
  .header__mega-card[href*="subcategory=bannye-portaly"]:hover img,
  .header__mega-card[href*="subcategory=bannye-portaly"]:focus-visible img {
    transform: scale(1.18);
  }
}
.header__mega-card:hover small,
.header__mega-card:focus-visible small {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__actions .header__cta-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .header__actions .header__cta-btn {
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 4px;
  }
}

.header__action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.header__action-btn:hover {
  background: rgba(255,255,255,0.1);
}

.header__ig-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.2s;
}
.header__ig-btn:hover {
  background: rgba(255,255,255,0.2);
}
@media (max-width: 768px) {
  .footer__columns {
    grid-template-columns: 1fr;
  }

  .header__ig-btn { display: none; }
}
.header__nav-socials {
  display: none;
}
/* Show socials in mobile nav */
.header__nav.open .header__nav-socials {
  display: flex;
  gap: 12px;
  padding: 20px 0 8px;
  justify-content: center;
}
.header__nav.open .header__nav-phone-link {
  display: block;
  text-align: center;
  padding-bottom: 8px;
}
.header__nav.open .header__nav-messengers {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
}
.header__nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.header__nav-social:hover {
  background: rgba(255,255,255,0.2);
}

/* Burger */
.header__burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 960px;
  max-height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
}



.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 18%;
}

@media (max-width: 768px) {
  .hero__bg img {
    object-position: 35% center;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(16,16,16,0.55) 0%, rgba(16,16,16,0.1) 55%, rgba(16,16,16,0.0) 100%),
    linear-gradient(to bottom, rgba(16,16,16,0.05) 0%, transparent 30%, rgba(16,16,16,0.35) 75%, var(--bg) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: 48px;
  /* Ширину и паддинги берёт от .container — тем же рельсом идут шапка,
     секции и футер, поэтому левый край текста совпадает с логотипом. */
}

.hero__trust {
  max-width: 520px;
  margin-top: 24px;
}

.hero__buttons {
  max-width: 520px;
}

.hero__subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero__features {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 24px;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  color: #fff;
  line-height: 1.3;
}

.hero__feature::before {
  content: '✓';
  color: var(--amber);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.hero__feature:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  padding-right: 16px;
  margin-right: 16px;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 24px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__trust-num {
  font-family: var(--font-heading);
  font-size: 33px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
}

.hero__trust-text {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}

.hero__trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__buttons .btn--primary {
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
}

.hero__scroll-indicator {
  display: none;
}

.scroll-arrow-mobile {
  display: none;
}

/* ===== CATEGORY TABS ===== */
.categories {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.categories__scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.categories__scroll::-webkit-scrollbar {
  display: none;
}

.categories__tab {
  padding: 20px 32px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.categories__tab:first-child {
  border-left: 1px solid var(--border);
}

.categories__tab:hover,
.categories__tab--active {
  color: var(--white);
  background: rgba(255,255,255,0.03);
}

.categories__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* ===== CATEGORY CARDS ===== */
.cat-cards {
  padding: 24px 0 20px;
}

.cat-cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  display: block;
}

.cat-card--wide {
  grid-column: 1 / -1;
  height: 320px;
}

@media (min-width: 769px) {
  .cat-card--wide.cat-card--barbekyu {
    height: 460px;
  }
}

.cat-card--ready .cat-card__title {
  max-width: calc(100% - 48px);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (min-width: 481px) {
  .cat-card--kaminy img {
    object-position: center 70%;
    transform: translateY(-20px) scale(1.25);
    transform-origin: center center;
  }
  .cat-card--barbekyu img {
    object-position: center 60%;
  }
  .cat-card--pechi img {
    object-position: center center;
  }
  .cat-card--ready img {
    object-position: center center;
  }
  .cat-card--wide img {
    object-position: center center;
  }
  .cat-card--wide.cat-card--barbekyu img {
    object-position: center 42%;
  }
}

@media (min-width: 769px) {
  .cat-card--wide.cat-card--barbekyu img {
    object-position: center 52%;
  }
}

.cat-card:hover img {
  transform: scale(1.05);
}

@media (min-width: 481px) {
  .cat-card--kaminy:hover img {
    transform: translateY(-20px) scale(1.32);
    transform-origin: center center;
  }
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.cat-card__title {
  position: absolute;
  bottom: 68px;
  left: 24px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.cat-card__btn {
  position: absolute;
  bottom: 16px;
  left: 24px;
  display: inline-block;
  padding: 8px 22px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cat-card:hover .cat-card__btn {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
}

@media (max-width: 480px) {
  .cat-cards {
    padding: 0 0 0;
  }

  .cat-card {
    height: 200px;
  }

  .cat-card--wide {
    height: 240px;
  }

  .cat-card--ready .cat-card__title {
    max-width: calc(100% - 32px);
  }

  .hide-mobile {
    display: none;
  }

  .cat-card__title {
    font-size: 20px;
    bottom: 44px;
    left: 16px;
  }

  .cat-card__btn {
    bottom: 12px;
    left: 16px;
    font-size: 12px;
    padding: 5px 14px;
  }
}

/* ===== ABOUT CERAMICS ===== */
.about {
  padding: 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.about__heading {
  text-align: center;
  padding: 48px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.about__heading::after {
  content: '';
  position: absolute;
  left: -12vw;
  right: -12vw;
  bottom: -12px;
  width: auto;
  height: 300px;
  transform: none;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 9% at 50% 101%, rgba(255, 255, 246, 1) 0%, rgba(255, 246, 188, 0.98) 24%, rgba(255, 186, 88, 0.72) 52%, rgba(255, 109, 55, 0.28) 78%, transparent 100%),
    radial-gradient(ellipse 18% 14% at 50% 98%, rgba(255, 255, 235, 0.96) 0%, rgba(255, 239, 168, 0.82) 34%, rgba(255, 184, 91, 0.42) 72%, transparent 100%),
    radial-gradient(ellipse 24% 22% at 50% 100%, rgba(255, 246, 179, 0.9) 0%, rgba(255, 180, 85, 0.7) 28%, rgba(255, 102, 54, 0.34) 58%, transparent 100%),
    radial-gradient(ellipse 72% 78% at 50% 100%, rgba(255, 119, 63, 0.7) 0%, rgba(211, 67, 45, 0.58) 34%, rgba(114, 35, 27, 0.38) 62%, transparent 100%),
    linear-gradient(to top, rgba(255, 104, 52, 0.44) 0%, rgba(190, 58, 42, 0.32) 48%, transparent 94%);
  filter: blur(14px);
  opacity: 1;
  z-index: 0;
}

.about__heading::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="1.15" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.62"/></svg>');
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: 0.22;
  z-index: 1;
}


.about__header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mobile-br {
  display: none;
}

.desktop-br {
  display: block;
}

.about__heading h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.about__subheader {
  font-family: var(--font-body);
  font-size: 19px;
  color: rgba(255,255,255,0.6);
  margin: 20px 0 0 0;
  line-height: 1.65;
}

.about__banner {
  display: block;
  height: 420px;
  background-image: url('/userdata/uploads/ceramicadecor/homepage/banner_1.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 90%;
  position: relative;
  z-index: 2;
  overflow: hidden;
}


.about__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

.about__blocks {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 40px 80px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about__one-block {
  width: 23%;
}

.about__block-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,162,95,0.1);
  margin-bottom: 14px;
}

.about__block-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 300;
  color: #fff;
}

.about__one-block ul {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}

.about__one-block ul li {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin: 3px 0;
  line-height: 1.4;
}

.about__one-block ul li::before {
  content: '';
  display: inline-block;
  background-color: #ffa25f;
  width: 10px;
  min-width: 10px;
  height: 2px;
  margin: 10px 7px 0 0;
}

.about__one-block ul li span {
  display: inline-block;
}

@media (max-width: 1279px) {
  .about__blocks {
    border: 0;
    padding: 20px 20px 0 20px;
  }

  .about__one-block {
    width: 50%;
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 960px) {
  .about__heading {
    padding: 18px 0 24px 0;
  }

  .about__heading::after {
    left: -16vw;
    right: -16vw;
    bottom: -8px;
    width: auto;
    height: 180px;
    filter: blur(14px);
    opacity: 0.88;
  }


  .about__heading h2 {
    font-size: 22px;
    line-height: 1.25;
  }

  .mobile-br {
    display: block;
  }

  .desktop-br {
    display: none;
  }

  .about__subheader {
    margin: 10px 0 0 0;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .about__header {
    max-width: 415px;
    padding: 0 20px;
  }

  .about__banner {
    height: 236px;
    background-size: 125%;
    background-position: 50% 100%;
  }

  .about__block-title {
    font-size: 18px;
  }

  .about__one-block ul li {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .about__blocks {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 20px 0 20px 16px;
    border-bottom: none;
    scrollbar-width: none;
  }

  .about__blocks::-webkit-scrollbar {
    display: none;
  }

  .about__one-block {
    min-width: 75vw;
    width: 75vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin: 0;
    padding: 24px 20px;
    border: none;
    outline: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-right: 12px;
  }

  .about__one-block:last-child {
    margin-right: 16px;
  }
}

@media (max-width: 375px) {
  .about__banner {
    background-size: 270%;
  }
}

/* ===== WORK PROCESS ===== */
.work-process {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.work-process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
}

.work-process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.work-process__step-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 16px;
}

.work-process__step-line {
  position: absolute;
  top: 30px;
  right: -20%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.work-process__step-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.work-process__step-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ===== QUALITY ===== */
.quality {
  padding: 100px 0;
}

.quality__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.quality__heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.2;
  margin-bottom: 28px;
}

.quality__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quality__list li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.quality__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== OUR PRODUCTS (Наши камины и печи) ===== */
.our-products {
  position: relative;
  padding: 0 0 80px 0;
  overflow: visible;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.our-products__heading {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0 60px 0;
}

.our-products__heading h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  color: #fff;
}

.our-products__subheader {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(255,255,255,0.6);
  margin: 12px 0 0 0;
  line-height: 1.5;
  padding: 0 20px;
}

@media (min-width: 769px) {
  .our-products__subheader-desktop-line {
    display: block;
    white-space: nowrap;
  }
}

.our-products__top-highlight {
  display: none;
  pointer-events: none;
}

.our-products__right-highlight {
  display: none;
}

.our-products__blocks {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 40px;
}

.our-products__block {
  width: 49%;
  margin: 0 0 50px 0;
  position: relative;
  z-index: 2;
  text-decoration: none;
  display: block;
}

.our-products__block img {
  display: block;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.6s ease;
}

.our-products__block:hover img {
  transform: scale(1.02);
}

.our-products__block span {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  display: block;
  margin: 12px 0 0 0;
  line-height: 1.3;
}

.our-products__block:hover span {
  color: var(--primary);
}

.our-products__btn-wrap {
  text-align: center;
  padding: 10px 10px 0;
  position: relative;
  z-index: 2;
}

/* ===== SHOWCASE (PRODUCT GALLERY) ===== */
.showcase__item {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  position: relative;
}

/* --- Decorative glows on product blocks --- */
.showcase__item::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
}

/* Альбион — warm red, top-left */
.showcase__item:nth-child(3)::before {
  width: 800px; height: 650px;
  top: -150px; left: -200px;
  background: radial-gradient(ellipse at center, rgba(203,59,37,0.22) 0%, rgba(203,59,37,0.08) 50%, transparent 70%);
}
/* Версаль — orange, top-right */
.showcase__item:nth-child(4)::before {
  width: 780px; height: 600px;
  top: -120px; right: -150px; left: auto;
  background: radial-gradient(ellipse at center, rgba(255,140,60,0.20) 0%, rgba(255,120,40,0.07) 50%, transparent 70%);
}
/* BBQ Альбион — amber, bottom-left */
.showcase__item:nth-child(5)::before {
  width: 780px; height: 620px;
  bottom: -130px; left: -170px; top: auto;
  background: radial-gradient(ellipse at center, rgba(255,162,95,0.20) 0%, rgba(255,140,60,0.07) 50%, transparent 70%);
}

.showcase__item:nth-child(6)::before {
  width: 760px; height: 580px;
  top: -80px; right: -180px; left: auto;
  background: radial-gradient(ellipse at center, rgba(203,59,37,0.16) 0%, rgba(255,162,95,0.07) 52%, transparent 72%);
}

.showcase__item:nth-child(7)::before {
  width: 760px; height: 600px;
  bottom: -120px; left: -160px; top: auto;
  background: radial-gradient(ellipse at center, rgba(160,176,112,0.16) 0%, rgba(255,162,95,0.06) 54%, transparent 74%);
}

.showcase__item + .showcase__item {
  margin-top: 80px;
}

/* Mid-section CTA */
.showcase__mid-cta-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.showcase__mid-cta {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(203,59,37,0.12) 0%, rgba(203,59,37,0.04) 100%);
  border: 1px solid rgba(203,59,37,0.2);
}

.showcase__mid-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 12px;
}

.showcase__mid-cta-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 28px;
}

.showcase__mid-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Catalog CTA at bottom */
.showcase__catalog-cta {
  text-align: center;
  margin-top: 80px;
  padding: 0 40px;
}

.showcase__catalog-cta-text {
  font-family: var(--font-body);
  font-size: 19px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.showcase__project-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 48px;
  align-items: center;
  text-align: left;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 40px;
  border: 1px solid rgba(203,59,37,0.2);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(203,59,37,0.12) 0%, rgba(203,59,37,0.04) 100%);
}

.showcase__project-cta .showcase__catalog-cta-text {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 19px;
  line-height: 1.45;
  text-align: center;
}

.showcase__project-cta-copy {
  text-align: center;
}

.showcase__catalog-link {
  display: inline-flex;
  margin-bottom: 28px;
}

.showcase__project-cta-note {
  max-width: 580px;
  margin: 0 auto 18px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.showcase__project-cta-title {
  max-width: 580px;
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.showcase__project-form {
  width: 100%;
  max-width: 460px;
  margin: 0;
}

.showcase__catalog-cta .btn {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}

.showcase__catalog-cta .btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.showcase__project-form .btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.showcase__project-form .btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

@media (max-width: 1200px) {
  .showcase__project-cta {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 40px;
  }
}

.showcase__item .showcase__gallery {
  flex: 0 0 58%;
  max-width: 58%;
}

.showcase__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.showcase__gallery {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  z-index: 2;
  width: 100%;
  touch-action: pan-y;
}

.showcase__track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.showcase__slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
}

.showcase__slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  cursor: default;
}

.showcase__product-link {
  display: block;
  color: inherit;
  overflow: hidden;
}

.showcase__product-link img,
.showcase__name {
  cursor: pointer;
}

.showcase__name {
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.showcase__product-link img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.showcase__product-link:hover img,
.showcase__product-link:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.showcase__name:hover,
.showcase__name:focus-visible {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 197, 53, 0.24);
}

.showcase__placeholder {
  width: 100%;
  height: 600px;
  display: block;
  background:
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(255, 162, 95, 0.12), transparent 68%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

.showcase__gallery--placeholder .showcase__arrow,
.showcase__gallery--placeholder .showcase__dots,
.showcase__gallery--single .showcase__arrow,
.showcase__gallery--single .showcase__dots {
  display: none;
}

.showcase__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease, transform 0.3s ease;
}

.showcase__arrow:hover {
  background: rgba(0,0,0,0.3);
  transform: translateY(-50%) scale(1.05);
}

.showcase__arrow--left {
  left: 16px;
}

.showcase__arrow--right {
  right: 16px;
}

.showcase__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.showcase__dot.active {
  background: #fff;
  transform: scale(1.2);
}

.showcase__name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-align: left;
  margin-top: 0;
}

.showcase__desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  text-align: left;
  margin-top: 6px;
}

.showcase__price-note {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.showcase__offer {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 12px;
}

.showcase__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.showcase__trust span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

.showcase__trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
}

.showcase__offer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  /* Тот же цвет, что у цифр опыта на баннере главной, — var(--amber) */
  color: var(--amber);
  background: rgba(255,161,94,0.1);
  border: 1px solid rgba(255,161,94,0.25);
  margin-bottom: 14px;
}

.showcase__offer-badge span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.showcase__cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn--outline-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.showcase__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 24px;
  gap: 24px;
}

.showcase__prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase__price {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.showcase__price strong {
  color: #fff;
  font-weight: 600;
}

.showcase__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.portfolio-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 72px;
  overflow: hidden;
  background: var(--bg);
}

.portfolio-hero__bg,
.portfolio-hero__bg picture,
.portfolio-hero__bg img,
.portfolio-hero__overlay {
  position: absolute;
  inset: 0;
}

.portfolio-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}

.portfolio-hero__overlay {
  background:
    linear-gradient(90deg, rgba(16,16,16,0.88) 0%, rgba(16,16,16,0.58) 46%, rgba(16,16,16,0.32) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(16,16,16,0) 38%);
}

.portfolio-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.portfolio-hero__eyebrow,
.portfolio-cta__eyebrow,
.portfolio-card__type {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin: 12px 0 20px;
}

.portfolio-hero p:last-child {
  max-width: 680px;
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  line-height: 1.7;
}

.portfolio-page {
  padding: 88px 0 96px;
  background: var(--bg);
}

.portfolio-page__heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.portfolio-page__heading h2,
.portfolio-cta h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 300;
  line-height: 1.08;
}

.portfolio-page__heading h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  margin-bottom: 16px;
}

.portfolio-page__heading p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 240px;
  gap: 14px;
}

.portfolio-gallery__item {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-lighter);
  cursor: zoom-in;
}

.portfolio-gallery__item--linked {
  cursor: pointer;
}

.portfolio-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.portfolio-gallery__item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.portfolio-gallery__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -6px;
}

.portfolio-gallery__item picture,
.portfolio-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-gallery__item img {
  object-fit: cover;
  object-position: var(--image-pos-x, 50%) var(--image-pos-y, 50%);
  transform: scale(var(--image-zoom, 1));
  transform-origin: var(--image-pos-x, 50%) var(--image-pos-y, 50%);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.portfolio-gallery__item:hover img {
  transform: scale(calc(var(--image-zoom, 1) + 0.035));
  filter: saturate(1.05);
}

.portfolio-gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 88px;
  padding: 28px 16px 16px;
  color: #fff;
  font-size: 0;
  font-weight: 400;
  line-height: 1.25;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0) 0%, rgba(16, 16, 16, 0.78) 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-gallery__item:hover .portfolio-gallery__caption,
.portfolio-gallery__item:focus-within .portfolio-gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-gallery__caption::after {
  content: 'Подробнее';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.portfolio-gallery__project-link {
  position: absolute;
  inset: 0;
  color: transparent;
  font-size: 0;
  text-decoration: none;
  pointer-events: auto;
}

.portfolio-gallery__project-link:hover,
.portfolio-gallery__project-link:focus-visible {
  text-decoration: none;
}

.portfolio-gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-gallery__item--wide {
  grid-column: span 2;
}

.portfolio-gallery__item--panorama {
  grid-column: span 3;
}

.portfolio-gallery__item--feature {
  grid-column: span 3;
  grid-row: span 2;
}

.portfolio-gallery__item--banner {
  grid-column: span 4;
}

.portfolio-gallery__item--tall {
  grid-column: span 1;
  grid-row: span 2;
}

.portfolio-gallery__item--small {
  grid-column: span 1;
}

.portfolio-gallery__item:nth-child(1) {
  --image-pos-x: 51%;
  --image-pos-y: 100%;
  --image-zoom: 1.05;
}

.portfolio-gallery__item:nth-child(2) {
  --image-pos-x: 50%;
  --image-pos-y: 69%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(3) {
  --image-pos-x: 40%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(4) {
  --image-pos-x: 50%;
  --image-pos-y: 70%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(5) {
  --image-pos-x: 50%;
  --image-pos-y: 20%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(6) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(7) {
  --image-pos-x: 50%;
  --image-pos-y: 68%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(8) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(9) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(10) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(11) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(12) {
  --image-pos-x: 50%;
  --image-pos-y: 65%;
  --image-zoom: 1.20;
}

.portfolio-gallery__item:nth-child(13) {
  --image-pos-x: 50%;
  --image-pos-y: 80%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(14) {
  --image-pos-x: 48%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(15) {
  --image-pos-x: 50%;
  --image-pos-y: 100%;
  --image-zoom: 1.15;
}

.portfolio-gallery__item:nth-child(16) {
  --image-pos-x: 50%;
  --image-pos-y: 80%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(17) {
  --image-pos-x: 50%;
  --image-pos-y: 70%;
  --image-zoom: 1.03;
}

.portfolio-gallery__item:nth-child(18) {
  --image-pos-x: 50%;
  --image-pos-y: 70%;
  --image-zoom: 1.20;
}

.portfolio-gallery__item:nth-child(19) {
  --image-pos-x: 50%;
  --image-pos-y: 73%;
  --image-zoom: 1.21;
}

.portfolio-gallery__item:nth-child(20) {
  --image-pos-x: 55%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(21) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(22) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(23) {
  --image-pos-x: 60%;
  --image-pos-y: 70%;
  --image-zoom: 1.20;
}

.portfolio-gallery__item:nth-child(24) {
  --image-pos-x: 50%;
  --image-pos-y: 65%;
  --image-zoom: 1.21;
}

.portfolio-gallery__item:nth-child(25) {
  --image-pos-x: 50%;
  --image-pos-y: 80%;
  --image-zoom: 1.06;
}

.portfolio-gallery__item:nth-child(26) {
  --image-pos-x: 50%;
  --image-pos-y: 85%;
  --image-zoom: 1.07;
}

.portfolio-gallery__item:nth-child(27) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(28) {
  --image-pos-x: 65%;
  --image-pos-y: 50%;
  --image-zoom: 1.10;
}

.portfolio-gallery__item:nth-child(29) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(30) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(31) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(32) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(33) {
  --image-pos-x: 50%;
  --image-pos-y: 60%;
  --image-zoom: 1.25;
}

.portfolio-gallery__item:nth-child(34) {
  --image-pos-x: 50%;
  --image-pos-y: 21%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(35) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(36) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(37) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(38) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(39) {
  --image-pos-x: 68%;
  --image-pos-y: 85%;
  --image-zoom: 1.30;
}

.portfolio-gallery__item:nth-child(40) {
  --image-pos-x: 50%;
  --image-pos-y: 58%;
  --image-zoom: 1.20;
}

.portfolio-gallery__item:nth-child(41) {
  --image-pos-x: 25%;
  --image-pos-y: 69%;
  --image-zoom: 1.12;
}

.portfolio-gallery__item:nth-child(42) {
  --image-pos-x: 24%;
  --image-pos-y: 85%;
  --image-zoom: 1.10;
}

.portfolio-gallery__item:nth-child(43) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(44) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(45) {
  --image-pos-x: 20%;
  --image-pos-y: 50%;
  --image-zoom: 1.15;
}

.portfolio-gallery__item:nth-child(46) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(47) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(48) {
  --image-pos-x: 47%;
  --image-pos-y: 60%;
  --image-zoom: 1.06;
}

.portfolio-gallery__item:nth-child(49) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(50) {
  --image-pos-x: 50%;
  --image-pos-y: 90%;
  --image-zoom: 1.12;
}

.portfolio-gallery__item:nth-child(51) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.15;
}

.portfolio-gallery__item:nth-child(52) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(53) {
  --image-pos-x: 50%;
  --image-pos-y: 63%;
  --image-zoom: 1.51;
}

.portfolio-gallery__item:nth-child(54) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(55) {
  --image-pos-x: 50%;
  --image-pos-y: 63%;
  --image-zoom: 1.43;
}

.portfolio-gallery__item:nth-child(56) {
  --image-pos-x: 50%;
  --image-pos-y: 84%;
  --image-zoom: 1.16;
}

.portfolio-gallery__item:nth-child(57) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(58) {
  --image-pos-x: 35%;
  --image-pos-y: 85%;
  --image-zoom: 1.12;
}

.portfolio-gallery__item:nth-child(59) {
  --image-pos-x: 50%;
  --image-pos-y: 30%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(60) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.20;
}

.portfolio-gallery__item:nth-child(61) {
  --image-pos-x: 50%;
  --image-pos-y: 100%;
  --image-zoom: 1.03;
}

.portfolio-gallery__item:nth-child(62) {
  --image-pos-x: 52%;
  --image-pos-y: 67%;
  --image-zoom: 1.16;
}

.portfolio-gallery__item:nth-child(63) {
  --image-pos-x: 50%;
  --image-pos-y: 100%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(64) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(65) {
  --image-pos-x: 50%;
  --image-pos-y: 90%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(66) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(67) {
  --image-pos-x: 77%;
  --image-pos-y: 50%;
  --image-zoom: 1.14;
}

.portfolio-gallery__item:nth-child(68) {
  --image-pos-x: 50%;
  --image-pos-y: 100%;
  --image-zoom: 1.00;
}

.portfolio-gallery__item:nth-child(69) {
  --image-pos-x: 50%;
  --image-pos-y: 50%;
  --image-zoom: 1.00;
}

.portfolio-cta {
  padding: 0 0 96px;
  background: var(--bg);
}

.portfolio-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.portfolio-cta h2 {
  max-width: 720px;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  margin-top: 10px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close svg {
  width: 28px;
  height: 28px;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  transition: opacity 0.3s ease;
  opacity: 0.7;
}

.lightbox__arrow:hover {
  opacity: 1;
}

.lightbox__arrow--left {
  left: 16px;
}

.lightbox__arrow--right {
  right: 16px;
}

/* ===== CATALOG PREVIEW ===== */
.catalog-preview {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.catalog-preview__header {
  margin-bottom: 48px;
}

.catalog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.catalog-preview__card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  display: block;
}

.catalog-preview__card--large {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.catalog-preview__card--wide {
  grid-column: 2 / 4;
  aspect-ratio: 2 / 1;
}

.catalog-preview__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.catalog-preview__card:hover img {
  transform: scale(1.05);
}

.catalog-preview__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,16,16,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.catalog-preview__card-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 24px;
}

.catalog-preview__footer {
  text-align: center;
  margin-top: 48px;
}

.catalog-empty {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
}

.catalog-empty h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 300;
  color: #fff;
}

.catalog-empty p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 800px;
  background:
    radial-gradient(ellipse at 40% 60%, rgba(203,59,37,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(255,161,94,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255,103,61,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 20px;
}

.cta-section__text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.process-steps__header {
  margin-bottom: 64px;
}

.process-steps__grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.process-steps__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.process-steps__item--reverse {
  direction: rtl;
}

.process-steps__item--reverse > * {
  direction: ltr;
}

.process-steps__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
}

.process-steps__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-steps__num {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.process-steps__name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(24px, 2.5vw, 32px);
  margin-bottom: 16px;
}

.process-steps__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
}

/* ===== STATS ===== */
.stats {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  margin-top: 64px;
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
}

.stats__label {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 200px;
  display: block;
  margin: 0 auto;
}

.stats__divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}

/* ===== TEAM ===== */
.team {
  padding: 100px 0;
}

.team__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.team__img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.team__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 32px;
}

/* ===== VIDEO REVIEWS ===== */
.video-reviews {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.video-reviews__header {
  margin-bottom: 48px;
}

.video-reviews__slider {
  overflow: hidden;
}

.video-reviews__track {
  display: flex;
  gap: 24px;
}

.video-reviews__card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
}

.video-reviews__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.video-reviews__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-reviews__thumb:hover img {
  transform: scale(1.05);
}

.video-reviews__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: all var(--transition);
}

.video-reviews__thumb:hover .video-reviews__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.contact__glow {
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(circle at 40% 60%, rgba(203,59,37,0.18) 0%, transparent 40%),
    radial-gradient(circle at 30% 50%, rgba(255,161,94,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.contact__input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.contact__input::placeholder {
  color: var(--text-dim);
}

.contact__input:focus {
  border-color: var(--primary);
}

.contact__phone-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.contact__phone-wrap:focus-within {
  border-color: var(--primary);
}

.contact__phone-prefix {
  padding: 16px;
  padding-right: 8px;
  font-size: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact__input--phone {
  border: none;
  background: none;
  border-radius: 0;
  padding-left: 4px;
}

.contact__input--phone:focus {
  border-color: transparent;
}

.contact__privacy {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.contact__privacy a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__privacy a:hover {
  color: var(--white);
}

.contact__info-side {
  padding-top: 60px;
}

.contact__info-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact__info-phone {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  display: block;
  margin-bottom: 32px;
  transition: color var(--transition);
}

.contact__info-phone:hover {
  color: var(--primary);
}

.contact__socials {
  display: flex;
  gap: 16px;
}

.contact__social {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact__social:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.faq__list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  color: var(--white);
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--text-muted);
}

.faq__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__footer {
  text-align: center;
  margin-top: 48px;
}

/* ===== SEARCH BUTTON ===== */
.header__search-btn,
.header__fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.header__search-btn:hover,
.header__fav-btn:hover,
.header__fav-btn:focus-visible {
  background: rgba(255,255,255,0.2);
}
@media (max-width: 1100px) {
  .header__search-btn { display: none; }
}

/* Favourites and search links in mobile nav (hidden on desktop) */
.header__nav-utility {
  display: none;
}
.header__nav.open .header__nav-utility {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  margin-top: auto;
}
.header__nav-item--search .header__nav-link,
.header__nav-item--fav .header__nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
  white-space: nowrap;
}

/* Карточка товаров */


/* ===== ИЗБРАННОЕ =====
   Логика — favorites.js, страница списка — favorites.html */

/* счётчик у сердечка в шапке; пустой список — счётчик скрыт (hidden из скрипта) */
.header__fav-btn {
  position: relative;
}
.header__fav-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #cb3b25;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
.header__fav-count[hidden] {
  display: none;
}
.header__nav-item--fav .header__fav-count {
  position: static;
  margin-left: 2px;
}

/* сердечко на изображении товара: карточки каталога, изразцы,
   страница товара, реализованные проекты на главной */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(17,17,17,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.fav-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.fav-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fav-btn:hover {
  background: rgba(17,17,17,0.8);
  transform: scale(1.06);
}
.fav-btn:focus-visible {
  outline: 2px solid #cb3b25;
  outline-offset: 2px;
}
.fav-btn.is-active {
  color: #cb3b25;
}
.fav-btn.is-active svg path {
  fill: currentColor;
}
@media (max-width: 768px) {
  .fav-btn {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }
  .fav-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== CATALOG SECTIONS ===== */
.catalog-sections {
  padding: 42px 0 30px;
}
.catalog-sections__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.catalog-sections__link {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.catalog-sections__link:hover,
.catalog-sections__link.active {
  transform: translateY(-2px);
  border-color: rgba(203,59,37,0.45);
  background: rgba(203,59,37,0.12);
}
.catalog-sections + .catalog-filter-template {
  padding-top: 0;
}
@media (max-width: 480px) {

  .catalog-sections {
    padding-bottom: 28px;
  }
  .catalog-sections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .catalog-sections__link {
    min-height: 48px;
  }

}

/* ===== SEARCH MODAL ===== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-modal.active {
  opacity: 1;
  visibility: visible;
}
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.search-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  transform: translateY(-16px);
  transition: transform 0.25s ease;
}
.search-modal.active .search-modal__panel {
  transform: translateY(0);
}
.search-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.search-modal__input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.2s;
}
.search-modal__input-wrap:focus-within {
  border-color: rgba(255,255,255,0.25);
}
.search-modal__icon {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  display: flex;
}
.search-modal__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 0;
  -webkit-appearance: none;
}
.search-modal__input::placeholder {
  color: rgba(255,255,255,0.35);
}
.search-modal__input::-webkit-search-cancel-button {
  display: none;
}
.search-modal__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.search-modal__clear:hover {
  color: rgba(255,255,255,0.8);
}
.search-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.search-modal__close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.search-modal__results {
  overflow-y: auto;
  padding: 12px 8px 16px;
  flex: 1;
}
.search-modal__results::-webkit-scrollbar {
  width: 4px;
}
.search-modal__results::-webkit-scrollbar-track {
  background: transparent;
}
.search-modal__results::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.search-section {
  margin-bottom: 8px;
}
.search-section__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 8px 12px 6px;
}
.search-result-page {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}
.search-result-page:hover {
  background: rgba(255,255,255,0.07);
}
.search-result-page__icon {
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  display: flex;
}
.search-result-page__title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.search-result-page__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.search-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 4px 4px 0;
}
@media (max-width: 500px) {
  .search-products-grid {
    grid-template-columns: 1fr;
  }
}
.search-result-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  overflow: hidden;
}
.search-result-product:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.search-result-product__img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.search-result-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-product__info {
  min-width: 0;
  flex: 1;
}
.search-result-product__name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-product__price {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
}
.search-result-product__art {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-page mark,
.search-result-product mark {
  background: rgba(203,59,37,0.35);
  color: #fff;
  border-radius: 2px;
  padding: 0 1px;
}
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-size: 15px;
}
.search-empty b {
  color: rgba(255,255,255,0.7);
}
.search-loading-hint {
  display: block;
  padding: 8px 12px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
  .search-modal {
    padding-top: 0;
    align-items: flex-end;
  }
  .search-modal__panel {
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
  }
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 0 40px;
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.footer__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 400px;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(203,59,37,0.12) 0%, rgba(255,125,11,0.06) 40%, transparent 70%);
  pointer-events: none;
  pointer-events: none;
}

.footer__works-map {
  width: min(100%, 920px);
  margin: 0 auto 56px;
}

.footer__works-map-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  text-align: center;
  margin-bottom: 20px;
}

.contacts-map {
  width: 100%;
}

.contacts-map__layout {
  display: block;
}

.contacts-map__canvas {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    var(--bg-lighter);
  background-size: 44px 44px;
}

.contacts-map__canvas::before {
  content: '';
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.contacts-map__placeholder {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 360px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contacts-map__marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--primary);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.contacts-map__marker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.contacts-map__marker--moscow {
  top: 38%;
  left: 42%;
}

.contacts-map__marker--spb {
  top: 22%;
  left: 31%;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  /* Растянут на всю ширину контейнера, как и ряд шапки.
     column-gap здесь минимум, остальное распределяет space-between. */
  justify-content: space-between;
  column-gap: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  flex: 0 0 280px;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer__tagline {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer__columns {
  display: contents;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--white);
}

.footer__col-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__col-title-link:hover {
  color: var(--accent);
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-list a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__col-list a:hover {
  color: var(--white);
}

.footer__col-list--offset {
  padding-top: 0;
}

.footer__col--contacts {
  min-width: 0;
}

.footer__contact-list {
  gap: 12px;
}

.footer__messengers {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.footer__messenger-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.footer__messenger-link:hover,
.footer__messenger-link:focus-visible {
  transform: translateY(-1px);
}

.footer__messenger-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity var(--transition);
}

.footer__messenger-link:hover .footer__messenger-icon,
.footer__messenger-link:focus-visible .footer__messenger-icon {
  opacity: 1;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__socials a:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.footer__bottom {
  display: grid;
  grid-template-columns: max-content minmax(320px, 520px);
  justify-content: space-between;
  align-items: start;
  padding-top: 32px;
  column-gap: 24px;
  row-gap: 0;
}

.footer__copy {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  color: var(--text-dim);
}

.footer__legal {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 22px;
}

.footer__legal a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--white);
}

@media (max-width: 1200px) {
  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 12px;
  }

  .footer__copy,
  .footer__org-info,
  .footer__legal {
    grid-column: auto;
    grid-row: auto;
  }

  .footer__org-info {
    max-width: 620px;
  }

  .footer__legal {
    justify-content: center;
    margin-top: 0;
  }
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .about__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .our-products__blocks {
    padding: 0 24px;
  }

  .catalog-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-preview__card--large {
    grid-row: auto;
  }

  .catalog-preview__card--wide {
    grid-column: 1 / 3;
  }

  .process-steps__item {
    gap: 32px;
  }

  .stats__grid {
    gap: 40px;
  }

  .team__inner {
    gap: 40px;
  }

  .contact__inner {
    gap: 48px;
  }

  .footer__top {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .footer__brand {
    flex: auto;
  }

  .footer__columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .portfolio-gallery__item--large,
  .portfolio-gallery__item--wide,
  .portfolio-gallery__item--panorama,
  .portfolio-gallery__item--feature {
    grid-column: span 2;
  }

  .portfolio-gallery__item--banner {
    grid-column: span 4;
  }

  .portfolio-gallery__item--tall,
  .portfolio-gallery__item--small {
    grid-column: span 1;
  }
}

/* Mobile nav trigger */
@media (max-width: 1100px) {
  :root {
    --header-h: 72px;
  }

  .header--scrolled {
    height: var(--header-h);
  }

  .header::before {
    height: var(--header-h);
  }

  .header::after {
    display: none;
  }

  .header .container {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .header__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .header__top-row {
    display: none;
    width: auto;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }

  .header__top-nav {
    display: none;
  }

  .header__main-row {
    width: 100%;
    min-height: 0;
    justify-content: space-between;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(16, 16, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    transition: right 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 999;
    border-left: 1px solid var(--border);
    overflow-y: auto;
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__nav-list--mobile-secondary {
    display: flex;
    /*margin-top: 16px;*/
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .header__nav-list li {
    width: 100%;
  }
  .header__nav-list li:last-child a{
    border-bottom: 0;
  }

  .header__catalog-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin: 0 0 8px;
    padding: 0 20px;
    font-size: 17px;
  }

  .header__nav-link {
    padding: 16px 0;
    font-size: 18px;
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .header__dropdown-menu {
    position: static;
    min-width: 0;
    max-height: none;
    overflow: visible;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    background: transparent;
    border: none;
    padding: 0 0 8px 16px;
  }

  .header__nav-dropdown.open .header__dropdown-menu {
    display: block;
  }

  .header__mega-menu {
    position: static;
    width: 100%;
    max-height: none;
    display: none;
    overflow: visible;
    padding: 0 0 14px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .header__nav-dropdown.open .header__mega-menu {
    display: block;
  }

  .header__nav-dropdown:focus-within .header__mega-menu {
    transform: none;
  }

  .header__mega-menu--showcase {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header__mega-tabs {
    gap: 4px;
    padding: 6px 0 0;
    background: transparent;
    border: none;
  }

  .header__mega-tab {
    min-height: 42px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .header__mega-panel-head {
    display: block;
    margin: 8px 0 10px;
    padding: 0;
  }

  .header__mega-panel-head p {
    display: none;
  }

  .header__mega-panel-head a {
    display: inline-flex;
    padding: 8px 0;
    font-size: 0.95rem;
  }

  .header__mega-cards {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .header__mega-card,
  .header__mega-card--large {
    flex: none;
    min-height: 112px;
    aspect-ratio: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .header__mega-card:nth-child(3):last-child {
    grid-column: auto;
    aspect-ratio: auto;
  }

  .header__mega-card span,
  .header__mega-card--large span {
    padding: 42px 14px 14px;
    font-size: 1.02rem;
  }

  .header__mega-card--bar img {
    object-position: center 72%;
  }

  .header__mega-card--ready img {
    object-position: center 60%;
  }

  .header__mega-card[href*="subcategory=bannye-portaly"] img {
    object-position: center 72%;
  }

  .header__mega-card small {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__search-btn,
  .header__fav-btn {
    display: none;
  }

}

/* Tablet portrait & mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__bg {
    position: relative;
    width: 100%;
    /* высота от пропорций фото (768x600), а не от высоты окна браузера:
       иначе кадрирование зависит от панелей браузера на телефоне */
    height: auto;
    aspect-ratio: 768 / 600;
    min-height: 240px;
    flex-shrink: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12%;
    background: linear-gradient(to bottom, rgba(16,16,16,0) 0%, var(--bg) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .hero__bg img {
    object-position: 50% center;
    transform: none;
    transform-origin: center center;
  }

  .hero__overlay {
    display: none;
  }

  .hero__content {
    position: relative;
    padding: 24px 16px 30px;
    width: 100%;
    margin-top: -1px;
    padding-top: 24px;
    background: var(--bg);
  }

  .hero__subtitle {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
  }

  .hero__title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 16px;
    background: none;
    border-radius: 0;
    padding: 0;
    display: block;
  }

  .title-br {
    display: none;
  }

  .hero__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 16px;
  }

  .hero__feature {
    font-size: 13px;
  }

  .hero__feature:not(:last-child) {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .hero__trust {
    margin-bottom: 20px;
    padding: 12px 14px;
    max-width: none;
  }

  .hero__trust-num {
    font-size: 22px;
  }

  .hero__trust-text {
    font-size: 10px;
  }

  .hero__trust-divider {
    height: 28px;
    margin: 0 4px;
  }

  .hero__trust-item {
    gap: 6px;
  }

  .hero__buttons {
    flex-direction: row;
    gap: 10px;
    align-items: center;
    max-width: none;
  }

  .hero__buttons .btn--primary {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 700;
  }
.cat-card--kaminy img {
    object-position: center 100%;
    transform: scale(1.35);
    transform-origin: center bottom;
  }

  .cat-card--wide.cat-card--barbekyu img {
    transform: translateY(56px) scale(1.4);
    transform-origin: center bottom;
    object-position: center center;
  }

  .cat-card--kaminy:hover img {
    transform: scale(1.4);
    transform-origin: center bottom;
  }

  .cat-card--wide.cat-card--barbekyu:hover img {
    transform: translateY(56px) scale(1.4);
  }

  .hero__glow {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
  }

  /* Category tabs: wrap on mobile */
  .categories {
    position: relative;
  }

  .categories::after {
    display: none;
  }

  .categories__scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .categories__tab {
    flex: 0 0 25%;
    box-sizing: border-box;
    padding: 12px 0;
    font-size: 13px;
    white-space: normal;
    text-align: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
  }

  .about {
    padding: 48px 0 24px 0;
  }

  .about__header {
    margin-bottom: 32px;
  }

  .about__cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__card {
    padding: 24px 20px;
  }

  .work-process {
    padding: 48px 0;
  }

  .work-process__steps {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  .work-process__step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 0;
  }

  .work-process__step-num {
    font-size: 36px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .work-process__step-line {
    display: none;
  }

  .our-products {
    padding: 0 0 48px 0;
    border-top: none;
    max-width: 100%;
    overflow-x: hidden;
  }

  .our-products__heading {
    padding: 0 0 36px 0;
    max-width: 100%;
  }

  .our-products__heading h2 {
    font-size: 22px;
    line-height: 1.25;
    max-width: 100%;
    padding: 0 20px;
  }

  .our-products__top-highlight {
    display: block;
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse 60% 50% at 50% 40%, #7a2f1f 0%, #6a281a 25%, #5a2216 45%, #42180f 65%, #2a0f0a 80%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
  }

  .our-products__right-highlight {
    display: none;
  }

  .our-products__blocks {
    flex-wrap: nowrap;
    overflow: hidden;
    overflow-x: auto;
    padding: 0 20px 20px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .our-products__blocks::-webkit-scrollbar {
    display: none;
  }

  .our-products__block {
    width: 280px;
    min-width: 280px;
    margin: 0 20px 0 0;
  }

  .our-products__block span {
    font-size: 17px;
  }

  .showcase__item {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
  }
  .showcase__item::before {
    filter: blur(50px);
    transform: scale(0.5);
    opacity: 0.7;
  }

  .showcase__item .showcase__gallery {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .showcase__content {
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
  }

  .showcase__name {
    width: 100%;
    text-align: center;
    font-size: 18px;
    margin-top: 16px;
  }

  .showcase__desc {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 0;
    line-height: 1.55;
    overflow-wrap: normal;
    word-break: normal;
  }

  .showcase__slide img {
    height: 320px;
    border-radius: 12px;
  }

  .showcase__placeholder {
    height: 320px;
    border-radius: 12px;
  }

  .showcase__gallery {
    border-radius: 12px;
  }

  .showcase__track,
  .showcase__slide,
  .showcase__product-link,
  .showcase__slide picture,
  .showcase__slide img {
    max-width: 100%;
    min-width: 0;
  }

  .showcase__slide {
    flex: 0 0 100%;
  }

  .showcase__arrow {
    width: 36px;
    height: 36px;
  }

  .showcase__arrow--left {
    left: 8px;
  }

  .showcase__arrow--right {
    right: 8px;
  }

  .showcase__arrow svg {
    width: 18px;
    height: 18px;
  }

  .showcase__bottom {
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    gap: 20px;
    max-width: 100%;
  }

  .showcase__prices {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .showcase__price {
    font-size: 15px;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .showcase__price strong {
    white-space: nowrap;
  }

  .showcase__price-note {
    display: inline;
    font-size: 13px;
    margin-top: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .showcase__price--facing .showcase__price-note,
  .showcase__price--turnkey .showcase__price-note {
    display: block;
    margin-top: 2px;
  }

  .showcase__cta-block {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .showcase__offer-badge {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }

  .showcase__bottom {
    width: 100%;
  }

  .showcase__offer {
    font-size: 13px;
  }

  .showcase__trust {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 16px;
    justify-content: center;
  }

  .showcase__trust span {
    font-size: 13px;
  }

  .showcase__offer-badge {
    padding: 8px 12px;
  }

  .showcase__offer-badge span {
    font-size: 13px;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .showcase__mid-cta-section {
    padding: 0 0 56px 0;
    border-top: none;
  }

  .showcase__mid-cta {
    margin: 0 20px;
    padding: 32px 20px;
  }

  .showcase__mid-cta-buttons {
    flex-direction: column;
  }

  .showcase__mid-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .showcase__catalog-cta {
    margin-top: 48px;
    padding: 0 20px;
  }

  .showcase__project-cta {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 32px 20px;
    text-align: center;
  }

  .showcase__project-cta .showcase__catalog-cta-text {
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
  }

  .showcase__catalog-link {
    margin-bottom: 24px;
  }

  .showcase__project-cta-note {
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
  }

  .showcase__project-cta-title,
  .showcase__project-form {
    margin-left: auto;
    margin-right: auto;
  }

  .showcase__buttons {
    width: 100%;
    flex-direction: column;
  }

  .showcase__buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 10px;
    font-size: 14px;
  }

  .catalog-preview {
    padding: 48px 0;
  }

  .catalog-preview__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .catalog-preview__card {
    aspect-ratio: 1;
  }

  .catalog-preview__card--large {
    grid-column: 1 / 3;
    aspect-ratio: 16/9;
  }

  .catalog-preview__card--wide {
    grid-column: 1 / 3;
    aspect-ratio: 16/9;
  }

  .catalog-preview__card-name {
    font-size: 18px;
  }

  .cta-section {
    padding: 64px 0;
  }

  .cta-section__title {
    font-size: 26px;
  }

  .cta-section__text {
    font-size: 15px;
  }

  .process-steps {
    padding: 48px 0;
  }

  .process-steps__item,
  .process-steps__item--reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    direction: ltr;
  }

  .process-steps__img {
    aspect-ratio: 4/3;
    border-radius: 8px;
    width: 100%;
  }

  .process-steps__num {
    font-size: 48px;
  }

  .process-steps__name {
    font-size: 20px;
  }

  .process-steps__desc {
    font-size: 14px;
  }

  .stats {
    padding: 48px 0;
  }

  .stats__grid {
    flex-direction: column;
    gap: 24px;
  }

  .stats__number {
    font-size: 48px;
  }

  .stats__divider {
    width: 60px;
    height: 1px;
  }

  .team {
    padding: 48px 0;
  }

  .team__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team__img {
    aspect-ratio: 16/9;
    border-radius: 8px;
  }

  .video-reviews {
    padding: 48px 0;
  }

  .video-reviews__slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .video-reviews__slider::-webkit-scrollbar {
    display: none;
  }

  .video-reviews__card {
    flex: 0 0 75vw;
    min-width: 0;
  }

  .contact {
    padding: 48px 0;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__subtitle {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .contact__input {
    font-size: 16px;
    padding: 14px 16px;
  }

  .contact__info-side {
    padding-top: 0;
  }

  .contact__info-phone {
    font-size: 28px;
  }

  .faq {
    padding: 48px 0;
  }

  .faq__list {
    margin-top: 32px;
  }

  .faq__question {
    font-size: 15px;
    padding: 18px 0;
    gap: 12px;
  }

  .faq__answer p {
    font-size: 14px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer__works-map {
    margin-bottom: 40px;
  }

  .footer__works-map-title {
    margin-bottom: 20px;
  }

  .contacts-map__canvas {
    min-height: 320px;
  }

  .contacts-map__placeholder {
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: none;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-hero {
    min-height: 440px;
    padding: 120px 0 56px;
  }

  .portfolio-hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .portfolio-page {
    padding: 56px 0 64px;
  }

  .portfolio-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .portfolio-gallery__item,
  .portfolio-gallery__item--large,
  .portfolio-gallery__item--wide,
  .portfolio-gallery__item--panorama,
  .portfolio-gallery__item--feature,
  .portfolio-gallery__item--banner,
  .portfolio-gallery__item--tall,
  .portfolio-gallery__item--small {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .portfolio-gallery__caption {
    min-height: 58px;
    padding: 24px 14px 12px;
    font-size: 1.1rem;
  }

  .portfolio-cta {
    padding-bottom: 64px;
  }

  .portfolio-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer__legal {
    flex-direction: column;
    gap: 8px;
  }
}

/* Mobile improvements */
@media (max-width: 480px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
  }

  .header {
    max-width: 100vw;
  }

  .header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header__main-row {
    gap: 8px;
    min-width: 0;
  }

  .header__logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 160px;
  }

  .header__logo-img {
    height: 32px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }

  .header__actions {
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
  }

  .header__actions .header__cta-btn {
    padding: 8px 10px;
    max-width: 136px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header__burger {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .header__burger span {
    width: 22px;
  }

  .showcase__project-cta {
    margin-left: 16px;
    margin-right: 16px;
  }

  .hero {
    min-height: 0;
    padding: 60px 0 16px;
  }

  .hero__content {
    max-width: 100%;
    padding: 24px 16px 20px;
  }

  .hero__trust {
    margin-bottom: 0;
  }

  .hero__title {
    max-width: 100%;
    font-size: 26px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
  }


  .hero__subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .hero__buttons {
    flex-direction: row;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .hero__buttons .btn--primary {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 700;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .btn:not(.header__cta-btn) {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .btn--large {
    padding: 14px 32px;
    font-size: 15px;
  }

  .btn--full {
    padding: 16px;
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* Categories: wrap on mobile */
  .categories__tab {
    padding: 12px 16px;
    font-size: 13px;
  }

  /* About cards */
  .about__card {
    padding: 24px 20px;
  }

  .about__card-title {
    font-size: 18px;
  }

  .about__card-text {
    font-size: 13px;
  }

  /* Work process */
  .work-process__step-num {
    font-size: 28px;
    min-width: 50px;
  }

  .work-process__step-title {
    font-size: 14px;
  }

  /* Quality */
  .quality__heading {
    font-size: 22px;
  }

  .quality__list li {
    font-size: 14px;
  }

  /* Our Products */
  .our-products__block {
    width: 260px;
    min-width: 260px;
  }

  .our-products__block span {
    font-size: 16px;
  }

  /* Catalog preview */
  .catalog-preview__card-name {
    font-size: 20px;
  }

  /* CTA */
  .cta-section {
    padding: 60px 0;
  }

  .cta-section__title {
    font-size: 28px;
  }

  .cta-section__text {
    font-size: 15px;
  }

  /* Process steps */
  .process-steps__num {
    font-size: 48px;
  }

  .process-steps__name {
    font-size: 20px;
  }

  .process-steps__desc {
    font-size: 14px;
  }

  /* Stats */
  .stats {
    padding: 64px 0;
  }

  .stats__number {
    font-size: 42px;
  }

  .stats__label {
    font-size: 13px;
  }

  /* Team */
  .team__text {
    font-size: 14px;
  }

  /* Video reviews */
  .video-reviews__card {
    flex: 0 0 260px;
  }

  /* Contact form */
  .contact__inner {
    gap: 32px;
  }

  .contact__subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .contact__input {
    padding: 14px 16px;
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  .contact__info-phone {
    font-size: 28px;
  }

  .contact__social {
    width: 44px;
    height: 44px;
  }

  /* FAQ */
  .faq__question {
    font-size: 15px;
    padding: 18px 0;
  }

  .faq__answer p {
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer__works-map {
    margin-bottom: 32px;
  }

  .footer__works-map-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .contacts-map__canvas {
    min-height: 280px;
    border-radius: 16px;
  }

  .contacts-map__placeholder {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 13px;
  }

  .contacts-map__marker {
    padding: 7px 10px;
    font-size: 12px;
  }

  .contacts-map__marker--moscow {
    left: 36%;
  }

  .contacts-map__marker--spb {
    left: 18%;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__col-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer__col-list--offset {
    padding-top: 0;
  }

  .footer__bottom {
    padding-top: 20px;
  }

  .footer__copy,
  .footer__org-info,
  .footer__legal a {
    font-size: 12px;
  }

  .footer__org-info {
    max-width: 320px;
  }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  .categories__scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .categories__tab {
    flex: 0 0 25%;
    box-sizing: border-box;
    white-space: normal;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .header__nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .header__dropdown-menu li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Horizontal sliders: allow both vertical page scroll and horizontal slider scroll */
  .our-products__blocks,
  .video-reviews__slider {
    touch-action: pan-x pan-y;
  }

  .footer__socials a {
    width: 44px;
    height: 44px;
  }
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }
.fade-up[data-delay="6"] { transition-delay: 0.6s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(203, 59, 37, 0.4);
  color: var(--white);
}

/* ===== Section Divider ===== */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  margin: 0 auto;
}

/* ===== ARCHIVE BLOCKS — base ===== */
.archive-wrapper {
  width: 100%;
}
.archive-heading {
  text-align: center;
  padding: 140px 0 80px 0;
  position: relative;
}
.archive-heading h2 {
  font-family: 'TT Ramillas', serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}
.archive-heading p.subheader {
  font-size: 18px;
  color: var(--transparent_white_color);
  margin: 20px 0 0 0;
}
@media (max-width: 960px) {
  .archive-heading {
    padding: 80px 0 50px 0;
  }
  .archive-heading h2 {
    font-size: 22px;
    line-height: 1.1;
  }
  .archive-heading p.subheader {
    margin: 10px 0 0 0;
    font-size: 14px;
  }
}

/* ===== Block 1: Как мы создаём камины и печи ===== */
.square_blocks_3 {
  position: relative;
  z-index: 2;
}
.square_blocks_3::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(203, 59, 37, 0.15) 0%, rgba(203, 59, 37, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.square_blocks_3 .archive-heading {
  max-width: 760px;
  margin: 0px auto;
  padding-top: 100px;
}
.square_blocks_3 .archive-heading h2 {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .square_blocks_3 .archive-heading {
    padding-top: 50px;
  }
  .square_blocks_3 .archive-heading h2 {
    font-size: clamp(20px, 5.6vw, 22px);
  }
}
.square_blocks_3 .blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0px auto;
  padding: 0 40px;
}
.square_blocks_3 .blocks .one_block {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: calc(50% - 10px);
  margin: 0 0 60px 0;
}
.square_blocks_3 .blocks .one_block .image {
  width: 58%;
  position: relative;
}
.square_blocks_3 .blocks .one_block:first-child .image {
  overflow: hidden;
}
.square_blocks_3 .blocks .one_block .image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0px auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 1280px) {
  .square_blocks_3 .blocks .one_block:first-child .image img {
    object-position: left center;
  }
}
.square_blocks_3 .blocks .one_block:first-child .image img {
  transform: scale(1.08);
}
.square_blocks_3 .blocks .one_block .text {
  width: 42%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 0 16px;
}
.square_blocks_3 .blocks .one_block .text .top p {
  font-size: 16px;
  color: var(--transparent_white_color);
  line-height: 1.4;
}
.square_blocks_3 .blocks .one_block .text .top p.title {
  font-family: 'TT Ramillas', serif;
  font-size: 24px;
  line-height: 1;
  color: #FFFFFF;
  margin: 0px 0 15px 0;
}
.square_blocks_3 .blocks .one_block .text .bottom {
  color: rgba(226, 77, 54, 1);
  border-bottom: 1px solid rgba(226, 77, 54, 0.4);
  padding: 0 0 5px 0;
}
.square_blocks_3__project-card {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(320px, 54%);
  width: calc(100% - 80px);
  max-width: var(--content_width);
  margin: 0 auto 90px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.square_blocks_3__project-card:hover,
.square_blocks_3__project-card:focus-within {
  border-color: rgba(226, 77, 54, 0.45);
  background: rgba(255,255,255,0.05);
}
.square_blocks_3__project-card:focus-visible {
  outline: 2px solid rgba(226, 77, 54, 0.8);
  outline-offset: 4px;
}
.square_blocks_3__project-gallery {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.square_blocks_3__project-image {
  display: block;
  height: 100%;
  min-height: 300px;
  color: inherit;
  overflow: hidden;
}
.square_blocks_3__project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}
.square_blocks_3__project-image:hover img,
.square_blocks_3__project-image:focus-visible img {
  transform: scale(1.035);
}
.square_blocks_3__project-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(17,17,17,0.45);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.square_blocks_3__project-arrow:hover,
.square_blocks_3__project-arrow:focus-visible {
  border-color: rgba(255,255,255,0.52);
  background: rgba(17,17,17,0.7);
}
.square_blocks_3__project-arrow--prev {
  left: 14px;
}
.square_blocks_3__project-arrow--next {
  right: 14px;
}
.square_blocks_3__project-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.square_blocks_3__project-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
}
.square_blocks_3__project-dot.is-active {
  background: #fff;
}
.square_blocks_3__project-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 34px 40px;
}
.square_blocks_3__project-kicker {
  margin: 0 0 12px;
  color: rgba(226, 77, 54, 1);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.square_blocks_3__project-title {
  margin: 0;
  font-family: 'TT Ramillas', serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.08;
  color: #fff;
}
.square_blocks_3__project-desc {
  margin: 16px 0 0;
  color: var(--transparent_white_color);
  font-size: 16px;
  line-height: 1.45;
}
.square_blocks_3__project-prices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  color: rgba(255,255,255,0.68);
  font-size: 16px;
}
.square_blocks_3__project-prices strong {
  color: #fff;
  font-weight: 600;
}
.square_blocks_3__project-link {
  align-self: flex-start;
  margin-top: 26px;
  padding-bottom: 5px;
  color: #fff;
  border-bottom: 1px solid rgba(226, 77, 54, 0.65);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 1279px) {
  .square_blocks_3 .archive-heading {
    max-width: 90%;
  }
  .square_blocks_3 .blocks {
    padding: 0 20px 20px 20px;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .square_blocks_3 .blocks .one_block {
    flex-direction: column;
    width: 240px;
    min-width: 240px;
    margin: 0 5px 0 0;
  }
  .square_blocks_3 .blocks .one_block .image {
    width: 100%;
    padding: 0;
    margin-bottom: 12px;
  }
  .square_blocks_3 .blocks .one_block:first-child .image {
    width: calc(100% - 10px);
    border-radius: 8px;
  }
  .square_blocks_3 .blocks .one_block .image img {
    max-width: none;
    width: calc(100% - 10px);
    margin: 0;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .square_blocks_3 .blocks .one_block:first-child .image img {
    width: 100%;
  }
  .square_blocks_3 .blocks .one_block .text {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 10px 0 0;
  }
  .square_blocks_3 .blocks .one_block .text .top p {
    font-size: 14px;
  }
  .square_blocks_3 .blocks .one_block .text .top p.title {
    font-size: 18px;
  }
  .square_blocks_3 .blocks .one_block .text .bottom {
    padding: 5px 0 5px 0;
  }
  .square_blocks_3 .blocks::-webkit-scrollbar {
    display: none;
  }
  .square_blocks_3__project-card {
    grid-template-columns: 1fr;
    width: auto;
    margin: 8px 20px 70px;
  }
  .square_blocks_3__project-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .square_blocks_3__project-body {
    padding: 22px 20px 24px;
  }
  .square_blocks_3__project-title {
    font-size: 24px;
  }
  .square_blocks_3__project-desc,
  .square_blocks_3__project-prices {
    font-size: 14px;
  }
  .square_blocks_3__project-link {
    margin-top: 22px;
  }
}

/* ===== Block 2: Опыт, подтверждённый проектами ===== */
.projects_experience_block {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 30px 0 0 0;
  background-image: url('/userdata/uploads/ceramicadecor/homepage/project_experience.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.projects_experience_block:after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.6) 100%);
}
.projects_experience_block .block_content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  max-width: var(--container);
  height: 100%;
  margin: 0px auto;
  padding: 0 40px;
  z-index: 2;
}
.projects_experience_block .block_content .top_text {
  text-align: center;
  width: 100%;
  margin: 150px 0 0 0;
}
.projects_experience_block .block_content .top_text h2 {
  font-family: 'TT Ramillas', serif;
  font-size: 46px;
  line-height: 1.2;
  color: #FFFFFF;
  max-width: 600px;
  margin: 0px auto 20px auto;
}
.projects_experience_block .block_content .top_text p {
  font-size: 18px;
  line-height: 1.4;
  color: #FFFFFF;
  max-width: 500px;
  margin: 0px auto;
}
.projects_experience_block__project-link {
  position: absolute;
  left: 64%;
  right: auto;
  top: 70%;
  z-index: 2;
  color: #fff;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(226, 77, 54, 0.65);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.projects_experience_block__project-link:hover,
.projects_experience_block__project-link:focus-visible {
  color: rgba(255,255,255,0.78);
  border-color: rgba(226, 77, 54, 0.9);
}
@media (max-width: 1279px) {
  .projects_experience_block {
    background-size: cover;
  }
}
@media (max-width: 960px) {
  .projects_experience_block {
    background-image: none;
    height: auto;
  }
  .projects_experience_block .block_content {
    padding: 0;
  }
  .projects_experience_block .block_content .top_text {
    position: relative;
    background-image: url('/userdata/uploads/ceramicadecor/homepage/project_experience.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 440px;
    margin: 0;
    box-sizing: border-box;
    padding: 76px 16px 30px;
  }
  .projects_experience_block .block_content .top_text h2 {
    font-size: 22px;
    position: relative;
    z-index: 2;
    width: 95%;
    margin: 0px auto 10px auto;
  }
  .projects_experience_block .block_content .top_text p {
    font-size: 14px;
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 400px;
  }
  .projects_experience_block__project-link {
    left: auto;
    right: 20px;
    top: 22px;
    font-size: 14px;
  }
  .projects_experience_block .block_content .top_text:after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.6) 100%);
  }
}

/* ===== Block 3: Наша команда ===== */
.our_team_wrapper {
  position: relative;
}
.our_team_wrapper:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 25% 40% at 50% 50%, #7a2f1f 0%, #6a281a 25%, #5a2216 45%, #42180f 65%, #2a0f0a 80%, #111111 100%);
  opacity: 0.7;
}
.our_team_content {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  max-width: var(--content_width);
  height: 820px;
  margin: 0px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.our_team_content .archive-heading {
  position: relative;
  z-index: 3;
  padding: 0;
}
.our_team_content .archive-heading h2 {
  margin-bottom: 20px;
}
.our_team_content .archive-heading p {
  max-width: 550px;
  margin: 0px auto 30px auto;
  font-size: 18px;
}
.our_team_content .empty_photo {
  display: block;
  position: absolute;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 35.84%, rgba(255, 255, 255, 0.1) 99.73%);
}
.our_team_content .empty_photo.photo_1 { width: 88px; height: 114px; top: 50px; left: 110px; }
.our_team_content .empty_photo.photo_2 { width: 88px; height: 114px; top: -20px; left: 420px; }
.our_team_content .empty_photo.photo_3 { width: 60px; height: 78px; top: -20px; left: 710px; }
.our_team_content .empty_photo.photo_4 { width: 88px; height: 114px; top: 60px; left: 870px; }
.our_team_content .empty_photo.photo_5 { width: 88px; height: 114px; top: 55px; left: 1160px; }
.our_team_content .empty_photo.photo_6 { width: 60px; height: 78px; top: 410px; left: 400px; }
.our_team_content .empty_photo.photo_7 { width: 88px; height: 114px; top: 540px; left: 250px; }
.our_team_content .empty_photo.photo_8 { width: 88px; height: 114px; top: 630px; left: 590px; }
.our_team_content .empty_photo.photo_9 { width: 60px; height: 78px; top: 540px; left: 865px; }
.our_team_content .empty_photo.photo_10 { width: 88px; height: 114px; top: 550px; left: 1060px; }
.user_photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.our_team_content .user_photo {
  display: block;
  position: absolute;
  width: 140px;
  height: 180px;
  overflow: hidden;
}
.our_team_content .user_photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.our_team_content .user_photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
}
.our_team_content .user_photo.photo_1 { left: 170px; top: 400px; }
.our_team_content .user_photo.photo_2 { left: 280px; top: 140px; }
.our_team_content .user_photo.photo_3 { left: 990px; top: 180px; }
.our_team_content .user_photo.photo_4 { left: 330px; top: 610px; }
.our_team_content .user_photo.photo_5 { left: 1100px; top: 380px; }
.our_team_content .user_photo.photo_6 { left: 940px; top: 640px; }
@media (max-width: 1360px) {
  .our_team_content { max-width: 100%; }
}
@media (max-width: 1279px) {
  .our_team_wrapper { padding: 70px 0 0px 0; }
  .our_team_wrapper:after {
    background: radial-gradient(ellipse 30% 60% at 50% 50%, #7a2f1f 0%, #6a281a 25%, #5a2216 45%, #42180f 65%, #2a0f0a 80%, #111111 100%);
    opacity: 0.5;
  }
  .our_team_content { height: 462px; }
  .our_team_content .archive-heading { margin-top: 150px; }
  .our_team_content .archive-heading p { max-width: 100%; }
  .our_team_content .empty_photo { display: none; }
  .user_photos { width: 350px; height: 210px; left: calc(50% - (350px / 2)); top: 0; }
  .our_team_content .user_photo { width: 69px; height: auto; aspect-ratio: calc(140 / 180); }
  .our_team_content .user_photo.photo_1 { left: 0px; top: 105px; }
  .our_team_content .user_photo.photo_2 { left: 20px; top: 1px; }
  .our_team_content .user_photo.photo_3 { left: 194px; top: 10px; }
  .our_team_content .user_photo.photo_4 { left: 101px; top: 80px; }
  .our_team_content .user_photo.photo_5 { left: 277px; top: 70px; }
  .our_team_content .user_photo.photo_6 { left: 184px; top: 113px; }
}
@media (max-width: 960px) {
  .our_team_content .archive-heading h2 { margin-bottom: 10px; }
  .our_team_content .archive-heading p.subheader { font-size: 14px; max-width: 95%; }
}

/* ===== Block 4: Как наши камины живут в интерьерах ===== */
.stories_wrapper {
  position: relative;
  z-index: 2;
  max-width: 2300px;
  margin: 0px auto;
}
.stories_wrapper .archive-heading {
  max-width: 850px;
  margin: 0px auto;
  padding-top: 60px;
  padding-bottom: 30px;
}
@media (max-width: 960px) {
  .stories_wrapper .archive-heading {
    padding: 16px 16px 8px !important;
  }
  .stories_wrapper .archive-heading h2 {
    font-size: 20px;
  }
  .stories_wrapper .archive-heading p.subheader {
    font-size: 13px;
    margin-top: 4px !important;
  }
}
.stories_wrapper .archive-heading p.subheader {
  font-size: 18px;
}
.stories_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 16px;
}
.stories_counter {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
}
.stories_arrows {
  display: flex;
  gap: 8px;
}
.stories_arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.stories_arrow:hover {
  background: rgba(255,255,255,0.15);
}
@media (max-width: 960px) {
  .stories_nav {
    padding: 0 16px 8px;
  }
  .stories_arrow {
    width: 34px;
    height: 34px;
  }
  .stories_arrow svg {
    width: 18px;
    height: 18px;
  }
}
.stories_slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 15px;
  padding: 0 40px 20px 40px;
  scrollbar-width: none;
}
.stories_slider::-webkit-scrollbar {
  display: none;
}
.stories_slider .one_story {
  width: calc((100% - 45px) / 4);
  min-width: calc((100% - 45px) / 4);
  max-width: calc((100% - 45px) / 4);
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  color: inherit;
}
.stories_slider .one_story .image {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
}
.stories_slider .one_story .image:after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.3);
  z-index: 2;
  pointer-events: none;
}
.stories_slider .one_story .image img {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.stories_slider .one_story .image span.play_btn {
  position: absolute;
  left: 15px;
  bottom: 15px;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 3;
}
.stories_slider .one_story .image span.play_btn:after {
  content: '';
  display: block;
  width: 15px;
  height: 18px;
  background-image: url('../images/icons/play_white.svg');
  background-repeat: no-repeat;
}
.stories_slider .one_story span.name {
  font-size: 16px;
  line-height: 1.4;
  color: var(--transparent_white_color);
  display: block;
  max-width: none;
  text-align: center;
  margin: 10px 0 0 0;
}
.stories_slider .one_story:hover .image:before {
  content: '';
  display: block;
  position: absolute;
  left: -10px;
  top: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle at 30% 30%, #E24D36, #FF8C00);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
  transition: all 0.1s;
}
.stories_slider .one_story:hover .image:after {
  background: none;
}
.stories_slider .one_story:hover span.name {
  color: var(--color_1);
}
@media (max-width: 960px) {
  .stories_slider {
    padding: 0 16px 15px 16px;
    gap: 10px;
    scroll-padding-left: 16px;
  }
  .stories_slider .one_story {
    min-width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    width: calc(100vw - 48px);
  }
  .stories_slider .one_story .image {
    aspect-ratio: 4/3;
    max-height: calc(100svh - 350px);
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }
  .stories_slider .one_story .image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  .stories_slider .one_story span.name {
    font-size: 13px;
    margin: 6px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stories_slider .one_story .image span.play_btn {
    width: 44px;
    height: 44px;
    left: 10px;
    bottom: 10px;
  }
}
@media (max-width: 460px) {
  .stories_wrapper .archive-heading {
    max-width: 90%;
  }
}

/* ===== Block 5: Напишите нам ===== */
.form_1_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 80px 0;
  margin: 40px 0 0 0;
  position: relative;
  background: conic-gradient(from 90deg at 50% 99.94%, rgba(124, 42, 29, 0) 0deg, rgba(226, 77, 54, 0.6) 263.08deg, #FF7D0B 304.62deg, #FFFFFF 360deg);
}
.form_1_wrapper:after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #111111;
  opacity: 0.6;
  z-index: 1;
}
.form_1_wrapper .left {
  width: 50%;
  max-width: 700px;
  padding: 0 40px 0 0;
  position: relative;
  z-index: 2;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}
.form_1_wrapper .left h2 {
  font-family: 'TT Ramillas', serif;
  font-size: 40px;
  line-height: 1.2;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 20px auto;
}
.form_1_wrapper .left p.subheader {
  color: var(--transparent_white_color);
  text-align: center;
  max-width: 520px;
  margin: 20px auto 40px auto;
}
.form_1_wrapper .left form {
  max-width: 420px;
  margin: 0 auto;
}
.form_1_wrapper .right {
  width: 50%;
  max-width: 620px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.form_1_wrapper .right > p.text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--transparent_white_color);
  max-width: 300px;
  margin: 0 auto 20px auto;
  text-align: center;
}
.form_1_wrapper .right > a.phone {
  font-family: 'TT Ramillas', serif;
  font-size: 28px;
  line-height: 1.2;
  color: #FFFFFF;
  display: block;
  margin-top: 5px;
}
.form_1_wrapper .right .messengers_block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 0 0;
}
.form_1_wrapper .right .messengers_block {
  flex-direction: column;
  gap: 12px;
}
.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.messenger-btn--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}
.messenger-btn--ig:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}
.input-form-1 .input-group {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 15px 0;
  padding: 5px 10px;
}
.input-form-1 .input-group label {
  display: block;
  color: var(--transparent_white_color);
  font-size: 12px;
  line-height: 1.4;
}
.input-form-1 .input-group input[type="text"],
.input-form-1 .input-group input[type="email"],
.input-form-1 .input-group input[type="tel"] {
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1.4;
  font-family: 'TT Commons Pro', sans-serif;
  background: none;
  outline: none;
  border: 0;
  padding: 0;
  width: 100%;
}
.input-form-1 .privacy-text {
  text-align: center;
  max-width: 340px;
  margin: 15px auto;
}
.input-form-1 .privacy-text,
.input-form-1 .privacy-text a {
  color: var(--transparent_white_color);
  font-size: 12px;
  line-height: 1.4;
}
.input-form-1 .privacy-text a {
  text-decoration: underline;
}
.input-form-1 .btn-wrap {
  text-align: center;
  margin: 40px auto 0 auto;
}
@media (max-width: 1279px) {
  .form_1_wrapper {
    padding: 60px 20px;
  }
  .form_1_wrapper .left {
    width: 100%;
    max-width: 100%;
    padding: 0 0 20px 0;
    border-right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  .form_1_wrapper .left h2 {
    font-size: 22px;
    max-width: 375px;
  }
  .form_1_wrapper .left p.subheader {
    font-size: 14px;
    max-width: 375px;
  }
  .form_1_wrapper .right {
    width: 100%;
    max-width: 100%;
    padding: 20px 0 0 0;
  }
  .form_1_wrapper .right > p.text {
    font-size: 14px;
    max-width: 265px;
    margin: 0 auto 10px auto;
  }
  .form_1_wrapper .right > a.phone {
    font-size: 22px;
    display: block;
  }
  .form_1_wrapper .right .messengers_block {
    margin: 20px 0 0 0;
  }
  .input-form-1 .input-group label {
    font-size: 11px;
  }
  .input-form-1 .input-group input[type="text"],
  .input-form-1 .input-group input[type="email"],
  .input-form-1 .input-group input[type="tel"] {
    font-size: 18px;
  }
  .input-form-1 .btn-wrap {
    margin: 20px auto 0 auto;
  }
}

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq__question { width: 100%; background: none; border: none; color: #fff; font-size: 1.1rem; font-family: var(--font-body); padding: 20px 40px 20px 0; text-align: left; cursor: pointer; position: relative; }
.faq__question::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq__item.active .faq__question::after { content: '\2212'; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__answer p { padding: 0 0 20px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.faq__item.active .faq__answer { max-height: 300px; }

/* ===== REQUEST MODAL ===== */
.request-modal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; }
.request-modal.active { display: flex; }
.request-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.request-modal__content { position: relative; background: #1a1a1a; border-radius: 16px; padding: 40px; max-width: 440px; width: 90%; }
.request-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.request-modal__content h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.request-modal__content p { color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.request-modal__form .input-group { margin-bottom: 16px; }
.request-modal__form .input-group label { display: block; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-size: 0.9rem; }
.request-modal__form .input-group input,
.request-modal__form .input-group textarea { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; font-size: 1rem; font-family: var(--font-body); }
.request-modal__form .input-group textarea { min-height: 92px; resize: vertical; }
.request-modal__form .input-group input:focus,
.request-modal__form .input-group textarea:focus { outline: none; border-color: var(--primary); }
.standard-request-modal__product {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(203,59,37,0.35);
  border-radius: 8px;
  background: rgba(203,59,37,0.08);
  color: #fff;
}
.standard-request-modal__product[hidden] {
  display: none;
}
.standard-request-modal__product strong {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}
.standard-request-modal__product span {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.35;
}
.request-modal__form .privacy-text { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 12px; text-align: center; }
.request-modal__form .privacy-text a { color: rgba(255,255,255,0.6); text-decoration: underline; }

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(203, 59, 37, 0.4);
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(203, 59, 37, 0.6);
}
.scroll-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== CONSENT CHECKBOX ===== */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 12px 0;
}
.consent-label.is-error {
  padding: 10px 12px;
  border: 1px solid rgba(203, 59, 37, 0.75);
  border-radius: 8px;
  background: rgba(203, 59, 37, 0.1);
  color: rgba(255,255,255,0.86);
  box-shadow: 0 0 0 3px rgba(203, 59, 37, 0.14);
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #cb3b25;
  cursor: pointer;
}
.consent-label a {
  color: #cb3b25;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-label a:hover {
  color: #e14c35;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.cookie-banner.cookie-banner--hidden {
  transform: translateY(110%);
}
.cookie-banner__text {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}
.cookie-banner__text a {
  color: #cb3b25;
  text-decoration: none;
}
.cookie-banner__text a:hover {
  text-decoration: underline;
}
.cookie-banner__btn {
  flex-shrink: 0;
  background: #cb3b25;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cookie-banner__btn:hover {
  background: #e04428;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px;
  }
  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== FOOTER ORG INFO ===== */
.footer__org-info {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin: 0;
  max-width: 560px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 1200px) {
  .footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 12px;
    text-align: center;
    gap: 12px;
  }

  .footer__copy,
  .footer__org-info,
  .footer__legal {
    grid-column: 1;
    grid-row: auto;
  }

  .footer__org-info {
    max-width: min(100%, 620px);
  }

  .footer__legal {
    justify-content: center;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .footer {
    padding-bottom: 112px;
  }

  .footer__top {
    align-items: flex-start;
    text-align: left;
  }

  .footer__brand,
  .footer__columns {
    width: 100%;
    max-width: 300px;
    margin-left: 24px;
    margin-right: 0;
  }

  .footer__columns {
    justify-items: start;
  }

  .footer__col {
    width: 100%;
  }

  .footer__col-list {
    align-items: flex-start;
  }

  .footer__messengers {
    justify-content: flex-start;
  }

  .footer__copy,
  .footer__org-info {
    font-size: 14px;
    max-width: 320px;
  }

  .footer__legal {
    width: 100%;
    max-width: 320px;
    align-items: center;
    gap: 10px;
  }

  .footer__legal a {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
  }
}

/* ===== CATALOG FILTER TEMPLATE ===== */
.catalog-filter-template {
  padding: 48px 0 22px;
}
.catalog-filter-template__bar {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr) minmax(110px, auto);
  align-items: center;
  gap: 14px;
  min-height: 48px;
  position: relative;
}
.catalog-filter-template__bar-spacer {
  display: block;
  min-width: 110px;
}
.catalog-filter-template__toggle {
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
  padding: 9px 18px;
  width: auto;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalog-filter-template__toggle:hover {
  color: #fff;
  background: rgba(203,59,37,0.12);
  border-color: rgba(203,59,37,0.42);
}
.catalog-filter-template__toggle svg {
  transition: transform 0.3s ease;
}
.catalog-filter-template__toggle--open svg {
  transform: rotate(180deg);
}
.catalog-subcategories {
  left: 50%;
  max-width: calc(100% - 260px);
  min-width: 0;
  position: absolute;
  transform: translateX(-50%);
  width: max-content;
}
.catalog-subcategories[hidden] {
  display: none;
}
.catalog-subcategories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.catalog-subcategories__item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.72);
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.catalog-subcategories__item:hover {
  color: #fff;
  border-color: rgba(203,59,37,0.46);
  background: rgba(203,59,37,0.12);
  transform: translateY(-1px);
}
.catalog-subcategories__item.is-active {
  color: #fff;
  border-color: #cb3b25;
  background: #cb3b25;
}
.catalog-filter-template__inner {
  display: none;
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  margin-top: 18px;
  padding: 18px;
}
.catalog-filter-template__inner--open {
  display: block;
}
.catalog-filter-template__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.catalog-filter-template__title {
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 0;
}
.catalog-filter-template__actions,
.catalog-filter-template__sidebar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-filter-template__actions {
  margin-top: 14px;
}
.catalog-filter-template__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.catalog-filter-template__group {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px;
  margin: 0;
}
.catalog-filter-template__group--sidebar {
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.catalog-filter-template__group-title {
  display: block;
  width: 100%;
  font-family: Inter, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  padding: 0;
}
.catalog-filter-template__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.catalog-filter-template__range--sidebar {
  grid-template-columns: 1fr;
}
.catalog-filter-template__field {
  display: grid;
  gap: 6px;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.56);
}
.catalog-filter-template__input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.86rem;
  padding: 0 10px;
  outline: none;
}
.catalog-filter-template__input:focus {
  border-color: rgba(203,59,37,0.58);
}
.catalog-filter-template__option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  font-family: Inter, sans-serif;
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
}
.catalog-filter-template__option + .catalog-filter-template__option {
  margin-top: 8px;
}
.catalog-filter-template__option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #cb3b25;
  flex: 0 0 auto;
}
.catalog-filter-template__option--color {
  gap: 8px;
}
.catalog-filter-template__group .not_active .catalog-filter-template__option{
  color: #505050;
}
.catalog-filter-template__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  flex: 0 0 auto;
}
.catalog-filter-template__swatch--white { background: #f4eee4; }
.catalog-filter-template__swatch--green { background: #32694c; }
.catalog-filter-template__swatch--blue { background: #295a91; }
.catalog-filter-template__swatch--terracotta { background: #a84b32; }
.catalog-filter-template__sort,
.catalog-filter-template__reset {
  height: 36px;
  border-radius: 6px;
  padding: 0 14px;
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.catalog-filter-template__sort {
  color: #fff;
  background: #cb3b25;
  border: 1px solid #cb3b25;
}
.catalog-filter-template__sort:hover {
  background: #e04428;
  border-color: #e04428;
}
.catalog-filter-template__reset {
  color: rgba(255,255,255,0.72);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
}
.catalog-filter-template__reset:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.34);
}
.catalog-filter-template__sidebar-actions {
  margin-top: 18px;
}
.izrazcy-sidebar .catalog-filter-template__group-title {
  font-size: 0.74rem;
}
.izrazcy-sidebar .catalog-filter-template__option {
  font-size: 0.8rem;
}
.izrazcy-sidebar .catalog-filter-template__sort,
.izrazcy-sidebar .catalog-filter-template__reset {
  flex: 1 1 110px;
}
@media (max-width: 1100px) {
  .catalog-filter-template__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .catalog-filter-template {
    padding: 32px 0 18px;
  }
  .catalog-filter-template__bar {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .catalog-filter-template__bar-spacer {
    display: none;
  }
  .catalog-subcategories {
    order: -1;
    left: auto;
    max-width: 100%;
    position: static;
    transform: none;
    width: 100%;
  }
  .catalog-subcategories__list {
    justify-content: flex-start;
  }
  .catalog-filter-template__inner {
    padding: 14px;
  }
  .catalog-filter-template__head {
    align-items: stretch;
    flex-direction: column;
  }
  .catalog-filter-template__actions {
    width: 100%;
  }
  .catalog-filter-template__sort,
  .catalog-filter-template__reset {
    flex: 1 1 130px;
  }
  .catalog-filter-template__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CATALOG SIDEBAR LAYOUT: filters left, 3-per-row grid right ===== */
.catalog-workspace {
  padding: 40px 0 100px;
}
.catalog-workspace__layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
/* Sidebar: always-open filter column */
.catalog-workspace__sidebar {
  position: sticky;
  top: 100px;
  padding: 0;
}
/* Desktop: no toggle button, filters always shown */
.catalog-workspace__sidebar .catalog-filter-template__toggle {
  display: none;
}
.catalog-workspace__sidebar .catalog-filter-template__inner {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-top: 0;
  padding: 0;
}
.catalog-workspace__sidebar .catalog-filter-template__grid {
  display: block;
}
.catalog-workspace__sidebar .catalog-filter-template__group {
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 18px 0 0;
}
/* Divider + spacing live on the legend, so the title→options gap stays small
   (a <fieldset> applies its top padding BELOW the <legend>, not above it). */
.catalog-workspace__sidebar .catalog-filter-template__group-title {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  margin: 0 0 8px;
}
.catalog-workspace__sidebar fieldset:nth-child(1) .catalog-filter-template__group-title {
  border-top: 0;
}
.catalog-workspace__sidebar .catalog-filter-template__group--range {
  margin-top: 0;
}
.catalog-workspace__sidebar .catalog-filter-template__group--range .catalog-filter-template__group-title {
  border-top: none;
  padding-top: 0;
}
.catalog-workspace__sidebar .catalog-filter-template__range {
  grid-template-columns: 1fr 1fr;
}
.catalog-workspace__sidebar .catalog-filter-template__actions {
  margin-top: 24px;
  flex-direction: column;
  align-items: stretch;
}
.catalog-workspace__sidebar .catalog-filter-template__sort,
.catalog-workspace__sidebar .catalog-filter-template__reset {
  width: 100%;
  height: 42px;
}
/* Top row: subcategory bar spanning full width above filters + grid */
.catalog-workspace__bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.catalog-workspace .catalog-subcategories[hidden] {
  display: none;
}
/* Collapse the top bar on pages that have no subcategory tabs */
.catalog-workspace__bar:not(:has(.catalog-subcategories:not([hidden]))) {
  display: none;
}
.catalog-workspace .catalog-subcategories {
  position: static;
  left: auto;
  transform: none;
  max-width: 100%;
  width: 100%;
}
.catalog-workspace .catalog-subcategories__list {
  justify-content: center;
}
.catalog-workspace__main .catalog-grid__inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1024px) {
  .catalog-workspace__layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
  }
  .catalog-workspace__main .catalog-grid__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .catalog-workspace {
    padding: 28px 0 70px;
  }
  .catalog-workspace__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .catalog-workspace__sidebar {
    position: static;
    top: auto;
  }
  .catalog-workspace__main .catalog-grid__inner {
    grid-template-columns: 1fr;
  }
  /* Mobile: collapse filters under the "Фильтры" button */
  .catalog-workspace__sidebar .catalog-filter-template__toggle {
    display: inline-flex;
    width: auto;
    align-self: flex-start;
  }
  .catalog-workspace__sidebar .catalog-filter-template__inner {
    display: none;
  }
  .catalog-workspace__sidebar .catalog-filter-template__inner--open {
    display: block;
    margin-top: 16px;
  }
  /* Compact action buttons instead of huge full-width ones */
  .catalog-workspace__sidebar .catalog-filter-template__actions {
    flex-direction: row;
    margin-top: 18px;
  }
  .catalog-workspace__sidebar .catalog-filter-template__sort,
  .catalog-workspace__sidebar .catalog-filter-template__reset {
    width: auto;
    flex: 1 1 auto;
    height: 40px;
  }
}

/* Catalog banner image positions */
[data-catalog-hero="catalog"] .catalog-hero__bg img { object-position: 50% 70% !important; }
[data-catalog-hero="izrazcy"] .izrazcy-hero__bg img { object-position: 51% 50% !important; }
[data-catalog-hero="kaminy"] .catalog-hero__bg img { object-position: 50% 60% !important; }
[data-catalog-hero="barbekyu-kompleksy"] .catalog-hero__bg img { object-position: 50% 40% !important; }
[data-catalog-hero="biokaminy"] .catalog-hero__bg img { object-position: 51% 60% !important; }
[data-catalog-hero="elektrokaminy"] .catalog-hero__bg img { object-position: 50% 45% !important; }
[data-catalog-hero="mramornye-kaminy-portaly"] .catalog-hero__bg img { object-position: 50% 46% !important; }
[data-catalog-hero="russkie-pechi"] .catalog-hero__bg img { object-position: 50% 35% !important; }
[data-catalog-hero="otopitelnye-pechi"] .catalog-hero__bg img { object-position: 50% 100% !important; }
[data-catalog-hero="bannye-pechi"] .catalog-hero__bg img { object-position: 50% 30% !important; }
[data-catalog-hero="bannye-portaly"] .catalog-hero__bg img { object-position: 50% 70% !important; }
[data-catalog-hero="seriynye-modeli"] .catalog-hero__bg img { object-position: 49% 100% !important; }
[data-catalog-hero="fasadnaya-keramika"] .catalog-hero__bg img { object-position: 50% 50% !important; }
[data-catalog-hero="interernaya-keramika"] .catalog-hero__bg img { object-position: 50% 54% !important; }
[data-catalog-hero="metlahskaya-plitka"] .catalog-hero__bg img { object-position: 50% 54% !important; }
[data-catalog-hero="restoration"] .catalog-hero__bg img { object-position: 50% 14% !important; }
[data-catalog-hero="suvenirnaya-produkciya"] .catalog-hero__bg img { object-position: 50% 80% !important; }

/* До 1024 px в разделе печей-каминов подставляется квадратная мобильная
   картинка, к ней прижатый низ кадра не подходит */
@media (max-width: 1024px) {
  [data-catalog-hero="seriynye-modeli"] .catalog-hero__bg img { object-position: 50% 50% !important; }
}

@media (max-width: 768px) {
  [data-catalog-hero="catalog"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="izrazcy"] .izrazcy-hero__bg img { object-position: 30% 60% !important; }
  [data-catalog-hero="kaminy"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="barbekyu-kompleksy"] .catalog-hero__bg img { object-position: 40% 50% !important; }
  [data-catalog-hero="biokaminy"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="elektrokaminy"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="mramornye-kaminy-portaly"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="russkie-pechi"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="otopitelnye-pechi"] .catalog-hero__bg img { object-position: 90% 50% !important; }
  [data-catalog-hero="bannye-pechi"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="bannye-portaly"] .catalog-hero__bg img { object-position: 57% 53% !important; }
  [data-catalog-hero="seriynye-modeli"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="fasadnaya-keramika"] .catalog-hero__bg img { object-position: 0% 56% !important; }
  [data-catalog-hero="interernaya-keramika"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="metlahskaya-plitka"] .catalog-hero__bg img { object-position: 50% 50% !important; }
  [data-catalog-hero="restoration"] .catalog-hero__bg img { object-position: 60% 50% !important; }
  [data-catalog-hero="suvenirnaya-produkciya"] .catalog-hero__bg img { object-position: 65% 50% !important; }

  /* Сувенирка и проекты в работе: картинка начинается под шапкой, а не уходит
     под логотип — на узких экранах её верх иначе не читается */
  [data-catalog-hero="suvenirnaya-produkciya"] .catalog-hero__bg {
    top: var(--header-h);
  }
  [data-catalog-hero="proekty-v-rabote"] .catalog-hero__bg {
    top: 28px;
  }
}

/* Homepage: raise the image framing in the "Печи-камины из наличия" card. */
.cat-cards .cat-card--ready picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.cat-cards .cat-card--ready picture img {
  position: absolute;
  left: 0;
  top: -14px;
  width: 100%;
  height: calc(100% + 14px) !important;
  max-width: none;
  object-fit: cover;
  object-position: 50% 58% !important;
}

@media (max-width: 480px) {
  .cat-cards .cat-card--ready picture img {
    top: -36px;
    height: calc(100% + 36px) !important;
    object-position: 49% 72% !important;
  }
}

.is_hidden{
    display: none!important;
}

.show_more_btn a{
    cursor: pointer;
    color: #cb3b25;
}

/* Плавающая панель с количеством отфильтрованных товаров */
#filter_float{
    position: absolute;
    background: #191919;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cb3b25;
    z-index: 3000;
    transition: all 0.5s;
    -webkit-box-shadow: 0px 0px 8px 0px rgb(203 59 37);
    -moz-box-shadow: 0px 0px 8px 0px rgb(203 59 37);
    box-shadow: 0px 0px 8px 0px rgb(203 59 37);
}
#filter_float .text{
    font-size: 14px;
}
#filter_float .btn_wrap{

}
#filter_float .btn_wrap a{
    font-size: 14px;
    line-height: 1;
    color: #cb3b25;
    cursor: pointer;
}
#filter_float .btn_wrap span{
    display: inline-block;
    vertical-align: middle;
    border-bottom: 1px dotted;
    padding-bottom: 2px;
}
#filter_float .btn_wrap i{
    display: inline-block;
    vertical-align: middle;
}
#filter_float .cssload-spin-box{
    position: relative;
}

.catalog_pagination{
    margin: 100px 0 0 0;
    text-align: center;
}
.catalog_pagination .paginate_btn_wrap{
    
}

.paging {
    overflow: hidden;
    text-align: right;
    margin: 40px 0 10px;
    color: #999;
    display: block;
    text-align: center;
    clear: both
}
.paging ul {
    display: inline-block;
    font-weight: normal;
    vertical-align: middle
}
.paging ul {
    margin: 0;
    padding: 0;
    list-style: none
}
.paging ul li {
    float: left;
    margin: 0px 0px 20px 10px;
    display: inline-block;
    padding: 5px 0px;
    width: 38px;
    height: 38px
}
.paging ul li.active {
    border-color: #e6e6e6;
    color: var(--color_1)
}
.paging ul li:not(.active):hover {
    border-color: var(--color_1);
    cursor: pointer
}
.paging ul li:hover a {
    color: var(--color_1)
}
.paging a {
    color: #818181;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center
}
.paging a.prev {
}
.paging a.next {
}
.paging .with_input {
    padding: 0px;
    overflow: hidden
}
.paging input[type="text"] {
    border: 0px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    text-align: center;
    outline: none;
    padding: 10px 0px
}
@media (max-width: 900px) {

    .paging {
        margin:40px 0px 40px 0px
    }

}

/* Прелоадер товаров */
.ajax_preloader{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    /*background: url('/images/fade_dark.png');*/
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 100px 0;
}
.ajax_preloader:before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #101010;
    opacity: 0.5;
}
.ajax_preloader > img{
    position: fixed;
    z-index: 9;
}
.ajax_preloader > div{

}

/* CSS preloader */
.css_loader {
  --color-1: var(--primary);
  --color-2: var(--primary);
  --size: 1px;

  width: calc(80 * var(--size));
  height: calc(80 * var(--size));
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: calc(3 * var(--size)) solid;
  border-color: var(--color-1) var(--color-1) transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.css_loader::after,
.css_loader::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: calc(3 * var(--size)) solid;
  border-color: transparent transparent var(--color-2) var(--color-2);
  width: calc(40 * var(--size));
  height: calc(40 * var(--size));
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.css_loader::before {
  width: calc(32 * var(--size));
  height: calc(32 * var(--size));
  border-color: var(--color-1) var(--color-1) transparent transparent;
  animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* Группы характеристик в топках */
.group_features{
  margin: 20px 0;
  font-size: 13px;
}

.group_features .one_feature{
  margin: 10px 0 10px 0;
}

.group_features .one_feature .feature_total{
  margin: 3px 0;
}
.group_features .one_feature .feature_total span:nth-child(1){
  font-weight: bold;
}
.group_features .one_feature .feature_total span:nth-child(2){
  
}

.group_features .one_feature .one_value{
  display: inline-block;
  border: 1px solid #ccc;
  padding: 5px 15px;
  margin: 0 5px 10px 0;
  line-height: 1;
  cursor: pointer;
}
.group_features .one_feature .one_value:hover,
.group_features .one_feature .one_value.active{
  border-color: #cb3b25;
}
.group_features .one_feature .one_value span{

}



/* ===== CATALOG FILTER TABS ===== */
	.catalog-filters {
		padding: 108px 0 0;
	}

	.catalog-filters__tabs-wrap {
		position: relative;
		max-width: 100%;
	}

	.catalog-filters__tabs-wrap::before,
	.catalog-filters__tabs-wrap::after {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		width: 96px;
		pointer-events: none;
		opacity: 1;
		transition: opacity 0.2s ease;
	}

	.catalog-filters__tabs-wrap::before {
		left: 0;
		background: linear-gradient(to left, rgba(16, 16, 16, 0), #101010 70%);
	}

	.catalog-filters__tabs-wrap::after {
		right: 0;
		background: linear-gradient(to right, rgba(16, 16, 16, 0), #101010 70%);
	}

	.catalog-filters__tabs-wrap.is-start::before,
	.catalog-filters__tabs-wrap.is-end::after {
		opacity: 0;
	}

	.catalog-filters__tabs {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 4px 54px;
		justify-content: center;
		flex-wrap: nowrap;
		scroll-behavior: smooth;
	}

	.catalog-filters__tabs::-webkit-scrollbar {
		display: none;
	}

	.catalog-filters__scroll {
		position: absolute;
		top: 50%;
		z-index: 2;
		width: 42px;
		height: 42px;
		transform: translateY(-50%);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		border: 1px solid rgba(255, 255, 255, 0.18);
		background: #cb3b25;
		color: #fff;
		cursor: pointer;
		transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
	}

	.catalog-filters__scroll[hidden] {
		display: none;
	}

	.catalog-filters__scroll--prev {
		left: 0;
	}

	.catalog-filters__scroll--next {
		right: 0;
	}

	.catalog-filters__scroll:hover {
		background: #b5321f;
		border-color: rgba(255, 255, 255, 0.28);
	}

	.catalog-filters__scroll--prev:hover {
		transform: translateY(-50%) translateX(-2px);
	}

	.catalog-filters__scroll--next:hover {
		transform: translateY(-50%) translateX(2px);
	}

	.catalog-filters__scroll svg {
		width: 18px;
		height: 18px;
	}

	.catalog-filters__tab {
		display: inline-flex;
		align-items: center;
		padding: 10px 24px;
		border-radius: 100px;
		border: 1px solid rgba(255, 255, 255, 0.15);
		background: transparent;
		color: rgba(255, 255, 255, 0.7);
		font-family: 'Inter', sans-serif;
		font-size: 0.9rem;
		font-weight: 400;
		cursor: pointer;
		transition: all 0.3s ease;
		white-space: nowrap;
		text-decoration: none;
	}

	.catalog-filters__tab:hover {
		border-color: rgba(255, 255, 255, 0.35);
		color: #fff;
	}

	.catalog-filters__tab--active {
		background: #cb3b25;
		border-color: #cb3b25;
		color: #fff;
	}

	/* ===== RESPONSIVE ===== */
	@media (max-width: 768px) {

		.catalog-filters__tabs {
			justify-content: center;
			flex-wrap: nowrap;
			gap: 8px;
			padding: 4px 0;
		}

	}

	@media (max-width: 480px) {
		.catalog-filters__tabs {
			justify-content: flex-start;
			gap: 6px;
		}

		.catalog-filters__tab {
			padding: 7px 12px;
			font-size: 0.78rem;
		}

	}

.cta_success {
  text-align: center;
  padding: 24px;
  background: rgba(147, 210, 0, 0.1);
  border: 1px solid rgba(147, 210, 0, 0.3);
  border-radius: 8px;
  color: #93d200;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-top: 16px;
}

/* Наши работы на карте */
#map_objects{
    display: none;
    height: 500px;
}

.map_placeholder{
    border: 2px solid #fff;
    position: relative;
    cursor: pointer;
}
.map_placeholder:hover{
    border-color: var(--primary);
}
.map_placeholder .map_image{
    display: block;
    height: 502px;
    background: url('/ceramicadecor/images/map_placeholder_dark.jpg');
    background-position: center center;
}
.map_placeholder div.fade_layer{
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: url('/images/fade_white.png');
}
.map_placeholder div.preloader{
    display: none;
    position: absolute;
    font-size: 50px;
    left: calc(50% - 25px);
    top: calc(50% - 25px);
    color: #038aff;
    z-index: 2;
}
.map_placeholder img.tap_click{
    display: none;
    position: absolute;
    width: 80px;
    height: 80px;
    left: calc(50% - 40px);
    top: calc(50% - 40px);
}
.map_placeholder:hover div.fade_layer{
    display: block;
    z-index: 1;
}
.map_placeholder:hover img.tap_click{
    display: block;
}

#mapObjectsModal{
    left: 5%;
    width: 90%;
}

.placemark_title{
    font-size: 15px;
    line-height: 18px;
    text-align: left;
    margin: 25px 0 15px 0;
    max-width: 200px;
}
img.placemark_image{
    display: block;
    max-width: 200px;
}
.placemark_content{
    margin: 0 0 0 0;
}
.placemark_description{
    max-width: 200px;
    font-size: 13px;
    line-height: 17px;
    margin: 10px 0 5px 0;
}
.placemark_date{
    margin: 10px 0 0 0;
}
.placemark_btn{
    text-align: left;
    margin: 0 0 5px 0;
}
.placemark_btn a{
    font-size: 14px;
}

.ymaps-2-1-78-balloon__close+.ymaps-2-1-78-balloon__content {
    margin-right: 10px!important;
    padding-right: 0!important;
}

/*.ymaps-b-balloon__content-foot,
.ymaps-b-balloon_footer_yes .ymaps-b-balloon__tail,
.ymaps-b-balloon_footer_yes .ymaps-b-balloon__sprite_position_bl,
.ymaps-b-balloon_footer_yes .ymaps-b-balloon__sprite_position_br{
    background: #FFF!important;
}*/

/* Избранное, поиск и другие подобные страницы */
.favorites {
    padding: 140px 0 100px;
    min-height: 60vh;
}

.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.product-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.product-breadcrumbs a:hover {
    color: var(--white);
}

.favorites__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.favorites__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin: 0;
}

.favorites__count {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.favorites__foreign {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.favorites__foreign a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.favorites__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 32px;
}

.favorites__tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 20px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.favorites__tool svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.favorites__tool:hover {
    border-color: var(--border-light);
}

.favorites__tool--clear:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.favorites__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* у этих блоков есть display, поэтому атрибут hidden сам по себе их не прячет */
.favorites__foreign[hidden],
.favorites__toolbar[hidden],
.favorites__empty[hidden] {
    display: none;
}

.fav-card {
    position: relative;
    /* якорь для кнопки «убрать» */
    display: flex;
    flex-direction: column;
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.fav-card:hover {
    border-color: var(--border-light);
}

.fav-card__img {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #111;
}

.fav-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fav-card:hover .fav-card__img img {
    transform: scale(1.04);
}

.fav-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.fav-card__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.6);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.fav-card__remove svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.fav-card__remove:hover {
    background: var(--primary);
}

.fav-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 0;
    flex: 1 1 auto;
}

.fav-card__meta {
    color: var(--text-dim);
    font-size: 0.8125rem;
    margin: 0;
}

.fav-card__name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
}

.fav-card__name a {
    color: var(--white);
    text-decoration: none;
}

.fav-card__name a:hover {
    color: var(--primary);
}

.fav-card__price {
    color: var(--white);
    font-size: 0.9375rem;
    margin: 4px 0 0;
}

.fav-card__actions {
    display: flex;
    gap: 10px;
    padding: 18px 20px 20px;
}

.fav-card__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.fav-card__btn--details {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--white);
}

.fav-card__btn--details:hover {
    border-color: var(--white);
}

.fav-card__btn--request {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}

.fav-card__btn--request:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.favorites__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 72px 24px 80px;
}

.favorites__empty svg {
    width: 64px;
    height: 64px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.favorites__empty-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
}

.favorites__empty-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 460px;
    margin: 0;
}

.favorites__empty .btn {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .favorites {
        padding: 110px 0 64px;
    }

    .favorites__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .fav-card__actions {
        flex-direction: column;
    }
}

/* Laravel pagination */
ul.pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 50px 0;
}
ul.pagination li.page-item{
  display: inline-block;
  margin: 0 6px 6px 6px;
}

ul.pagination li.page-item span,
ul.pagination li.page-item a{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
ul.pagination li.page-item:hover span,
ul.pagination li.page-item:hover a{
  color: #fff;
  border-color: rgba(203, 59, 37, 0.46);
  background: rgba(203, 59, 37, 0.12);
}
ul.pagination li.page-item.active span,
ul.pagination li.page-item.active a{
  color: #fff;
  border-color: #cb3b25;
  background: #cb3b25;
  cursor: default;
}
ul.pagination li.page-item.disabled span,
ul.pagination li.page-item.disabled a{
  color: #333;
  border-color: #333;
}

/* Текстовый контент */
.text_content{
  color: rgba(255, 255, 255, 0.7);
}

.text_content p{
    margin: 0 0 15px 0;
}

.text_content ul{
    margin: 20px 0 20px 20px;
}
.text_content li{
    margin: 0 0 10px 0;
    padding: 0;
    list-style: disc;
}
.text_content li::marker{
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
}
