/* ============================================
   Поставка оборудования для дезинфекции
   Оптовые поставки · Удмуртия
   ============================================ */

@font-face {
  font-family: 'X5 Sans';
  src: url('../fonts/X5Sans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'X5 Sans';
  src: url('../fonts/X5Sans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'X5 Sans';
  src: url('../fonts/X5Sans-Medium.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'X5 Sans';
  src: url('../fonts/X5Sans-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #2D3748;
  --primary-light: #4A5568;
  --accent: #718096;
  --accent-hover: #5A6B7F;
  --text: #1A202C;
  --text-light: #718096;
  --bg: #F7FAFC;
  --bg-light: #EDF2F7;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --success: #2E7D32;
  --radius: 2px;
  --shadow: 0 1px 0 rgba(45, 55, 72, 0.08);
  --shadow-hover: none;
  --max-width: 1200px;
  --transition: 0.15s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'X5 Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav__link {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

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

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

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

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--large {
  padding: 17px 34px;
  font-size: 14px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 25% 45%, rgba(74, 85, 104, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(45, 55, 72, 0.7) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 85%, rgba(113, 128, 150, 0.15) 0%, transparent 35%),
    linear-gradient(175deg, #1A202C 0%, #2D3748 35%, #4A5568 70%, #718096 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../img/hero-pattern.svg") center/cover no-repeat;
  z-index: 1;
  opacity: 0.8;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  margin-bottom: 60px;
}

.hero__title { color: #F7FAFC;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

.hero__directions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 0 24px;
  width: 100%;
  max-width: 1100px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 14px;
  color: #fff;
}

.direction-card + .direction-card {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.direction-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-card__icon-svg {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.direction-card__text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.5;
}

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
}

.section--light { background: var(--bg-light); }

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__header h2 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section__header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Industry Cards ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  text-decoration: none;
  color: var(--text);
}

.industry-card:hover {
  border-color: var(--primary);
}

.industry-card__icon { font-size: 40px; margin-bottom: 12px; }

.industry-card__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.industry-card__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.advantage-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.advantage-card:hover {
  border-color: var(--primary);
}

.advantage-card__icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Catalog ===== */
.catalog-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2D3748, #718096);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  border-color: var(--primary-light);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


.product-card__image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.product-card__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
}

.product-card__tag:empty {
  display: none;
}

.product-card__supplier {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-light);
  opacity: 0.8;
}

.product-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--text);
}

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

.product-card__name a:hover {
  color: var(--primary);
}

a.product-card__image {
  text-decoration: none;
  cursor: pointer;
}

.product-card__desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.product-card__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.product-card__price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.product-card__price--request {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0;
}

.product-card__min {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.product-card__btn {
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.product-card__btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

/* ===== How We Work ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.step__number {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary);
}

.step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== CTA / Form ===== */
.cta {
  background: linear-gradient(135deg, #1A202C 0%, #2D3748 50%, #4A5568 100%);
  color: #fff;
  padding: 80px 24px;
}

.cta__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 700;
}

.cta p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color var(--transition);
  font-family: inherit;
  background: #fff;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form__submit {
  width: 100%;
  margin-top: 8px;
}

.form__note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

.form__success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form__success.visible { display: block; }

.form__success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.form__success h3 {
  font-size: 22px;
  color: var(--success);
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer__brand .logo { color: #fff; margin-bottom: 12px; }

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__links {
  list-style: none;
}

.footer__links li { margin-bottom: 10px; }

.footer__links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer__links a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}



/* ===== Sort Controls ===== */
.catalog-main__header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-label {
  font-size: 13px;
  color: var(--text-light);
  margin-right: 4px;
}

.sort-btn {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.sort-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* ===== Catalog Layout ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.catalog-sidebar__title {
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.catalog-nav {
  display: flex;
  flex-direction: column;
}

.catalog-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.catalog-nav__item:last-child {
  border-bottom: none;
}

.catalog-nav__item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.catalog-nav__item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.catalog-nav__item.active .catalog-nav__icon {
  opacity: 1;
}

.catalog-nav__icon {
  font-size: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}

.catalog-nav__count {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.6;
  background: rgba(0,0,0,0.06);
  padding: 2px 8px;
  border-radius: 2px;
}

.catalog-nav__item.active .catalog-nav__count {
  background: rgba(255,255,255,0.2);
  opacity: 0.8;
}

.catalog-main {
  min-height: 400px;
}

.catalog-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.catalog-main__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.catalog-main__count {
  font-size: 14px;
  color: var(--text-light);
}

.products-grid--catalog {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}


/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 32, 44, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  animation: modalSlide 0.2s ease;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  border-radius: 2px;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--border);
  color: var(--text);
}

.modal__header {
  margin-bottom: 24px;
}

.modal__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.modal__subtitle {
  font-size: 14px;
  color: var(--text-light);
}

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

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

.modal__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.required {
  color: #E53E3E;
}

.modal__group input,
.modal__group select,
.modal__group textarea {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.modal__group input:focus,
.modal__group select:focus,
.modal__group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.modal__group input.error,
.modal__group select.error,
.modal__group textarea.error {
  border-color: #E53E3E;
}

.modal__group input.valid,
.modal__group textarea.valid {
  border-color: #38A169;
}

.modal__error {
  font-size: 12px;
  color: #E53E3E;
  min-height: 16px;
}

.modal__group--checkbox {
  margin-top: 4px;
}

.modal__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}

.modal__checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.modal__checkbox-text {
  color: var(--text);
}

.modal__link {
  color: var(--primary);
  text-decoration: underline;
}


.modal__product-info {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.modal__qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__qty-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal__qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.modal__qty-wrap input {
  width: 80px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
}

.modal__qty-wrap input:focus {
  outline: none;
  border-color: var(--primary-light);
}


.modal__qty-sum-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  gap: 2px;
}

.modal__qty-sum-label {
  font-size: 11px;
  color: var(--text-light);
}

.modal__qty-sum {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.modal__qty-unit {
  font-size: 14px;
  color: var(--text-light);
}

.modal__submit {
  margin-top: 8px;
  width: 100%;
}

.modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.modal__success.visible {
  display: block;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  background: #38A169;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.modal__success h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal__success p {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .modal {
    padding: 24px 16px;
    max-height: 95vh;
  }

  .modal__row {
    grid-template-columns: 1fr;
  }

  .modal__title {
    font-size: 18px;
    padding-right: 32px;
  }

  .modal__group input,
  .modal__group select,
  .modal__group textarea {
    padding: 14px;
    font-size: 16px;
    min-height: 48px;
  }

  
.modal__product-info {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.modal__qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__qty-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-light);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal__qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.modal__qty-wrap input {
  width: 80px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
}

.modal__qty-wrap input:focus {
  outline: none;
  border-color: var(--primary-light);
}


.modal__qty-sum-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  gap: 2px;
}

.modal__qty-sum-label {
  font-size: 11px;
  color: var(--text-light);
}

.modal__qty-sum {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.modal__qty-unit {
  font-size: 14px;
  color: var(--text-light);
}

.modal__submit {
    min-height: 52px;
    font-size: 16px;
  }
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }
  
  .products-grid--catalog {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  
  .hero__title { color: #F7FAFC; font-size: 38px; }
  .hero__directions { gap: 12px; max-width: 700px; }
}

/* Mobile landscape / large phones */
@media (max-width: 768px) {
  /* Header */
  .nav { display: none; }
  .burger { display: flex; }
  
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 16px;
    z-index: 99;
  }
  
  .nav.open .nav__link {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav.open .btn {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 16px 48px;
  }
  
  .hero__content {
    margin-bottom: 32px;
  }
  
  .hero__title { color: #F7FAFC; font-size: 28px; line-height: 1.25; }
  .hero__subtitle { font-size: 15px; line-height: 1.6; }
  .hero__subtitle br { display: none; }
  
  .hero__directions {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    max-width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 0;
  }

  .direction-card {
    padding: 14px 10px;
    gap: 10px;
    border-left: none;
  }

  .direction-card + .direction-card {
    border-left: none;
  }

  .direction-card:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .direction-card:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .direction-card__icon {
    width: 40px;
    height: 40px;
  }

  .direction-card__icon-svg {
    width: 28px;
    height: 28px;
  }

  .direction-card__text {
    font-size: 10px;
    line-height: 1.5;
  }
  
  /* Sections */
  .section { padding: 48px 16px; }
  .section__header { margin-bottom: 32px; }
  .section__header h2 { font-size: 24px; }
  .section__header p { font-size: 15px; }
  
  /* Advantages */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .advantage-card {
    padding: 24px 20px;
  }
  
  .advantage-card h3 { font-size: 17px; }
  .advantage-card p { font-size: 14px; }
  
  /* Catalog */
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .catalog-sidebar {
    position: static;
    border-radius: 2px;
  }
  
  .catalog-sidebar__title {
    display: none;
  }
  
  .catalog-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0;
    scrollbar-width: none;
  }
  
  .catalog-nav::-webkit-scrollbar {
    display: none;
  }
  
  .catalog-nav__item {
    border-bottom: none;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    padding: 14px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  .catalog-nav__item:last-child {
    border-right: none;
  }
  
  .catalog-nav__icon {
    font-size: 16px;
  }
  
  .catalog-nav__count {
    display: none;
  }
  
  .catalog-main__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .catalog-main__title {
    font-size: 20px;
  }
  
  .products-grid--catalog {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
  }
  
  .product-card__image {
    height: 180px;
    padding: 12px;
  }
  
  .product-card__body {
    padding: 16px;
  }
  
  .product-card__name {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .product-card__desc {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .product-card__price {
    font-size: 20px;
  }
  
  .product-card__btn {
    padding: 12px 20px;
    font-size: 13px;
  }
  
  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  
  .step__number {
    margin: 0;
    flex-shrink: 0;
  }
  
  /* Form */
  .cta {
    padding: 48px 16px;
  }
  
  .cta h2 { font-size: 24px; }
  .cta p { font-size: 15px; }
  
  .form {
    padding: 24px 16px;
    border-radius: 12px;
  }
  
  .form__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form__group input,
  .form__group select,
  .form__group textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  .form__submit {
    padding: 16px 24px;
    font-size: 16px;
  }
  
  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }
  
  .footer {
    padding: 32px 16px 16px;
  }
  
  /* Touch-friendly buttons */
  .btn {
    padding: 14px 24px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn--large {
    padding: 16px 28px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    padding: 88px 12px 36px;
  }
  
  .hero__title { color: #F7FAFC; font-size: 24px; }
  .hero__subtitle { font-size: 14px; }
  
  .hero__directions {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .direction-card {
    min-height: 110px;
    padding: 14px 10px;
    gap: 8px;
  }
  
  .direction-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .direction-card__icon-svg {
    width: 20px;
    height: 20px;
  }
  
  .direction-card__text {
    font-size: 11px;
  }
  
  .section { padding: 36px 12px; }
  .section__header h2 { font-size: 22px; }
  
  .products-grid--catalog {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .product-card__image {
    height: 160px;
  }
  
  .product-card__footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .product-card__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px;
    min-height: 48px;
  }
  
  .form__group input,
  .form__group select,
  .form__group textarea {
    padding: 16px;
    font-size: 16px;
    min-height: 48px;
  }
  
  .form__submit {
    min-height: 52px;
    font-size: 17px;
  }
  
  .catalog-nav__item {
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .form__group input,
  .form__group select,
  .form__group textarea {
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  .hero {
    padding-top: calc(100px + env(safe-area-inset-top));
  }
  
  .footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ===== Product detail page ===== */
.product-page {
  padding: 32px 24px 80px;
}

.product-page__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.breadcrumb__current {
  color: var(--text);
  font-weight: 600;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.product-detail__image {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.product-detail__image img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.product-detail__supplier {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.product-detail__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 18px;
}

.product-detail__price {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.product-detail__price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
}

.product-detail__price--request {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0;
}

.product-detail__desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}

.product-detail__desc b,
.product-detail__desc strong {
  font-weight: 700;
  color: var(--primary);
}

.product-detail__desc p {
  margin-bottom: 12px;
}

.product-detail__desc ul,
.product-detail__desc ol {
  margin: 0 0 12px 20px;
}

.product-detail__desc li {
  margin-bottom: 4px;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.product-detail--empty {
  padding: 60px 0;
  text-align: center;
}

.product-detail--empty h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-detail--empty p {
  color: var(--text-light);
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .product-page {
    padding: 20px 16px 48px;
  }

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

  .product-detail__image {
    min-height: 240px;
    padding: 20px;
  }

  .product-detail__image img {
    max-height: 300px;
  }

  .product-detail__title {
    font-size: 24px;
  }

  .product-detail__price {
    font-size: 28px;
  }

  .product-detail__actions .btn {
    width: 100%;
  }
}

/* ===== Content pages (Условия, 152-ФЗ) ===== */
.content-page {
  padding: 32px 24px 80px;
}

.content-page__inner {
  max-width: 860px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.content-page .content-page__lead {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.content-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}

.content-page p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.content-page ul,
.content-page ol {
  margin: 0 0 14px 20px;
  font-size: 15px;
  line-height: 1.75;
}

.content-page li {
  margin-bottom: 6px;
}

.content-page .content-page__note {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
}

.content-page .content-page__actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.content-page__meta {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 32px;
}

.footer__legal {
  margin-top: 10px;
  font-size: 12px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .content-page {
    padding: 20px 16px 48px;
  }

  .content-page h1 {
    font-size: 26px;
  }

  .content-page .content-page__actions .btn {
    width: 100%;
  }
}

/* ===== Catalog nav: nested categories ===== */
.catalog-nav__item[data-depth="0"] .catalog-nav__name {
  font-weight: 700;
}

.catalog-nav__item[data-depth="1"] {
  padding-left: 36px;
}

.catalog-nav__item[data-depth="2"] {
  padding-left: 52px;
}

.catalog-nav__item[data-depth="1"] .catalog-nav__name,
.catalog-nav__item[data-depth="2"] .catalog-nav__name {
  font-weight: 500;
  font-size: 14px;
}

/* ===== Catalog nav: accordion ===== */
.catalog-nav__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.catalog-nav__sub.open {
  grid-template-rows: 1fr;
}

.catalog-nav__sub-inner {
  overflow: hidden;
  min-height: 0;
}

.catalog-nav__chevron {
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.catalog-nav__item.is-open .catalog-nav__chevron {
  transform: rotate(45deg);
}
