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

:root {
  --color-bg-screen: #f4f7f6;
  --color-primary: #023e61;
  --color-primary-dark: #252a2d;
  --color-text-muted: #529bb5;
  --color-gradient-start: rgba(56, 79, 88, 1);
  --color-gradient-end: rgba(121, 172, 190, 1);
  --color-white-85: rgba(255, 255, 255, 0.85);
  --font-body: "Roboto", Helvetica, sans-serif;
  --font-ui: "Inter", Helvetica, sans-serif;
  --touch-min: 48px;
  --content-max: 400px;
  --content-padding: 24px;
  --spacer-mascot: 120px;
  --app-frame-max-width: 375px;
  --app-frame-max-height: 640px;
  --app-frame-width: clamp(320px, 100vw, var(--app-frame-max-width));
  --app-frame-height: clamp(560px, 100dvh, var(--app-frame-max-height));
  /* Верх шапки: 10% высоты экрана от viewport top (с учётом центрирования рамки) */
  --main-viewport-top-gap: 10dvh;
  --main-frame-top-in-viewport: calc(
    env(safe-area-inset-top, 0px) +
    (100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--app-frame-height)) / 2
  );
  --main-header-top: calc(var(--main-viewport-top-gap) - var(--main-frame-top-in-viewport));
  --fluid-font-12: clamp(11px, 0.7vw + 9px, 12px);
  --fluid-font-14: clamp(12px, 0.85vw + 9px, 14px);
  --fluid-font-16: clamp(14px, 1vw + 10px, 16px);
  --fluid-space-8: clamp(6px, 0.5vw + 4px, 8px);
  --fluid-space-12: clamp(8px, 0.8vw + 5px, 12px);
  --fluid-space-16: clamp(10px, 1vw + 6px, 16px);
  --fluid-space-24: clamp(14px, 1.5vw + 8px, 24px);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  touch-action: manipulation;
}

body {
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}
