/* ================================================================
   8mart — style.css
   Mobile-only. Макет 390px (iPhone 13/14/15).
   На больших экранах — центрирование без растяжки.
   Медиа-запросы не используются.
================================================================ */

/* ================================================================
   1. ШРИФТЫ
================================================================ */

@font-face {
  font-family: 'Druk Cyr';
  src: url('../assets/fonts/DrukCyr-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Actay';
  src: url('../assets/fonts/Actay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Actay Wide';
  src: url('../assets/fonts/ActayWide-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ================================================================
   2. CSS-ПЕРЕМЕННЫЕ
================================================================ */
:root {
  --color-brand:      #EE1D74;
  --color-brand-dk:   #c9105e;
  --color-text:       #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-bg:         #ffffff;
  --color-border:     #e8e8e8;

  --font-base:   'Actay', sans-serif;
  --font-head:   'Druk Cyr', sans-serif;
  --font-accent: 'Actay Wide', sans-serif;

  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);

  --transition: 0.2s ease;
}

/* ================================================================
   3. СБРОС
================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* ================================================================
   4. BODY — центрирует мобильный макет на любом экране
================================================================ */
body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-brand);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

/* ================================================================
   5. #APP — фиксированный мобильный контейнер 390px
================================================================ */
#app {
  width: 390px;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--color-brand);
  position: relative;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  touch-action: manipulation;
}

input, textarea, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   6. КОНТЕЙНЕР — внутренние отступы для контента
================================================================ */
.container {
  width: 100%;
  padding-inline: 20px;
}

/* ================================================================
   7. HEADER
================================================================ */
.site-header {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.logo img {
  height: 30px;
  width: auto;
}

/* ================================================================
   8. HERO
================================================================ */
.hero {
  margin-top: 32px;
  padding-inline: 20px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffffff;
  overflow-wrap: break-word;
}

/* ================================================================
   9. HERO IMAGE
================================================================ */
.hero__image {
  margin-top: 24px;
  margin-inline: -20px;
}

.hero__image img {
  width: 100%;
  height: auto;
  max-width: none;
}

/* ================================================================
   10. BADGE
================================================================ */
.hero__badge {
  display: inline-block;
  margin-top: 24px;
  padding: 4px 8px;
  background: #E4FF38;
  color: #000000;
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 0;
  max-width: 100%;
}

/* ================================================================
   10. INFO CARD
================================================================ */

.hero__image {
  position: relative;
  z-index: 1;
}

.info-card {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  margin-inline: 12px;
  padding: 32px;
  background: #ffffff;
  border-radius: 32px;
}

/* Заголовок */
.card-title {
  font-family: var(--font-accent); /* Actay Wide */
  font-size: 30px;
  font-weight: 700;
  color: #000000;
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

/* Подзаголовок */
.card-subtitle {
  font-family: var(--font-base); /* Actay */
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 28px;
}

/* Кнопки — вертикальный стек */
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 70px;
  border-radius: 100px;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
  touch-action: manipulation;
  transition: opacity 0.15s ease, transform 0.12s ease, filter 0.15s ease;
  line-height: 1;
}

.card-btn svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.card-btn:active {
  opacity: 0.88;
  transform: scale(0.97);
}

/* WhatsApp — главная CTA кнопка */
.card-btn--wa {
  width: 85%;
  background: #25D366;
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.25);
  animation: pulse-wa 3.5s ease-in-out infinite;
}

.card-btn--wa::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 80%
  );
  animation: shimmer-wa 5s ease-in-out infinite;
  pointer-events: none;
}

.card-btn--wa:hover {
  filter: brightness(1.08);
}

.card-btn--wa:active {
  animation: none;
  transform: scale(0.97);
  filter: brightness(1.1);
}

@keyframes pulse-wa {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 20px rgba(37, 211, 102, 0.25); }
  50%       { transform: scale(1.02); box-shadow: 0 0 32px rgba(37, 211, 102, 0.42); }
}

@keyframes shimmer-wa {
  0%   { transform: translateX(-150%) skewX(-20deg); }
  20%  { transform: translateX(300%)  skewX(-20deg); }
  100% { transform: translateX(300%)  skewX(-20deg); }
}

.card-hint {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-top: 10px;
}

/* ================================================================
   11. FOOTER
================================================================ */

.site-footer {
  padding-top: 32px;
  padding-bottom: 24px;
  text-align: center;
}

.site-footer__copy {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* ================================================================
   12. КНОПКИ (hero — заготовка)
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: opacity var(--transition);
  touch-action: manipulation;
}

.btn--block { width: 100%; }

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.btn--whatsapp:active { opacity: 0.85; }

/* ================================================================
   13. THANKS PAGE
================================================================ */

/* Keyframes */
@keyframes thanks-scale-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1);   }
}

@keyframes thanks-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.thanks {
  width: 390px;
  min-height: 100dvh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 32px;
  background: var(--color-brand);
}

/* Логотип */
.thanks__header {
  margin-bottom: 40px;
}

.thanks__header .logo img {
  height: 24px;
  width: auto;
}

/* Круг с галочкой */
.thanks__check {
  margin-bottom: 32px;
  animation: thanks-scale-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Заголовок */
.thanks__title {
  font-family: var(--font-head); /* Druk Cyr */
  font-size: 48px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
  animation: thanks-fade-up 400ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
}

/* Подзаголовок */
.thanks__subtitle {
  font-family: var(--font-base); /* Actay */
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 32px;
  animation: thanks-fade-up 400ms cubic-bezier(0.16, 1, 0.3, 1) 450ms both;
}

/* Белая карточка */
.thanks__card {
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  padding: 28px 24px;
  margin-bottom: 16px;
  animation: thanks-fade-up 400ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both;
}

.thanks__card-text {
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 12px;
}

.thanks__card-hint {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 400;
  color: #aaaaaa;
  text-align: center;
  line-height: 1.5;
}

/* Резервная кнопка */
.thanks__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  border-radius: 100px;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  touch-action: manipulation;
  transition: opacity 0.15s ease, transform 0.1s ease;
  margin-bottom: 20px;
}

.thanks__btn:active {
  opacity: 0.82;
  transform: scale(0.98);
}

.thanks__btn--wa {
  background: #25D366;
  color: #ffffff;
}

/* Таймер */
.thanks__timer {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: auto; /* толкает футер вниз */
  padding-bottom: 40px;
}

/* Футер */
.thanks__footer {
  margin-top: auto;
  padding-top: 32px;
}

.thanks__footer-copy {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
