/* ===== BASE ===== */
html { scroll-behavior: smooth; scroll-padding-top: var(--site-header-h, 140px); }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #384455;
}

/* ===== TILDA COLORS ===== */
/* accent gradient: from #ea826a → #fec15d  (Tilda original) */
/* nav hover/link:  #f2a81d  (Tilda original) */
/* dark section:    #384455 */
/* footer:          #111111 */
/* reviews bg:      #dde0e1 */
/* stats bg:        #e4e7e8 */

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: #1a2030;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.45);
}

.header-sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}

.site-header.is-scrolled .header-sparks,
.site-header.menu-open .header-sparks {
  opacity: 1;
}

.site-header-inner {
  position: relative;
  z-index: 1;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}

.header-brand {
  display: contents;
}

.header-social { justify-self: start; }
.header-logo  { justify-self: center; }

.header-logo-img {
  width: auto;
  height: 90px;
  max-width: min(270px, 46vw);
}

.header-contacts {
  justify-self: end;
  text-align: right;
}

.header-phone {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  transition: color .25s;
}
.header-phone:hover { color: #f2a81d; }

.header-phone-alt {
  font-size: 15px;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  transition: color .25s;
}
.header-phone-alt:hover { color: #f2a81d; }

.header-email {
  margin-top: 2px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  transition: color .25s;
}
.header-email:hover { color: #f2a81d; }

.social-link {
  display: inline-flex;
  transition: filter .25s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.social-link:hover {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

.social-img {
  display: block;
  width: 46px;
  height: auto;
  transform-origin: center center;
  transition: transform .2s ease;
}
.social-link:hover .social-img {
  animation: socialWiggle .55s ease-in-out;
}

@keyframes socialWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20%      { transform: rotate(10deg) scale(1.14); }
  40%      { transform: rotate(-8deg) scale(1.14); }
  60%      { transform: rotate(6deg) scale(1.1); }
  80%      { transform: rotate(-4deg) scale(1.06); }
}

/* Nav */
.header-nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding: .75rem 0;
  margin-top: 25px;
}

.header-nav .nav-link,
.mobile-nav .nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  transition: color .25s;
}

.header-nav .nav-link:hover,
.mobile-nav .nav-link:hover {
  color: #f2a81d;
}

.header-burger {
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.header-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}
.header-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-burger.is-open span:nth-child(2) { opacity: 0; }
.header-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: .35rem 0 1rem;
  margin-top: .35rem;
  border-top: 1px solid rgba(255,255,255,.1);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav > .nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .55rem .15rem;
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255,255,255,.07);
  white-space: normal;
}

.mobile-nav > .nav-link:last-of-type {
  border-bottom: none;
}

.mobile-contacts {
  margin-top: .5rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.mobile-contacts .header-phone,
.mobile-contacts .header-phone-alt,
.mobile-contacts .header-email {
  display: block;
  min-height: 40px;
  line-height: 1.45;
  padding: .2rem 0;
  font-size: 14px;
  word-break: break-word;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .floating-call {
  opacity: 0;
  pointer-events: none;
}

/* ===== FLOATING CALL ===== */
.floating-call {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: callPulse 2s ease-in-out infinite;
  transition: transform .25s;
}
.floating-call:hover { transform: scale(1.08); }

@keyframes callPulse {
  0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 8px 32px rgba(37,211,102,.75); }
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 0;
  background: #000 url('/img/hero/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 1.5rem;
}

.hero-content > * { animation: fadeInUp .8s ease both; }
.hero-content > *:nth-child(2) { animation-delay: .15s; }
.hero-content > *:nth-child(3) { animation-delay: .30s; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
}

.hero-actions .btn-primary,
.hero-actions .btn-outline-white {
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 100%;
}

.hero-consult-btn {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.hero-consult-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f2a81d;
  color: #fff;
}

/* Consultation modal */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.consult-modal[hidden] {
  display: none !important;
}

.consult-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.72);
}

.consult-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 16px;
  background: #1d2333;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.consult-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.consult-modal-close:hover {
  color: #fff;
}

.consult-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.consult-modal-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.consult-form .calc-label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: rgba(255, 255, 255, 0.7);
}

.consult-form .calc-field {
  width: 100%;
}

.consult-privacy {
  margin: 1rem 0 1.15rem;
  color: rgba(255, 255, 255, 0.7);
}

.consult-privacy a {
  color: #f2a81d;
}

.consult-submit-btn {
  width: 100%;
  justify-content: center;
}

.consult-message {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}

body.consult-open {
  overflow: hidden;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== TILDA BUTTON ===== */
/* Shared glow animation for all gradient buttons */
@keyframes btnPulse {
  0%,100% { box-shadow: 0 10px 30px rgba(234,130,106,.38); }
  50%      { box-shadow: 0 14px 44px rgba(254,193,93,.60); }
}

/* Subtle glow for outline/white buttons */
@keyframes btnOutlinePulse {
  0%,100% { box-shadow: 0 4px 18px rgba(255,255,255,.08); }
  50%      { box-shadow: 0 8px 28px rgba(255,255,255,.22); }
}

/* Primary — full gradient (hero, reviews, works) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 2.5rem;
  border: none;
  border-radius: 30px;
  background: linear-gradient(rgb(234,130,106) 0%, rgb(254,193,93) 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  animation: btnPulse 2.5s ease-in-out infinite;
  transition: transform .25s, filter .25s;
  text-decoration: none;
}
.btn-primary:hover  { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0) scale(.99); }

/* Catalog / secondary gradient button — same size + same glow */
.btn-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 2.25rem;
  border-radius: 30px;
  border: none;
  background: linear-gradient(rgb(234,130,106) 0%, rgb(254,193,93) 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  animation: btnPulse 2.5s ease-in-out infinite;
  transition: transform .25s, filter .25s;
  text-decoration: none;
}
.btn-catalog:hover  { transform: translateY(-2px); filter: brightness(1.05); }
.btn-catalog:active { transform: translateY(0) scale(.99); }

/* Tilda icon wobble — one icon at a time, sequential loop (4 slots × 1.2s = 4.8s) */
@keyframes iconSeq0 {
  0%, 25%, 100% { transform: rotate(0deg) scale(1); }
  6.25%  { transform: rotate(8deg) scale(1.06); }
  12.5%  { transform: rotate(0deg) scale(1); }
  18.75% { transform: rotate(-8deg) scale(1.06); }
}
@keyframes iconSeq1 {
  0%, 25%, 50%, 100% { transform: rotate(0deg) scale(1); }
  31.25% { transform: rotate(8deg) scale(1.06); }
  37.5%  { transform: rotate(0deg) scale(1); }
  43.75% { transform: rotate(-8deg) scale(1.06); }
}
@keyframes iconSeq2 {
  0%, 50%, 75%, 100% { transform: rotate(0deg) scale(1); }
  56.25% { transform: rotate(8deg) scale(1.06); }
  62.5%  { transform: rotate(0deg) scale(1); }
  68.75% { transform: rotate(-8deg) scale(1.06); }
}
@keyframes iconSeq3 {
  0%, 75%, 100% { transform: rotate(0deg) scale(1); }
  81.25% { transform: rotate(8deg) scale(1.06); }
  87.5%  { transform: rotate(0deg) scale(1); }
  93.75% { transform: rotate(-8deg) scale(1.06); }
}

.stat-icon-animated {
  transform-origin: center center;
  backface-visibility: hidden;
  animation-duration: 4.8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.stat-item:nth-child(1) .stat-icon-animated { animation-name: iconSeq0; }
.stat-item:nth-child(2) .stat-icon-animated { animation-name: iconSeq1; }
.stat-item:nth-child(3) .stat-icon-animated { animation-name: iconSeq2; }
.stat-item:nth-child(4) .stat-icon-animated { animation-name: iconSeq3; }

@media (prefers-reduced-motion: reduce) {
  .stat-icon-animated { animation: none; }
  .social-link:hover .social-img { animation: none; }
  .promo-card.is-visible .promo-card-gift,
  .promo-section.is-visible .promo-card-gift { animation: none; opacity: 1; transform: translateY(-50%); }
  .works-note.is-visible .works-calc-guide-img { animation: none; opacity: 1; transform: scaleX(-1); }
  .calc-video-wrap { transition: none; opacity: 1; transform: none; }
  .works-carousel-img { transition: none; }
  .works-carousel-photo { transition: none; }
}

/* Tilda fade-in (section blocks) */
@keyframes tildefadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Tilda move-up (combined with fade) */
@keyframes tildaMoveUp {
  from { transform: translateY(15px); }
  to   { transform: translateY(0); }
}

/* Scan light (promo cards) */
@keyframes scanLight {
  0%   { transform: translate(-120%) skew(-20deg); }
  100% { transform: translate(120%) skew(-20deg); }
}

.promo-card-shine {
  position: relative;
  overflow: hidden;
}
.promo-card-shine::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.08), transparent);
  animation: scanLight 4s ease-in-out infinite;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left (Tilda SBS reviews/stats) */
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children delay */
.reveal-stagger > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: .55s; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .75rem;
  line-height: 1.15;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: #444;
  margin: 0.6rem auto 2rem;
}

/* ===== О НАС — parallax: background stays fixed while sections scroll over it ===== */
.about-section {
  position: relative;
  min-height: 700px;
  background: url('/img/about-room.jpg') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
}
/* iOS ignores background-attachment:fixed gracefully — no override needed */
@media (max-width: 767px) {
  /* On narrow screens keep scroll so content isn't clipped */
  .about-section { background-attachment: scroll; }
}

.about-box {
  position: relative;
  z-index: 1;
  background: #fff;
  max-width: 570px;
  width: 100%;
  padding: 2.75rem 2.5rem 3rem;
  text-align: center;
  line-height: 1.75;
}

.about-box p { color: #222; font-size: 15px; line-height: 1.7; margin-bottom: 0; }
.about-box a, .about-box a:link, .about-box a:visited { color: #222 !important; text-decoration: none; }
.about-box a:hover { text-decoration: underline; }

/* ===== STATS ("Почему нас выбирают") ===== */
/* Tilda t938 layout: white bg, 55%/45%, title+icons left, phone right */
.stats-section {
  background: #fff;
}

.stats-layout {
  display: grid;
  grid-template-columns: 56% 44%;
  gap: 0;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .stats-layout { grid-template-columns: 1fr; }
}

.stats-left { padding-right: 2rem; }

.stats-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  color: #111;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.stats-desc {
  font-size: 14px;
  color: #384455;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.stats-phone-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.stats-phone-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  container-type: inline-size;
}

.stats-phone-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.stats-stars-fill {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stats-stars-fill span {
  position: absolute;
  left: var(--x);
  top: 71.56%;
  color: #f2a81d;
  font-size: 6cqw;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 10px rgba(242,168,29,.55);
  transform: translate3d(-50%, -50%, 0);
  will-change: opacity;
  animation-duration: 6s;
  animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  animation-iteration-count: infinite;
  animation-delay: .65s;
}
.stats-stars-fill span:nth-child(1) { animation-name: statsStarSeq0; }
.stats-stars-fill span:nth-child(2) { animation-name: statsStarSeq1; }
.stats-stars-fill span:nth-child(3) { animation-name: statsStarSeq2; }
.stats-stars-fill span:nth-child(4) { animation-name: statsStarSeq3; }
.stats-stars-fill span:nth-child(5) { animation-name: statsStarSeq4; }

/* Sequential gold fill: one star at a time, hold, then reset */
@keyframes statsStarSeq0 {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  88%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes statsStarSeq1 {
  0%, 16%  { opacity: 0; }
  20%      { opacity: 1; }
  88%      { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes statsStarSeq2 {
  0%, 32%  { opacity: 0; }
  36%      { opacity: 1; }
  88%      { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes statsStarSeq3 {
  0%, 48%  { opacity: 0; }
  52%      { opacity: 1; }
  88%      { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes statsStarSeq4 {
  0%, 64%  { opacity: 0; }
  68%      { opacity: 1; }
  88%      { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stats-stars-fill span {
    opacity: 1;
    animation: none;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.stat-icon-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.stat-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #384455;
  text-transform: uppercase;
}

.stat-text {
  font-size: 14px;
  color: #384455;
  line-height: 1.5;
}
/* links inside stats */
.stat-text a { color: #f2a81d; }

/* ===== REVIEWS — Tilda 2×2 grid, no slider ===== */
.reviews-section { background: #dde0e1; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background: #fff;
  color: #384455;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
  position: relative;
  display: flex;
  flex-direction: column;
}

.review-text {
  font-size: 14px;
  line-height: 1.75;
  color: #384455;
  flex: 1;
}

.review-text a { color: #f2a81d; }

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: .75rem;
}

.review-card-author-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.review-card-author-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #ea826a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 700;
  font-size: 14px;
  color: #384455;
  line-height: 1.3;
}

.review-stars {
  color: #f2a81d;
  font-size: 12px;
  letter-spacing: 1px;
}

.review-globe-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2a81d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
  text-decoration: none;
}
.review-globe-btn:hover { background: #ea826a; transform: scale(1.1); }

/* ===== CATALOG ===== */
/* Tilda: dark navy bg + animated canvas particles */
.catalog-section {
  background: #1e2538;
  position: relative;
  overflow: visible;
}

/* Canvas particles — extends above the section so sparks drift onto the
   previous block; rising orange embers that glow. */
#catalog-particles {
  position: absolute;
  top: -240px;
  left: 0;
  width: 100%;
  height: calc(100% + 240px);
  pointer-events: none;
  z-index: 0;
}

.catalog-section > .max-w-\[1200px\] {
  position: relative;
  z-index: 1;
}

.catalog-card {
  position: relative;
  display: block;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 1.25rem 1.25rem 0;
}

.catalog-card-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: box-shadow .4s ease;
}
.catalog-card:hover .catalog-card-media,
.catalog-card:focus-visible .catalog-card-media {
  box-shadow: 0 14px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(242,168,29,.35);
}

.catalog-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.catalog-card:hover .catalog-card-img,
.catalog-card:focus-visible .catalog-card-img {
  transform: scale(1.05);
}

/* Subtle "click to learn more" hint over the image */
.catalog-card-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(4px);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: calc(100% - 24px);
  padding: .4rem .85rem;
  border-radius: 65px;
  background: rgba(18,23,38,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(242,168,29,.45);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: .55;
  transition: opacity .35s ease, transform .35s ease;
}
.catalog-card-hint svg { color: #f2a81d; flex-shrink: 0; }
.catalog-card:hover .catalog-card-hint,
.catalog-card:focus-visible .catalog-card-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.catalog-card-body {
  padding: 1.25rem .5rem 2rem;
}

.catalog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: .6rem;
  color: #fff;
}

.catalog-card-text {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Galaxy bg for calculator section */
.galaxy-bg {
  background-image:
    radial-gradient(circle, rgba(255,140,70,.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,140,70,.4) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 180px 180px, 120px 120px, 90px 90px;
  background-position: 0 0, 60px 90px, 30px 45px;
}

/* ===== WORKS ===== */
.works-section {
  background: #fff;
  overflow: visible;
  position: relative;
  z-index: 4;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

.works-calc-arrow-anchor {
  display: inline-block;
  position: relative;
  width: 0;
  height: 0;
  vertical-align: baseline;
  pointer-events: none;
  z-index: 10;
}

.works-calc-guide-img {
  position: absolute;
  left: calc(0.35rem + 2cm);
  top: -0.45em;
  width: clamp(88px, 8.5vw, 108px);
  max-width: none;
  height: auto;
  display: block;
  opacity: 0;
  transform: scaleX(-1);
  transform-origin: top left;
  transition: opacity .85s ease, transform .85s ease;
}

.works-note.is-visible .works-calc-guide-img {
  opacity: 1;
  animation: worksCalcGuideBounce 2.5s ease-in-out infinite;
}

@keyframes worksCalcGuideBounce {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50%      { transform: scaleX(-1) translateY(8px); }
}

.works-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
}

.works-left {
  position: relative;
  overflow: visible;
  padding-bottom: 2rem;
}

.works-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #000;
  position: relative;
  padding-left: 2rem;
  padding-top: .6rem;
  margin-bottom: 1.5rem;
}

.works-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-left: 5px solid #ea826a;
  border-top: 5px solid #ea826a;
}

.works-text { font-size: 16px; color: #000; line-height: 1.7; }
.works-text strong { font-weight: 700; }
.works-note {
  font-style: italic;
  color: #ea826a;
  font-size: 15px;
  line-height: 1.55;
  position: relative;
  overflow: visible;
  padding-right: 1rem;
}
.works-note a { color: #ea826a; font-weight: 700; text-decoration: underline; }

.works-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.works-carousel {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 36vw, 440px);
}

.works-carousel-photo {
  position: absolute;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition:
    width 1s cubic-bezier(.4, 0, .2, 1),
    top 1s cubic-bezier(.4, 0, .2, 1),
    right 1s cubic-bezier(.4, 0, .2, 1),
    left 1s cubic-bezier(.4, 0, .2, 1),
    bottom 1s cubic-bezier(.4, 0, .2, 1),
    opacity .9s ease,
    filter .9s ease,
    transform 1s cubic-bezier(.4, 0, .2, 1),
    box-shadow .9s ease;
}

/* Главное фото — крупное, на переднем плане */
.works-carousel-photo.is-main {
  width: 78%;
  left: 4%;
  top: 6%;
  right: auto;
  bottom: auto;
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: scale(1);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

/* Неактивные — меньше и приглушённые */
.works-carousel-photo.is-inactive {
  z-index: 1;
  opacity: .42;
  filter: brightness(.78) saturate(.68);
  transform: scale(1);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.works-carousel-photo.is-inactive[data-side="top"] {
  width: 46%;
  right: 0;
  top: 0;
  left: auto;
  bottom: auto;
  z-index: 2;
  opacity: .5;
}

.works-carousel-photo.is-inactive[data-side="bottom"] {
  width: 36%;
  right: 5%;
  bottom: 4%;
  top: auto;
  left: auto;
  opacity: .36;
}

.works-btn {
  align-self: center;
  min-width: 280px;
  text-align: center;
}

/* ===== BENEFITS ===== */
.benefits-section { background: #384455; color: #fff; }

.benefit-line {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: .25rem;
}

/* ===== CALCULATOR ===== */
.calc-section-edge {
  display: block;
  width: 100%;
  height: clamp(48px, 5.5vw, 64px);
  line-height: 0;
  background: #fff;
  position: relative;
  z-index: 3;
  pointer-events: none;
  margin-top: -1px;
}

.calc-edge-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.calc-section {
  background: #384455;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-top: 5.85rem;
  padding-bottom: 6rem;
  margin-top: 0;
}

.calc-sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.calc-section-inner {
  position: relative;
  z-index: 1;
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(500px, 1.08fr) minmax(380px, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.calc-form-col {
  max-width: 610px;
}

.calc-form {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(28, 42, 58, .62);
  box-shadow: 0 24px 70px rgba(10, 20, 32, .24);
  backdrop-filter: blur(12px);
}

.calc-title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: #f4a973;
  margin-bottom: .45rem;
}

.calc-subtitle {
  color: rgba(255,255,255,.66);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.calc-fields-grid,
.calc-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
}

.calc-contact-grid {
  margin-top: 1rem;
}

.calc-field {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(196, 215, 232, .28);
  border-radius: 9px;
  padding: 0 .85rem;
  background: rgba(19, 34, 50, .58);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.calc-field::placeholder { color: rgba(190, 210, 230, .48); }
.calc-field:focus {
  outline: none;
  background: rgba(24, 42, 60, .88);
  border-color: rgba(244, 167, 115, .72);
  box-shadow: 0 0 0 3px rgba(244, 167, 115, .1);
}
.calc-field option { background: #384455; color: #fff; }

.calc-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  margin-bottom: .3rem;
}

.calc-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.calc-result-line {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

.calc-result-line strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.calc-result-num,
.calc-result-currency {
  font-weight: 700;
}

.calc-promo-row {
  margin-top: 1rem;
}

.calc-field-promo {
  text-transform: uppercase;
}

.calc-promo-hint {
  font-size: 12px;
  line-height: 1.45;
  margin-top: .4rem;
}

.calc-promo-hint.is-success { color: #86efac; }
.calc-promo-hint.is-gift { color: rgba(255, 255, 255, .62); }
.calc-promo-hint.is-error { color: #f87171; }

.calc-submit-btn {
  height: 44px;
  min-width: 150px;
  padding: 0 1.75rem;
}

.calc-lead-message {
  font-size: 14px;
  color: #fec15d;
  display: none;
  margin-top: .75rem;
}

.calc-video-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 575px;
  position: relative;
  z-index: 2;
}

.calc-video-col::before {
  content: '';
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%) rotate(-14deg);
  width: min(700px, 102%);
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0.06) 38%,
    transparent 66%
  );
  filter: blur(52px);
  z-index: 0;
  pointer-events: none;
}

.calc-video-shadow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%) rotate(-14deg);
  width: 94%;
  height: 34%;
  min-height: 88px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.1) 42%,
    transparent 70%
  );
  filter: blur(46px);
  z-index: 0;
  pointer-events: none;
}

.calc-video-wrap {
  position: relative;
  width: 100%;
  max-width: 775px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  opacity: 0;
  transform: translateY(-140px);
  transition:
    opacity 1.05s cubic-bezier(.22, 1, .36, 1),
    transform 1.15s cubic-bezier(.22, 1, .36, 1);
}

.calc-video-wrap.is-dropped {
  opacity: 1;
  transform: translateY(0);
}

.calc-video {
  position: relative;
  z-index: 1;
  width: 160%;
  max-width: 812px;
  height: auto;
  transform: translateX(2%);
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

/* Privacy checkbox */
.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  color: rgba(255,255,255,.75);
  margin-top: .8rem;
}
.privacy-label input {
  margin-top: .1rem;
  width: 15px;
  height: 15px;
  accent-color: #f2a81d;
  flex-shrink: 0;
}
.privacy-label a {
  color: #f2a81d;
  text-decoration: underline;
}
.privacy-label a:hover { color: #fec15d; }

@media (max-width: 950px) {
  .calc-section { padding-top: 2.75rem; padding-bottom: 3.5rem; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-form-col {
    order: 2;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }
  .calc-video-col {
    order: 1;
    min-height: 240px;
    max-width: 640px;
    margin: 0 auto 1rem;
    width: 100%;
  }
  .calc-video { width: 100%; max-width: 620px; transform: none; }
  .calc-title { font-size: clamp(1.75rem, 4.5vw, 2.25rem); }
  .calc-form { padding: 1.35rem; }
}

/* ===== PROMOTIONS ===== */
/* old promo card styles removed - replaced by new ones at bottom of file */

/* ===== PARTNERS / MATERIALS ===== */
.partners-section,
.materials-section {
  background: #252d3d;
  color: #fff;
}

.materials-section-edge {
  display: block;
  width: 100%;
  height: clamp(48px, 5.5vw, 64px);
  line-height: 0;
  background: #384455;
  position: relative;
  z-index: 3;
  pointer-events: none;
  margin-top: -1px;
}

.materials-edge-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.materials-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1rem;
  margin-bottom: 2.5rem;
}

.material-brand-badge {
  min-width: 140px;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  transition: background .25s, transform .25s, border-color .25s;
}
.material-brand-badge:hover {
  background: rgba(242,168,29,.18);
  border-color: rgba(242,168,29,.45);
  transform: translateY(-2px);
  color: #fff;
}

/* ===== CERTIFICATE CAROUSEL ===== */
.cert-carousel-section {
  margin-top: 1rem;
  padding-top: 1.5rem;
}

.cert-carousel-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}

.cert-carousel-hint {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
}

.cert-carousel-hint.is-paused {
  color: rgba(242,168,29,.85);
}

.cert-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.35rem, 2vw, .85rem);
  max-width: min(920px, 98vw);
  margin: 0 auto;
}

.cert-carousel {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-width: min(560px, calc(100% - 4.5rem));
  max-width: min(820px, 100%);
  outline: none;
}

.cert-carousel-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  padding: 0;
}

.cert-carousel-arrow:hover {
  background: rgba(242,168,29,.22);
  border-color: rgba(242,168,29,.55);
  transform: scale(1.06);
}

.cert-carousel-arrow:active {
  transform: scale(0.96);
}

.cert-carousel:focus-visible {
  box-shadow: 0 0 0 2px rgba(242,168,29,.65);
  border-radius: 8px;
}

.cert-carousel-track {
  position: relative;
  width: 100%;
  height: clamp(380px, 52vh, 520px);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.cert-carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(140px, 16vw, 200px);
  aspect-ratio: 3 / 4.2;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
  pointer-events: none;
  filter: brightness(0.45) saturate(0.75);
  z-index: 1;
}

.cert-carousel-slide.is-prev {
  opacity: 0.72;
  transform: translate(calc(-50% - clamp(130px, 15vw, 185px)), -50%) scale(0.82);
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
}

.cert-carousel-slide.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: none;
  pointer-events: auto;
  z-index: 3;
  width: clamp(210px, 26vw, 300px);
}

.cert-carousel-slide.is-next {
  opacity: 0.72;
  transform: translate(calc(-50% + clamp(130px, 15vw, 185px)), -50%) scale(0.82);
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
}

.cert-carousel-frame {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.cert-carousel-slide.is-prev .cert-carousel-frame,
.cert-carousel-slide.is-next .cert-carousel-frame {
  cursor: pointer;
}

.cert-carousel-slide.is-active .cert-carousel-frame {
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.cert-carousel-slide.is-prev .cert-carousel-frame,
.cert-carousel-slide.is-next .cert-carousel-frame {
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.cert-carousel-frame:hover .cert-carousel-img {
  filter: brightness(1.03);
}

.cert-carousel-slide.is-prev .cert-carousel-frame:hover,
.cert-carousel-slide.is-next .cert-carousel-frame:hover {
  filter: brightness(1.08);
}

.cert-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f4f4f4;
}

.cert-carousel-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: 2.25rem;
}

.cert-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.cert-carousel-dot.is-active {
  background: #f2a81d;
  transform: scale(1.25);
}

.cert-carousel.is-paused .cert-carousel-track {
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 2px rgba(242,168,29,.35);
}

/* Certificate fullscreen lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(8, 12, 20, .92);
  backdrop-filter: blur(6px);
}

.cert-lightbox[hidden] {
  display: none !important;
}

.cert-lightbox-inner {
  position: relative;
  width: min(920px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.cert-lightbox-viewport {
  overflow: auto;
  max-width: min(920px, 96vw);
  max-height: calc(92vh - 5.5rem);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.cert-lightbox-stage {
  transform-origin: center center;
  transition: transform .2s ease;
  display: inline-block;
  line-height: 0;
}

.cert-lightbox-img {
  display: block;
  max-width: min(920px, 96vw);
  max-height: calc(92vh - 5.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  background: #f4f4f4;
}

.cert-lightbox-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.cert-lightbox-zoom-btn {
  min-width: 40px;
  height: 36px;
  padding: 0 .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.cert-lightbox-zoom-btn:hover {
  background: rgba(242,168,29,.25);
  border-color: rgba(242,168,29,.5);
}

.cert-lightbox-zoom-level {
  min-width: 3.5rem;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

.cert-lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  text-align: center;
  margin: 0;
  max-width: 640px;
}

.cert-lightbox-close {
  position: absolute;
  top: clamp(.75rem, 2vw, 1.25rem);
  right: clamp(.75rem, 2vw, 1.25rem);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}

.cert-lightbox-close:hover {
  background: rgba(242,168,29,.35);
}

.cert-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s;
}

.cert-lightbox-arrow:hover {
  background: rgba(242,168,29,.25);
  border-color: rgba(242,168,29,.5);
}

.cert-lightbox-arrow--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.cert-lightbox-arrow--next { right: clamp(.5rem, 2vw, 1.5rem); }

@media (max-width: 640px) {
  .cert-carousel-wrap {
    gap: .25rem;
  }

  .cert-carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .cert-carousel {
    min-width: 0;
    width: 100%;
  }

  .cert-carousel-slide.is-prev {
    transform: translate(calc(-50% - clamp(88px, 24vw, 120px)), -50%) scale(0.75);
    opacity: 0.55;
  }

  .cert-carousel-slide.is-next {
    transform: translate(calc(-50% + clamp(88px, 24vw, 120px)), -50%) scale(0.75);
    opacity: 0.55;
  }

  .cert-carousel-slide.is-active {
    width: clamp(170px, 46vw, 220px);
  }

  .cert-carousel-slide.is-prev,
  .cert-carousel-slide.is-next {
    width: clamp(110px, 28vw, 150px);
  }

  .material-brand-page .cert-carousel {
    min-width: 0;
  }

  .cert-lightbox-arrow {
    width: 38px;
    height: 38px;
  }
}

.material-brand-page .cert-carousel-section {
  width: 100%;
  max-width: 100%;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 clamp(1rem, 3vw, 2rem) 3rem;
}

.material-brand-page .cert-carousel-wrap {
  max-width: min(960px, 94vw);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.material-brand-page .cert-carousel {
  min-width: min(520px, calc(100% - 4.5rem));
  max-width: 100%;
}

.material-brand-page .cert-carousel-title {
  text-align: center;
}

.material-brand-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.material-brand-hero {
  align-items: stretch;
}

.material-brand-page .catalog-detail-media .material-brand-logo-card {
  width: 100%;
  height: 100%;
  min-height: min(52vh, 480px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}

.material-brand-origin {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.material-brand-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  color: #f2a81d;
  margin-bottom: 1rem !important;
}

.material-brand-media--contain {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  min-height: min(42vh, 420px);
  padding: clamp(1rem, 3vw, 2rem);
}

.material-brand-img--contain {
  width: 100%;
  height: auto;
  max-height: min(52vh, 520px);
  object-fit: contain !important;
  object-position: center;
}

.material-brand-hero--wide {
  grid-template-columns: 1.15fr 0.85fr;
}

.material-brand-page--wide .material-brand-media--contain {
  min-height: min(48vh, 560px);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: #f4f5f7;
}

.material-brand-page--wide .material-brand-img--contain {
  max-height: min(70vh, 720px);
}

.material-brand-specs-note {
  margin: 0 0 1.5rem;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .material-brand-hero--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .material-brand-page .catalog-detail-media .material-brand-logo-card {
    min-height: min(40vh, 320px);
  }

  .material-brand-media--contain {
    min-height: 220px;
    padding: 1rem;
  }

  .material-brand-img--contain,
  .material-brand-page--wide .material-brand-img--contain {
    max-height: none;
  }

  .material-brand-page--wide .material-brand-media--contain {
    min-height: auto;
  }
}

  .material-brand-page .cert-carousel-section {
    padding: 0 1rem 2rem;
  }
}

/* === PROMO (Акции) — Tilda-style photo cards === */
.promo-section {
  background: #fff;
  overflow: visible;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 4rem;
  overflow: visible;
}
@media (max-width: 768px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .promo-grid { grid-template-columns: 1fr; }
}

.promo-card {
  position: relative;
  overflow: visible;
  border-radius: 8px;
  aspect-ratio: 1.25 / 1;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.promo-card-surface {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
}

.promo-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.promo-card:hover .promo-card-bg { transform: scale(1.05); }

.promo-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}

.promo-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.promo-card-bg,
.promo-card-overlay {
  pointer-events: none;
}

.promo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}

.promo-card-heading {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: .02em;
  max-width: 70%;
}

.promo-card-arrow {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .2s;
}
.promo-card:hover .promo-card-arrow { background: rgba(255,255,255,.2); }

.promo-card-gift {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 90px;
  height: 90px;
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(-50% - 580px)) rotate(-10deg) scale(0.55);
}

.promo-section.is-visible .promo-card-gift {
  animation: promoGiftFall 2.4s cubic-bezier(.33, .02, .22, 1) forwards;
}

.promo-section.is-visible .promo-card:nth-child(1) .promo-card-gift { animation-delay: 0s; }
.promo-section.is-visible .promo-card:nth-child(2) .promo-card-gift { animation-delay: 2.1s; }
.promo-section.is-visible .promo-card:nth-child(3) .promo-card-gift { animation-delay: 4.2s; }
.promo-section.is-visible .promo-card:nth-child(4) .promo-card-gift { animation-delay: 6.3s; }
.promo-section.is-visible .promo-card:nth-child(5) .promo-card-gift { animation-delay: 8.4s; }
.promo-section.is-visible .promo-card:nth-child(6) .promo-card-gift { animation-delay: 10.5s; }
.promo-section.is-visible .promo-card:nth-child(7) .promo-card-gift { animation-delay: 12.6s; }

@keyframes promoGiftFall {
  0%   { opacity: 0;   transform: translateY(calc(-50% - 580px)) rotate(-10deg) scale(0.55); }
  6%   { opacity: 1; }
  78%  { opacity: 1;   transform: translateY(calc(-50% + 10%)) rotate(7deg) scale(1.05); }
  90%  { opacity: 1;   transform: translateY(calc(-50% - 6%)) rotate(-3deg) scale(0.98); }
  100% { opacity: 1;   transform: translateY(-50%) rotate(0deg) scale(1); }
}

.promo-card-text {
  font-size: clamp(11px, 1.2vw, 13px);
  color: rgba(255,255,255,.9);
  line-height: 1.45;
}

.partner-badge {
  min-width: 140px;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .25s, transform .25s;
}
.partner-badge:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-2px);
}

/* ===== CONTACTS ===== */
.contacts-section { background: #e4e7e8; }

.contacts-map-section {
  background: #111;
}

.contacts-map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(420px, 58vh, 620px);
}

.contacts-map-panel {
  position: relative;
  min-height: clamp(320px, 50vh, 620px);
  background: #dde0e1;
  overflow: hidden;
}

.contacts-map-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 50vh, 620px);
}

.contacts-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 50vh, 620px);
  border: 0;
  pointer-events: none;
}

.contacts-map-shell.is-active .contacts-map-frame {
  pointer-events: auto;
}

.contacts-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contacts-map-shell.is-active .contacts-map-overlay {
  display: none;
}

.contacts-map-hint {
  pointer-events: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.contacts-map-hint--mobile { display: none; }

@media (hover: none), (pointer: coarse) {
  .contacts-map-hint--desktop { display: none; }
  .contacts-map-hint--mobile { display: inline-block; }
}

.contacts-info-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: #111;
  color: #fff;
}

.contacts-info-inner {
  width: min(420px, 100%);
}

.contacts-section-title {
  margin: 0 0 .35rem;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.contacts-section-city {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  font-size: 15px;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contacts-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 50vh, 620px);
  color: rgba(56,68,85,.75);
  background: #dde0e1;
}

.contacts-info-block + .contacts-info-block {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.contacts-info-label {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 .65rem;
  color: #fff;
}

.contacts-info-value {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: #fff;
}

.contacts-info-address {
  color: #f2a81d;
  font-weight: 600;
}

.contacts-info-address.contacts-info-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts-info-link {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}

.contacts-info-link:hover {
  color: #f2a81d;
}

.contacts-region-offices {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.contacts-region-link {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}

.contacts-region-link:hover {
  color: #f2a81d;
}

/* === PARTNERS OFFER (Смоленск) — продолжение блока акций === */
.partners-offer-section {
  background: linear-gradient(180deg, #fff 0%, #f3f4f5 42%, #e8ebed 100%);
  padding: clamp(2.5rem, 5vw, 4.5rem) 1rem clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid rgba(56,68,85,.08);
}

.partners-offer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-offer-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.partners-offer-eyebrow {
  margin: 0 0 .75rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f2a81d;
}

.partners-offer-title {
  margin: 0 0 1rem;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #111;
  line-height: 1.15;
}

.partners-offer-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(56,68,85,.78);
}

.partners-offer-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #111;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.partners-offer-sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.partners-offer-banner-badge,
.partners-offer-banner-body {
  position: relative;
  z-index: 1;
}

.partners-offer-banner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1rem;
  background: linear-gradient(145deg, #f2a81d 0%, #e09410 100%);
  border-radius: 8px;
  color: #111;
  text-align: center;
}

.partners-offer-banner-num {
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}

.partners-offer-banner-label {
  margin-top: .35rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.partners-offer-banner-body h3 {
  margin: 0 0 .65rem;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}

.partners-offer-banner-body p {
  margin: 0 0 1.25rem;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  max-width: 36rem;
}

.partners-offer-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.partners-offer-banner-actions .btn-outline-dark {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.partners-offer-banner-actions .btn-outline-dark:hover {
  border-color: #f2a81d;
  color: #f2a81d;
  background: transparent;
}

.partners-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 10px;
  margin-bottom: 2rem;
}

.partners-gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #dde0e1;
}

.partners-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.partners-gallery-item:hover img {
  transform: scale(1.04);
}

.partners-gallery-item--1 {
  grid-row: 1 / span 2;
}

.partners-gallery-item--4 {
  grid-column: 2;
}

.partners-gallery-item--5 {
  grid-column: 3;
}

.partners-home-conditions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.partners-home-condition {
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(56,68,85,.1);
  border-radius: 8px;
}

.partners-home-condition-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: #f2a81d;
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.partners-home-condition h3 {
  margin: 0 0 .45rem;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.partners-home-condition p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(56,68,85,.75);
}

/* Partners detail page */
.partners-page-hero .page-hero-content {
  max-width: 720px;
}

.partners-page-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .4rem .85rem;
  border-radius: 4px;
  background: #f2a81d;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.partners-page-intro,
.partners-page-gallery-section {
  background: #fff;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.partners-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-page-lead {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(56,68,85,.78);
}

.partners-contacts {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.75rem;
  background: #f7f8fa;
  border: 1px solid rgba(56, 68, 85, 0.1);
  border-radius: 12px;
  text-align: left;
}

.partners-contacts-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #384455;
}

.partners-contacts-note {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  color: rgba(56, 68, 85, 0.65);
}

.partners-contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.partners-contacts-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #384455;
}

.partners-contacts-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(56, 68, 85, 0.5);
}

.partners-contacts-link {
  color: #384455;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 168, 29, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.partners-contacts-link:hover {
  color: #c47e0a;
  border-bottom-color: #f2a81d;
}

@media (max-width: 560px) {
  .partners-contacts {
    padding: 1.25rem;
  }

  .partners-contacts-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.partners-page-offer {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem;
  background: #384455;
  color: #fff;
  border-radius: 10px;
}

.partners-page-offer-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 8px;
  background: #f2a81d;
  color: #111;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.partners-page-offer h3 {
  margin: 0 0 .65rem;
  font-size: 22px;
  font-weight: 700;
}

.partners-page-offer p {
  margin: 0 0 1.25rem;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
}

.partners-gallery--page {
  grid-template-rows: 220px 220px;
}

.partners-page-conditions {
  background: #111;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.partners-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.partners-condition-card {
  padding: 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}

.partners-condition-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: .85rem;
  border-radius: 50%;
  background: #f2a81d;
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.partners-condition-card h3 {
  margin: 0 0 .5rem;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.partners-condition-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
}

.partners-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .partners-offer-banner,
  .partners-page-offer {
    grid-template-columns: 1fr;
  }

  .partners-gallery,
  .partners-gallery--page {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .partners-gallery-item--1 {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .partners-gallery-item--2,
  .partners-gallery-item--3,
  .partners-gallery-item--4,
  .partners-gallery-item--5 {
    min-height: 160px;
  }

  .partners-home-conditions,
  .partners-conditions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .partners-gallery,
  .partners-gallery--page {
    grid-template-columns: 1fr;
  }

  .partners-gallery-item--1,
  .partners-gallery-item--2,
  .partners-gallery-item--3,
  .partners-gallery-item--4,
  .partners-gallery-item--5 {
    grid-column: auto;
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  .contacts-map-layout {
    grid-template-columns: 1fr;
  }

  .contacts-map-panel,
  .contacts-map-shell,
  .contacts-map-frame {
    min-height: 320px;
  }

  .contacts-info-panel {
    padding: 2rem 1.25rem 2.5rem;
  }
}

.contact-card {
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.contact-card-active {
  box-shadow: 0 0 0 2px #f2a81d;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,.7);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  opacity: .9;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color .25s;
}
.footer-link:hover { color: #f2a81d; }

/* ===== HIGHLIGHT ===== */
.highlight-accent {
  color: #f2a81d;
  font-weight: 700;
}

/* ===== PAGE HERO (catalog/action sub-pages) ===== */
.page-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #384455 center/cover no-repeat;
  padding: 6rem 1rem 4rem;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.6));
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: #fff;
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp .8s ease both;
}
.page-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  animation: fadeInUp .8s ease .15s both;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  animation: fadeInUp .8s ease .3s both;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.page-breadcrumb a { color: rgba(255,255,255,.75); transition: color .2s; }
.page-breadcrumb a:hover { color: #f2a81d; }

/* ===== FEATURE GRID ===== */
.feature-card {
  background: #fff;
  padding: 2rem 1.75rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ea826a, #fec15d);
  border-radius: 12px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ===== PROMO / ACTION PAGE ===== */
.promo-code-box {
  border: 2px dashed #f2a81d;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: rgba(242,168,29,.05);
}
.promo-code-value {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: #f2a81d;
  letter-spacing: .05em;
  line-height: 1;
}
.promo-condition-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(56,68,85,.1);
}
.promo-condition-item:last-child { border-bottom: none; }
.promo-condition-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea826a, #fec15d);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== STANDALONE PROMO PAGE ===== */
.promo-standalone-page {
  min-height: 100vh;
  background: #eef1f3;
  color: #384455;
  display: flex;
  flex-direction: column;
}

.promo-standalone-breadcrumb {
  padding: 1.25rem 2rem;
  font-size: 13px;
  color: rgba(56,68,85,.45);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.promo-standalone-breadcrumb a {
  color: rgba(56,68,85,.6);
  text-decoration: none;
  transition: color .2s;
}

.promo-standalone-breadcrumb a:hover { color: #f2a81d; }

.promo-standalone-breadcrumb-current {
  color: #384455;
  font-weight: 500;
}

.promo-standalone-main {
  flex: 1;
  padding: 1rem 1rem 3rem;
}

@media (max-width: 768px) {
  .promo-standalone-breadcrumb { padding: 1rem 1.25rem; }
}

.promo-standalone-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(56,68,85,.08);
}

.promo-standalone-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(242,168,29,.12);
  color: #c88900;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.promo-standalone-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.promo-standalone-lead {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(56,68,85,.82);
  margin-bottom: 2rem;
}

.promo-code-copy {
  width: 100%;
  margin: 0 0 2.5rem;
  border: 2px dashed #f2a81d;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(242,168,29,.05);
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  font: inherit;
  color: inherit;
}

.promo-code-copy:hover {
  background: rgba(242,168,29,.1);
  border-color: #ea826a;
  transform: translateY(-1px);
}

.promo-code-copy:focus-visible {
  outline: 2px solid #f2a81d;
  outline-offset: 3px;
}

.promo-code-copy.is-copied {
  background: rgba(76,175,80,.08);
  border-color: #4caf50;
}

.promo-code-label {
  font-size: 14px;
  color: rgba(56,68,85,.65);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.promo-code-text {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #f2a81d;
  letter-spacing: .08em;
  line-height: 1.1;
  word-break: break-word;
}

.promo-code-hint {
  margin-top: .85rem;
  font-size: 14px;
  color: rgba(56,68,85,.55);
}

.promo-code-desc {
  margin-top: .75rem;
  font-size: 15px;
  color: rgba(56,68,85,.75);
  line-height: 1.6;
}

.promo-standalone-section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.promo-standalone-conditions {
  margin-bottom: 2rem;
}

.promo-condition-title {
  font-weight: 600;
  color: #384455;
  margin-bottom: .25rem;
}

.promo-condition-text {
  font-size: 14px;
  color: rgba(56,68,85,.75);
  line-height: 1.6;
}

.promo-standalone-note {
  background: #eef1f3;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.promo-standalone-note h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: .75rem;
}

.promo-standalone-note p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(56,68,85,.82);
}

.promo-standalone-note p + p { margin-top: .75rem; }

.promo-standalone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 1.75rem;
  border-radius: 30px;
  border: 1.5px solid rgba(56,68,85,.25);
  background: transparent;
  color: #384455;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .25s;
}

.btn-outline-dark:hover {
  border-color: #384455;
  background: rgba(56,68,85,.04);
  transform: translateY(-2px);
}

.promo-standalone-footnote {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(56,68,85,.6);
}

.promo-standalone-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.25rem 1.5rem 1.75rem;
  font-size: 13px;
  color: rgba(56,68,85,.55);
}

.promo-standalone-footer a {
  color: #384455;
  font-weight: 600;
  text-decoration: none;
}

.promo-standalone-footer a:hover { color: #f2a81d; }

.promo-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(16px);
  z-index: 9999;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  background: #384455;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.promo-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .promo-standalone-actions {
    flex-direction: column;
  }

  .promo-standalone-actions .btn-primary,
  .promo-standalone-actions .btn-outline-dark {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: clamp(11px, 3.5vw, 15px);
    padding-left: clamp(0.65rem, 3vw, 1.5rem);
    padding-right: clamp(0.65rem, 3vw, 1.5rem);
    letter-spacing: 0.01em;
  }
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid rgba(56,68,85,.12);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: #384455;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
}
.faq-question:hover { color: #f2a81d; }
.faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e4e7e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform .3s, background .2s;
  flex-shrink: 0;
}
.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
  background: #f2a81d;
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(56,68,85,.85);
}

/* ===== PRICE TABLE ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th {
  background: #384455;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1rem 1.25rem;
  text-align: left;
}
.price-table td {
  padding: .9rem 1.25rem;
  font-size: 15px;
  border-bottom: 1px solid #e4e7e8;
  color: #384455;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: rgba(228,231,232,.35); }
.price-accent { color: #f2a81d; font-weight: 700; }

/* ===== WORKS GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: all .3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,.35); opacity: 1; }

/* ===== WORKS PAGE ===== */
.works-stats {
  background: #384455;
  padding: 2.75rem 1rem;
  border-top: 3px solid #f2a81d;
}

.works-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
  text-align: center;
}

.works-stat-value {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #f2a81d;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.works-stat-label {
  margin: .55rem 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.35;
}

.works-gallery-section {
  background: #fff;
  padding: 4.5rem 1rem 5rem;
}

.works-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin: 0 0 1rem;
}

.gallery-filter-btn {
  padding: .5rem 1.35rem;
  border: 1px solid #e4e7e8;
  background: #fff;
  color: #384455;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.gallery-filter-btn:hover {
  border-color: #384455;
  color: #384455;
}

.gallery-filter-btn.is-active {
  background: #384455;
  border-color: #384455;
  color: #fff;
  box-shadow: 0 6px 18px rgba(56, 68, 85, .22);
}

.works-gallery-count {
  text-align: center;
  font-size: 13px;
  color: rgba(56, 68, 85, .55);
  margin: 0 0 1.75rem;
  min-height: 1.2em;
}

.works-gallery-section .gallery-item[hidden] {
  display: none !important;
}

.works-cta {
  background: #384455;
  padding: 4.5rem 1rem;
  text-align: center;
}

.works-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.works-cta-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.works-cta-text {
  margin: 0 0 2rem;
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .works-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }
}

@media (max-width: 420px) {
  .works-stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-filter-btn {
    font-size: 13px;
    padding: .45rem 1rem;
  }
}

/* ===== FAKTURY PAGE — dark catalog-detail layout with tabs ===== */
.faktury-detail-page {
  padding-bottom: 4rem;
}

.faktury-detail-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.faktury-detail-page .catalog-detail-breadcrumb {
  padding-bottom: 0;
}

.catalog-detail-breadcrumb-current {
  color: rgba(255,255,255,.8);
}

.faktury-detail-page .faktury-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.75rem 0 2.25rem;
  padding: 0 2rem;
}

.faktury-detail-page .faktury-tabs--mobile {
  display: none;
}

.faktury-detail-page .faktury-tab {
  padding: .45rem 1.5rem;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.faktury-detail-page .faktury-tab.is-active {
  border-color: #ea826a;
  color: #fff;
  background: rgba(234,130,106,.15);
}

.faktury-detail-page .faktury-panel { display: none; }
.faktury-detail-page .faktury-panel.is-active { display: block; }

.faktury-detail-page .catalog-detail-hero.faktury-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "img top"
    "img bottom";
  padding-top: 0;
  padding-bottom: 1rem;
  gap: 1.25rem 3rem;
  align-items: start;
}

.faktury-img-col {
  grid-area: img;
  min-width: 0;
  align-self: center;
}

.faktury-content-top,
.faktury-content-bottom {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.faktury-content-top { grid-area: top; }
.faktury-content-bottom { grid-area: bottom; }

/* Mobile tabs live in hero but are hidden on desktop */
.faktury-detail-page .faktury-hero > .faktury-tabs--mobile {
  display: none;
}

.faktury-detail-page .catalog-detail-badge {
  align-self: flex-start;
  width: auto;
}

.faktury-detail-page .catalog-detail-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.faktury-detail-page .catalog-detail-title {
  margin-bottom: 1rem;
}

.faktury-detail-page .catalog-detail-desc {
  margin-bottom: 1.25rem;
}

.faktury-detail-page .catalog-detail-features {
  margin-bottom: 1.75rem;
}

.faktury-btn-primary {
  height: 46px;
  font-size: 14px;
  padding: 0 1.75rem;
  letter-spacing: .05em;
}

@media (max-width: 768px) {
  .faktury-detail-body {
    padding: 0 1.25rem 2rem;
  }

  .faktury-detail-page .faktury-tabs--desktop {
    display: none !important;
  }

  .faktury-detail-page .catalog-detail-hero.faktury-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  /* 1. вкладки → 2. картинка → 3. заголовок → 4. описание */
  .faktury-detail-page .faktury-hero > .faktury-tabs--mobile {
    display: flex !important;
    order: 1;
    margin: 0 0 0.85rem;
    padding: 0;
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .faktury-detail-page .faktury-tabs--mobile .faktury-tab {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
  }

  .faktury-img-col {
    order: 2;
    margin-bottom: 1rem;
  }

  .faktury-content-top {
    order: 3;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .faktury-detail-page .catalog-detail-badge {
    align-self: center !important;
    width: auto !important;
    display: inline-flex !important;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .faktury-detail-page .catalog-detail-title {
    width: 100%;
    text-align: center !important;
    font-size: clamp(1.05rem, 5.2vw, 1.35rem);
    line-height: 1.2;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
  }

  .faktury-detail-page .faktury-title-br {
    display: none;
  }

  .faktury-content-bottom {
    order: 4;
    align-items: stretch;
  }

  .faktury-detail-page .catalog-detail-desc {
    text-align: center;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .faktury-detail-page .catalog-detail-features {
    margin-bottom: 1.5rem;
  }

  .faktury-detail-page .catalog-detail-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .faktury-detail-page .catalog-detail-img {
    max-height: min(72vw, 360px);
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .faktury-detail-page .catalog-detail-btns .btn-primary,
  .faktury-detail-page .catalog-detail-btns .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SUBPAGE SHELL (второстепенные страницы без главного меню) ===== */
.subpage {
  min-height: 100vh;
  background: #1d2333;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.subpage--light {
  background: #f3f4f5;
  color: #384455;
}

.subpage--light .catalog-detail-breadcrumb {
  color: rgba(56, 68, 85, .4);
}

.subpage--light .catalog-detail-breadcrumb a {
  color: rgba(56, 68, 85, .55);
}

.subpage--light .catalog-detail-breadcrumb a:hover {
  color: #f2a81d;
}

.subpage--light .catalog-detail-breadcrumb-current {
  color: rgba(56, 68, 85, .85);
}

.subpage-hero {
  padding: 0 2rem 2.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.subpage-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.subpage-hero-media {
  border-radius: 8px;
  overflow: hidden;
  background: #2a3142;
  min-height: 280px;
}

.subpage-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* Full-bleed hero: image across header, text on top */
.subpage-hero-cover {
  position: relative;
  min-height: clamp(360px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: 0 0 0;
}

.subpage-hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subpage-hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, .82) 0%,
    rgba(17, 17, 17, .55) 48%,
    rgba(17, 17, 17, .28) 100%
  );
  pointer-events: none;
}

.subpage-hero-cover-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 2rem;
}

.subpage-hero-cover .subpage-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.subpage-hero-cover .subpage-lead {
  max-width: 32rem;
  color: rgba(255, 255, 255, .85);
}

.subpage-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .8rem;
  border-radius: 4px;
  background: #f2a81d;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subpage-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.subpage--light .subpage-title {
  color: #111;
}

.subpage-lead {
  margin: 0 0 1.5rem;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .7);
  max-width: 36rem;
}

.subpage--light .subpage-lead {
  color: rgba(56, 68, 85, .75);
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.subpage-main {
  flex: 1;
  background: #fff;
  color: #384455;
}

.subpage-main--flush {
  background: transparent;
  color: inherit;
}

.subpage-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.subpage--light .subpage-footer {
  border-top-color: rgba(56, 68, 85, .1);
  color: rgba(56, 68, 85, .45);
  background: #fff;
}

.subpage-footer a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
}

.subpage--light .subpage-footer a {
  color: rgba(56, 68, 85, .65);
}

.subpage-footer a:hover {
  color: #f2a81d;
}

@media (max-width: 768px) {
  .subpage-hero,
  .subpage-hero-split {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .subpage-hero-split {
    grid-template-columns: 1fr;
  }

  .subpage-hero-cover {
    min-height: clamp(320px, 58vh, 480px);
  }

  .subpage-hero-cover-content {
    padding: 2rem 1.25rem;
  }

  .subpage-hero-cover-overlay {
    background: linear-gradient(
      180deg,
      rgba(17, 17, 17, .35) 0%,
      rgba(17, 17, 17, .78) 100%
    );
  }

  .subpage-footer {
    padding: 1rem 1.25rem;
  }
}

/* ===== CATALOG DETAIL PAGE — dark navy layout ===== */
.catalog-detail-page {
  background: #1d2333;
  min-height: 100vh;
  color: #fff;
}

/* Single catalog pages: fill viewport, distribute hero vertically */
.catalog-detail-page:not(.faktury-detail-page) {
  display: flex;
  flex-direction: column;
}

.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-breadcrumb {
  flex-shrink: 0;
}

.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-hero {
  flex: 1;
  align-items: stretch;
  padding: clamp(1rem, 2.5vh, 2rem) 2rem clamp(2rem, 4vh, 3rem);
  gap: clamp(2rem, 4vw, 4rem);
}

.catalog-detail-media {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.catalog-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-content {
  justify-content: flex-start;
}

.catalog-detail-content .catalog-detail-badge {
  align-self: flex-start;
  width: auto;
}

.catalog-detail-content .catalog-detail-btns {
  margin-top: auto;
  padding-top: clamp(1.25rem, 3vh, 2rem);
}

.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-content .catalog-detail-btns {
  margin-top: 0;
  padding-top: 0;
}

.catalog-detail-btn-primary,
.faktury-btn-primary {
  height: 46px;
  font-size: 14px;
  padding: 0 1.75rem;
  letter-spacing: .05em;
}

.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-img {
  width: 100%;
  height: 100%;
  min-height: min(52vh, 480px);
  max-height: min(78vh, 720px);
  object-fit: cover;
}

.catalog-detail-breadcrumb {
  padding: 1.25rem 2rem;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.catalog-detail-breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.catalog-detail-breadcrumb a:hover { color: #f2a81d; }

.catalog-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}
@media (max-width: 768px) {
  .catalog-detail-hero { grid-template-columns: 1fr; gap: 2rem; }
  .catalog-detail-breadcrumb { padding: 1rem 1.25rem; }
  .catalog-detail-page:not(.faktury-detail-page) .catalog-detail-hero {
    flex: none;
    padding: 1rem 1.25rem 2.5rem;
  }
  .catalog-detail-page:not(.faktury-detail-page) .catalog-detail-img {
    min-height: 280px;
    max-height: 420px;
    height: auto;
  }
  .catalog-detail-page:not(.faktury-detail-page) .catalog-detail-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-detail-page:not(.faktury-detail-page) .catalog-detail-btns .catalog-detail-btn-primary,
  .catalog-detail-page:not(.faktury-detail-page) .catalog-detail-btns .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
}

.catalog-detail-img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

.catalog-detail-badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .8rem;
  border-radius: 4px;
  background: #ea826a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.catalog-detail-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}

.catalog-detail-desc {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.catalog-detail-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.catalog-detail-features li {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.catalog-detail-features li::before {
  content: '✓';
  color: #ea826a;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

.catalog-detail-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-btns {
  width: 100%;
  align-items: center;
}

.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-btns .catalog-detail-btn-primary,
.catalog-detail-page:not(.faktury-detail-page) .catalog-detail-btns .btn-outline-white {
  height: 46px;
  box-sizing: border-box;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-detail-page:not(.faktury-detail-page) .catalog-detail-btns {
    flex-direction: row;
    align-items: center;
  }
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 2rem;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,.4);
  background: transparent;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  animation: btnOutlinePulse 2.5s ease-in-out infinite;
  transition: border-color .2s, background .2s, transform .25s;
  text-decoration: none;
  letter-spacing: .04em;
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}
.btn-outline-white:active { transform: translateY(0) scale(.99); }

.catalog-detail-specs {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 2.5rem 2rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-detail-specs-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.5rem;
}

.catalog-detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}
@media (max-width: 640px) {
  .catalog-detail-specs-grid { grid-template-columns: repeat(2, 1fr); }
}

.catalog-detail-spec-item {}
.catalog-detail-spec-label {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}
.catalog-detail-spec-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

/* ===== PRICE STANDALONE PAGE ===== */
html:has(.price-standalone-page),
body:has(.price-standalone-page) {
  background: #1d2333;
}

.price-standalone-page {
  position: relative;
  min-height: 100vh;
  background: #1d2333;
  color: #fff;
  overflow-x: hidden;
}

#calculator,
#contacts,
#catalog,
#reviews,
#promotions,
#partners {
  scroll-margin-top: 1rem;
}

@media (max-width: 768px) {
  #calculator,
  #contacts,
  #catalog,
  #reviews,
  #promotions,
  #partners {
    scroll-margin-top: .5rem;
  }
}

#price-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
  z-index: 0;
  opacity: .55;
}

.price-standalone-page > :not(#price-particles) {
  position: relative;
  z-index: 1;
}

.price-standalone-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem) 2rem clamp(2rem, 4vh, 3rem);
  text-align: center;
}

.price-standalone-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: .02em;
}

.price-standalone-lead {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}

.price-standalone-lead strong { color: #fec15d; }

.price-standalone-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.price-standalone-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0 1rem;
  background: linear-gradient(180deg, rgba(29,35,51,.98) 70%, rgba(29,35,51,0));
  backdrop-filter: blur(8px);
}

.price-standalone-tabs {
  display: flex;
  gap: .5rem;
  max-width: 520px;
  margin: 0 auto;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.price-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s, background .25s, box-shadow .25s, transform .25s;
}

.price-tab:hover { color: #fff; }

.price-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(234,130,106,.95), rgba(254,193,93,.95));
  box-shadow: 0 8px 24px rgba(242,168,29,.28);
}

.price-standalone-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.price-panel {
  display: none;
  animation: pricePanelIn .45s ease both;
}

.price-panel.is-active { display: block; }

@keyframes pricePanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.price-panel-note {
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.price-canvas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.price-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.25rem;
}

.price-group-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.1rem;
  backdrop-filter: blur(6px);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.price-group-card:hover {
  border-color: rgba(242,168,29,.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  transform: translateY(-3px);
}

.price-group-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.price-group-badge {
  display: inline-flex;
  padding: .25rem .55rem;
  border-radius: 4px;
  background: #ea826a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.price-group-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.price-group-title--works {
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.price-rows { display: flex; flex-direction: column; gap: .55rem; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .95rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .25s;
}

.price-row:hover {
  background: rgba(242,168,29,.08);
  border-color: rgba(242,168,29,.22);
  transform: translateX(4px);
}

.price-row--compact { align-items: flex-start; }

.price-row-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.price-row-meta {
  margin: .25rem 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.48);
}

.price-row-amount {
  text-align: right;
  flex-shrink: 0;
}

.price-amount {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fec15d, #f2a81d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: priceShimmer 4s ease-in-out infinite;
}

@keyframes priceShimmer {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}

.price-unit {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: .15rem;
  white-space: nowrap;
}

.price-included {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56,68,85,.65), rgba(29,35,51,.85));
  border: 1px solid rgba(255,255,255,.08);
}

.price-included-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-align: center;
}

.price-included-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-included-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
}

.price-included-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea826a, #fec15d);
  box-shadow: 0 0 10px rgba(242,168,29,.45);
}

.price-standalone-cta {
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 20px;
  text-align: center;
  background: rgba(242,168,29,.08);
  border: 1px dashed rgba(242,168,29,.35);
}

.price-standalone-cta h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: .75rem;
}

.price-standalone-cta p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
}

.price-standalone-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.price-standalone-cta-actions a {
  position: relative;
  z-index: 2;
  min-height: 48px;
  touch-action: manipulation;
}

.price-standalone-page .promo-standalone-footer {
  color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  #price-particles { display: none; }

  .price-standalone-hero,
  .price-standalone-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .price-standalone-cta-actions { flex-direction: column; align-items: stretch; }
  .price-standalone-cta-actions .btn-primary,
  .price-standalone-cta-actions .btn-outline-white { width: 100%; justify-content: center; }
  .price-standalone-hero-actions { flex-direction: column; align-items: stretch; }
  .price-row { flex-direction: column; align-items: flex-start; }
  .price-row-amount { text-align: left; }
  .price-tab { font-size: 12px; padding: .65rem .5rem; }
  .catalog-detail-breadcrumb { padding: 1rem 1.25rem; flex-wrap: wrap; }
  .catalog-detail-breadcrumb a { padding: .35rem 0; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .price-panel { animation: none; }
  .price-amount { animation: none; }
  .price-row:hover { transform: none; }
  .price-group-card:hover { transform: none; }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .site-header-inner {
    padding-top: max(.85rem, env(safe-area-inset-top));
    padding-bottom: .5rem;
  }

  .header-top {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: .35rem .5rem;
    min-height: 0;
  }

  .header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0 3.25rem;
    width: 100%;
  }

  .header-logo {
    order: 1;
    position: static;
    transform: none;
    max-width: 100%;
    text-align: center;
    z-index: 1;
  }

  .header-logo-img {
    height: 52px;
    max-width: min(180px, 52vw);
    margin: 0 auto;
  }

  .header-social {
    order: 2;
    justify-content: center;
    justify-self: center;
    gap: .45rem;
    z-index: 2;
  }

  .header-burger {
    position: absolute;
    top: 0.15rem;
    right: 0;
    z-index: 3;
  }

  .social-img { width: 38px; }

  .hero-section {
    padding-top: 0;
    min-height: 92vh;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem) !important;
    line-height: 1.25 !important;
  }

  .hero-content .btn-primary,
  .hero-content .btn-outline-white,
  .hero-actions .btn-primary,
  .hero-actions .btn-outline-white {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-hero {
    padding-top: 7rem;
    min-height: 55vh;
  }

  .header-nav { display: none !important; }

  .about-box { padding: 2rem 1.25rem; }
  .about-section { min-height: auto; padding: 3.5rem 1rem; }

  .stats-left { padding-right: 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats-phone-wrap { margin-top: 1.5rem; }
  .stats-phone-frame { max-width: 320px; margin: 0 auto; }

  .works-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .works-title { padding-left: 1.35rem; font-size: clamp(1.65rem, 7vw, 2.25rem); }
  .works-calc-arrow-anchor { display: none; }

  .calc-section { padding-top: 1.75rem; padding-bottom: 2.75rem; }
  .calc-form-col { max-width: none; order: 2; }
  .calc-fields-grid,
  .calc-contact-grid { grid-template-columns: 1fr; }
  .calc-form { padding: 1.35rem 1.15rem; border-radius: 18px; }
  .calc-title {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem);
    margin-bottom: 0.55rem;
  }
  .calc-subtitle {
    font-size: 15px;
    margin-bottom: 1.1rem;
  }
  .calc-field {
    height: 48px;
    font-size: 15px;
  }
  .calc-label { font-size: 13px; margin-bottom: 0.35rem; }
  .calc-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .calc-submit-btn { min-width: 0; width: 100%; height: 52px; font-size: 16px; }
  .calc-video-col {
    order: 1;
    min-height: 180px;
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  .calc-video-col::before {
    height: 110px;
    filter: blur(36px);
  }
  .calc-video-shadow {
    min-height: 60px;
    filter: blur(28px);
  }
  .calc-video {
    width: 100%;
    max-width: 100%;
    transform: none;
  }
  .calc-section-edge {
    height: clamp(36px, 8vw, 48px);
  }

  .works-carousel { min-height: 260px; }
  .works-carousel-photo.is-main { width: 90%; left: 0; top: 8%; }
  .works-carousel-photo.is-inactive[data-side="top"] { width: 44%; }
  .works-carousel-photo.is-inactive[data-side="bottom"] { width: 38%; right: 0; }

  .catalog-card { padding: 1rem .75rem 0; }
  .promo-grid { padding-top: 2.5rem; gap: 10px; }

  .floating-call {
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 3.35rem;
    height: 3.35rem;
  }

  .site-footer .grid { gap: 2rem; }
  .btn-primary,
  .btn-outline-white,
  .btn-outline-dark {
    min-height: 48px;
    touch-action: manipulation;
  }

  .subpage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .subpage-actions .btn-primary,
  .subpage-actions .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .subpage-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .subpage-lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .partners-page-wrap {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .partners-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .partners-page-actions .btn-primary,
  .partners-page-actions .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .partners-conditions-grid {
    grid-template-columns: 1fr;
  }

  .material-brand-page .catalog-detail-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .material-brand-page .catalog-detail-btns .btn-primary,
  .material-brand-page .catalog-detail-btns .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .contacts-section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .materials-brands {
    gap: 0.65rem;
    justify-content: center;
  }

  .material-brand-badge {
    min-height: 44px;
    padding: 0.65rem 1rem;
  }
}

/* ===== TABLET ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-top { min-height: 76px; }
  .header-logo-img { height: 72px; }
  .header-nav {
    gap: .85rem 1.15rem;
    margin-top: 1rem;
  }
  .header-nav .nav-link {
    font-size: 12px;
    letter-spacing: .08em;
  }
  .header-contacts .header-phone,
  .header-contacts .header-phone-alt { font-size: 14px; }
  .header-contacts .header-email { font-size: 13px; }

  .stats-layout { gap: 1.5rem; }
  .works-layout { gap: 2rem; }
  .catalog-card { padding: 1rem; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }

  .material-brand-hero--wide {
    grid-template-columns: 1fr;
  }

  .partners-conditions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .subpage-hero-cover-content {
    max-width: 92%;
  }
}
