@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;600;700;800;900&display=swap');

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

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #0a1014 0%, #0f1419 60%, #0a1014 100%) fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 60px;
  background: rgba(15, 20, 25, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.7;
}

.site-logo .bold {
  font-weight: 900;
}

.site-logo .thin {
  font-weight: 200;
  letter-spacing: 2px;
}

.site-logo--scroll {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.hero-hidden .site-logo--scroll {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

.header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

.header-icon:hover {
  background: rgba(255, 255, 255, 0.10);
}

.header-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #e4e4e7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icon svg.max-icon {
  fill: #e4e4e7;
  stroke: none;
}

.header-icon.is-messenger {
  background: #fff;
  border-color: #fff;
}

.header-icon.is-messenger:hover {
  background: #fff;
}

.header-icon.is-messenger svg {
  width: 24px;
  height: 24px;
  fill: #0a0a0a;
  stroke: none;
  transition: fill 0.2s;
}

.header-icon.is-messenger svg.max-icon {
  fill: #0a0a0a;
  stroke: none;
}

.header-icon.is-messenger[aria-label="WhatsApp"]:hover svg {
  fill: #25D366;
}

.header-icon.is-messenger[aria-label="Telegram"]:hover svg {
  fill: #229ED9;
}

.header-icon.is-messenger[aria-label="MAX"]:hover svg.max-icon {
  fill: #0000FF;
}

.header-icon.is-search {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.header-icon.is-search svg {
  stroke: #fff;
}

.header-icon.is-search:hover {
  background: #2563eb;
}

.header-icon.is-phone {
  background: #22c55e;
  border-color: #22c55e;
}

.header-icon.is-phone svg {
  stroke: #fff;
}

.header-icon.is-phone:hover {
  background: #16a34a;
}

/* ===== HAMBURGER ANIMATION ===== */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay.open {
  pointer-events: all;
  visibility: visible;
}

.menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.open .menu-bg {
  opacity: 1;
}

.menu-content {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  text-decoration: none;
  padding: 12px 0;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.open .menu-link {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay.open .menu-link[data-index="1"] { transition-delay: 0.15s; }
.menu-overlay.open .menu-link[data-index="2"] { transition-delay: 0.22s; }
.menu-overlay.open .menu-link[data-index="3"] { transition-delay: 0.29s; }
.menu-overlay.open .menu-link[data-index="4"] { transition-delay: 0.36s; }
.menu-overlay.open .menu-link[data-index="5"] { transition-delay: 0.43s; }

.menu-num {
  font-size: 13px;
  font-weight: 600;
  color: #0ea5e9;
  letter-spacing: 2px;
  min-width: 30px;
}

.menu-text {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.1;
  transition: color 0.3s, transform 0.3s;
}

.menu-link:hover .menu-text {
  color: #0ea5e9;
  transform: translateX(12px);
}

.menu-link:hover .menu-num {
  color: #fff;
}

.menu-footer {
  position: absolute;
  bottom: 48px;
  left: 80px;
  right: 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

.menu-overlay.open .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

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

.menu-contact a,
.menu-contact span {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.menu-contact a:hover {
  color: #0ea5e9;
}

.menu-socials {
  display: flex;
  gap: 24px;
}

.menu-socials a {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.menu-socials a:hover {
  color: #0ea5e9;
}

/* Header z-index boost when menu open */
body.menu-open .header {
  background: transparent;
}

body.menu-open {
  overflow: hidden;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 80px 60px 40px;
  gap: 24px;
  position: relative;
}

.hero-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: max-content;
  max-width: 100%;
  align-self: center;
}

.hero-title {
  font-size: calc((100vw - 160px) / 14);
  line-height: 0.95;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  gap: 0.35em;
  align-items: baseline;
}

.hero-title .bold {
  font-weight: 900;
}

.hero-title .thin {
  font-weight: 200;
  letter-spacing: 4px;
}

.hero-tags {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 6px 0;
}

.hero-slider {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero-slider .carousel-container {
  width: 100%;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-cta-btn {
  display: inline-block;
  padding: 20px 36px;
  background: #fff;
  color: #0f1117;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.hero-cta-btn:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
}

.hero-cta-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
  text-align: center;
}

.hero-cta-text strong {
  color: rgba(255,255,255,0.85);
}

/* ===== CAROUSEL ===== */
.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* ===== CATEGORY CARD ===== */
a.category-card {
  text-decoration: none;
  color: inherit;
}

.category-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-8px);
}

.card-image {
  width: 280px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.card-title {
  text-align: center;
  margin-bottom: 16px;
}

.card-title-bold {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.3;
}

.card-title-thin {
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  transition: background 0.3s;
}

.category-card:hover .card-dot {
  background: #999;
}

/* ===== CAROUSEL ARROW ===== */
.carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  border: none;
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: none;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: width 0.3s;
}

.carousel-container.has-overflow .carousel-arrow {
  display: flex;
}

.carousel-container:not(.has-overflow) .carousel-track {
  justify-content: center;
}

.carousel-arrow:focus,
.carousel-arrow:active {
  outline: none;
}

.carousel-arrow--next {
  right: 0;
  background: transparent;
  padding: 0 20px 0 0;
  justify-content: flex-end;
}

.carousel-arrow--prev {
  left: 0;
  background: transparent;
  padding: 0 0 0 20px;
  justify-content: flex-start;
}

.carousel-arrow--next:hover svg {
  transform: translateX(4px);
}

.carousel-arrow--prev:hover svg {
  transform: translateX(-4px);
}

.carousel-arrow svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.3s;
}

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 0 0 8px;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s, width 0.3s;
}

.carousel-dots .dot.active {
  background: #fff;
  width: 22px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .carousel-container.has-overflow .carousel-dots {
    display: flex;
  }
}

/* ===== CATALOG SECTION ===== */
.catalog {
  padding: 100px 80px;
  max-width: 100%;
  color: #fff;
}

.catalog > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.cat-header-left .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 12px;
}

.cat-header-left h2 {
  font-size: 64px;
  line-height: 0.95;
}

.cat-header-left h2 .bold {
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.cat-header-left h2 .thin {
  font-weight: 200;
  color: #22d3ee;
  letter-spacing: 4px;
}

.cat-header-right {
  max-width: 360px;
  text-align: right;
}

.cat-header-right p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.btn-all-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-all-top:hover { color: #0ea5e9; }
.btn-all-top .arrow { font-size: 18px; transition: transform 0.3s; }
.btn-all-top:hover .arrow { transform: translateX(5px); }

/* Grid */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Pool card */
a.pcard {
  text-decoration: none;
  color: inherit;
}

.pcard {
  background: #1e2328;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
}

.pcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pcard-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.pcard-img .pool-visual {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.pcard:hover .pcard-img .pool-visual {
  transform: scale(1.03);
  transition: transform 0.6s;
}

/* Pool shapes */
.pool-shape {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pool-shape .water {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 65%;
  border-radius: 0 0 50% 50% / 0 0 40% 40%;
  overflow: hidden;
}

.pool-shape .water::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 30%);
}

.pool-shape .label-3d {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.shape-rect .water {
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 60%, #0369a1 100%);
}

.shape-sport .water {
  border-radius: 8px 8px 40% 40%;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 50%, #0369a1 100%);
}

.shape-ergo .water {
  border-radius: 30% 8px 40% 20%;
  background: linear-gradient(180deg, #67e8f9 0%, #06b6d4 50%, #0e7490 100%);
}

.shape-free .water {
  border-radius: 40% 30% 50% 35%;
  background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 40%, #0284c7 100%);
}

.pool-bg-rect { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.pool-bg-sport { background: linear-gradient(135deg, #ecfeff, #a5f3fc); }
.pool-bg-ergo { background: linear-gradient(135deg, #f0fdfa, #99f6e4); }
.pool-bg-free { background: linear-gradient(135deg, #f0f9ff, #bfdbfe); }

/* Badges */
.pcard-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.pcard-size {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}

/* Info side */
.pcard-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.pcard-name {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pcard-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 16px;
}

.pcard-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-specs {
  display: flex;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 28px;
}

.pspec {
  background: #252a30;
  padding: 12px 16px;
  border-radius: 14px;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.pspec-val { font-size: 20px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.pspec-unit { font-size: 10px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 1px; overflow-wrap: anywhere; }

.pcard-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #2a3038;
}

.pcard-price { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; min-width: 0; }
.pcard-price strong { display: block; font-size: clamp(16px, 2vw, 26px); font-weight: 800; color: #fff; letter-spacing: 0; text-transform: none; white-space: nowrap; }

.btn-card {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
  transition: all 0.3s;
  flex-shrink: 0;
}

.btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.35);
}

/* Featured card */
.pcard.featured {
  grid-column: 1 / -1;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr;
  min-height: 420px;
}

.pcard.fullwidth {
  grid-column: 1 / -1;
}

.pcard.fullwidth .pcard-img {
  min-height: 300px;
}

.featured .pcard-name { font-size: 48px; }
.featured .pcard-img { aspect-ratio: auto; min-height: 420px; }

/* Bottom CTA */
.cat-bottom {
  margin-top: 50px;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.12));
  border-radius: 24px;
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.cat-bottom p { font-size: 18px; color: #e2e8f0; font-weight: 600; margin-bottom: 6px; }
.cat-bottom .sub { font-size: 14px; color: #64748b; font-weight: 400; margin-bottom: 24px; }

.btn-consult {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  padding: 16px 40px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
  transition: all 0.3s;
}

.btn-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}

/* Contacts */
.contacts {
  padding: 100px 80px;
  color: #fff;
}

.contacts-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts-info .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 12px;
}

.contacts-info h2 .bold {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  line-height: 0.95;
}

.contacts-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #0ea5e9;
  margin-top: 2px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

.contact-link {
  text-decoration: none;
  color: #e2e8f0;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #0ea5e9;
}

.contact-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.contact-messengers {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.messenger-link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 10px;
  background: #252a30;
  color: #0ea5e9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.messenger-link:hover {
  background: #0ea5e9;
  color: #fff;
}

.contacts-map {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .contacts { padding: 60px 24px; }
  .contacts-inner { grid-template-columns: 1fr; gap: 40px; }
  .contacts-info h2 .bold { font-size: 40px; }
  .contacts-map { height: 300px; }
}

@media (max-width: 480px) {
  .contacts { padding: 40px 16px; }
  .contacts-info h2 .bold { font-size: 32px; }
  .contacts-map { height: 250px; }
}

/* Footer */
.footer {
  color: #94a3b8;
  padding: 80px 80px 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid #1e2328;
}

.footer-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1e2328;
  color: #94a3b8;
  transition: all 0.2s;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
}

.footer-socials a:hover {
  background: #0ea5e9;
  color: #fff;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #64748b;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #0ea5e9;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #475569;
}

@media (max-width: 900px) {
  .footer { padding: 60px 24px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .footer { padding: 40px 16px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Caustic animation */
.caustic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80px 60px at 30% 40%, rgba(255, 255, 255, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60px 80px at 70% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: causticPool 6s ease-in-out infinite alternate;
}

@keyframes causticPool {
  0% { opacity: 0.3; transform: translate(0, 0); }
  100% { opacity: 0.8; transform: translate(5px, -3px); }
}

/* ===== WHY US SECTION ===== */
.why-us {
  padding: 120px 80px;
  position: relative;
  overflow: hidden;
}

.why-us-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.why-left {
  flex: 1;
  min-width: 0;
}

.why-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 16px;
}

.why-left h2 {
  font-size: 64px;
  line-height: 0.95;
  margin-bottom: 24px;
}

.why-left h2 .bold {
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.why-left h2 .thin {
  font-weight: 200;
  color: #7dd3fc;
  letter-spacing: 4px;
}

.why-desc {
  font-size: 15px;
  color: #bae6fd;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 420px;
}

.why-stats {
  display: flex;
  gap: 32px;
}

.why-stat {
  text-align: center;
}

.why-stat-val {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.why-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.why-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.why-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(8px);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
  color: #67e8f9;
}

.why-card-content {
  min-width: 0;
}

.why-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.why-card-text {
  font-size: 13px;
  color: #bae6fd;
  line-height: 1.7;
}

/* Showroom */
.showroom {
  padding: 100px 80px;
}

.showroom-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.showroom-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

.showroom-head-left .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 12px;
}

.showroom-head-left h2 {
  font-size: 56px;
  line-height: 1;
}

.showroom-head-left h2 .bold {
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.showroom-head-left h2 .thin {
  font-weight: 200;
  color: #7dd3fc;
  letter-spacing: 4px;
}

.showroom-head-right {
  max-width: 450px;
  text-align: right;
}

.showroom-head-right p {
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.showroom-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e4e4e7;
  font-size: 14px;
}

.showroom-gallery {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.showroom-gallery::-webkit-scrollbar {
  display: none;
}

.showroom-photo {
  flex: 0 0 360px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.showroom-photo:hover {
  transform: scale(1.02);
}

.showroom-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Single photo — show full image, centered, no forced aspect */
.showroom-gallery:has(> .showroom-photo:only-child) {
  overflow: visible;
  justify-content: center;
}
.showroom-photo:only-child {
  flex: 0 1 auto;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .showroom {
    padding: 80px 40px;
  }
  .showroom-head-left h2 {
    font-size: 44px;
  }
  .showroom-photo {
    flex: 0 0 320px;
  }
}

@media (max-width: 768px) {
  .showroom {
    padding: 60px 24px;
  }
  .showroom-head {
    flex-direction: column;
    gap: 20px;
  }
  .showroom-head-left h2 {
    font-size: 40px;
  }
  .showroom-head-right {
    text-align: left;
    max-width: 100%;
  }
  .showroom-photo {
    flex: 0 0 280px;
  }
}

@media (max-width: 480px) {
  .showroom {
    padding: 40px 16px;
  }
  .showroom-head-left h2 {
    font-size: 32px;
  }
  .showroom-photo {
    flex: 0 0 240px;
  }
}

/* Service */
.service {
  padding: 100px 80px;
  color: #fff;
}

.service-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.service-left {
  flex: 1;
  min-width: 0;
}

.service-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 16px;
}

.service-left h2 {
  font-size: clamp(24px, 3.8vw, 56px);
  line-height: 1;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.service-left h2 .bold {
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.service-left h2 .thin {
  font-weight: 200;
  color: #7dd3fc;
  letter-spacing: 4px;
}

.service-desc {
  font-size: 15px;
  color: #bae6fd;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
}

.service-stats {
  display: flex;
  gap: 40px;
}

.service-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.service-stat-val {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.service-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 2px;
  max-width: 180px;
  line-height: 1.4;
}

.service-right {
  flex: 1;
  min-width: 0;
}

.service-form {
  background: #181c20;
  border: 1px solid #252a30;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.service-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none;
  padding: 0;
  margin: 0;
}

.service-field > label,
.service-field > legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7dd3fc;
}

.service-field input[type="text"],
.service-field input[type="tel"],
.service-field input[type="number"],
.service-field textarea {
  background: #0f1419;
  border: 1px solid #252a30;
  border-radius: 12px;
  padding: 12px 14px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.service-field input:focus,
.service-field textarea:focus {
  outline: none;
  border-color: #0ea5e9;
}

.service-field textarea {
  resize: vertical;
  min-height: 72px;
}

.service-field input[aria-invalid="true"],
.service-field textarea[aria-invalid="true"] {
  border-color: #ef4444;
}

.service-radio-group[aria-invalid="true"] > legend {
  color: #ef4444;
}

.service-error {
  font-size: 12px;
  color: #ef4444;
  min-height: 14px;
}

.service-radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-radio {
  flex: 1 1 0;
  min-width: 80px;
  cursor: pointer;
}

.service-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-radio span {
  display: block;
  padding: 10px 12px;
  background: #0f1419;
  border: 1px solid #252a30;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #bae6fd;
  transition: all 0.2s;
}

.service-radio input:checked + span {
  background: rgba(14, 165, 233, 0.15);
  border-color: #0ea5e9;
  color: #fff;
}

.service-radio input:focus-visible + span {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.service-submit {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
  transition: all 0.3s;
  margin-top: 8px;
}

.service-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}

.service-toast {
  min-height: 18px;
  font-size: 12px;
  color: #7dd3fc;
  text-align: center;
}

/* h2 letter-spacing for narrow viewports — placed here so the
   ≤900px @media block below can also override service-left h2 */
@media (max-width: 900px) {
  .service-left h2 .bold { letter-spacing: 1px; }
  .service-left h2 .thin { letter-spacing: 1px; }
}

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

/* Large tablets / small laptops (1024px) */
@media (max-width: 1024px) {
  .header {
    padding: 0 30px;
  }

  .category-card {
    flex: 0 0 220px;
  }

  .card-image {
    width: 220px;
    height: 240px;
  }

  .card-title-bold {
    font-size: 18px;
  }

  .card-title-thin {
    font-size: 16px;
  }

  .catalog {
    padding: 80px 40px;
  }

  .pcard-name {
    font-size: 28px;
  }

  .featured .pcard-name {
    font-size: 36px;
  }

  .why-us {
    padding: 100px 40px;
  }

  .why-us-inner {
    gap: 50px;
  }

  .why-left h2 {
    font-size: 48px;
  }

  .why-stat-val {
    font-size: 28px;
  }

  .service {
    padding: 80px 40px;
  }

  .service-inner {
    gap: 50px;
  }

  .service-stat-val {
    font-size: 36px;
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: 56px;
  }

  .header-right {
    gap: 6px;
  }

  .header-icon {
    width: 32px;
    height: 32px;
  }

  .header-icon svg {
    width: 18px;
    height: 18px;
  }

  .header-icon.is-messenger {
    display: none;
  }

  .header-icon.is-messenger svg {
    width: 20px;
    height: 20px;
  }

  .site-logo {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .hero {
    padding: 56px 24px 24px;
    gap: 16px;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-tags {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero-cta-btn {
    padding: 16px 28px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }

  .hero-cta-text {
    font-size: 13px;
    max-width: 100%;
  }

  .carousel-track {
    padding: 20px 24px 30px;
    gap: 20px;
  }

  .category-card {
    flex: 0 0 180px;
  }

  .card-image {
    width: 180px;
    height: 200px;
  }

  .card-title-bold {
    font-size: 15px;
  }

  .card-title-thin {
    font-size: 14px;
  }

  .carousel-container.has-overflow .carousel-arrow {
    display: none;
  }

  .catalog {
    padding: 60px 24px;
  }

  .cat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }

  .cat-header-left h2 {
    font-size: 44px;
  }

  .cat-header-right {
    text-align: left;
    max-width: 100%;
  }

  .menu-content {
    left: 24px;
  }

  .menu-footer {
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .why-us {
    padding: 60px 24px;
  }

  .why-us-inner {
    flex-direction: column;
    gap: 40px;
  }

  .why-left h2 {
    font-size: 44px;
  }

  .why-stats {
    gap: 24px;
  }

  .why-stat-val {
    font-size: 28px;
  }

  .why-card {
    padding: 20px 24px;
  }

  .why-card:hover {
    transform: translateX(0) translateY(-4px);
  }

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

  .pcard {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pcard-img {
    min-height: 200px;
  }

  .pcard.fullwidth .pcard-img {
    min-height: 200px;
  }

  .pcard-info {
    padding: 28px 24px;
  }

  .pcard-name {
    font-size: 28px;
  }

  .pcard.featured {
    grid-template-columns: 1fr;
  }

  .featured .pcard-img {
    min-height: 280px;
  }

  .featured .pcard-name {
    font-size: 32px;
  }

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

  .btn-card {
    width: 100%;
    text-align: center;
  }

  .cat-bottom {
    padding: 30px 20px;
  }

  .btn-consult {
    width: 100%;
    padding: 16px 24px;
  }

  .service {
    padding: 48px 20px;
  }

  .service-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .service-left,
  .service-right {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }

  .service-form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .service-desc {
    max-width: none;
    margin-bottom: 20px;
  }

  .service-form {
    padding: 22px;
    gap: 14px;
  }

  .service-form-title {
    font-size: 18px;
  }

  .service-field input[type="text"],
  .service-field input[type="tel"],
  .service-field input[type="number"] {
    font-size: 16px;
    min-height: 44px;
  }

  .service-field textarea {
    font-size: 16px;
  }

  .service-radio span {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .service-submit {
    width: 100%;
    min-height: 48px;
  }

  .service-stat-label {
    max-width: none;
  }

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

/* Very narrow (≤600px): let the title wrap onto two lines */
@media (max-width: 600px) {
  .hero {
    padding-top: 96px;
  }
  .hero-head {
    width: auto;
  }
  .hero-title {
    white-space: normal;
    flex-direction: column;
    gap: 0;
  }
  .hero-title .bold { font-size: 11vw; }
  .hero-title .thin { font-size: 10.5vw; letter-spacing: 2px; }
  .hero-tags {
    justify-content: space-between;
    gap: 8px 0;
  }
}

/* Large phones (480px) */
@media (max-width: 480px) {
  .header {
    padding: 0 12px;
    height: 52px;
  }

  .header-right {
    gap: 4px;
  }

  .header-icon {
    width: 30px;
    height: 30px;
  }

  .header-icon svg {
    width: 16px;
    height: 16px;
  }

  .site-logo {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .site-logo .thin {
    font-weight: 200;
    letter-spacing: 1px;
  }

  .hero {
    padding: 52px 16px 16px;
    gap: 12px;
  }

  .hero-title .bold {
    font-size: clamp(38px, 11vw, 56px);
  }

  .hero-title .thin {
    font-size: clamp(36px, 10.5vw, 53px);
    letter-spacing: 2px;
  }

  .hero-tags {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

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

  .hero-cta-text {
    font-size: 12px;
  }

  .carousel-track {
    padding: 16px 16px 24px;
    gap: 16px;
  }

  .category-card {
    flex: 0 0 150px;
  }

  .card-image {
    width: 150px;
    height: 160px;
    margin-bottom: 12px;
  }

  .card-title-bold {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .card-title-thin {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .card-title {
    margin-bottom: 10px;
  }

  .carousel-arrow {
    display: none;
  }

  .menu-content {
    left: 16px;
  }

  .menu-link {
    gap: 12px;
    padding: 8px 0;
  }

  .menu-footer {
    left: 16px;
    right: 16px;
    bottom: 32px;
  }

  .why-us {
    padding: 48px 16px;
  }

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

  .why-desc {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .why-stats {
    gap: 16px;
  }

  .why-stat-val {
    font-size: 24px;
  }

  .why-stat-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .why-card {
    padding: 18px 16px;
    gap: 14px;
    border-radius: 16px;
  }

  .why-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .why-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .why-card-title {
    font-size: 15px;
  }

  .why-card-text {
    font-size: 12px;
  }

  .catalog {
    padding: 40px 16px;
  }

  .cat-header-left h2 {
    font-size: 32px;
  }

  .cat-header-left .label {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .cat-header {
    margin-bottom: 30px;
  }

  .pcard-img {
    min-height: 200px;
  }

  .featured .pcard-img {
    min-height: 220px;
  }

  .pcard-info {
    padding: 20px 16px;
  }

  .pcard-name {
    font-size: 24px;
  }

  .featured .pcard-name {
    font-size: 26px;
  }

  .pcard-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .pcard-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .pcard-specs {
    gap: 8px;
    margin-bottom: 20px;
  }

  .pspec {
    padding: 10px 6px;
    border-radius: 10px;
  }

  .pspec-val {
    font-size: 18px;
  }

  .pspec-unit {
    letter-spacing: 0.5px;
  }

  .pcard-price strong {
    font-size: 22px;
  }

  .btn-card {
    padding: 12px 20px;
    font-size: 12px;
  }

  .cat-bottom {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .cat-bottom p {
    font-size: 16px;
  }

  .cat-bottom .sub {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .btn-consult {
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 12px;
  }

  .service {
    padding: 36px 16px;
  }

  .service-inner {
    gap: 20px;
  }

  .service-desc {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .service-stats {
    gap: 12px;
  }

  .service-stat-val {
    font-size: 28px;
  }

  .service-stat-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .service-form {
    padding: 18px;
    border-radius: 16px;
    gap: 12px;
  }

  .service-radio-row {
    gap: 8px;
  }

  .service-radio {
    min-width: 70px;
  }

  .service-radio span {
    padding: 10px 8px;
    font-size: 12px;
  }

  .service-submit {
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Very narrow phones (≤400px): stack hero tags vertically */
@media (max-width: 400px) {
  .hero-tags {
    flex-direction: column;
    gap: 10px 0;
  }
}

/* Small phones (360px and below) */
@media (max-width: 360px) {
  .header {
    padding: 0 10px;
    height: 48px;
  }

  .hamburger {
    padding: 6px;
  }

  .header-icon {
    width: 28px;
    height: 28px;
  }

  .header-icon svg {
    width: 14px;
    height: 14px;
  }

  .site-logo {
    display: none;
  }

  .hero {
    padding: 48px 12px 12px;
    gap: 10px;
  }

  .hero-title .bold {
    font-size: 36px;
  }

  .hero-title .thin {
    font-size: 34.5px;
    letter-spacing: 2px;
  }

  .hero-tags {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .hero-cta-btn {
    padding: 12px 20px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .hero-cta-text {
    font-size: 11px;
  }

  .carousel-track {
    padding: 12px 12px 20px;
    gap: 12px;
  }

  .category-card {
    flex: 0 0 130px;
  }

  .card-image {
    width: 130px;
    height: 140px;
    margin-bottom: 10px;
  }

  .card-title-bold {
    font-size: 11px;
  }

  .card-title-thin {
    font-size: 10px;
  }

  .why-us {
    padding: 40px 12px;
  }

  .why-label {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .why-left h2 {
    font-size: 28px;
  }

  .why-desc {
    font-size: 12px;
  }

  .why-right {
    gap: 14px;
  }

  .why-card {
    padding: 14px 12px;
    gap: 12px;
    border-radius: 14px;
  }

  .why-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .why-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .why-card-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .why-card-text {
    font-size: 11px;
  }

  .catalog {
    padding: 32px 12px;
  }

  .cat-header-left h2 {
    font-size: 28px;
  }

  .cat-grid {
    gap: 16px;
  }

  .pcard {
    border-radius: 20px;
  }

  .pcard-img {
    min-height: 180px;
  }

  .featured .pcard-img {
    min-height: 200px;
  }

  .pcard-info {
    padding: 16px 12px;
  }

  .pcard-name {
    font-size: 20px;
  }

  .featured .pcard-name {
    font-size: 22px;
  }

  .pcard-desc {
    font-size: 12px;
  }

  .pspec-val {
    font-size: 16px;
  }

  .pcard-price strong {
    font-size: 20px;
  }

  .service {
    padding: 28px 12px;
  }

  .service-label {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .service-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .service-stats {
    gap: 10px;
  }

  .service-stat-val {
    font-size: 24px;
  }

  .service-form {
    padding: 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .service-form-title {
    font-size: 16px;
  }

  .service-submit {
    padding: 12px 18px;
    font-size: 13px;
  }

  .service-radio-row {
    gap: 6px;
  }

  .service-radio {
    min-width: 60px;
  }

  .service-radio span {
    padding: 9px 6px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

/* =========================================================
   ALL MODELS PAGE (dark theme)
   ========================================================= */

body.models-dark {
  color: #f1f5f9;
  min-height: 100vh;
}

body.models-dark .menu-overlay .menu-bg { background: rgba(5, 8, 15, 0.96); }
body.models-dark .menu-overlay .menu-link { color: #f1f5f9; }
body.models-dark .menu-overlay .menu-num { color: #22d3ee; }
body.models-dark .menu-overlay .menu-footer,
body.models-dark .menu-overlay .menu-contact a,
body.models-dark .menu-overlay .menu-contact span,
body.models-dark .menu-overlay .menu-socials a { color: #94a3b8; }

.models-page {
  padding: 120px 80px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.models-hero {
  margin-bottom: 56px;
  position: relative;
}
.models-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.models-back:hover { color: #22d3ee; }

.models-hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 16px;
}
.models-title {
  font-size: clamp(40px, 9vw, 88px);
  line-height: 0.92;
  margin-bottom: 20px;
  word-break: break-word;
}
.models-title .bold {
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: clamp(1px, 0.4vw, 3px);
}
.models-title .thin {
  font-weight: 200;
  color: #22d3ee;
  letter-spacing: clamp(2px, 0.7vw, 6px);
}
.models-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 1px;
}

.models-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}
.mchip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mchip:hover {
  color: #f1f5f9;
  border-color: rgba(14, 165, 233, 0.6);
  background: rgba(14, 165, 233, 0.08);
}
.mchip.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mcard {
  background: #101722;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.mcard.hidden { display: none; }
.mcard:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.22);
}

.mcard-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.22) 0%, rgba(5, 8, 15, 0) 65%),
              linear-gradient(135deg, #0a0f1a 0%, #0c1629 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mcard-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.mcard:hover .mcard-img img { transform: scale(1.06); }

.mcard-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}
.mcard-size {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.mcard-info {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mcard-name {
  font-size: 22px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: 1.5px;
}
.mcard-series {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 4px;
}
.mcard-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  flex: 1;
  margin-bottom: 8px;
}
.mcard-price {
  font-size: 18px;
  font-weight: 800;
  color: #f1f5f9;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
  letter-spacing: 0.5px;
}

.models-cta {
  margin-top: 80px;
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 28px;
}
.models-cta-title {
  font-size: 26px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.models-cta-sub {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 28px;
}
body.models-dark .btn-consult {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  padding: 16px 44px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
body.models-dark .btn-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(14, 165, 233, 0.5);
}

@media (max-width: 1199px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .models-page { padding: 110px 48px 72px; }
}

@media (max-width: 767px) {
  .models-grid { grid-template-columns: 1fr; gap: 20px; }
  .models-page { padding: 96px 20px 56px; }
  .models-hero { margin-bottom: 40px; }
  .models-hero-label { letter-spacing: 3px; font-size: 11px; }
  .models-subtitle { font-size: 13px; }
  .models-filter { gap: 8px; margin-bottom: 32px; padding-bottom: 24px; }
  .mchip { padding: 10px 16px; font-size: 12px; }
  .models-cta { padding: 40px 24px; margin-top: 56px; }
  .models-cta-title { font-size: 22px; }
}

/* =========================================================
   PORTFOLIO — section on main + portfolio.html grid
   ========================================================= */

/* --- Section on main page --- */
.portfolio {
  padding: 120px 80px 40px;
  max-width: 1260px;
  margin: 0 auto;
}

.port-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
}
.port-header-left .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 12px;
}
.port-header-left h2 {
  font-size: 64px;
  line-height: 0.95;
}
.port-header-left h2 .bold {
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}
.port-header-left h2 .thin {
  font-weight: 200;
  color: #22d3ee;
  letter-spacing: 4px;
}
.port-header-right {
  max-width: 360px;
  text-align: right;
}
.port-header-right p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* --- Featured layout: 1 big + 2 small --- */
.port-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  min-height: 620px;
}
.port-featured-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  min-height: 620px;
}

/* --- Work card (shared between main + portfolio page) --- */
.work-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(3, 105, 161, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.work-card.hidden { display: none; }
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(3, 105, 161, 0.18);
}

.work-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a0f1a;
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card:hover .work-card-img img { transform: scale(1.06); }

.work-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.work-year {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.work-card-info {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-title {
  font-size: 18px;
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: 0.3px;
}
.work-location {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.work-meta {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0ea5e9;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Featured big card variant --- */
.work-card--big {
  height: 100%;
}
.work-card--big .work-card-img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
}
.work-card--big .work-title { font-size: 24px; }
.work-card--big .work-location { font-size: 13px; }
.work-card--big .work-card-info { padding: 26px 30px 30px; }
.work-card--big .work-tag { padding: 9px 18px; font-size: 11px; }

/* --- Dark theme override (portfolio.html) --- */
body.models-dark .work-card {
  background: #101722;
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: none;
}
body.models-dark .work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.22);
}
body.models-dark .work-title { color: #f1f5f9; }
body.models-dark .work-location { color: #94a3b8; }
body.models-dark .work-meta { color: #22d3ee; }

/* --- Portfolio page grid --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1199px) {
  .portfolio { padding: 96px 48px 32px; }
  .port-header-left h2 { font-size: 52px; }
  .port-featured { grid-template-columns: 1.4fr 1fr; min-height: 540px; }
  .port-featured-col { min-height: 540px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
  .portfolio { padding: 80px 20px 24px; }
  .port-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }
  .port-header-left h2 { font-size: 42px; }
  .port-header-right { text-align: left; max-width: 100%; }
  .port-featured {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
  }
  .port-featured-col {
    grid-template-rows: auto auto;
    min-height: auto;
    gap: 20px;
  }
  .work-card--big .work-card-img { aspect-ratio: 4 / 3; }
  .work-card--big .work-title { font-size: 20px; }
  .works-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Deep-link highlight for model cards ===== */
.mcard.highlight {
  animation: mcard-pulse 2s ease-out;
}
@keyframes mcard-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7), 0 20px 60px rgba(3, 105, 161, 0.12);
    outline: 2px solid rgba(14, 165, 233, 0.9);
    outline-offset: 4px;
  }
  100% {
    box-shadow: 0 0 0 20px rgba(14, 165, 233, 0), 0 4px 24px rgba(3, 105, 161, 0.06);
    outline: 2px solid rgba(14, 165, 233, 0);
    outline-offset: 4px;
  }
}

/* ===== Header search panel ===== */
.search-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  width: min(480px, calc(100vw - 48px));
  max-height: calc(100vh - 100px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(3, 105, 161, 0.18), 0 4px 16px rgba(3, 105, 161, 0.08);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
}
.search-panel.open {
  display: flex;
}
.search-panel-input-wrap {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #e0f2fe;
}
.search-panel-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #0c4a6e;
  background: #f0f9ff;
  padding: 14px 16px;
  border-radius: 12px;
}
.search-panel-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.search-panel-results {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
}
.search-panel-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 8px 0 10px;
}
.search-panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.search-panel-chip {
  background: #e0f2fe;
  color: #0c4a6e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.search-panel-chip:hover {
  background: #bae6fd;
}
.search-panel-model {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  transition: background 0.2s;
}
.search-panel-model:hover {
  background: #f0f9ff;
}
.search-panel-model-name {
  font-size: 14px;
  font-weight: 700;
  color: #0c4a6e;
  letter-spacing: 0.5px;
}
.search-panel-model-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.search-panel-empty,
.search-panel-error {
  padding: 24px 8px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
.search-panel-error {
  color: #dc2626;
}

/* ===== Portfolio gallery modal ===== */
.pgal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 40px 20px;
  box-sizing: border-box;
}
.pgal-modal[hidden] { display: none; }

.pgal-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: min(1100px, 92vw);
  width: 100%;
}

.pgal-image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pgal-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}
.pgal-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50vh;
  background: #1a1a1a;
  color: #888;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 12px;
}

.pgal-btn {
  background: rgba(20, 20, 20, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0;
}
.pgal-btn:hover { background: rgba(40, 40, 40, 0.95); }
.pgal-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pgal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
}

.pgal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}
.pgal-nav--prev { left: 10px; }
.pgal-nav--next { right: 10px; }

@media (max-width: 720px) {
  .pgal-nav { display: none; }
}

.pgal-info {
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}
.pgal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.pgal-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pgal-line--primary {
  font-size: 14px;
  color: #bbb;
}
.pgal-line--secondary {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.02em;
}
.pgal-counter {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .pgal-modal { padding: 20px 12px; }
  .pgal-image { max-height: 60vh; }
  .pgal-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  .pgal-title { font-size: 17px; }
}

/* ===== RENDER VS REALITY ===== */
.rr {
  padding: 120px 80px;
  position: relative;
  overflow: hidden;
}
.rr-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.rr-head {
  text-align: center;
  margin-bottom: 36px;
}
.rr-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0ea5e9;
  font-weight: 600;
  margin-bottom: 18px;
}
.rr-title {
  color: #fff;
  font-size: 64px;
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.rr-title .bold { font-weight: 800; }
.rr-title .thin { font-weight: 200; }
.rr-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* toggle */
.rr-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.rr-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 32px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.25s ease;
}
.rr-tab.is-active { color: #0a1014; }
.rr-tab:hover:not(.is-active) { color: rgba(255, 255, 255, 0.85); }
.rr-tab:focus-visible {
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.55);
}
.rr-toggle-pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-radius: 999px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
}
.rr-toggle[data-mode="real"] .rr-toggle-pill {
  left: 50%;
}

/* stage */
.rr-stage {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 16px;
}
.rr-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.rr-arrow svg { width: 24px; height: 24px; }
.rr-arrow:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.5);
  transform: scale(1.05);
}
.rr-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: rgba(255, 255, 255, 0.04);
}
.rr-viewport {
  overflow: hidden;
  border-radius: 24px;
  position: relative;
}
.rr-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.rr-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.rr-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0a1014;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.rr-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}
.rr-img-render { opacity: 1; z-index: 1; }
.rr-img-real { opacity: 0; z-index: 2; }
.rr-stage[data-mode="real"] .rr-img-render { opacity: 0; }
.rr-stage[data-mode="real"] .rr-img-real { opacity: 1; }

.rr-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease;
}
.rr-badge-render {
  background: rgba(14, 165, 233, 0.85);
  opacity: 1;
}
.rr-badge-real {
  background: rgba(34, 197, 94, 0.85);
  opacity: 0;
}
.rr-stage[data-mode="real"] .rr-badge-render { opacity: 0; }
.rr-stage[data-mode="real"] .rr-badge-real { opacity: 1; }

.rr-caption {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 22px 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.rr-caption-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.rr-caption-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* dots */
.rr-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.rr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.3s ease;
}
.rr-dot:hover { background: rgba(255, 255, 255, 0.4); }
.rr-dot.is-active {
  background: #0ea5e9;
  width: 28px;
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .rr { padding: 96px 48px; }
  .rr-title { font-size: 52px; }
  .rr-stage { grid-template-columns: 48px 1fr 48px; gap: 12px; }
  .rr-arrow { width: 48px; height: 48px; }
}

@media (max-width: 767px) {
  .rr { padding: 72px 16px; }
  .rr-title { font-size: 38px; }
  .rr-sub { font-size: 15px; }
  .rr-tab { padding: 10px 20px; font-size: 12px; }
  .rr-stage { grid-template-columns: 1fr; gap: 0; }
  .rr-arrow { display: none; }
  .rr-frame { aspect-ratio: 4 / 5; border-radius: 18px 18px 0 0; }
  .rr-viewport { border-radius: 18px; }
  .rr-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 0 0 18px 18px;
  }
  .rr-caption-title { font-size: 17px; }
  .rr-caption-meta { font-size: 13px; }
  .rr-badge { top: 12px; left: 12px; padding: 6px 12px; font-size: 10px; }
}

/* ===== Floating "Рассчитать стоимость" CTA ===== */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14,165,233,0.35), 0 2px 6px rgba(0,0,0,0.15);
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta:hover {
  box-shadow: 0 12px 32px rgba(14,165,233,0.5), 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.floating-cta__icon { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .floating-cta {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    justify-content: center;
  }
  .floating-cta__label {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .floating-cta__icon { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta { transition: none; }
  .floating-cta:hover { transform: none; }
}

/* ===== ASK SECTION ===== */
.ask {
  padding: 100px 80px;
  color: #fff;
}
.ask-inner {
  max-width: 720px;
  margin: 0 auto;
}
.ask-head { margin-bottom: 36px; }
.ask-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}
.ask-title strong { font-weight: 900; display: block; }
.ask-title span   { font-weight: 300; display: block; letter-spacing: 3px; }
.ask-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
}

.ask-form { display: flex; flex-direction: column; gap: 14px; }
.ask-field { display: block; }

.ask-textarea,
.ask-input {
  width: 100%;
  padding: 18px 22px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
  resize: none;
  transition: border-color .2s;
}
.ask-textarea { min-height: 120px; }
.ask-input { border-radius: 999px; }

.ask-textarea::placeholder,
.ask-input::placeholder { color: rgba(255,255,255,0.45); }

.ask-textarea:focus,
.ask-input:focus { border-color: #0ea5e9; outline: none; }

.ask-textarea.is-invalid,
.ask-input.is-invalid { border-color: #ef4444; }

.ask-error {
  margin: 0;
  font-size: 13px;
  color: #ef4444;
  min-height: 18px;
}
.ask-error[hidden] { display: none; }

.ask-submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.ask-submit:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,165,233,0.35);
}

.ask-disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.45);
}

.ask-inner--thanks { text-align: center; padding: 40px 0; }
.ask-inner--thanks .ask-title strong { display: block; }
.ask-inner--thanks .ask-lead { max-width: none; margin: 0 auto; }

@media (max-width: 768px) {
  .ask { padding: 64px 24px; }
  .ask-title { font-size: 26px; }
}
@media (max-width: 480px) {
  .ask { padding: 48px 16px; }
  .ask-title { font-size: 22px; letter-spacing: 1px; }
  .ask-textarea, .ask-input { padding: 14px 18px; font-size: 14px; }
  .ask-submit { width: 100%; align-self: stretch; padding: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ask-submit { transition: none; }
  .ask-submit:hover { transform: none; }
}

/* Privacy link in footer-bottom (index.html) */
.footer-policy-link {
  margin-left: 16px;
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  font-size: 13px;
}
.footer-policy-link:hover { color: #fff; }

/* Mini bottom bar for pages without full footer (catalog, models, portfolio) */
.page-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 32px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: rgba(0,0,0,.55);
  background: #fafafa;
}
.page-bottom__policy {
  color: rgba(0,0,0,.7);
  text-decoration: underline;
}
.page-bottom__policy:hover { color: #0ea5e9; }
@media (max-width: 600px) {
  .page-bottom { flex-direction: column; align-items: flex-start; padding: 20px 16px; }
}
