/* ===== KAIZER SALON — style.css ===== */

/* ===== FONTS ===== */
/* Loaded via <link> in HTML for performance */

/* ===== VARIABLES ===== */
:root {
  --black:     #0a0a0a;
  --red:       #c0001d;
  --red-dark:  #8a0015;
  --white:     #f5f5f5;
  --gray:      #141414;
  --gray-2:    #1c1c1c;
  --gray-3:    #2a2a2a;
  --muted:     #777;
  --font-h:    'Cormorant Garamond', Georgia, serif;
  --font-b:    'Inter', system-ui, sans-serif;
  --ease:      0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll at root level */
}
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  /* Only break truly unbreakable strings (URLs, etc.) — NOT normal words */
  overflow-wrap: break-word;
}
#page-wrap { overflow-x: hidden; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }

/* ===== LAYOUT ===== */
.container {
  width: min(1140px, 90%);
  margin: 0 auto;
}

/* ===== SHARED TYPOGRAPHY ===== */
.section-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.03em;
}
.section-title span { color: var(--red); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.9rem;
  font-family: var(--font-b);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--ease), transform var(--ease), border-color var(--ease);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.97) 0%, transparent 100%);
  transition: background var(--ease), border-bottom var(--ease);
}
#header.scrolled {
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--gray-3);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-h);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
}
.nav-logo span { color: var(--red); }
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Burger button */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--ease);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: color var(--ease);
}
.mobile-nav a:hover { color: var(--red); }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=1800&q=80');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.28);
  transform: scale(1.04);
  transition: transform 10s ease;
}
.hero:hover .hero-bg { transform: scale(1.07); }

/* Red gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,0,29,0.18) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
}
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.02em;
  max-width: 750px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--red);
}
.hero-sub {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ===== ABOUT IBE ===== */
.about {
  padding: 7rem 0;
  background: var(--gray);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
/* min-width: 0 prevents grid children from overflowing */
.about-text, .about-cards { min-width: 0; }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 0.9rem;
}
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.about-card {
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  border-left: 3px solid var(--red);
  padding: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: transform var(--ease);
  min-width: 0; /* prevents flex item overflow */
}
.about-card:hover { transform: translateX(5px); }
.about-card-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
/* The text column inside card needs min-width: 0 too */
.about-card > div { min-width: 0; }
.about-card h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.about-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ===== BENEFITS ===== */
.benefits {
  padding: 7rem 0;
  background: var(--black);
}
.benefits-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.benefits-header .section-title { margin-bottom: 0.5rem; }
.benefits-header p { color: var(--muted); font-size: 0.88rem; font-weight: 300; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-3);
}
.benefit-item {
  background: var(--black);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background var(--ease);
}
.benefit-item:hover { background: var(--gray); }
.benefit-number {
  font-family: var(--font-h);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.benefit-number sup { font-size: 1.2rem; vertical-align: super; }
.benefit-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.benefit-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.55; font-weight: 300; }

/* ===== GALLERY ===== */
.gallery {
  padding: 7rem 0;
  background: var(--gray);
}
.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery-link {
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}
.gallery-link:hover { color: var(--white); border-color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 5px;
}
.gallery-item:first-child { grid-row: span 2; }

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192,0,29,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.gallery-item-overlay svg {
  opacity: 0;
  transform: scale(0.75);
  transition: opacity var(--ease), transform var(--ease);
  color: var(--white);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(192,0,29,0.22); }
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; transform: scale(1); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.94);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(192,0,29,0.15);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--ease);
}
.lightbox-close:hover { color: var(--red); }

/* ===== CONTACTS ===== */
.contacts {
  padding: 7rem 0;
  background: var(--black);
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
/* min-width: 0 prevents grid children from overflowing */
.contacts-info, .contacts-grid > div { min-width: 0; }
.contacts-info .section-title { margin-bottom: 2.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.contact-item-icon {
  width: 42px; height: 42px;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease);
}
.contact-item:hover .contact-item-icon {
  background: var(--red);
  border-color: var(--red);
}
.contact-item-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-item-value {
  font-size: 1rem;
  font-weight: 400;
  transition: color var(--ease);
}
.contact-item:hover .contact-item-value { color: var(--red); }

.socials-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.social-link:hover {
  border-color: var(--red);
  background: var(--gray);
  transform: translateX(4px);
}
.social-link-icon {
  width: 34px; height: 34px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-link-info { flex: 1; }
.social-link-name { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.12rem; }
.social-link-handle { font-size: 0.72rem; color: var(--muted); }
.social-link-arrow {
  color: var(--muted);
  font-size: 1rem;
  transition: color var(--ease), transform var(--ease);
}
.social-link:hover .social-link-arrow { color: var(--red); transform: translateX(3px); }

.contacts-cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 2rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray);
  border-top: 1px solid var(--gray-3);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.footer-logo span { color: var(--red); }
.footer-copy { font-size: 0.72rem; color: var(--muted); }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-social {
  width: 34px; height: 34px;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease), border-color var(--ease);
}
.footer-social:hover { background: var(--red); border-color: var(--red); }

/* ===== HERO ENTRANCE ANIMATIONS ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes redLineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes bgFloat {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50%       { transform: scale(1.07) translateY(-12px); }
}

.anim-hero-1 {
  opacity: 0;
  animation: heroFadeLeft 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}
.anim-hero-2 {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.45s forwards;
}
.anim-hero-3 {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.7s forwards;
}
.anim-hero-4 {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.9s forwards;
}

/* Floating hero background */
.hero-bg {
  animation: bgFloat 12s ease-in-out infinite;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-right {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== SECTION TITLE RED UNDERLINE ===== */
.section-title-wrap {
  position: relative;
  display: inline-block;
}
.title-line {
  display: block;
  height: 2px;
  background: var(--red);
  margin-top: 0.5rem;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.visible .title-line,
.fade-right.visible ~ .title-line,
.section-title-wrap.visible .title-line {
  transform: scaleX(1);
}

/* ===== BENEFIT NUMBER COUNT ANIMATION ===== */
.benefit-item.visible .benefit-number {
  animation: countUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

/* ===== BUTTON RIPPLE ===== */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn:active::after {
  transform: scale(2.5);
  opacity: 0;
  transition: 0s;
}

/* ===== SHIMMER ON LOGO ===== */
.nav-logo {
  background: linear-gradient(90deg, var(--white) 40%, var(--red) 50%, var(--white) 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s;
}
.nav-logo:hover {
  animation: shimmer 1s linear;
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: rgba(10,10,10,0.95);
  border-top: 1px solid var(--gray-3);
  backdrop-filter: blur(8px);
}
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background var(--ease);
}
.sticky-cta-btn:hover { background: var(--red-dark); color: var(--white); }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  /* Add padding to footer so sticky bar doesn't cover it */
  footer { padding-bottom: 5rem; }
}

/* ===== VIEWPORT SWITCHER ===== */
#view-switcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  gap: 3px;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.vs-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-b);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.vs-btn:hover { color: var(--white); }
.vs-btn.active {
  background: var(--red);
  color: var(--white);
}

/* ===== MOBILE PREVIEW MODE ===== */
html.mobile-mode {
  background: #0d0d0d;
}
html.mobile-mode body {
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0 100px;
  min-height: 100vh;
}
html.mobile-mode #page-wrap {
  width: 390px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 10px solid #1a1a1a;
  border-radius: 44px;
  box-shadow:
    0 0 0 1px #333,
    0 40px 100px rgba(0,0,0,0.9),
    inset 0 0 0 1px #222;
  transform: translate(0); /* contains fixed children inside the frame */
  scrollbar-width: none;
}
html.mobile-mode #page-wrap::-webkit-scrollbar { display: none; }
html.mobile-mode #page-wrap #header {
  position: sticky;
  top: 0;
}
html.mobile-mode #page-wrap .mobile-nav,
html.mobile-mode #page-wrap .lightbox {
  position: absolute;
  border-radius: 34px;
}
html.mobile-mode #view-switcher { bottom: 2rem; right: 2rem; }
html.mobile-mode .sticky-cta { display: block; position: sticky; bottom: 0; }

/*
 * MOBILE LAYOUT OVERRIDES FOR VIEWPORT SWITCHER
 * @media (max-width: 768px) does NOT fire when the browser viewport is desktop-wide.
 * These rules mirror the mobile media queries so the "Mobile" preview is correct.
 */

/* Nav */
html.mobile-mode .nav-links  { display: none; }
html.mobile-mode .nav-burger { display: flex; }

/* Section padding */
html.mobile-mode .about,
html.mobile-mode .benefits,
html.mobile-mode .gallery,
html.mobile-mode .contacts   { padding: 3.5rem 0; }
html.mobile-mode footer       { padding: 1.5rem 0 5rem; }

/* Container width */
html.mobile-mode .container  { width: 92%; }

/* Hero */
html.mobile-mode .hero         { min-height: 100svh; }
html.mobile-mode .hero-content { padding: 5.5rem 0 3rem; }
html.mobile-mode .hero h1      { font-size: 2rem; line-height: 1.1; }
html.mobile-mode .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; }
html.mobile-mode .hero-eyebrow::before { width: 22px; }
html.mobile-mode .hero-sub     { font-size: 0.88rem; max-width: 100%; }
html.mobile-mode .hero-cta     { flex-direction: column; }
html.mobile-mode .hero-cta .btn { display: flex; width: 100%; box-sizing: border-box; }

/* About — 1 column */
html.mobile-mode .about-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Benefits — 2×2 */
html.mobile-mode .benefits-header { margin-bottom: 2rem; }
html.mobile-mode .benefits-grid   { grid-template-columns: repeat(2, 1fr); }
html.mobile-mode .benefit-item    { padding: 1.5rem 0.75rem; }
html.mobile-mode .benefit-number  { font-size: 2.2rem; }
html.mobile-mode .benefit-desc    { font-size: 0.76rem; }

/* Gallery — single column */
html.mobile-mode .gallery-grid {
  grid-template-columns: 1fr;
  grid-template-rows: none;
}
html.mobile-mode .gallery-item              { height: 230px; }
html.mobile-mode .gallery-item:first-child  { grid-row: span 1; }

/* Section titles */
html.mobile-mode .section-title { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }

/* Contacts — 1 column */
html.mobile-mode .contacts-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}
html.mobile-mode .contacts-info .section-title { margin-bottom: 1.5rem; }
html.mobile-mode .contacts-cta .btn { display: flex; width: 100%; box-sizing: border-box; }

/* Footer */
html.mobile-mode .footer-inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
html.mobile-mode .footer-copy { font-size: 0.68rem; line-height: 1.6; }

/* ===== RESPONSIVE — real device media queries ===== */

/* --- Tablet 1024px --- */
@media (max-width: 1024px) {
  .about-grid    { gap: 3rem; }
  .contacts-grid { gap: 3rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile ≤ 768px (real phone viewport) --- */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }

  .about, .benefits, .gallery, .contacts { padding: 3.5rem 0; }
  footer      { padding: 1.5rem 0 5rem; }
  .sticky-cta { display: block; }

  .hero         { min-height: 100svh; }
  .hero-content { padding: 6.5rem 0 3.5rem; }
  .hero h1      { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-sub     { font-size: 0.9rem; max-width: 100%; }
  .hero-cta     { flex-direction: column; }
  .hero-cta .btn { display: flex; width: 100%; box-sizing: border-box; }

  /* About: single column — cards stack BELOW the text */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .benefits-header { margin-bottom: 2rem; }
  .benefits-grid   { grid-template-columns: repeat(2, 1fr); }
  .benefit-item    { padding: 1.75rem 1rem; }
  .benefit-number  { font-size: 2.5rem; }

  .gallery-grid               { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 170px); }
  .gallery-item:first-child   { grid-row: span 1; }

  .contacts-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contacts-info .section-title { margin-bottom: 1.5rem; }
  .contacts-cta .btn { display: flex; width: 100%; box-sizing: border-box; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }

  .vs-btn span   { display: none; }
  .vs-btn        { padding: 0.55rem 0.65rem; }
  #view-switcher { bottom: 1rem; right: 1rem; }
}

/* --- Small phones ≤ 480px (375px iPhones) --- */
@media (max-width: 480px) {
  .container    { width: 92%; }

  .hero-content { padding: 5.5rem 0 3rem; }
  .hero h1      { font-size: clamp(2rem, 10vw, 2.6rem); line-height: 1.1; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; }
  .hero-eyebrow::before { width: 22px; }
  .hero-sub     { font-size: 0.88rem; }

  .about-card   { padding: 1rem 1.1rem; }

  .benefit-item   { padding: 1.5rem 0.75rem; }
  .benefit-number { font-size: 2.2rem; }
  .benefit-desc   { font-size: 0.76rem; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item { height: 230px; }

  .section-title { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }

  .footer-copy   { font-size: 0.68rem; line-height: 1.6; }
}

/* Touch devices: disable hover transforms */
@media (hover: none) {
  .about-card:hover        { transform: none; }
  .social-link:hover       { transform: none; }
  .btn-primary:hover,
  .btn-outline:hover       { transform: none; }
  .gallery-item:hover img  { transform: none; }
}
