/* Porsche flagship page visuals */

body.porsche-theme {
  margin: 0;
  background: radial-gradient(ellipse at center, #0c0c0c 0%, #050505 100%);
  color: #f5f5f5;
  font-family: "Porsche Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "liga", "kern";
  scroll-behavior: smooth;
}

body.porsche-theme.porsche-menu-open {
  overflow: hidden;
}

.porsche-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.porsche-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.porsche-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.05) saturate(1.1);
  transform: scale(1.02);
}

.porsche-hero__overlay {
  position: relative;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.1) 40%, rgba(5,5,5,0.75) 100%);
}

.porsche-hero__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 48px);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
}

.porsche-hero__chrome > * {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.porsche-hero__menu,
.porsche-hero__search {
  /* Glassmorphism эффект */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0;
  
  /* Круглая форма */
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.porsche-hero__menu {
  position: relative;
}

/* Иконка гамбургера через CSS */
.porsche-hero__menu::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 14px;
  background-image: 
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 20px 2px;
  background-position: 
    center top,
    center center,
    center bottom;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

.porsche-hero__menu:hover,
.porsche-hero__search:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.porsche-hero__home:hover,
.porsche-hero__home:hover,
.porsche-hero__cta:hover,
.porsche-hero__secondary:hover {
  border-color: #ffffff;
  background-color: rgba(255,255,255,0.12);
}

.porsche-hero__brand {
  font-size: clamp(18px, 2vw, 24px);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.52em;
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.porsche-hero__brand:hover {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Porsche crest inspired accent */
.porsche-hero__brand::after {
  content: '\1F3C1';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.7;
  animation: flagWave 2s ease-in-out infinite;
}

@keyframes flagWave {
  0%, 100% { transform: translateY(-50%) rotate(-5deg); }
  50% { transform: translateY(-50%) rotate(5deg); }
}

.porsche-hero__home {
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.porsche-hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.porsche-hero__chrome.is-hidden {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
}

.porsche-hero__content {
  align-self: flex-end;
  max-width: min(620px, 90vw);
  padding: clamp(32px, 6vw, 72px) 0;
  display: grid;
  gap: clamp(12px, 2vw, 20px);
}

.porsche-hero__eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.68);
}

.porsche-hero__title {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.porsche-hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  line-height: 1.6;
}

.porsche-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.porsche-hero__cta,
.porsche-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(0,0,0,0.35);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.porsche-hero__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.2), 
    transparent);
  transition: left 0.5s ease;
}

.porsche-hero__cta:hover::before {
  left: 100%;
}

.porsche-hero__cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.6);
}

.porsche-hero__secondary {
  background: transparent;
  color: rgba(255,255,255,0.78);
}

.porsche-hero__legal {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  max-width: 620px;
}

.porsche-hero.is-condensed .porsche-hero__chrome {
  background: rgba(5,5,5,0.65);
  padding: 14px clamp(16px, 4vw, 36px);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.porsche-menu {
  position: fixed;
  top: clamp(24px, 4vw, 48px);
  left: 50%;
  transform: translate(-50%, -24px);
  width: min(320px, 90vw);
  background: rgba(12,12,12,0.9);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.porsche-menu.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.porsche-menu__list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.porsche-menu__list a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.25s ease;
}

.porsche-menu__list li:last-child a {
  border-bottom: none;
}

.porsche-menu__list a:hover {
  color: #ffffff;
}

.porsche-main {
  flex: 1;
  display: grid;
  gap: clamp(64px, 12vw, 120px);
  padding: clamp(48px, 8vw, 120px) clamp(24px, 10vw, 160px) clamp(64px, 12vw, 140px);
}

.porsche-spotlights {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.porsche-spotlight {
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.porsche-spotlight:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

/* Racing stripe effect */
.porsche-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255,255,255,0.3) 25%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.3) 75%,
    transparent 100%);
  animation: racingStripe 3s ease-in-out infinite;
}

@keyframes racingStripe {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.porsche-spotlight__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
}

.porsche-spotlight__title {
  margin: 0;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 500;
}

.porsche-spotlight p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.porsche-section__title {
  margin: 0 0 clamp(32px, 5vw, 48px) 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.porsche-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.porsche-card {
  position: relative;
  min-height: 360px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 32px;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 12px;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  background: linear-gradient(160deg, rgba(10,10,10,0.8), rgba(5,5,5,0.6));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.porsche-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 
    0 40px 100px rgba(0,0,0,0.6),
    0 0 40px rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* 911 series special styling */
.porsche-card__family:contains('911') {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* GT series racing styling */
.porsche-card__family:contains('GT') {
  background: linear-gradient(45deg, #ff0000, #ffff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.porsche-card__family:contains('GT')::after {
  content: '\1F3CE\FE0F';
  position: absolute;
  right: -20px;
  top: 0;
  font-size: 12px;
}

/* Taycan electric styling */
.porsche-card__family:contains('Taycan') {
  background: linear-gradient(45deg, #00ffff, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.porsche-card__family:contains('Taycan')::before {
  content: '\26A1';
  position: absolute;
  left: -18px;
  top: 0;
  color: #00ffff;
  font-size: 12px;
  animation: electricPulse 2s ease-in-out infinite;
}

@keyframes electricPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; text-shadow: 0 0 10px #00ffff; }
}

.porsche-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-image, linear-gradient(160deg, #1a1a1a, #000));
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
  z-index: -2;
}

.porsche-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.9) 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.porsche-card:hover::before {
  transform: scale(1.05);
}

.porsche-card:hover::after {
  opacity: 0.85;
}

.porsche-card__family {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.porsche-card__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
}

.porsche-card__desc {
  margin: 0;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

.porsche-card__link {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.porsche-discover {
  display: grid;
  gap: clamp(32px, 6vw, 48px);
}

.porsche-discover__grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.porsche-discover__item {
  position: relative;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 28px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 260px;
  display: grid;
  align-content: end;
  gap: 10px;
}

.porsche-discover__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--discover-image, linear-gradient(120deg, #1a1a1a, #000));
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
  z-index: -2;
}

.porsche-discover__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0.35));
  z-index: -1;
}

.porsche-discover__item:hover::before {
  transform: scale(1.04);
}

.porsche-discover__eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.porsche-discover__title {
  margin: 0;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.porsche-footer {
  padding: clamp(48px, 10vw, 96px) clamp(24px, 10vw, 160px) clamp(32px, 5vw, 48px);
  background: #030303;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  display: grid;
  gap: clamp(32px, 6vw, 48px);
}

.porsche-footer__content {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.porsche-footer__content h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
}

.porsche-footer__link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  transition: color 0.3s ease;
}

.porsche-footer__link:hover {
  color: #ffffff;
}

.porsche-footer__social {
  display: inline-flex;
  gap: 8px;
}

.porsche-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.porsche-footer__social a:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.porsche-footer__company ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.porsche-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.porsche-footer__legal img {
  width: clamp(120px, 22vw, 160px);
  height: auto;
  max-height: 60px;
  object-fit: contain;
  filter: invert(1) brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transition: all 0.3s ease;
}

.porsche-footer__legal img:hover {
  filter: invert(1) brightness(1.4) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  transform: scale(1.05);
}

/* Small brand panels */
.small-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 48px 24px;
  max-width: 1400px;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.small-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.small-panel a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.small-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.small-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.small-panel__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.small-panel:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color, #fff);
}

.small-panel--porsche:hover {
  border-color: #b4975a;
  box-shadow: 0 8px 24px rgba(180, 151, 90, 0.4);
}

.small-panel--audi:hover {
  border-color: #f50537;
  box-shadow: 0 8px 24px rgba(245, 5, 55, 0.4);
}

.small-panel--bmw:hover {
  border-color: #1c69d4;
  box-shadow: 0 8px 24px rgba(28, 105, 212, 0.4);
}

.small-panel:hover .small-panel__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* Intro text section */
.intro-text {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

.intro-text__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.intro-text__description {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: #c9c9c9;
  margin: 0;
  max-width: 900px;
  margin: 0 auto;
}

/* Featured models section */
.featured-models {
  padding: 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.featured-model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.featured-model:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.featured-model__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.featured-model__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.featured-model__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: #ffffff;
}

.featured-model__text {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: #c9c9c9;
}

/* Swap order for right-aligned models */
.featured-model--right {
  grid-template-columns: 1fr 1fr;
}

.featured-model--right .featured-model__content {
  order: -1;
}

@media (max-width: 900px) {
  .featured-model,
  .featured-model--right {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  
  .featured-model--right .featured-model__content {
    order: 0;
  }
}

/* Hero video block */
.hero-video-block {
  position: relative;
  height: 85vh;
  margin: 80px 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  content-visibility: auto;
  contain-intrinsic-size: auto 85vh;
}

.hero-video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 64px;
  text-align: center;
}

.hero-video-block__title {
  margin: 0 0 12px 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-video-block__subtitle {
  margin: 0;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  color: #f5f5f5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  font-style: italic;
}

@media (max-width: 768px) {
  .hero-video-block {
    height: 60vh;
    margin: 40px 16px;
  }
  
  .hero-video-block__overlay {
    padding: 32px 16px;
  }
}

.will-animate {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
}

.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 1024px) {
  .porsche-hero__chrome {
    flex-wrap: wrap;
    row-gap: 16px;
    letter-spacing: 0.12em;
  }

  .porsche-hero__actions {
    justify-content: flex-end;
    width: 100%;
  }

  .porsche-menu {
    left: auto;
    right: clamp(16px, 6vw, 36px);
    transform: translateY(-24px);
  }
}

@media (max-width: 768px) {
  .porsche-hero__overlay {
    padding: clamp(24px, 6vw, 32px);
  }

  .porsche-hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .porsche-main {
    padding: clamp(32px, 8vw, 64px) clamp(16px, 6vw, 48px) clamp(48px, 10vw, 96px);
  }

  .porsche-card {
    min-height: 320px;
  }

  .porsche-menu {
    width: min(280px, 88vw);
  }
}

@media (max-width: 560px) {
  .porsche-hero__chrome {
    flex-direction: column;
    align-items: flex-start;
  }

  .porsche-hero__brand {
    letter-spacing: 0.36em;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  .will-animate,
  .in-view {
    opacity: 1;
    transform: none;
  }
}

/* Lazy loading styles for videos */
video.lazy-video {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 40, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  will-change: opacity;
}

video:not(.lazy-video) {
  opacity: 1;
}

/* Performance optimizations for all videos */
video {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Disable transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  video.lazy-video { transition: none !important; }
}

@supports (backdrop-filter: blur(10px)) {
  .porsche-hero__chrome {
    backdrop-filter: blur(8px);
  }

  .porsche-menu {
    backdrop-filter: blur(18px);
  }
}

/* Modal Window Styles */
.porsche-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.porsche-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.porsche-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.porsche-modal[aria-hidden="false"] .porsche-modal__overlay {
  opacity: 1;
}

.porsche-modal__container {
  position: relative;
  width: min(90vw, 900px);
  max-height: 95vh;
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 40px 120px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(180, 151, 90, 0.15);
  overflow: hidden;
  transform: translate3d(0, 60px, 0) scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
}

.porsche-modal[aria-hidden="false"] .porsche-modal__container {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.porsche-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.porsche-modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.porsche-modal__close svg {
  width: 20px;
  height: 20px;
}

.porsche-modal__content {
  padding: clamp(32px, 5vw, 48px);
  max-height: 95vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 151, 90, 0.5) rgba(255, 255, 255, 0.05);
}

.porsche-modal__content::-webkit-scrollbar {
  width: 6px;
}

.porsche-modal__content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.porsche-modal__content::-webkit-scrollbar-thumb {
  background: rgba(180, 151, 90, 0.5);
  border-radius: 3px;
}

.porsche-modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 151, 90, 0.7);
}

.porsche-modal__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.porsche-modal__family {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(180, 151, 90, 0.9);
  margin-bottom: 12px;
  font-weight: 600;
}

.porsche-modal__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.porsche-modal__body {
  margin-bottom: 32px;
}

.porsche-modal__description {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px 0;
}

.porsche-modal__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.porsche-modal__spec {
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.porsche-modal__spec:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border-color: rgba(180, 151, 90, 0.3);
  transform: translateY(-2px);
}

.porsche-modal__spec-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  font-weight: 600;
}

.porsche-modal__spec-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.porsche-modal__footer {
  display: none;
}

/* Lock body scroll when modal is open */
html.modal-open,
body.modal-open {
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0c0c0c 0%, #050505 100%);
}

body.modal-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

html.modal-open {
  overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .porsche-modal__container {
    width: 95vw;
    max-height: 92vh;
    border-radius: 20px;
  }

  .porsche-modal__content {
    padding: clamp(24px, 4vw, 32px);
    max-height: 92vh;
  }

  .porsche-modal__close {
    width: 40px;
    height: 40px;
    top: 16px;
    right: 16px;
  }

  .porsche-modal__title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .porsche-modal__specs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Accessibility: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .porsche-modal,
  .porsche-modal__overlay,
  .porsche-modal__container,
  .porsche-modal__close {
    transition: none !important;
  }

  .porsche-modal__container {
    transform: none !important;
  }
}
