/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
  --color-text: #4C5157;
  --color-accent: #0099A1;
  --color-accent-hover: #007a80;
  --color-orange: #CE5F19;
  --color-orange-hover: #b55215;
  --color-white: #FFFBFB;
  --color-white-pure: #fff;
  --color-dark: #1a1a1a;

  --font-main: 'Roboto', Arial, sans-serif;

  --container-width: 1370px;
  --container-padding: 15px;

  --header-height: 70px;

  --transition: 0.3s ease;
}

/* ==========================================================================
   BASE / GLOBAL
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: #F8F8F8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page--white {
  background-color: var(--color-white-pure);
}

.main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6,
p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font-main);
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white-pure);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.header__menu-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.header__menu-link:hover {
  color: var(--color-accent);
}

.header__menu-link--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color var(--transition), color var(--transition);
}

.header__menu-link--btn:hover {
  background-color: var(--color-orange);
  color: var(--color-white-pure);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__burger span:nth-child(2) {
  margin: 6px 0;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  overflow: hidden;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__container {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding-top: 4em;
  padding-bottom: 4em;
}

.hero__content {
  position: relative;
  width: 60%;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-accent);
  mix-blend-mode: multiply;
}

.hero__title {
  visibility: hidden;
  position: relative;
  font-size: clamp(28px, 5vw, 77px);
  font-weight: 900;
  line-height: 95%;
  color: var(--color-white-pure);
  margin-bottom: 20px;
}

.hero__title.typed {
  border-right: none;
  animation: none;
}

.hero__text {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  color: var(--color-white-pure);
  margin-bottom: 30px;
}

.hero__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 4px;
  background-color: var(--color-white-pure);
  font-size: 16px;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.hero__btn-arrow {
  width: 20px;
  height: 12px;
  color: var(--color-orange);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.hero__btn:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white-pure);
}

.hero__btn:hover .hero__btn-arrow {
  color: var(--color-white-pure);
  transform: translateX(4px);
}

/* ==========================================================================
   HERO — CATALOG (модификатор)
   ========================================================================== */

.hero--catalog {
  margin-top: 60px;
}

.hero--catalog .hero__title {
  visibility: visible;
}

/* Метка "Каталог товаров" */
.hero__label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.hero__label-bracket {
  width: 18px;
  height: 40px;
  color: var(--color-white-pure);
  flex-shrink: 0;
  opacity: 0.7;
}

.hero__label-text {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-white-pure);
  opacity: 0.85;
}

/* Иконка PDF в кнопке */
.hero__btn-icon {
  width: 20px;
  height: 24px;
  color: var(--color-orange);
  flex-shrink: 0;
  transition: color var(--transition);
}

.hero__btn:hover .hero__btn-icon {
  color: var(--color-white-pure);
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.features {
  padding: 100px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.features__card {
  position: relative;
  background-color: var(--color-white-pure);
  border: 1px solid #e0e0e0;
  border-left: 6px solid var(--color-accent);
  border-radius: 4px;
  padding: 35px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(40px);
}

.features__card.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.features__card:nth-child(1).animated { transition-delay: 0s; }
.features__card:nth-child(2).animated { transition-delay: 0.15s; }
.features__card:nth-child(3).animated { transition-delay: 0.3s; }

.features__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.features__card-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

/* ==========================================================================
   CATALOG
   ========================================================================== */

.catalog {
  padding: 80px 0;
  background-color: #4C5157;
}

.catalog__title {
  text-align: center;
  font-size: clamp(22px, 3vw, 25px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.catalog__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white-pure);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
}

.catalog__card.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
}

.catalog__card:nth-child(1).animated { transition-delay: 0s; }
.catalog__card:nth-child(2).animated { transition-delay: 0.1s; }
.catalog__card:nth-child(3).animated { transition-delay: 0.2s; }
.catalog__card:nth-child(4).animated { transition-delay: 0.3s; }
.catalog__card:nth-child(5).animated { transition-delay: 0.1s; }
.catalog__card:nth-child(6).animated { transition-delay: 0.2s; }
.catalog__card:nth-child(7).animated { transition-delay: 0.3s; }
.catalog__card:nth-child(8).animated { transition-delay: 0.4s; }

.catalog__card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.catalog__card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 20px 15px;
  background-color: var(--color-white-pure);
  min-height: 70px;
}

.catalog__card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

.catalog__card-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  transition: color 0.4s ease, transform 0.4s ease;
}

.catalog__card:hover .catalog__card-icon {
  color: var(--color-orange);
  transform: rotate(90deg);
}

.catalog__card-image {
  flex: 1;
  display: flex;
  width: 100%;
  border-top: 3px solid var(--color-accent);
  overflow: hidden;
}

.catalog__card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog__card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 153, 161, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 25px;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog__card:hover .catalog__card-overlay {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.catalog__card-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white-pure);
  text-align: center;
}

/* ==========================================================================
   CATALOG — LIGHT modifier (страницы категорий)
   ========================================================================== */

.catalog--light {
  background-color: var(--color-white-pure);
}

.catalog--light .catalog__card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.catalog--light .catalog__card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about {
  padding: 80px 0;
}

.about__inner {
  display: flex;
  align-items: flex-end;
  gap: 60px;
}

.about__image {
  flex-shrink: 0;
  width: 280px;
}

.about__image img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.about__content {
  flex: 1;
  max-width: 660px;
  margin-left: auto;
}

.about__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1;
  color: #4C5157;
  margin-bottom: 25px;
}

.about__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.about__text + .about__text {
  margin-top: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: #4C5157;
  padding: 20px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo img {
  display: block;
  height: 30px;
  width: auto;
}

.footer__brand-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer__social-link svg {
  width: 32px;
  height: 32px;
}

.footer__social-link:hover {
  color: var(--color-accent);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.footer__contact-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.footer__contact-link:hover {
  color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 32px;
    padding-top: 20px;
    padding-bottom: 8px;
    text-align: center;
}

.footer__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer__developer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__developer-link:hover {
    color: #fff;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  padding-top: calc(var(--header-height) + 25px);
  padding-bottom: 10px;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.breadcrumbs__list::-webkit-scrollbar {
  display: none;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumbs__item:last-child {
  flex-shrink: 1;
  min-width: 0;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  margin: 0 8px;
  color: rgba(76, 81, 87, 0.4);
}

.breadcrumbs__link {
  color: var(--color-text);
  transition: color var(--transition);
}

.breadcrumbs__link:hover {
  color: var(--color-accent);
}

.breadcrumbs__current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
  color: rgba(76, 81, 87, 0.6);
}

/* ==========================================================================
   CONTACTS
   ========================================================================== */

.contacts {
  padding: 30px 0 80px;
}

.contacts__inner {
  position: relative;
  display: flex;
  align-items: stretch;
}

.contacts__image {
  position: relative;
  width: 100%;
  max-width: 774px;
  flex-shrink: 0;
  z-index: 1;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.contacts__image.animated {
  opacity: 1;
  transform: translateX(0);
}

.contacts__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacts__info {
  position: relative;
  z-index: 2;
  margin-left: -70px;
  align-self: center;
  background-color: var(--color-accent);
  mix-blend-mode: multiply;
  padding: 80px 60px 80px 110px;
  min-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.2s;
}

.contacts__info.animated {
  opacity: 1;
  transform: translateX(0);
}

.contacts__title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-white-pure);
  margin-bottom: 25px;
}

.contacts__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white-pure);
  margin-bottom: 25px;
}

.contacts__phone {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white-pure);
  margin-bottom: 10px;
  transition: opacity var(--transition);
}

.contacts__phone:hover {
  opacity: 0.8;
}

.contacts__email {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white-pure);
  margin-bottom: 25px;
  transition: opacity var(--transition);
}

.contacts__email:hover {
  opacity: 0.8;
}

.contacts__address {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contacts__address p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white-pure);
}

/* ==========================================================================
   ARTICLES
   ========================================================================== */

.articles {
  padding: 10px 0 80px;
}

.articles__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 40px;
}

.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white-pure);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(40px);
}

.article-card.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}

.article-card:nth-child(3n+1).animated { transition-delay: 0s; }
.article-card:nth-child(3n+2).animated { transition-delay: 0.1s; }
.article-card:nth-child(3n+3).animated { transition-delay: 0.2s; }

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.article-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.05);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.article-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-dark);
  margin-bottom: auto;
  padding-bottom: 15px;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  transition: color var(--transition);
}

.article-card__link svg {
  width: 18px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.article-card:hover .article-card__link {
  color: var(--color-orange);
}

.article-card:hover .article-card__link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-white-pure);
  border: 1px solid #e0e0e0;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.pagination__link:hover {
  background-color: var(--color-accent);
  color: var(--color-white-pure);
  border-color: var(--color-accent);
}

.pagination__link--active {
  background-color: var(--color-accent);
  color: var(--color-white-pure);
  border-color: var(--color-accent);
  pointer-events: none;
}

.pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 15px;
  color: var(--color-text);
}

.pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: var(--color-accent);
  border: 1px solid #e0e0e0;
  background-color: var(--color-white-pure);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.pagination__arrow svg {
  width: 18px;
  height: 10px;
}

.pagination__arrow:hover {
  background-color: var(--color-accent);
  color: var(--color-white-pure);
  border-color: var(--color-accent);
}

.pagination__arrow--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   ARTICLE (single)
   ========================================================================== */

.article {
  padding: 20px 0 80px;
}

.article__inner {
  max-width: 940px;
}

.article__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-dark);
  margin-bottom: 30px;
}

.article__hero {
  margin: 0;
  margin-bottom: 35px;
  border-radius: 4px;
  overflow: hidden;
}

.article__hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   ARTICLE CONTENT — типографика
   ========================================================================== */

.article__content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

.article__content p {
  margin-bottom: 20px;
}

.article__content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark);
  margin-top: 45px;
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 4px solid var(--color-accent);
}

.article__content h3 {
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
  margin-top: 30px;
  margin-bottom: 15px;
}

.article__content ul {
  margin-bottom: 25px;
  padding-left: 0;
  list-style: none;
}

.article__content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.article__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.article__content ol {
  margin-bottom: 25px;
  padding-left: 0;
  list-style: none;
  counter-reset: article-counter;
}

.article__content ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  counter-increment: article-counter;
}

.article__content ol li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  color: var(--color-white-pure);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
}

.article__content figure {
  margin: 30px 0;
}

.article__content figure img {
  margin: 0 0 10px 0;
}

.article__content figcaption {
  font-size: 13px;
  color: rgba(76, 81, 87, 0.6);
  font-style: italic;
}

/* ==========================================================================
   ARTICLE CALLOUTS
   ========================================================================== */

.article__callout {
  position: relative;
  margin: 35px 0;
  padding: 25px 30px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.65;
}

.article__callout p {
  margin-bottom: 0;
}

.article__callout p + p {
  margin-top: 12px;
}

.article__callout--info {
  background-color: #eef8fa;
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
}

.article__callout--info::before {
  content: 'ℹ';
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 20px;
  opacity: 0.3;
}

.article__callout--quote {
  background-color: #f5f5f5;
  border-left: 4px solid #bdbdbd;
  color: var(--color-text);
  font-style: italic;
}

.article__callout--quote::before {
  content: '❝';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 36px;
  font-style: normal;
  opacity: 0.15;
  line-height: 1;
}

.article__callout--quote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  color: rgba(76, 81, 87, 0.6);
}

.article__callout--tip {
  background-color: #edf7ed;
  border-left: 4px solid #4caf50;
  color: var(--color-text);
}

.article__callout--tip::before {
  content: '💡';
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 20px;
  opacity: 0.4;
}

/* ==========================================================================
   ARTICLE NAV
   ========================================================================== */

.article__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  gap: 20px;
}

.article__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  transition: color var(--transition);
}

.article__nav-link:hover {
  color: var(--color-dark);
}

.article__nav-link svg {
  width: 18px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.article__nav-link--prev:hover svg {
  transform: translateX(-4px);
}

.article__nav-link--next:hover svg {
  transform: translateX(4px);
}

.article__nav-link--all {
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.article__nav-link--all:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   SUBCATEGORY — заголовок страницы подкатегории
   ========================================================================== */

.subcategory {
  padding: 20px 0 10px;
}

.subcategory__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dark);
}

/* Убираем верхний паддинг у каталога на подкатегории */
.catalog--subcategory {
  padding-top: 30px;
}

/* ==========================================================================
   PRODUCT — страница товара
   ========================================================================== */

.product {
  padding: 20px 0 80px;
}

/* Шапка: заголовок + кнопка */
.product__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.product__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dark);
}

.product__request-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--color-accent);
  color: var(--color-white-pure);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--transition);
}

.product__request-btn:hover {
  background-color: var(--color-orange);
  color: var(--color-white-pure);
}

/* Основной блок: галерея + характеристики */
.product__main {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
}

/* ==========================================================================
   PRODUCT GALLERY
   ========================================================================== */

.product__gallery {
  flex: 1;
  min-width: 0;
}

/* Главный слайдер */
.product__slider-main {
  position: relative;
  margin-bottom: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fafafa;
}

.product__slider-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 20px;
}

.product__slider-main .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product__slider-main .swiper-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

/* Стрелки */
.product__slider-prev,
.product__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white-pure);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: var(--color-accent);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.product__slider-prev {
  left: 12px;
}

.product__slider-next {
  right: 12px;
}

.product__slider-prev:hover,
.product__slider-next:hover {
  background-color: var(--color-accent);
  color: var(--color-white-pure);
  border-color: var(--color-accent);
}

.product__slider-prev svg,
.product__slider-next svg {
  width: 18px;
  height: 10px;
}

/* Миниатюры */
.product__slider-thumbs {
  padding: 0;
  max-width: 450px;
  margin-right: auto;
  margin-left: 0;
}

.product__slider-thumbs .swiper-wrapper {
  justify-content: flex-start;
}

.product__slider-thumbs .swiper-slide {
  width: 80px !important;
  max-width: 80px;
  max-height: 80px;
  flex-shrink: 0;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition), border-color var(--transition);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: #fafafa;
}

.product__slider-thumbs .swiper-slide-thumb-active {
  border-color: var(--color-accent);
  opacity: 1;
}

.product__slider-thumbs .swiper-slide:hover {
  opacity: 0.8;
}

.product__slider-thumbs .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   PRODUCT SPECS
   ========================================================================== */

.product__specs {
  flex-shrink: 0;
  width: 340px;
}

.product__specs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product__specs-item {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  padding-left: 16px;
}

.product__specs-item:first-child {
  padding-top: 0;
}

.product__specs-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.product__specs-item:first-child::before {
  top: 12px;
  transform: none;
}

/* ==========================================================================
   PRODUCT VARIANTS — таблица
   ========================================================================== */

.product__variants {
  margin-bottom: 60px;
}

.product__variants-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.product__variants-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product__variants-table {
  width: 100%;
  border-collapse: collapse;
}

.product__variants-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(76, 81, 87, 0.6);
  padding: 12px 20px;
  border-bottom: 2px solid var(--color-accent);
  white-space: nowrap;
}

.product__variants-table td {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  padding: 14px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.product__variants-table td:first-child {
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
}

.product__variants-table tbody tr:hover {
  background-color: #f8fafa;
}

/* ==========================================================================
   PRODUCT DESCRIPTION
   ========================================================================== */

.product__description {
  max-width: 940px;
}

.product__description-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.product__description-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

.product__description-content p {
  margin-bottom: 15px;
}

.product__description-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   VIDEOS — страница видео
   ========================================================================== */

.videos {
  padding: 20px 0 80px;
}

.videos__page-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 40px;
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}

/* Карточка видео */
.videos__card {
  display: block;
  transition: transform var(--transition);
}

.videos__card:hover {
  transform: translateY(-4px);
}

.videos__card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background-color: #1a1a1a;
}

.videos__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), opacity var(--transition);
}

.videos__card:hover .videos__card-thumb img {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Кнопка play */
.videos__card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.videos__card:hover .videos__card-play {
  transform: scale(1.1);
}

.videos__card-play svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.videos__card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-dark);
  margin-top: 12px;
  transition: color var(--transition);
}

.videos__card:hover .videos__card-title {
  color: var(--color-accent);
}

/* ==========================================================================
   VIDEO POPUP
   ========================================================================== */

.video-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-popup.is-active {
  opacity: 1;
  visibility: visible;
}

.video-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.video-popup__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 960px;
}

.video-popup__close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 5px;
}

.video-popup__close:hover {
  opacity: 1;
}

.video-popup__iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.video-popup__iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-popup__player-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-popup__player-wrap iframe,
.video-popup__player-wrap div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.article__nav-link--disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .videos__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Планшет */
@media (max-width: 991px) {
  .hero {
    height: auto;
    min-height: 450px;
  }

  .hero__container {
    min-height: 450px;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  .hero__content {
    width: 65%;
    padding: 40px 45px;
  }

  .hero__title {
    font-size: 30px;
  }

  .features {
    padding: 40px 0;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .features__card {
    padding: 25px 20px;
    min-height: 100px;
  }

  .catalog {
    padding: 50px 0;
  }

  .catalog__title {
    margin-bottom: 35px;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .catalog__card-title {
    font-size: 16px;
  }

  .about {
    padding: 50px 0;
  }

  .about__inner {
    gap: 40px;
  }

  .about__image {
    width: 200px;
  }

  .about__image img {
    width: 120px;
    height: 120px;
  }

  .about__content {
    max-width: none;
  }

  .footer {
    padding: 25px 0;
  }

  .footer__inner {
    gap: 20px;
  }

  .breadcrumbs {
    padding-top: calc(var(--header-height) + 20px);
  }

  .contacts {
    padding: 20px 0 50px;
  }

  .contacts__inner {
    flex-direction: column;
    gap: 30px;
  }

  .contacts__image {
    max-width: 100%;
    order: 2;
  }

  .contacts__info {
    margin-left: 0;
    min-width: auto;
    width: 100%;
    padding: 40px;
    order: 1;
  }

  .articles {
    padding: 10px 0 50px;
  }

  .articles__title {
    margin-bottom: 30px;
  }

  .articles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }

  .article-card:nth-child(3n) {
    grid-column: 1 / -1;
  }

  .article {
    padding: 10px 0 50px;
  }

  .article__inner {
    max-width: 100%;
  }

  .product__main {
    flex-direction: column;
    gap: 30px;
  }

  .product__specs {
    width: 100%;
  }

  .product__header {
    margin-bottom: 30px;
  }

  .product__variants {
    margin-bottom: 40px;
  }
}

/* Мобилка */
@media (max-width: 768px) {
    
    .product__thumbs {
    display: none;
}

  .header__burger {
    display: flex;
  }

  .header__burger.active span {
    background-color: var(--color-white-pure);
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-accent);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    padding: 100px 30px 40px;
    transition: right var(--transition);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
  }

  .header__nav.active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .header__menu-link {
    font-size: 16px;
    color: var(--color-white-pure);
  }

  .header__menu-link:hover {
    text-decoration: underline;
    color: var(--color-white-pure);
  }

  .header__menu-link--btn {
    background-color: transparent;
    color: var(--color-white-pure);
    border: 2px solid var(--color-white-pure);
    padding: 10px 24px;
  }

  .header__menu-link--btn:hover {
    background-color: var(--color-white-pure);
    color: var(--color-accent);
  }

  .hero {
    min-height: 400px;
    background-position: right center;
  }

  .hero__container {
    min-height: 400px;
    padding-top: 5em;
    padding-bottom: 5em;
  }

  .hero__content {
    width: 100%;
    padding: 25px 20px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__text {
    font-size: 14px;
    line-height: 150%;
  }

  .hero__label-text {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .hero__label-bracket {
    width: 14px;
    height: 32px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features__card-text {
    font-size: 15px;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog__card-header {
    padding: 15px 15px 10px;
  }

  .catalog__card-title {
    font-size: 14px;
  }

  .catalog__card-icon {
    width: 20px;
    height: 20px;
  }

  .catalog__card-desc {
    font-size: 14px;
  }

  .catalog__card-overlay {
    padding: 20px 15px;
  }

  .about__inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 25px;
  }

  .about__image {
    width: auto;
  }

  .about__image img {
    width: 100px;
    height: 100px;
  }

  .about__content {
    margin-left: 0;
  }

  .about__title {
    margin-bottom: 20px;
  }

  .about__text {
    font-size: 15px;
  }

  .about__text + .about__text {
    margin-top: 15px;
  }

  .footer {
    padding: 30px 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__contacts {
    align-items: center;
  }

  .contacts__info {
    padding: 30px 25px;
  }

  .contacts__title {
    margin-bottom: 20px;
  }

  .contacts__text {
    margin-bottom: 20px;
  }

  .contacts__email {
    margin-bottom: 20px;
  }

  .contacts__image {
    transform: none;
    opacity: 0;
  }

  .contacts__image.animated {
    opacity: 1;
  }

  .contacts__info {
    transform: none;
    opacity: 0;
  }

  .contacts__info.animated {
    opacity: 1;
  }

  .articles__grid {
    gap: 16px;
  }

  .article-card__body {
    padding: 15px;
  }

  .article-card__title {
    font-size: 15px;
  }

  .article__title {
    margin-bottom: 25px;
  }

  .article__hero {
    margin-bottom: 25px;
  }

  .article__content h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    padding-left: 14px;
  }

  .article__content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .article__callout {
    margin: 25px 0;
    padding: 18px 15px;
    font-size: 14px;
  }

  .article__callout::before {
    display: none;
  }

  .article__nav {
    margin-top: 40px;
  }

    .product__header {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  .product__request-btn {
    align-self: flex-start;
  }

  /* Миниатюры скрываем на мобилке */
  .product__slider-thumbs {
    display: none;
  }

  /* Стрелки скрываем — свайп пальцем */
  .product__slider-prev,
  .product__slider-next {
    display: none;
  }

  .product__slider-main .swiper-slide {
    padding: 15px;
  }

  .product__variants-table th,
  .product__variants-table td {
    padding: 10px 15px;
    font-size: 14px;
  }

  .videos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .videos__card-play svg {
    width: 44px;
    height: 44px;
  }
}

/* Маленькие мобилки */
@media (max-width: 480px) {

  .hero__content {
    padding: 20px 15px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  .hero__label {
    margin-bottom: 10px;
  }

  .hero__label-text {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

  .contacts__info {
    padding: 25px 20px;
  }

  .contacts__address p {
    font-size: 14px;
  }

  .articles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .article-card__body {
    padding: 12px;
  }

  .article-card__title {
    font-size: 13px;
  }

  .article__content {
    font-size: 15px;
  }

  .article__callout {
    padding: 18px 15px;
    font-size: 14px;
  }

  .article__callout::before {
    display: none;
  }

  .article__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .article__nav-link {
    justify-content: center;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
  }

  .breadcrumbs__current {
    max-width: 180px;
  }

  .pagination__link,
  .pagination__arrow,
  .pagination__dots {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .pagination {
    gap: 5px;
  }

  .product {
    padding: 0 0 50px;
  }

  .product__main {
    gap: 25px;
    margin-bottom: 40px;
  }

  .product__request-btn {
    width: 100%;
    text-align: center;
  }

  .product__variants-title,
  .product__description-title {
    font-size: 20px;
  }

  .product__description-content {
    font-size: 15px;
  }

  .videos {
    padding: 15px 0 50px;
  }

  .videos__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .videos__card-title {
    font-size: 14px;
  }

  .video-popup__content {
    width: 95%;
  }

  .video-popup__close {
    top: -40px;
  }
}

/* ==========================================================================
   WORDPRESS ADMIN BAR FIX
   ========================================================================== */

.admin-bar .header {
  top: 32px;
}

.admin-bar .hero {
  margin-top: calc(var(--header-height));
}

.admin-bar .breadcrumbs {
  padding-top: calc(var(--header-height) + 32px + 25px);
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }

  .admin-bar .hero {
    margin-top: calc(var(--header-height) + 46px);
  }

  .admin-bar .breadcrumbs {
    padding-top: calc(var(--header-height) + 46px + 20px);
  }
}

@media (max-width: 600px) {
  .admin-bar .header {
    top: 0;
  }

  .admin-bar .hero {
    margin-top: var(--header-height);
  }

  .admin-bar .breadcrumbs {
    padding-top: calc(var(--header-height) + 20px);
  }
}

/* Галерея товара — убираем поля */
.product__slider-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.product__slider-main .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product__slider-main .swiper-slide a {
  display: block;
  width: 100%;
  line-height: 0;
}

/* Галерея — убираем лишнее пространство снизу */
.product__slider-main {
  height: auto !important;
}

.product__slider-main .swiper-wrapper {
  height: auto !important;
}

.product__slider-main .swiper-slide {
  height: auto !important;
}

/* Галерея — ограничиваем высоту */
.product__slider-main .swiper-slide {
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product__slider-main .swiper-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product__slider-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 500px;
}

/* Миниатюры товара */
.product__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product__thumb {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product__thumb--active {
  border-color: var(--color-accent);
}

.product__thumb:hover {
  border-color: var(--color-accent);
}

/* ======================== ПОПАП ЗАЯВКИ ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}

.modal-overlay--active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay--active .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  transition: color 0.2s;
}

.modal__close:hover {
  color: #333;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 8px;
}

.modal__product {
  font-size: 0.95rem;
  color: var(--color-accent);
  margin: 0 0 24px;
  font-weight: 500;
}

.modal__field {
  margin-bottom: 16px;
}

.modal__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.modal__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  line-height: 1.4;
}

.modal__agree input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.modal__agree a {
  color: var(--color-accent);
  text-decoration: underline;
}

.modal__submit {
  width: 100%;
  padding: 16px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.modal__submit:hover {
  background: var(--color-accent-hover);
}

.modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal__error {
  color: #d00;
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
}

@media (max-width: 480px) {
  .modal {
    padding: 28px 20px;
  }

  .modal__title {
    font-size: 1.25rem;
  }
}

/* ======================== СПАСИБО ======================== */
.thank-you {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 180px 0;
}

.thank-you__content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.thank-you__icon {
  margin-bottom: 24px;
}

.thank-you__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
}

.thank-you__text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 8px;
}

.thank-you__sub {
  font-size: 0.95rem;
  color: #999;
  margin: 0 0 32px;
}

.thank-you__btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.thank-you__btn:hover {
  background: var(--color-accent-hover);
}

@media (max-width: 768px) {
    .product__thumbs {
        display: none;
    }
}

.modal__hint {
    font-size: 13px;
    color: #999;
    margin: -8px 0 8px;
}