/* LOPL — одна центрированная карточка */

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

:root {
    --bg: #0c0b0f;
    --bg-elevated: #14121a;
    --surface: #1a1724;
    --text: #f4f2f8;
    --muted: #9a93a8;
    --accent: #e8a87c;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 14px;
    --radius-lg: 24px;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Montserrat", Georgia, serif;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --shell-pad: clamp(1.25rem, 5vw, 2.5rem);
    --landing-pad: clamp(1.5rem, 5vw, 2.25rem);
    --landing-gap: clamp(1rem, 3vw, 1.35rem);
    --landing-radius: var(--radius-lg);
    --title-size: clamp(1.35rem, 3.5vw + 0.5rem, 1.75rem);
    --sub-size: 0.9375rem;
    --avatar: min(13rem, 52vw);
    --btn-pad-y: 1.05rem;
    --btn-pad-x: 1.1rem;
    --btn-font: 0.9375rem;
    --btn-gap: 0.65rem;
    --btn-icon: 28px;
    --btn-chevron: 22px;
}

html {
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 168, 124, 0.12), transparent),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(120, 90, 200, 0.08), transparent);
  -webkit-touch-callout: none;
}

::selection {
  background: transparent;
  color: inherit;
}

::-moz-selection {
  background: transparent;
  color: inherit;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
}

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

/* Внешняя оболочка: центрирует один большой блок по странице */

.shell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--shell-pad);
}

/* Большой блок: 4 зоны — фото → заголовок → подзаголовок → кнопки */

.landing {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--landing-gap);
  padding: var(--landing-pad);
  border-radius: var(--landing-radius);
  border: 1px solid var(--border);
  background: rgba(26, 23, 36, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.landing__photo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.landing__title {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: var(--title-size);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
}

.landing__sub {
  margin: 0;
  max-width: 100%;
  font-size: var(--sub-size);
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Фото — круг, без выделения */

.mascot__frame {
  position: relative;
  width: var(--avatar);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.mascot__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Кнопки */

.mascot__actions {
  display: grid;
  gap: var(--actions-gap, 0.75rem);
  width: 100%;
  margin-top: 0.25rem;
  grid-template-columns: 1fr;
}

.mascot-btn {
  display: flex;
  align-items: center;
  gap: var(--btn-gap);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: var(--btn-font);
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mascot-btn:hover {
  border-color: rgba(232, 168, 124, 0.35);
  background: rgba(20, 18, 26, 0.95);
  transform: translateY(-2px);
}

.mascot-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mascot-btn__icon-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-icon);
  height: var(--btn-icon);
  line-height: 0;
}

.mascot-btn__icon {
  display: block;
  width: var(--btn-icon);
  height: var(--btn-icon);
  max-width: var(--btn-icon);
  max-height: var(--btn-icon);
  object-fit: contain;
  object-position: center;
}

.mascot-btn__label {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.mascot-btn__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-icon);
  height: var(--btn-icon);
  line-height: 0;
}

.mascot-btn__icon--chevron {
  width: var(--btn-chevron);
  height: var(--btn-chevron);
  max-width: var(--btn-chevron);
  max-height: var(--btn-chevron);
}

/* Мобильная версия: компактнее шрифты, отступы, аватар и кнопки */

@media (max-width: 639px) {
  :root {
    --shell-pad: 0.65rem 0.75rem;
    --landing-pad: 0.85rem 0.75rem;
    --landing-gap: 0.65rem;
    --landing-radius: 18px;
    --title-size: clamp(0.95rem, 3.8vw + 0.55rem, 1.25rem);
    --sub-size: 0.8125rem;
    --avatar: min(9.5rem, 44vw);
    --btn-pad-y: 0.65rem;
    --btn-pad-x: 0.55rem;
    --btn-font: 0.8125rem;
    --btn-gap: 0.4rem;
    --btn-icon: 22px;
    --btn-chevron: 17px;
    --actions-gap: 0.45rem;
  }

  body {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .landing {
    max-width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
  }

  .mascot__frame {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  }

  .mascot-btn {
    border-radius: var(--radius);
  }
}

@media (min-width: 640px) {
  .landing {
    max-width: 36rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mascot-btn:hover {
    transform: none;
  }
}
