@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap");
:root {
  --m-color-bg-top: #0b7a7b;
  --m-color-bg-bottom: #003f40;

  --m-color-text-main: #ffffff;
  --m-color-text-soft: #f5f8f7;

  --m-tabbar-height: 72px;

  --m-font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
}

/* ===== БАЗА ===== */

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

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

body {
  background: var(--m-color-bg-bottom);
  color: var(--m-color-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

/* ===== ФОНЫ ===== */

/* общий градиент по всему окну */
.m-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    var(--m-color-bg-top),
    var(--m-color-bg-bottom)
  );
}

/* картинка с девушкой: фиксированный макет 440×956 по центру */
.m-bg-img {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  max-width: 100vw;
  height: 956px; /* размер макета */
  background: url("/app/bg-hero.png") top center / contain no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* ===== ОБОЛОЧКА ПРИЛОЖЕНИЯ ===== */

.m-app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  min-height: 956px; /* чтобы совпасть с высотой макета */
  margin: 0 auto;
  padding: 24px 20px calc(var(--m-tabbar-height) + 24px);
  display: flex;
  flex-direction: column;
  color: var(--m-color-text-main);
}

/* ===== ХЕДЕР / ЛОГОТИП ===== */

.m-header {
  padding: 0;
}

.m-header-logo-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* делаем ощущение, что логотип – последняя буква */
.m-header-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.m-header-logo-word {
  font-family: "Cormorant Garamond", "Cormorant", serif;
  font-size: 28px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.m-header-logo-icon {
  width: 24px;
  height: 24px;
  display: block;
  margin-left: -2px; /* поджимаем, чтобы было как буква О */
}

.m-header-subtitle {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(245, 248, 247, 0.95);
}

/* ===== КОНТЕНТ ===== */

.m-main {
  flex: 1;
  padding: 0;
}

/* ---- Текстовый блок (карточка) ---- */
/* позиционируем по макету: заметно ниже лица, стекло очень мягкое */

.m-card {
  margin-top: 330px;               /* ключевой отступ: текст под лицом */
  max-width: 380px;
  margin-inline: auto;
  padding: 18px 22px 20px;
  border-radius: 28px;
  background: rgba(0, 70, 75, 0.22); /* почти прозрачная */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.m-card-text {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--m-color-text-soft);
  text-align: left;
  font-family: "Cormorant Garamond", "Cormorant", serif;
}

/* на более низких экранах (маленькие телефоны) чуть поднимаем, чтобы не уходило */
@media (max-height: 800px) {
  .m-card {
    margin-top: 300px;
  }
}

@media (max-height: 730px) {
  .m-card {
    margin-top: 270px;
  }
}

/* ===== БЛОК «ЧТО БЕСПОКОИТ…» ===== */

.m-quick {
  margin-top: 30px;
}

.m-quick-title {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.m-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* кнопки – мягкие, без жёсткой окантовки */

.m-quick-btn {
  border-radius: 999px;
  border: none;
  background: rgba(0, 85, 88, 0.32);   /* лёгкий оттенок, почти как фон */
  color: #f9fcfb;
  font-size: 13px;
  padding: 9px 12px;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
}

.m-quick-btn:hover {
  background: rgba(0, 110, 114, 0.45);
}

.m-quick-btn--active {
  background: rgba(132, 214, 196, 0.95);
  color: #05332f;
}

/* ===== ТАББАР ===== */

.m-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;                 /* в миниаппе прилипает к низу окна */
  width: 100%;
  max-width: 440px;
  height: var(--m-tabbar-height);
  border-radius: 26px;
  background: rgba(0, 47, 49, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 10px;
  z-index: 5;
}


.m-tab {
  border: none;
  background: transparent;
  color: rgba(240, 248, 247, 0.85);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.m-tab--active {
  color: #ffe9f4;
}

/* иконки – как в макете, но условно */

.m-tab-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.m-tab-icon--assistants::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 20% 0,
    #ffe3f3 0,
    #ffd6c7 35%,
    #c7e0ff 100%
  );
}

.m-tab-icon--favorites::before {
  content: "❤";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffb2c7;
}

.m-tab-icon--dream::before {
  content: "☁";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #f4f2ff;
}

.m-tab-icon--profile::before {
  content: "👤";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.m-tab-label {
  text-transform: lowercase;
}

/* ===== АДАПТИВ ПО ШИРИНЕ (узкие экраны) ===== */

@media (max-width: 420px) {
  .m-app {
    padding-inline: 14px;
  }

  .m-card {
    max-width: 100%;
  }

  .m-tabbar {
    border-radius: 24px;
  }
}


/* card без тяжёлой тени, более «воздушная» */
.m-card {
  box-shadow: none;
  background: rgba(0, 70, 75, 0.18); /* чуть легче, чем было */
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* на десктопах: таббар внизу центральной колонки, а не окна */
@media (min-width: 900px) and (min-height: 900px) {
  .m-app {
    position: relative;
    padding-bottom: calc(var(--m-tabbar-height) + 28px);
  }

  .m-tabbar {
    position: absolute;
    bottom: 12px;
  }
}
