@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');

/* =========================================================
   TURISTO MOBILE APP STYLE
   Instagram / Reels / Travel Club
========================================================= */

:root {
  --gold: #f4b84d;
  --dark: #061820;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --glass: rgba(5, 12, 15, 0.78);
  --white-soft: rgba(255, 255, 255, 0.16);
  --shadow: 0 12px 45px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--dark);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

button {
  font: inherit;
}

/* =========================================================
   MAIN SCREEN
========================================================= */

.screen {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: calc(14px + var(--safe-top)) 16px calc(86px + var(--safe-bottom));
  overflow: hidden;

  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background: linear-gradient(
    180deg,
    rgba(3, 20, 28, 0.04),
    rgba(3, 20, 28, 0.12) 38%,
    rgba(0, 0, 0, 0.84)
  );
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      circle at 10% 50%,
      rgba(244, 184, 77, 0.25),
      transparent 24%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.46),
      rgba(0, 0, 0, 0.05)
    );
}

.bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Z-INDEX GROUPS
========================================================= */

.header,
.content,
.destinations,
.maria-mini,
.nav {
  position: relative;
  z-index: 2;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.brand {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  max-width: 250px;
}

.logo-palm-svg {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  fill: var(--gold);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.brand-text {
  font-family: "Marck Script", "Segoe Script", cursive;
  font-size: 50px;
  line-height: 0.72;
  font-weight: 400;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
}

.brand-sub {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.25px;
}

/* =========================================================
   HEADER ACTIONS
========================================================= */

.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;

  color: #fff;
  background: rgba(0, 0, 0, 0.52);

  display: grid;
  place-items: center;
}

.actions svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* =========================================================
   HERO CONTENT
========================================================= */

.content {
  margin-top: clamp(50px, 10svh, 96px);
}

.slogan {
  margin-bottom: 10px;

  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 0;
  max-width: 90vw;

  font-family: Georgia, serif;
  font-size: clamp(46px, 13vw, 68px);
  line-height: 0.92;
  letter-spacing: -1px;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.48);
}

h1 span {
  color: var(--gold);
  font-family: "Marck Script", "Segoe Script", cursive;
}

.content p {
  max-width: 86vw;
  margin: 12px 0 0;

  font-size: clamp(17px, 4.7vw, 23px);
  line-height: 1.25;
  font-weight: 700;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   MARIA BLOCK
========================================================= */

.maria-mini {
  margin-top: clamp(22px, 5svh, 42px);

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 92vw;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.maria-mini img {
  width: 54px;
  height: 54px;
  border-radius: 50%;

  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);

  border: 2px solid rgba(244, 184, 77, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.maria-mini b {
  display: block;

  color: var(--gold);
  font-size: 16px;
  line-height: 1.1;
}

.maria-mini p {
  margin: 2px 0 0;
  max-width: 100%;

  font-size: 13px;
  line-height: 1.18;
  font-weight: 650;
}

/* =========================================================
   DESTINATIONS
========================================================= */

.destinations {
  margin-top: 14px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;

  margin-bottom: 10px;
}

.block-head h2 {
  margin: 0;

  font-size: 18px;
  line-height: 1.1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.block-head a {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

/* =========================================================
   CARDS ROW
   Две карточки на экран, без торчащей третьей
========================================================= */

.cards-row {
  display: flex;
  gap: 12px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;

  padding: 0;
  margin: 0;

  scrollbar-width: none;
}

.cards-row::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   DESTINATION CARD
   Чуть вытянутая карточка как постер
========================================================= */

.card {
  position: relative;

  flex: 0 0 calc((100% - 12px) / 2);
  height: 176px;

  border-radius: 21px;
  overflow: hidden;

  background-image:
    linear-gradient(
      180deg,
      transparent 28%,
      rgba(0, 0, 0, 0.86)
    ),
    var(--img);

  background-size: cover;
  background-position: center;

  padding: 12px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  scroll-snap-align: start;

  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.card i {
  position: absolute;
  right: 10px;
  top: 8px;

  font-style: normal;
  font-size: 25px;
}

.card strong {
  font-size: 20px;
  line-height: 1.02;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.card span {
  margin-top: 4px;

  font-size: 13px;
  font-weight: 800;
}

/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 20;

  height: 82px;
  padding: 8px 10px;

  display: grid;
  grid-template-columns: 1fr 1fr 74px 1fr 1fr;
  align-items: center;

  border-radius: 42px;
  background: rgba(4, 12, 15, 0.84);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav a {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.nav a span {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  color: currentColor;
}

.nav a b {
  display: block;

  max-width: 66px;
  overflow: hidden;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;

  color: currentColor;
}

.nav svg {
  width: 30px;
  height: 30px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav svg path {
  fill: currentColor;
  stroke: none;
}

.nav a.active,
.nav a.active span,
.nav a.active b {
  color: var(--gold);
}

/* =========================================================
   CENTER PALM BUTTON
========================================================= */

.nav .center span {
  width: 68px;
  height: 68px;
  margin-top: -24px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  color: #fff;
  background: radial-gradient(
    circle at 30% 25%,
    #ffe9ad,
    #f4b84d 55%,
    #9f6611
  );

  box-shadow:
    0 0 26px rgba(244, 184, 77, 0.7),
    0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav .center svg {
  width: 40px;
  height: 40px;
  fill: #fff;
  stroke: none;
}

.nav .center b {
  display: block;
  margin-top: -2px;

  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

/* =========================================================
   DESKTOP PREVIEW
========================================================= */

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: start center;
  }

  .screen {
    width: 430px;
    min-height: 932px;
  }

  .nav {
    left: 50%;
    right: auto;
    width: 406px;
    transform: translateX(-50%);
  }
}

/* =========================================================
   LOW HEIGHT PHONES
========================================================= */

@media (max-height: 760px) {
  .screen {
    padding-bottom: calc(80px + var(--safe-bottom));
  }

  .content {
    margin-top: 46px;
  }

  .maria-mini {
    margin-top: 18px;
  }

  .destinations {
    margin-top: 10px;
  }

  .card {
    height: 154px;
  }

  .content p {
    font-size: 18px;
  }

  .slogan {
    font-size: 13px;
  }

  h1 {
    font-size: 48px;
  }

  .nav {
    height: 68px;
  }

  .nav .center span {
    width: 64px;
    height: 64px;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 370px) {
  .brand {
    grid-template-columns: 32px 1fr;
    max-width: 218px;
  }

  .logo-palm-svg {
    width: 32px;
    height: 32px;
  }

  .brand-text {
    font-size: 42px;
  }

  .brand-sub {
    font-size: 10px;
  }

  .actions button {
    width: 42px;
    height: 42px;
  }

  .card {
    height: 148px;
  }

  .nav a b {
    display: none;
  }
}