/* Про Тай landing — modern Cyrillic type + mobile-first */
/* Self-hosted: Google Fonts is unreliable from RU networks and the Telegram in-app browser. */
/* Farabee font by Dimitri Antonov / Blue Curve Designstudio (CC BY 4.0) */
@font-face {
  font-family: Farabee;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/farabee-bold.woff2") format("woff2");
}

@font-face {
  font-family: Farabee;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/farabee-regular.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --jungle: #071510;
  --sand: #f7efe0;
  --sand-dim: rgba(247, 239, 224, 0.95);
  --amber: #e8a317;
  --amber-hot: #ffc14a;
  --font-display: Farabee, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-enter: 800ms;
  --pad-x: max(1.1rem, env(safe-area-inset-left));
  --pad-r: max(1.1rem, env(safe-area-inset-right));
  --pad-b: max(1.25rem, env(safe-area-inset-bottom));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body {
  color: var(--sand);
  background: var(--jungle);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.world__photo,
.world__heat,
.world__mist {
  position: absolute;
  inset: -6%;
  will-change: transform;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 80ms linear;
}

.world__photo-inner {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 21, 16, 0.35), transparent 45%),
    url("assets/hero-phuket.jpg?v=6") center 35% / cover no-repeat;
  transform: scale(1.08);
  animation: ken 32s var(--ease-soft) infinite alternate;
}

.world__heat {
  background: radial-gradient(
    ellipse 70% 55% at 72% 28%,
    rgba(232, 163, 23, 0.22),
    transparent 62%
  );
  mix-blend-mode: screen;
  animation: heat 9s ease-in-out infinite alternate;
}

.world__mist {
  background:
    linear-gradient(
      180deg,
      rgba(7, 21, 16, 0.5) 0%,
      rgba(7, 21, 16, 0.22) 26%,
      rgba(7, 21, 16, 0.7) 52%,
      rgba(7, 21, 16, 0.94) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 21, 16, 0.72) 0%,
      rgba(7, 21, 16, 0.35) 42%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 100% 80% at 15% 90%,
      rgba(7, 21, 16, 0.94),
      transparent 58%
    );
}

.world__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.brand-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.7rem, 1.6vh, 0.95rem);
  margin-bottom: clamp(0.15rem, 0.5vh, 0.3rem);
}

.brand-overtitle {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-hot);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.brand-overtitle::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--amber-hot);
  border-radius: 1px;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--sand);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.45rem, 1.2vh, 0.8rem);
  height: 100%;
  height: 100dvh;
  max-width: 42rem;
  width: 100%;
  margin: 0;
  padding: max(0.9rem, env(safe-area-inset-top)) var(--pad-r)
    max(0.9rem, env(safe-area-inset-bottom)) var(--pad-x);
  transform: translateZ(40px);
}

.headline {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.lead {
  margin: 0;
  max-width: 38rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--sand-dim);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(0.3rem, 0.7vh, 0.42rem);
}

.points li {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.36;
  font-weight: 500;
  color: var(--sand);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(232, 163, 23, 0.6);
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: clamp(0.2rem, 0.6vh, 0.35rem);
  width: 100%;
  max-width: 24rem;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(255, 193, 74, 0.5);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--amber-hot), var(--amber));
  color: var(--jungle);
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 14px 36px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(232, 163, 23, 0.3);
  transform: translateZ(60px);
  transition:
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 160ms ease,
    filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.cta__label {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta:hover {
  transform: translateY(-2px) translateZ(60px);
  filter: brightness(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(232, 163, 23, 0.42);
}

.cta:active {
  transform: scale(0.98) translateZ(60px);
  filter: brightness(0.96);
}

.cta:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

.channels {
  margin-top: clamp(0.2rem, 0.6vh, 0.35rem);
  padding-top: clamp(0.45rem, 1vh, 0.65rem);
  border-top: 1px solid rgba(247, 239, 224, 0.2);
}

.channels__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 239, 224, 0.78);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.channels__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.channels__list a {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sand);
  text-decoration: none;
  background: rgba(7, 21, 16, 0.65);
  border: 1px solid rgba(247, 239, 224, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.channels__list a:hover {
  background: rgba(232, 163, 23, 0.22);
  border-color: rgba(255, 193, 74, 0.6);
  color: var(--amber-hot);
  transform: translateY(-1px);
}

.channels__list a:active {
  transform: scale(0.96);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding-top: clamp(0.35rem, 0.8vh, 0.55rem);
  border-top: 1px solid rgba(247, 239, 224, 0.16);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(247, 239, 224, 0.68);
}

.legal-links a {
  display: inline-flex;
  min-height: auto;
  padding: 2px 0;
  align-items: center;
  color: rgba(247, 239, 224, 0.88);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-links a:hover {
  color: var(--amber-hot);
}

.legal-links a:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

@keyframes ken {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes heat {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0.95;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.motion .brand-badge {
  opacity: 0;
  animation: rise var(--dur-enter) var(--ease-out) 60ms forwards;
}

html.motion .headline {
  opacity: 0;
  animation: rise var(--dur-enter) var(--ease-out) 140ms forwards;
}

html.motion .lead {
  opacity: 0;
  animation: rise var(--dur-enter) var(--ease-out) 200ms forwards;
}

html.motion .points {
  opacity: 0;
  animation: rise var(--dur-enter) var(--ease-out) 260ms forwards;
}

html.motion .actions {
  opacity: 0;
  animation: rise var(--dur-enter) var(--ease-out) 320ms forwards;
}

html.motion .channels {
  opacity: 0;
  animation: rise var(--dur-enter) var(--ease-out) 380ms forwards;
}

/* Phones: fit full viewport, tighter stack, full-width CTA */
@media (max-width: 640px) {
  .panel {
    justify-content: center;
    gap: clamp(0.35rem, 1.1vh, 0.55rem);
    height: 100%;
    height: 100dvh;
    padding: max(0.75rem, env(safe-area-inset-top)) var(--pad-r)
      max(0.75rem, env(safe-area-inset-bottom)) var(--pad-x);
  }

  .brand-badge {
    gap: 0.65rem;
    margin-bottom: 0.1rem;
  }

  .brand {
    font-size: clamp(2.2rem, 8.5vw, 2.75rem);
    line-height: 1;
    letter-spacing: 0.01em;
  }

  .brand-overtitle {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .headline {
    font-size: clamp(1.35rem, 5.2vw, 1.65rem);
    line-height: 1.16;
    letter-spacing: 0.01em;
    max-width: 22ch;
  }

  .lead {
    font-size: clamp(0.84rem, 3.3vw, 0.92rem);
    line-height: 1.38;
  }

  .points {
    gap: 0.28rem;
  }

  .points li {
    font-size: clamp(0.82rem, 3.1vw, 0.88rem);
    line-height: 1.32;
    padding-left: 0.95rem;
  }

  .points li::before {
    width: 0.34rem;
    height: 0.34rem;
    top: 0.46em;
  }

  .actions {
    max-width: none;
    margin-top: 0.15rem;
  }

  .cta {
    min-height: 48px;
    padding: 0.7rem 1.15rem;
    border-radius: 12px;
  }

  .cta__label {
    font-size: 1.02rem;
  }

  .channels {
    margin-top: 0.15rem;
    padding-top: 0.4rem;
  }

  .channels__title {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .channels__list {
    gap: 0.3rem 0.45rem;
  }

  .channels__list a {
    font-size: 0.78rem;
    padding: 0.24rem 0.65rem;
    min-height: 30px;
  }

  .legal-links {
    font-size: 0.68rem;
    padding-top: 0.35rem;
    gap: 0.2rem 0.65rem;
  }

  .legal-links a {
    min-height: auto;
    padding: 2px 0;
  }

  .world__photo-inner {
    background-position: 60% 28%;
  }
}

@media (max-height: 580px) {
  html,
  body {
    overflow-y: auto;
  }

  .panel {
    height: auto;
    min-height: 100dvh;
    justify-content: flex-start;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 641px) {
  .actions {
    align-items: flex-start;
  }

  .cta {
    width: auto;
    min-width: 16.5rem;
  }
}

@media (min-width: 900px) {
  :root {
    --pad-x: clamp(2.5rem, 5.5vw, 5.5rem);
    --pad-r: clamp(2rem, 4vw, 3.5rem);
  }

  .panel {
    justify-content: center;
    gap: clamp(0.55rem, 1.3vh, 0.9rem);
    max-width: 44rem;
    height: 100%;
    height: 100dvh;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .brand-badge {
    gap: 0.95rem;
  }

  .brand {
    font-size: clamp(2.8rem, 3.8vw, 3.8rem);
    letter-spacing: 0.01em;
  }

  .brand-overtitle {
    font-size: 0.84rem;
    letter-spacing: 0.18em;
  }

  .headline {
    font-size: clamp(1.95rem, 2.6vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    max-width: 24ch;
  }

  .lead {
    font-size: clamp(0.98rem, 1.15vw, 1.12rem);
    line-height: 1.48;
    max-width: 40rem;
  }

  .points {
    gap: 0.42rem;
  }

  .points li {
    font-size: clamp(0.94rem, 1.05vw, 1.04rem);
    line-height: 1.4;
    padding-left: 1.25rem;
  }

  .points li::before {
    width: 0.42rem;
    height: 0.42rem;
    top: 0.48em;
  }

  .actions {
    margin-top: 0.3rem;
    max-width: 24rem;
  }

  .cta {
    min-height: 54px;
    padding: 0.85rem 1.5rem;
    border-radius: 13px;
  }

  .cta__label {
    font-size: 1.15rem;
  }

  .channels {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
  }

  .channels__title {
    font-size: 0.76rem;
    margin-bottom: 0.35rem;
  }

  .channels__list a {
    font-size: 0.86rem;
    padding: 0.32rem 0.8rem;
    min-height: 34px;
  }

  .legal-links {
    font-size: 0.74rem;
    padding-top: 0.45rem;
    gap: 0.3rem 0.85rem;
  }

  .legal-links a {
    min-height: auto;
    padding: 2px 0;
  }

  .world__photo-inner {
    background-position: center 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world__photo-inner,
  .world__heat,
  .brand-badge,
  .headline,
  .lead,
  .points,
  .actions,
  .channels {
    animation: none !important;
  }

  .brand-badge,
  .headline,
  .lead,
  .points,
  .actions,
  .channels {
    opacity: 1;
    transform: none;
  }

  .world__photo,
  .world__heat,
  .world__mist {
    transition: none;
  }

  .cta:hover,
  .cta:active {
    transform: none;
  }
}
