:root {
  --color-primary: #0f766e;
  --color-secondary: #d946ef;
  --color-white: #ffffff;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --color-overlay: rgba(0, 0, 0, 0.24);
  --color-footer-border: #e5e7eb;

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  --radius-sm: 4px;
  --radius-md: 8px;

  --header-height: 86px;
  --footer-height: 48px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Shippori Antique', 'Inter', sans-serif;
  color: var(--color-dark);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.header {
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  z-index: 100;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header__logo {
  width: min(248px, 62vw);
  height: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  flex: 1;
  min-height: 0;
}

.hero__slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__controls {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.hero__slide {
  position: relative;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: top; */
}

.hero__content {
  position: absolute;
  inset: 0;
  width: 50%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 4;
  padding: var(--space-lg);
  animation: fade-up 0.9s ease both;
  pointer-events: none;
}

.hero__title {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero__badge {
  margin: var(--space-md) 0 0;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: var(--space-xs) var(--space-lg);
}

.hero__cta {
  margin-top: clamp(56px, 11vh, 130px);
  width: min(407px, 90vw);
  background: var(--color-primary);
  padding: 26px 24px;
  display: grid;
  justify-items: center;
  gap: var(--space-lg);
  z-index: 10;
  pointer-events: auto;
}

.hero__desc {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(20px, 1.7vw, 20px);
  line-height: 1.45;
  max-width: 34ch;
}

.hero__cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 10px 20px;
  border: none;
  /* border-radius: var(--radius-sm); */
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero__cta-btn:hover,
.hero__cta-btn:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.swiper-pagination-desktop,
.swiper-pagination-mobile {
  pointer-events: auto;
  z-index: 6;
}

.swiper-pagination-desktop {
  position: absolute;
  top: 50% !important;
  right: 24px;
  left: auto;
  bottom: auto !important;
  transform: translateY(-50%);
  display: flex;
  align-items: end;
  justify-content: center;
  flex-direction: column;
  max-width: 98vw;
  gap: 8px;
}

.swiper-pagination-mobile {
  display: none;
}

.swiper-pagination-desktop .swiper-pagination-bullet,
.swiper-pagination-mobile .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.swiper-pagination-desktop .swiper-pagination-bullet-active,
.swiper-pagination-mobile .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
  width: 48px;
  opacity: 0;
  height: 48px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.28);
  color: var(--color-white);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.hero .swiper-button-prev {
  left: 24px;
}

.hero .swiper-button-next {
  right: 24px;
}

@media (min-width: 769px) {
  .swiper-pagination-mobile {
    display: none !important;
  }
  .swiper-pagination-desktop {
    display: flex !important;
  }
  .hero__content {
    padding: clamp(20px, 3vw, 40px);
  }

  .hero__cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8%;
    margin-top: 0;
  }
}

.footer {
  border-top: 1px solid var(--color-footer-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px var(--space-md);
}

.footer__copy {
  margin: 0;
  color: var(--color-dark);
  font-size: 16px;
  line-height: 1.5;
}

.footer__link {
  font-weight: 600;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  header {
    max-height: 72px;
  }
  .swiper-pagination-mobile {
    display: flex !important;
    justify-content: center !important;
    position: absolute;
    top: auto !important;
    bottom: 12px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 1px;
  }
  .swiper-pagination-desktop {
    display: none !important;
  }
  .hero {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    flex: 1;
    min-height: 0;
  }

  .hero__slider {
    height: auto;
    flex-shrink: 0;
  }

  .hero__slide {
    height: auto;
  }

  .hero__image {
    height: auto;
    min-height: 0;
    max-height: 60vh;
    aspect-ratio: 4 / 3;
    object-position: center;
  }

  .hero__slide::after {
    background: rgba(0, 0, 0, 0.08);
  }

  .hero__content {
    position: static;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 28px var(--space-lg) 32px;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    animation: fade-up 0.7s ease both;
    pointer-events: auto;
  }

  .hero__title,
  .hero__badge,
  .hero__desc,
  .hero__cta {
    border-radius: 0;
  }

  .hero__title {
    font-size: clamp(28px, 9vw, 48px);
    color: var(--color-white);
    background: transparent;
    padding: 0;
    white-space: nowrap;
  }

  .hero__badge {
    margin: var(--space-sm) 0 0;
    display: inline-block;
    font-size: clamp(10px, 2.8vw, 13px);
    white-space: nowrap;
    transform: none;
  }

  .hero__cta {
    position: static;
    transform: none;
    margin: 16px 0 0;
    width: 100%;
    max-width: none;
    justify-items: center;
    background: transparent;
    padding: 0;
    gap: var(--space-md);
  }

  .hero .swiper-button-prev,
  .hero .swiper-button-next {
    width: 40px;
    height: 40px;
    top: calc(50% - 24px);
  }

  .hero .swiper-button-prev {
    left: 12px;
  }

  .hero .swiper-button-next {
    right: 12px;
  }

  .hero__desc {
    font-size: 18px;
    line-height: 1.45;
    max-width: none;
  }

  .hero__cta-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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