body.index-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(18, 32, 77, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  color: #1f1f1f;
  overflow-x: hidden;
}

body.index-page header {
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 20px;
  padding: 18px clamp(16px, 2.8vw, 28px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 32, 77, 0.08);
}

body.index-page .logo-container {
  flex: 1 1 auto;
  min-width: 0;
  gap: 16px;
}

body.index-page .logo-a,
body.index-page .logo-a img {
  height: 58px;
}

body.index-page .logo-container h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1;
  color: rgba(51, 51, 51, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.index-page .icon-container {
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.index-page .icon-container > div {
  height: 58px;
}

body.index-page .nav {
  width: auto;
  max-width: none;
  height: 58px;
  min-width: 0;
  position: relative;
  overflow: visible;
}

body.index-page .nav [type="checkbox"] + label {
  width: auto;
  min-width: 0;
  height: 58px;
  gap: 10px;
  padding: 0 16px 0 0;
}

body.index-page .nav-user-photo,
body.index-page .nav-user-photo img {
  width: 48px;
  height: 48px;
}

body.index-page .nav-user-photo {
  min-width: 58px;
  height: 58px;
}

body.index-page .nav-user-name {
  width: auto !important;
  min-width: 0;
}

body.index-page .nav-user-name span {
  display: inline-block;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.index-page .menu-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

body.index-page #button {
  width: 3.2rem;
  height: 3.2rem;
}

body.index-page .user-menu li {
  position: static;
  right: auto;
  width: 100%;
  display: block;
  transform: translateY(-8px);
  opacity: 0;
  height: auto;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

body.index-page .user-menu li a,
body.index-page .user-menu li .user-menu-link {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

body.index-page .user-menu-text {
  min-width: 0;
  width: auto;
  height: auto;
  justify-content: flex-start;
  padding: 0 12px;
}

body.index-page .user-menu-text span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.index-page .user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 225px;
  display: grid;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
}

body.index-page .nav input:checked ~ .user-menu {
  pointer-events: auto;
}

body.index-page .nav input:checked ~ .user-menu li:nth-child(1),
body.index-page .nav input:checked ~ .user-menu li:nth-child(2) {
  top: auto;
}

body.index-page .nav input:checked ~ .user-menu li {
  opacity: 1;
  transform: translateY(0);
}

body.index-page .nav input:checked ~ .user-menu li a span,
body.index-page .nav input:checked ~ .user-menu li .user-menu-link span,
body.index-page .nav input:checked ~ .user-menu li .user-menu-text span {
  opacity: 1;
}

body.index-page li .user-menu-icon {
  width: 50px;
  min-width: 50px;
  height: 50px;
}

body.index-page section {
  box-sizing: border-box;
  width: 100%;
  scroll-margin-top: 94px;
}

body.index-page .hero {
  min-height: calc(100svh - 94px);
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 32px) clamp(44px, 7vw, 72px);
}

body.index-page .hero-container {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
}

body.index-page .hero-image {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border: clamp(6px, 0.9vw, 10px) solid var(--main-color);
  border-radius: 50%;
  justify-self: center;
  box-shadow: 0 30px 60px rgba(18, 32, 77, 0.16);
}

body.index-page .hero-text {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 24px;
}

body.index-page .hero-text h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.98;
  font-weight: 500;
}

body.index-page .hero-text h1 span {
  display: inline-block;
  padding: 0 0.16em 0.12em;
}

body.index-page .hero-text .highlight {
  background-color: var(--main-color);
  color: #fff;
  border-radius: 18px;
}

body.index-page .hero-text .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border: 2px solid var(--main-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--main-color);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

body.index-page .hero-text .cta:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: var(--main-color);
  box-shadow: 0 20px 40px rgba(18, 32, 77, 0.18);
}

body.index-page .more-info {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

body.index-page .more-info p {
  margin: 0;
  color: var(--main-color);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

body.index-page .porshe {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(48px, 7vw, 80px) clamp(16px, 3vw, 32px);
  background: linear-gradient(135deg, #12204d 0%, #182a67 100%);
}

body.index-page .porshe-text-section,
body.index-page .porshe-video-section {
  width: auto;
  height: auto;
}

body.index-page .porshe-text-section {
  width: min(100%, 920px);
  margin-left: auto;
  display: grid;
  align-content: center;
  gap: 28px;
  color: #ffffff;
}

body.index-page .porshe-title {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

body.index-page .porshe-title img {
  width: clamp(40px, 6vw, 64px);
  height: clamp(40px, 6vw, 64px);
}

body.index-page .porshe-title div {
  height: auto;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
}

body.index-page .porshe-description {
  width: auto;
  display: grid;
  gap: 18px;
  font-size: 1rem;
}

body.index-page .porshe-description-goal {
  width: min(100%, 720px);
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  line-height: 1.35;
}

body.index-page .porshe-description-offer {
  width: fit-content;
  max-width: min(100%, 720px);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.index-page .porshe-video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 20px;
}

body.index-page .porshe-video-section video {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

body.index-page .index-bottom-nav {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 clamp(48px, 8vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
}

body.index-page .button {
  min-height: 168px;
  padding: 22px 16px;
  border: 2px solid rgba(18, 32, 77, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(18, 32, 77, 0.08);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

body.index-page .button img {
  height: clamp(48px, 6vw, 76px);
  width: auto;
  transition: transform 0.35s ease;
}

body.index-page .button p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  text-transform: lowercase;
  color: var(--main-color);
}

body.index-page .button:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 32, 77, 0.22);
  box-shadow: 0 24px 48px rgba(18, 32, 77, 0.14);
}

body.index-page .button:hover img {
  transform: scale(1.06);
}

@media screen and (max-width: 980px) {
  body.index-page .hero {
    min-height: 0;
  }

  body.index-page .hero-container,
  body.index-page .porshe {
    grid-template-columns: 1fr;
  }

  body.index-page .hero-text {
    justify-items: center;
    text-align: center;
  }

  body.index-page .porshe-text-section {
    width: 100%;
    margin-left: 0;
  }

  body.index-page .porshe-title,
  body.index-page .porshe-description {
    justify-items: center;
    text-align: center;
  }

  body.index-page .porshe-description-offer {
    width: auto;
  }
}

@media screen and (max-width: 760px) {
  body.index-page header {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }

  body.index-page .logo-container {
    width: calc(100% - 70px);
  }

  body.index-page .icon-container {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  body.index-page .nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    max-width: calc(100% - 58px);
  }

  body.index-page .hero-text {
    gap: 18px;
  }

  body.index-page .porshe {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media screen and (max-width: 560px) {
  body.index-page .logo-container {
    width: 100%;
    gap: 12px;
  }

  body.index-page .logo-a,
  body.index-page .logo-a img {
    height: 46px;
  }

  body.index-page .logo-container h3 {
    font-size: 1.05rem;
  }

  body.index-page .icon-container > div,
  body.index-page .menu-icon,
  body.index-page .nav,
  body.index-page .nav [type="checkbox"] + label {
    height: 48px;
  }

  body.index-page .icon-container {
    align-items: flex-start;
  }

  body.index-page .menu-icon {
    width: 48px;
    border-radius: 14px;
  }

  body.index-page #button {
    width: 2.8rem;
    height: 2.8rem;
  }

  body.index-page .nav-user-photo {
    min-width: 48px;
    width: 48px;
    height: 48px;
  }

  body.index-page .nav-user-photo img {
    width: 40px;
    height: 40px;
  }

  body.index-page .nav [type="checkbox"] + label {
    width: 100%;
    max-width: 100%;
    padding: 0 10px 0 0;
    border-radius: 14px;
    justify-content: flex-start;
    gap: 8px;
  }

  body.index-page .nav-user-name span {
    max-width: 100%;
    font-size: 0.9rem;
  }

  body.index-page .nav {
    width: calc(100% - 58px);
  }

  body.index-page .user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(220px, calc(100vw - 32px));
    display: grid;
    gap: 8px;
    z-index: 40;
    pointer-events: none;
  }

  body.index-page .user-menu li {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    display: block;
    transform: translateY(-8px);
    opacity: 0;
    height: auto;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  body.index-page .user-menu li:nth-child(1),
  body.index-page .user-menu li:nth-child(2) {
    transition-delay: 0s;
  }

  body.index-page .nav input:checked ~ .user-menu {
    pointer-events: auto;
  }

  body.index-page .nav input:checked ~ .user-menu li:nth-child(1),
  body.index-page .nav input:checked ~ .user-menu li:nth-child(2) {
    top: auto;
  }

  body.index-page .nav input:checked ~ .user-menu li {
    opacity: 1;
    transform: translateY(0);
  }

  body.index-page .user-menu li a,
  body.index-page .user-menu li .user-menu-link {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    border-radius: 14px;
  }

  body.index-page li .user-menu-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  body.index-page li .user-menu-icon img {
    width: 26px;
    height: 26px;
  }

  body.index-page li .user-menu-text {
    width: auto;
    flex: 1 1 auto;
    height: auto;
    justify-content: flex-start;
    padding: 0 12px;
  }

  body.index-page li .user-menu-text span {
    opacity: 1;
    font-size: 0.95rem;
  }

  body.index-page .menu {
    top: 16px;
    right: calc(-100vw - 24px);
    width: min(320px, calc(100vw - 24px));
    grid-template-rows: 48px;
    grid-auto-rows: 64px;
  }

  body.index-page .menu.active {
    right: 12px;
  }

  body.index-page .menu a {
    padding: 0 18px;
    font-size: 1.5rem;
  }

  body.index-page .hero {
    padding-top: 20px;
  }

  body.index-page .hero-container {
    gap: 22px;
  }

  body.index-page .hero-image {
    width: min(86vw, 320px);
  }

  body.index-page .hero-text .cta {
    width: 100%;
    padding: 14px 18px;
    box-sizing: border-box;
  }

  body.index-page .porshe-video-section {
    padding: 14px;
    border-radius: 22px;
  }

  body.index-page .index-bottom-nav {
    width: calc(100% - 24px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 32px;
  }

  body.index-page .button {
    min-height: 140px;
    padding: 18px 12px;
    border-radius: 20px;
  }
}

body.index-page .theme-toggle--header {
  min-width: 118px;
  height: 58px;
  border-radius: 16px;
}

body.index-page[data-theme="dark"] {
  color-scheme: dark;
  background:
    radial-gradient(circle at top left, rgba(122, 162, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #0a1220 0%, #0f1828 100%);
  color: var(--site-text);
}

body.index-page[data-theme="dark"] header {
  background: var(--site-header-bg);
  border-bottom-color: var(--site-header-border);
}

body.index-page[data-theme="dark"] .logo-container h3 {
  color: var(--site-text-soft);
}

body.index-page[data-theme="dark"] .hero-text .cta {
  background: rgba(15, 24, 40, 0.92);
  color: var(--site-text);
  border-color: rgba(122, 162, 255, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

body.index-page[data-theme="dark"] .hero-text .cta:hover {
  background: var(--main-color);
  color: #08111d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

body.index-page[data-theme="dark"] .more-info p {
  color: var(--site-text-muted);
}

body.index-page[data-theme="dark"] .porshe {
  background: linear-gradient(135deg, #08111d 0%, #10203d 100%);
}

body.index-page[data-theme="dark"] .porshe-description-offer {
  border-color: rgba(122, 162, 255, 0.28);
  background: rgba(7, 17, 29, 0.5);
}

body.index-page[data-theme="dark"] .porshe-video-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 162, 255, 0.14);
}

body.index-page[data-theme="dark"] .button {
  background: var(--site-surface);
  border-color: var(--site-border);
  box-shadow: var(--site-shadow-soft);
}

body.index-page[data-theme="dark"] .button p {
  color: var(--site-text);
}

body.index-page[data-theme="dark"] .button:hover {
  border-color: var(--site-border-strong);
  box-shadow: var(--site-shadow-card);
}

@media screen and (max-width: 980px) {
  body.index-page .theme-toggle--header {
    min-width: 54px;
  }
}

@media screen and (max-width: 560px) {
  body.index-page .theme-toggle--header {
    height: 48px;
    border-radius: 14px;
  }
}
