@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..900&display=swap');

:root {
  --red: #e30613;
  --red-dark: #bd0610;
  --black: #090d12;
  --ink: #111923;
  --text: #202733;
  --muted: #66717f;
  --line: #e5e9ee;
  --soft: #f5f7f9;
  --white: #fff;
  --shadow: 0 12px 36px rgba(15, 27, 42, 0.06);
  --radius: 12px;
  --container: 90%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: #f3f5f7;
  line-height: 1.6;
  font-size: 16px;
}


h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", Arial, "Helvetica Neue", sans-serif;
  font-optical-sizing: auto;
  font-weight: 750;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, textarea {
  font: inherit;
}

.container {
  width: var(--container);
  max-width: 1520px;
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  background: #f3f5f7;
}

.section-full {
  padding: 0 0 80px;
  background: #f3f5f7;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

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

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo strong {
  display: block;
  font-size: 16px;
  line-height: 1;
  color: #10131a;
  letter-spacing: .02em;
}

.logo small {
  display: block;
  margin-top: 4px;
  color: #47505b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14.5px;
}

.main-nav a {
  position: relative;
  padding: 28px 0;
  color: #10131a;
  font-weight: 700;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: #10131a;
  border-color: transparent;
  font-weight: 700;
}

/* Настройки позиционирования элементов хедера справа */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 24px;
}

/* Крупные кнопки мессенджеров без фоновых рамок и кружков */
.header-messengers {
  display: flex;
  gap: 16px;
}

.header-messengers a {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  transition: transform 0.2s ease;
}

.header-messengers a:hover {
  transform: translateY(-2px);
}

.header-messengers img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 14.5px;
  line-height: 1.35;
}

.header-contacts .header-phone {
  font-weight: 800;
  color: var(--black);
  display: block;
  font-size: 17px;
}

.header-contacts .header-email {
  display: block;
  color: #10131a;
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #111;
  transition: background-color .18s ease, transform .18s ease;
}

.burger:hover span,
.burger:focus-visible span {
  background: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 6px;
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
  line-height: 1.15;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #f01820, #d9000b);
  color: #fff;
  border: 1px solid var(--red);
  box-shadow: 0 12px 22px rgba(227, 6, 19, .18);
}

.btn-primary:hover {
  background: #fff !important;
  color: var(--red) !important;
  border-color: var(--red) !important;
  box-shadow: 0 12px 22px rgba(227, 6, 19, .06);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  border-color: #d5dce4;
  color: #111;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: #f1f3f5;
  border-color: #ccd4dd;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
}

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

.btn-header-call {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 12px 22px rgba(227, 6, 19, .18);
  border: 1px solid var(--red);
}

.btn-header-call:hover {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
  box-shadow: none;
}

.btn.small {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.btn-wide {
  min-width: 320px;
  height: 66px;
  font-size: 20px;
}

.btn-wide:hover {
  background: #fff !important;
  color: var(--red) !important;
}

.btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Hero Section */
.hero-block {
  position: relative;
  padding: 0 0 80px;
  background: #f3f5f7;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
}

.hero-bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-bg-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f3f5f7 0%, rgba(243, 245, 247, 0) 60%),
              linear-gradient(180deg, #f3f5f7 0%, rgba(243, 245, 247, 0) 15%, rgba(243, 245, 247, 0) 50%, #f3f5f7 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 480px;
  align-items: center;
  gap: 30px;
  padding-top: 34px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--black);
  letter-spacing: -.045em;
}

.lead {
  font-size: 24px;
  line-height: 1.4;
  color: #4b5563;
  font-weight: 500;
  max-width: 680px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Trust Strip */
.trust-strip {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(15, 27, 42, .08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 36px;
  position: relative;
  z-index: 3;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-right: 1px solid var(--line);
  padding: 0 24px;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-strip .line-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--red);
  padding: 0;
}

.trust-strip .line-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.trust-content {
  display: flex;
  flex-direction: column;
}

.trust-item b {
  font-size: 19px;
  line-height: 1.3;
  color: #111;
}

.trust-item small {
  color: #616a75;
  font-size: 15px;
  margin-top: 6px;
}

/* Directions Section */
.directions-section {
  background: #f3f5f7;
}

.directions h2 {
  text-align: center;
  font-size: 36px;
  line-height: 1.25;
  margin: 0 0 32px;
  color: var(--black);
  letter-spacing: -.03em;
}

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

/* Эффекты наведения для карточек защиты */
.direction-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 8px;
  padding: 36px 32px;
  color: var(--black);
  box-shadow: 0 12px 28px rgba(15, 27, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.direction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 27, 42, 0.22);
}

/* Оверлей для плавного осветления карточки на hover */
.direction-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  z-index: 2;
  transition: background-color 0.2s ease;
}

.direction-card:hover::before {
  background: rgba(255, 255, 255, 0.15); /* Делает подложку чуть светлее на hover */
}

.direction-card:nth-child(1) { background-color: #B7BAA0; }
.direction-card:nth-child(2) { background-color: #C2CFDA; }
.direction-card:nth-child(3) { background-color: #DCD0BD; }

.direction-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.direction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}


.direction-content {
  position: relative;
  z-index: 3;
}

.direction-card b {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--black);
}

.direction-card small {
  display: block;
  max-width: 260px;
  color: #111;
  font-size: 15px;
}

/* Элемент стрелки */
.direction-arrow {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.direction-card:hover .direction-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.3);
}

/* Fixed Floating Help Strip */
.help-strip {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: var(--container);
  max-width: 1200px;
  z-index: 999;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(15, 27, 42, 0.12), 0 14px 36px rgba(15, 27, 42, 0.08);
  border-radius: 12px;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.help-strip.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.help-copy {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.help-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 27, 42, .07);
  border: 1px solid var(--line);
}

.help-copy b {
  display: block;
  font-size: 22px;
  line-height: 1.25;
  color: #111;
}

.help-copy small {
  display: block;
  margin-top: 6px;
  color: #586371;
  font-size: 16px;
}

/* Production Section */
.production-section {
  position: relative;
  background: #f3f5f7;
  padding-top: 80px;
  padding-bottom: 80px;
}

.production-bg-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  z-index: 1;
}

.production-bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.production-bg-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f3f5f7 0%, rgba(243, 245, 247, 0) 100%);
  pointer-events: none;
}

.production-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 46px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.production-copy p {
  font-size: 19px;
  max-width: 640px;
  margin: 0;
  color: #364150;
  line-height: 1.6;
}

.eyebrow {
  display: block;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .05em;
  margin-bottom: 18px;
}

.section h2 {
  font-size: 48px;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -.04em;
  margin: 0 0 24px;
}

.visit-card-container {
  position: relative;
  z-index: 3;
  margin-top: 48px;
  max-width: 960px !important;
}

.visit-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border: 2.5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(227, 6, 19, 0.08); /* Оптимально уменьшенная тень */
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.visit-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.visit-info b {
  display: block;
  font-size: 28px;
  color: #111;
  font-weight: 800;
  line-height: 1.3;
}

.visit-info small {
  display: block;
  margin-top: 10px;
  color: #57616d;
  font-size: 19px;
  line-height: 1.5;
}

.visit-checklist-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visit-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #65707d;
  font-size: 16px;
}

.visit-privacy svg {
  flex-shrink: 0;
  stroke: #65707d;
}

.visit-btn {
  width: 100%;
  min-height: 60px;
  font-size: 18px;
}

/* Production Benefits */
.production-benefits-section {
  background: #f3f5f7;
  padding-top: 0;
  padding-bottom: 96px;
}

.production-benefits {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 3;
}

.production-benefits article {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.production-benefits .line-icon {
  border: none;
  background: none;
  width: 64px;
  height: 64px;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #000;
}

.production-benefits h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: #111;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.production-benefits p {
  margin: 0;
  color: #4e5966;
  font-size: 17px;
  line-height: 1.5;
}

/* Products Section & Slider styles */
.products-section {
  background: #f3f5f7;
  padding: 96px 0;
}

.section-head.left {
  text-align: left;
}

.section-head p {
  max-width: 680px;
  color: #485260;
  font-size: 20px;
  margin: 0;
}

.product-carousel {
  position: relative;
  padding: 0 50px;
  margin-top: 48px;
}

.product-slider-window {
  overflow: hidden;
  width: 100%;
}

.product-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  touch-action: pan-y; /* Разрешает браузеру нативно скроллить страницу по вертикали */
  user-select: none; /* Запрещает выделение текста во время свайпа мыши */
  -webkit-user-select: none;
}

.product-card {
  flex: 0 0 calc((100% - 72px) / 4);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.product-gallery {
  position: relative;
  width: 100%;
  height: clamp(220px, 18vw, 280px);
  background: #f7f8fa;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
  transition: opacity 0.12s ease;
}

.product-gallery.is-changing .product-gallery-image {
  opacity: 0.88;
}

.product-gallery-dots {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.product-gallery-dots span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.16);
}

.product-gallery-dots span.is-active {
  background: var(--red);
}

@media (hover: hover) and (pointer: fine) {
  .product-gallery::after {
    content: "Проведите курсором по фото";
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.68);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
  }

  .product-card:hover .product-gallery[data-has-gallery="true"]::after {
    opacity: 1;
    transform: translateY(0);
  }
}


.product-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-body h3 {
  font-size: 20px;
  line-height: 1.24;
  color: #111;
  margin: 0 0 12px;
  font-weight: 800;
}


.product-body h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--red);
  margin-top: 10px;
}

.product-body p {
  min-height: 92px;
  margin: 0 0 24px;
  color: #4e5966;
  font-size: 15px;
  line-height: 1.45;
}


.product-body .btn {
  width: 100%;
  margin-top: auto;
  justify-content: space-between;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-arrow:hover {
  background: var(--red-dark);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev { left: -12px; }
.slider-arrow.next { right: -12px; }

.slider-arrow:disabled {
  background: #d6dde5;
  color: #9aa6b3;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
  transform: translateY(-50%);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6dde5;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.slider-dot.is-active {
  background: var(--red);
  transform: scale(1.2);
}

/* Delivery Section (Изменена разметка преимуществ поставки) */
.delivery-section {
  background: #f3f5f7;
  padding-top: 48px;
  padding-bottom: 48px;
}

.delivery-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 56px;
}

.delivery-info-left h2 {
  font-size: 54px;
  line-height: 1.1;
  color: var(--black);
  margin: 0;
  font-weight: 800;
  letter-spacing: -.035em;
}

.delivery-info-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.delivery-info-block h3 {
  color: var(--red);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .05em;
  margin: 0 0 10px;
}

.delivery-info-block p {
  font-size: 18px;
  line-height: 1.5;
  color: #4e5966;
  margin: 0;
}

.audience-card {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 54px 36px;
}

.audience-card article {
  padding: 0 36px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.audience-card article:last-child {
  border-right: 0;
}

.audience-card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  color: #111;
}

.audience-card h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--red);
  margin: 18px auto 24px;
}

.audience-card p {
  margin: 0;
  color: #364150;
  font-size: 15.5px;
}

.centered-cta {
  text-align: center;
  margin-top: 36px;
}

/* Proof Section */
.proof-section {
  background: #f3f5f7;
  padding-top: 80px;
  padding-bottom: 96px;
}

.proof-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .82)), #edf2f6;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 72px 72px 80px;
}

.proof-panel h2 {
  max-width: 640px;
  margin-bottom: 16px;
}

.proof-panel p {
  margin: 0 0 40px;
  color: #5e6976;
  font-size: 19px;
}

.gallery-slider {
  position: relative;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.gallery-track figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  height: 440px;
  background: #edf0f2;
  box-shadow: 0 12px 28px rgba(15, 27, 42, .08);
}

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

/* Contact Section */
.contact-section {
  position: relative;
  background: url('assets/img/contact-bg.webp') no-repeat center center;
  background-size: cover;
  padding-top: 96px;
  padding-bottom: 96px;
  color: #fff;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 18, 0.97) 0%, rgba(9, 13, 18, 0.92) 50%, rgba(9, 13, 18, 0.8) 100%);
  z-index: 1;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-copy p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
  margin-bottom: 36px;
}

.contact-copy h2 { color: #fff; }
.contact-copy h2 span { color: var(--red); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
  opacity: 0.85;
  transform: translateX(4px);
}

.contact-item--static {
  cursor: default;
}

.contact-item--static:hover {
  opacity: 1;
  transform: none;
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.contact-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.contact-info small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin-top: 4px;
}

/* Feedback Form Card styling */
.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(15, 27, 42, 0.15);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.lead-form h3 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #111;
  font-weight: 800;
}

.lead-form p {
  margin: 0 0 28px;
  color: #53606e;
  font-size: 16px;
}

.form-label {
  display: block;
  margin-bottom: 18px;
}

.lead-form input, .lead-form textarea {
  width: 100%;
  border: 1px solid #d6dde5;
  border-radius: 6px;
  padding: 0 20px;
  height: 60px;
  outline: none;
  background: #fff;
  color: #111;
  font-size: 16px;
  transition: border-color .2s ease;
}

.lead-form textarea {
  height: 130px;
  resize: vertical;
  padding-top: 18px;
}

.lead-form input:focus, .lead-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .08);
}

.form-btn {
  width: 100%;
  height: 64px;
  font-size: 18px;
  margin-top: 10px;
}

/* Предупреждение о конфиденциальности */
.privacy-note-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #65707d;
  text-align: center;
}

.privacy-note-wrapper .icon-lock {
  flex-shrink: 0;
  color: #65707d;
  margin-top: 2px;
}

.privacy-note p {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #65707d;
}

.privacy-note p:last-child {
  margin-bottom: 0;
}

/* Journal Section */
.journal-section {
  background: #f3f5f7;
  padding-top: 80px;
  padding-bottom: 80px;
}

.journal-grid {
  display: grid;
  grid-template-columns: .35fr .65fr;
  gap: 40px;
  align-items: center;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .78)), #eef3f7;
  padding: 64px 58px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.journal-copy h2 span { color: var(--red); }

.journal-copy p {
  color: #4e5966;
  margin: 0 0 36px;
  font-size: 16.5px;
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #18202b;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.article-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .85));
  z-index: 2;
}

.article-badge {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  background: var(--red);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.article-body {
  position: relative;
  z-index: 3;
  padding: 28px;
}

.article-body time {
  font-size: 13.5px;
  opacity: .86;
  display: block;
  margin-bottom: 8px;
}

.article-body h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 6px 0;
  font-weight: 600;
}

.article-body p {
  margin: 0;
  opacity: .9;
  font-size: 14.5px;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  background: #f3f5f7;
  padding-top: 0;
}

.footer-grid {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 27, 42, .07);
  border-radius: 14px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 44px;
}

.footer-brand p {
  max-width: 340px;
  color: #4e5966;
  font-size: 15px;
}

/* Иконки соцсетей в подвале без обводок и рамок */
.socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-btn {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.svg-soc-icon {
  width: 30px;
  height: 30px;
  display: block;
}


.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-col h4 {
  margin: 0 0 10px;
  color: #111;
  text-transform: uppercase;
  font-size: 13px;
}

.footer-col a, .footer-col span {
  color: #57616d;
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  color: #727c88;
  font-size: 13.5px;
  padding: 32px 0;
}

.footer-bottom a {
  color: #727c88;
}

.footer-bottom a:hover {
  color: var(--red);
}

/* Button Up (Back to Top) */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: 1px solid #e5e9ee;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Увеличенные шрифты на планшетных форматах */
@media (min-width: 761px) and (max-width: 1180px) {
  body {
    font-size: 18px;
  }
  .hero-copy h1 {
    font-size: 52px;
  }
  .lead {
    font-size: 24px;
    max-width: 100%;
  }
  .section h2 {
    font-size: 42px;
  }
  .main-nav {
    font-size: 16px;
  }
  .trust-item b {
    font-size: 18px;
  }
  .direction-card b {
    font-size: 24px;
  }
  .direction-card small {
    font-size: 17px;
  }
  .visit-info b {
    font-size: 26px;
  }
  .visit-info small {
    font-size: 18px;
  }
  .production-copy p {
    font-size: 20px;
    max-width: 100%;
  }
}

/* Tablet Media Queries */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 230px 1fr 140px 40px;
    padding: 0 4%;
  }

  .main-nav, .header-right-group, .site-header > .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-bg-container {
    width: 100vw;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .hero-copy {
    background: rgba(255, 255, 255, 0.9);
    padding: 24px;
    border-radius: 8px;
    z-index: 5;
  }

  .production-bg-container {
    display: none;
  }

  .production-grid, .journal-grid {
    grid-template-columns: 1fr;
  }

  .visit-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-section {
    background-position: left center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .help-strip {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 24px);
    padding: 12px 16px;
    gap: 12px;
  }
  
  .help-strip .help-icon {
    width: 44px;
    height: 44px;
  }
  
  .help-strip .help-icon img {
    width: 24px;
    height: 24px;
  }
  
  .help-strip .help-copy b {
    font-size: 14px;
  }
  
  .help-strip .help-copy small {
    font-size: 11px;
    margin-top: 2px;
  }
  
  .help-strip .btn {
    font-size: 12px;
    min-height: 38px;
    padding: 0 14px;
  }

  .trust-strip, .production-benefits, .audience-card, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .direction-grid, .delivery-info-grid, .article-cards {
    grid-template-columns: 1fr;
  }

  .gallery-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .journal-copy {
    max-width: 620px;
  }

  .audience-card article:nth-child(2) {
    border-right: 0;
  }

  .audience-card article {
    border-bottom: 1px solid var(--line);
    padding: 28px;
  }

  .audience-card article:nth-child(n+3) {
    border-bottom: 0;
  }
  
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 99;
  }
  
  .main-nav.is-open a {
    padding: 10px 0;
  }

  .product-card {
    flex: 0 0 calc((100% - 24px) / 2) !important;
  }
}

/* Mobile Media Queries */
@media (max-width: 760px) {
  .container {
    width: var(--container);
  }

  .section {
    padding: 48px 0;
  }

  .section-full {
    padding-bottom: 42px;
  }

  .site-header {
    height: 74px;
    padding: 0 16px;
    grid-template-columns: 1fr 40px;
    position: relative;
  }

  .logo img {
    width: 46px;
    height: 46px;
  }

  .logo strong {
    font-size: 16px;
  }

  .logo small {
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 20px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .btn {
    width: 100%;
    white-space: normal;
    min-height: 60px !important;
  }

  .btn-wide {
    min-width: 0;
  }

  .centered-cta .btn-wide {
    width: auto !important;
    max-width: 100%;
    display: inline-flex !important;
    padding: 0 24px;
    font-size: 16px;
  }

  .trust-strip, .production-benefits, .audience-card, .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    padding: 18px;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .section h2 {
    font-size: 30px;
  }

  .production-section, .products-section, .delivery-section, .proof-section, .contact-section, .journal-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .visit-card {
    padding: 20px;
  }

  .production-benefits article {
    padding: 24px;
  }

  .product-card {
    flex: 0 0 100% !important;
  }

  .delivery-info-left h2 {
    font-size: 32px;
  }

  .delivery-info-block p {
    font-size: 16px;
  }

  .audience-card {
    padding: 22px;
  }

  .audience-card article {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .audience-card article:last-child {
    border-bottom: 0 !important;
  }

  .gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery-track figure {
    min-width: 82%;
    height: 360px;
    scroll-snap-align: start;
  }

  .proof-panel {
    padding: 36px 20px;
  }

  .lead-form {
    padding: 26px;
  }

  .lead-form h3 {
    font-size: 28px;
  }

  .journal-grid {
    padding: 34px 20px;
  }

  .article-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    width: 100%;
    padding-bottom: 12px;
  }

  .article-cards .article-card {
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    scroll-snap-align: start;
  }

  .footer-bottom {
    display: grid;
    gap: 12px;
  }

  .help-strip .help-icon {
    display: none !important;
  }
}
/* ==========================================================================
   Modals (Попапы)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-container {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(9, 13, 18, 0.25), 0 4px 12px rgba(9, 13, 18, 0.1);
  padding: 44px;
  position: relative;
  transform: scale(0.95) translateY(-15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #66717f;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--red);
  transform: rotate(90deg);
}

.modal-form h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 10px;
  line-height: 1.25;
}

.modal-form p {
  font-size: 15px;
  color: #53606e;
  margin: 0 0 24px;
  line-height: 1.5;
}

.modal-form .form-label {
  display: block;
  margin-bottom: 16px;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form textarea {
  width: 100%;
  border: 1px solid #d6dde5;
  border-radius: 6px;
  padding: 0 18px;
  height: 54px;
  outline: none;
  background: #fff;
  color: #111;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.modal-form textarea {
  height: 100px;
  resize: vertical;
  padding-top: 14px;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .08);
}

.modal-form .form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #333d47;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 18px;
  user-select: none;
  -webkit-user-select: none;
}

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

.modal-form .form-conditional-group {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-bottom 0.3s ease;
  margin-bottom: 0;
}

.modal-form .form-conditional-group.is-visible {
  max-height: 72px;
  opacity: 1;
  margin-bottom: 18px;
}

.modal-form .form-btn {
  width: 100%;
  min-height: 54px;
}

.modal-form .privacy-note-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.modal-form .privacy-note-wrapper svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-form .privacy-note p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #65707d;
  text-align: left;
}

.modal-form .privacy-note p:last-child {
  margin-bottom: 0;
}

.modal-form .privacy-note a {
  color: var(--red);
  text-decoration: underline;
}

.modal-form .privacy-note a:hover {
  color: var(--red-dark);
}

@media (max-width: 580px) {
  .modal-container {
    padding: 32px 24px;
  }
}
/* Journal pages, article cards and article layout */
.journal-home-final {
  background: #f3f5f7;
  padding-top: 88px;
  padding-bottom: 88px;
}

.journal-home-final .journal-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.journal-home-final .journal-home-head h2,
.journal-list-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: .95;
  letter-spacing: -.06em;
}

.journal-home-final .journal-home-head .btn,
.journal-home-final .journal-home-head .btn-secondary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 16px 32px rgba(227, 6, 19, .18);
}

.journal-home-final .journal-home-head .btn:hover,
.journal-home-final .journal-home-head .btn-secondary:hover {
  background: #fff;
  color: #111923;
  border-color: var(--red);
}

.journal-page,
.article-page {
  background: #f3f5f7;
}

.journal-hero-clean,
.article-hero-final {
  padding: 82px 0 68px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(227, 6, 19, .34), transparent 30%),
    linear-gradient(135deg, #300711 0%, #0d1722 58%, #09111a 100%);
}

.journal-hero-clean h1,
.article-hero-final h1 {
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .94;
  letter-spacing: -.06em;
  max-width: 980px;
}

.journal-hero-subtitle {
  max-width: 820px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.45;
  font-weight: 700;
}

.article-back,
.journal-main-back {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-weight: 850;
}

.article-back:hover,
.journal-main-back:hover {
  color: #fff;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .46fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.article-title-box h1 {
  margin-top: 22px;
}

.article-date {
  margin-top: 26px;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  font-weight: 850;
}

.article-cover-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 440px;
  border-radius: 22px;
  overflow: hidden;
  background: #e9eef3;
  box-shadow: 0 34px 76px rgba(0,0,0,.32);
}

.article-cover-square img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-list-section {
  padding-top: 58px;
}

.journal-list-grid,
.journal-home-grid,
.related-grid-four,
.journal-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.journal-card,
.journal-home-card,
.related-card {
  min-width: 0;
  height: 100%;
}

.journal-card-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .22);
  border-radius: 18px;
  background: #0b1118;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(10, 18, 32, .10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.journal-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 6, 19, .72);
  box-shadow: 0 24px 52px rgba(10, 18, 32, .18);
}

.journal-card-link::before,
.journal-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.journal-card-link::before {
  background: linear-gradient(90deg, rgba(3, 6, 10, .70) 0%, rgba(3, 6, 10, .34) 60%, rgba(3, 6, 10, .18) 100%);
}

.journal-card-link::after {
  background: linear-gradient(180deg, rgba(3, 6, 10, .20) 0%, rgba(3, 6, 10, .42) 31%, rgba(3, 6, 10, .88) 66%, rgba(3, 6, 10, .98) 100%);
}

.journal-card-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.journal-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .24s ease;
}

.journal-card-link:hover .journal-card-media img {
  transform: scale(1.045);
}

.journal-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 13px;
  padding: clamp(22px, 1.6vw, 28px);
  box-sizing: border-box;
  color: #fff;
}

.journal-tag,
.article-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(227, 6, 19, .24);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.journal-card-overlay h2 {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(17px, 1.04vw, 21px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 600;
  text-transform: none;
  text-shadow: 0 12px 30px rgba(0,0,0,.58);
}

.journal-read-btn,
.related-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 118px;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 0 20px;
  border: 1.5px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #111923;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.journal-read-btn span,
.related-read-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: inherit;
  line-height: 1;
  letter-spacing: 0;
  transform: none;
}

.journal-card-link:hover .journal-read-btn,
.journal-card-link:hover .related-read-btn,
.journal-read-btn:hover,
.related-read-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 16px 30px rgba(227,6,19,.28);
  transform: translateY(-1px);
}

.journal-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 40px;
}

.journal-pagination a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.journal-pagination a.active,
.journal-pagination a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.article-main-wide {
  max-width: 1280px;
  padding-top: 72px;
  padding-bottom: 24px;
}

.article-body-wide {
  --article-pad: clamp(32px, 4vw, 64px);
  max-width: 980px;
  margin: 0 auto;
  padding: var(--article-pad);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(10, 18, 32, .08);
}

.article-content-block {
  margin: 0 0 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}

.article-content-block:last-child {
  margin-bottom: 0;
}

.article-content-block h2,
.article-products h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(26px, 2.3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.article-content-block p,
.article-content-block li {
  color: rgba(15, 23, 42, .82);
  font-size: 18px;
  line-height: 1.72;
}

.article-products {
  margin-top: 36px;
}

.article-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.article-product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(10, 18, 32, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227,6,19,.4);
  box-shadow: 0 18px 34px rgba(10, 18, 32, .12);
}

.article-product-img {
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f5;
}

.article-product-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-product-info b {
  display: block;
  min-height: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.article-product-info small {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--red);
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: none;
}

.article-product-card:hover small {
  background: var(--red);
  color: #fff;
}

.article-consult-card {
  margin: 50px calc(var(--article-pad) * -1) calc(var(--article-pad) * -1);
  padding: 48px var(--article-pad);
  border: 0;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 8% 22%, rgba(227, 6, 19, .28), transparent 28%),
    linear-gradient(135deg, #0b1118 0%, #111b27 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  color: #fff;
}

.article-consult-card h2 {
  max-width: 620px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.article-consult-card p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 18px;
  line-height: 1.55;
}

.article-consult-card .btn {
  justify-self: end;
  min-width: 270px;
  white-space: nowrap;
}

.related-section {
  padding-top: 70px;
}

.journal-list-head {
  margin-bottom: 28px;
}

@media (max-width: 1320px) {
  .journal-list-grid,
  .journal-home-grid,
  .related-grid-four,
  .journal-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .article-hero-grid {
    grid-template-columns: 1fr;
  }
  .article-cover-square {
    max-width: 420px;
  }
  .article-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .journal-home-final .journal-home-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .journal-list-grid,
  .journal-home-grid,
  .related-grid-four,
  .journal-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-consult-card {
    grid-template-columns: 1fr;
  }
  .article-consult-card .btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .journal-hero-clean,
  .article-hero-final {
    padding: 58px 0 46px;
  }
  .journal-list-grid,
  .journal-home-grid,
  .related-grid-four,
  .journal-related-grid,
  .article-products-grid {
    grid-template-columns: 1fr;
  }
  .journal-card-overlay {
    padding: 20px;
  }
  .journal-hero-subtitle,
  .article-content-block p,
  .article-content-block li,
  .article-consult-card p {
    font-size: 16px;
  }
  .article-body-wide {
    --article-pad: 22px;
    border-radius: 22px;
  }
  .article-consult-card .btn {
    width: 100%;
    min-width: 0;
  }
}



/* Journal SEO summary */
.journal-seo-summary {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 1240px;
  margin-top: 48px;
}

.journal-seo-summary img {
  width: 165px;
  height: 165px;
  object-fit: contain;
}

.journal-seo-summary p {
  max-width: 1120px;
  margin: 0;
  padding: 0;
  color: #2f3a47;
  font-size: clamp(14px, 1.32vw, 16px);
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: -.01em;
}

.journal-seo-summary p strong {
  color: var(--black);
  font-weight: 700;
}

#popular-products {
  scroll-margin-top: 96px;
}

@media (max-width: 760px) {
  .journal-seo-summary {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: flex-start;
    margin-top: 38px;
  }

  .journal-seo-summary img {
    width: 64px;
    height: 64px;
  }

  .journal-seo-summary p {
    font-size: 16px;
    line-height: 1.55;
  }
}

/* ========================================================================
   Home product modal for the main page product carousel
   ======================================================================== */

.home-product-modal {
  padding: 28px;
}

.home-product-modal__dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 26px 72px rgba(0, 0, 0, .28);
}

.home-product-modal__grid {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.home-product-modal__image {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 24px;
  background: #f5f7f9;
  border-right: 1px solid var(--line);
}

.home-product-modal-gallery {
  display: grid;
  width: 100%;
  gap: 14px;
}

.home-product-modal-gallery__main {
  position: relative;
  display: grid;
  place-items: center;
  height: 310px;
  min-height: 310px;
  cursor: pointer;
}

.home-product-modal-gallery__image {
  width: 100%;
  height: 100%;
  max-height: 310px;
  object-fit: contain;
  border-radius: 8px;
}

.home-product-modal-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 8px;
}

.home-product-modal-gallery__thumb {
  aspect-ratio: 1 / 1;
  padding: 4px;
  cursor: pointer;
  opacity: .72;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.home-product-modal-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(228, 0, 0, .12);
}

.home-product-modal-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.home-product-modal__content {
  padding: clamp(28px, 3.2vw, 44px);
}

.home-product-modal__content h3 {
  margin: 8px 0 16px;
  color: var(--black);
  font-size: clamp(28px, 2.35vw, 38px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.home-product-modal__content p {
  margin: 0 0 22px;
  color: #3f4853;
  font-size: 18px;
  line-height: 1.56;
}

.home-product-modal__price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 12px 16px;
  color: #39452f;
  background: #f4f6f2;
  border: 1px solid rgba(92, 111, 71, .28);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.home-product-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 26px;
}

.home-product-modal__meta span {
  padding: 13px 14px;
  color: #202733;
  background: #f5f7f9;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.home-product-modal__block h4 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 20px;
}

.home-product-modal__block ul {
  margin: 0 0 30px;
  padding-left: 20px;
  color: #53606e;
  font-size: 17px;
  line-height: 1.55;
}

.home-product-modal__content .btn {
  justify-content: center;
  min-width: 230px;
}

.home-product-modal__close {
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(15, 27, 42, .15);
}

.home-product-modal__long {
  padding: clamp(26px, 3vw, 42px) clamp(28px, 4vw, 56px) clamp(34px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.home-product-modal__long h4 {
  margin: 0 0 18px;
  color: var(--black);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.home-product-modal__long-content {
  display: grid;
  gap: 14px;
  color: #3f4853;
  font-size: 18px;
  line-height: 1.62;
}

.home-product-modal__long-content p {
  margin: 0;
}

@media (max-width: 820px) {
  .home-product-modal__grid,
  .home-product-modal__meta {
    grid-template-columns: 1fr;
  }

  .home-product-modal__image {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .home-product-modal {
    padding: 14px;
  }

  .home-product-modal__long {
    padding: 24px 22px 30px;
  }

  .home-product-modal__long-content {
    font-size: 16px;
  }

  .home-product-modal-gallery__main {
    min-height: 260px;
  }
}

/* Header anti-overlap breakpoint: only nav goes into burger */
@media (max-width: 1660px) {
  .site-header {
    padding-left: 4%;
    padding-right: 4%;
    gap: 18px;
  }

  .logo {
    flex: 0 0 auto;
  }

  .main-nav {
    display: none;
  }

  .header-right-group {
    display: flex;
    margin-left: auto;
    margin-right: 8px;
  }

  .site-header > .btn {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .burger {
    display: flex;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: 22px 5% 26px;
    gap: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
    z-index: 99;
    font-size: 16px;
  }

  .main-nav.is-open a {
    display: inline-flex;
    padding: 4px 0 7px;
  }

  .main-nav.is-open a::after {
    bottom: 0;
  }
}

@media (max-width: 1180px) {
  .site-header {
    display: flex;
    padding-left: 4%;
    padding-right: 4%;
  }

  .header-right-group {
    display: flex;
    margin-left: auto;
    margin-right: 8px;
  }

  .site-header > .btn {
    display: inline-flex;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 980px) {
  .site-header > .btn {
    display: none;
  }

  .header-right-group {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 74px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 10px;
  }

  .header-contacts {
    font-size: 11px;
    line-height: 1.18;
  }

  .header-contacts .header-phone {
    font-size: 13px;
  }

  .header-contacts .header-email {
    font-size: 11px;
  }

  .main-nav.is-open {
    top: 74px;
    padding: 20px 16px 24px;
  }
}

@media (max-width: 520px) {
  .logo {
    gap: 8px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .logo strong {
    font-size: 14px;
  }

  .logo small {
    font-size: 8px;
  }

  .header-contacts {
    max-width: 118px;
  }

  .header-contacts .header-phone {
    font-size: 12px;
    white-space: nowrap;
  }

  .header-contacts .header-email {
    font-size: 10px;
    white-space: nowrap;
  }

  .burger {
    width: 38px;
    height: 38px;
  }
}

/* ===========================================================================
   Catalog success page and form success modal
   =========================================================================== */
.success-page {
  background: #f3f5f7;
  min-height: calc(100vh - 80px);
}

.success-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 82% 10%, rgba(227, 6, 19, .08), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f3f5f7 100%);
}

.success-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: 44px;
  align-items: start;
}

.success-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 44px;
}

.success-copy .eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
}

.success-copy h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(36px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -0.055em;
}

.success-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #526071;
  font-size: 18px;
  line-height: 1.55;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.success-info-card {
  background: #111923;
  color: #fff;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(9, 13, 18, .16);
  position: sticky;
  top: 24px;
}

.success-info-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.success-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.success-info-card li {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

.success-info-card li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.success-pdf-section {
  padding: 40px 0 96px;
}

.success-pdf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.success-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 8px 20px;
}

.success-pdf-head h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.success-pdf-head p {
  margin: 8px 0 0;
  color: #66717f;
}

.pdf-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9fb;
  min-height: 720px;
}

.pdf-frame-wrap iframe,
.pdf-frame-wrap object {
  width: 100%;
  height: 78vh;
  min-height: 720px;
  border: 0;
  display: block;
  background: #fff;
}

.form-success-card {
  max-width: 440px;
  text-align: center;
}

.form-success-icon {
  width: 132px;
  height: 74px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.form-success-card h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 30px;
  line-height: 1.15;
}

.form-success-card p {
  margin: 0 0 26px;
  color: #53606e;
  font-size: 16px;
  line-height: 1.5;
}

.form-success-close {
  width: 100%;
  justify-content: center;
}

button[disabled],
.btn[disabled] {
  opacity: .65;
  cursor: progress;
}

@media (max-width: 980px) {
  .success-grid {
    grid-template-columns: 1fr;
  }

  .success-info-card {
    position: static;
  }

  .success-pdf-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .success-hero {
    padding: 42px 0 30px;
  }

  .success-copy,
  .success-info-card,
  .success-pdf-card {
    padding: 24px;
    border-radius: 18px;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn,
  .success-pdf-head .btn {
    width: 100%;
    justify-content: center;
  }

  .pdf-frame-wrap,
  .pdf-frame-wrap iframe,
  .pdf-frame-wrap object {
    min-height: 520px;
    height: 70vh;
  }
}

/* Journal article refinements */
.article-main-wide {
  max-width: 1460px;
}

.article-body-wide {
  max-width: 1120px;
}

.article-product-button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.article-product-button small {
  pointer-events: none;
}

.related-all {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.related-all-btn {
  min-width: 230px;
  justify-content: center;
}

@media (max-width: 760px) {
  .related-all {
    margin-top: 26px;
  }

  .related-all-btn {
    width: 100%;
  }
}

/* Journal related section header aligned with home journal CTA */
.related-section .journal-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.related-section .journal-related-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: .95;
  letter-spacing: -.06em;
}

.related-section .journal-related-head .btn,
.related-section .journal-related-head .btn-secondary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 16px 32px rgba(227, 6, 19, .18);
}

.related-section .journal-related-head .btn:hover,
.related-section .journal-related-head .btn-secondary:hover {
  background: #fff;
  color: #111923;
  border-color: var(--red);
}

@media (max-width: 980px) {
  .related-section .journal-related-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .related-section .journal-related-head .btn,
  .related-section .journal-related-head .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
