/* FFIVE Landing — кастом поверх локального Tailwind build
   utilities: styles/tailwind.css
   шрифты: self-hosted woff2 (152-ФЗ, без Google CDN)
*/

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Montserrat-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Montserrat-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Montserrat-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/Montserrat-900-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2') format('woff2');
}

/* ---------- Brand tokens ---------- */
:root {
  --navy: #083063;
  --navy-light: #0a3d7a;
  --navy-dark: #062549;
  --orange: #e68300;
  --orange-light: #f5a623;
  --orange-dark: #c47000;
  --gold: #ffd75e;
  --gold-light: #ffe58a;
  --gold-dark: #f5ca47;
  --red: #c40027;
  --red-dark: #87000B;
  --red-accent: #ad1b39;
  --denim-blue: #91b8c9;
  --denim-light: #d4e8f1;
  --grayd: #282828;
  --grayd-medium: #4e4e4e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--grayd);
  -webkit-font-smoothing: antialiased;
}

.font-heading,
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

.font-body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #d4e8f1; }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }

/* ---------- Header / top menu (явный fallback, если Bitrix перебивает Tailwind) ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

#header nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

#header nav a {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--grayd);
  text-decoration: none;
}

#header nav a:hover {
  color: var(--orange);
}

#mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu.hidden {
  display: none !important;
}

@media (min-width: 1024px) {
  #header nav {
    display: flex !important;
  }

  #mobile-menu-btn {
    display: none !important;
  }

  #mobile-menu,
  #mobile-menu.hidden {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  #header nav {
    display: none !important;
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Jeans cards ---------- */
.jeans-card:hover .jeans-overlay { opacity: 1; }
.jeans-card:hover .jeans-img { transform: scale(1.05); }
.jeans-overlay { transition: opacity .3s ease; }
.jeans-img { transition: transform .4s ease; }

/* ---------- Denim texture ---------- */
.denim-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, .02) 2px,
    rgba(255, 255, 255, .02) 4px
  );
  pointer-events: none;
}

/* ---------- Form fields ---------- */
.input-field {
  width: 100%;
  padding: .625rem .75rem .625rem 2.5rem;
  border: 2px solid #e5e7eb;
  border-radius: .5rem;
  font-size: .875rem;
  transition: border-color .2s;
  background: #f9fafb;
}
.input-field:focus {
  border-color: var(--navy);
  background: #fff;
  outline: none;
}
.input-field::placeholder { color: #9ca3af; }

.input-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}

/* ---------- Consent checkbox (ФЗ-152) ---------- */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  cursor: pointer;
  font-size: .75rem;
  color: #6b7280;
  line-height: 1.4;
}
.consent-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  border: 2px solid #d1d5db;
  border-radius: .25rem;
  cursor: pointer;
  position: relative;
  margin-top: .125rem;
  transition: all .15s;
}
.consent-checkbox:checked {
  background: var(--navy);
  border-color: var(--navy);
}
.consent-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(8, 48, 99, .15);
}
.consent-label a {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- Back to top ---------- */
#back-to-top {
  transition: all .3s ease;
}

/* ---------- Spinner ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Ошибка отправки формы */
.form-error {
  color: var(--red);
  font-size: .75rem;
  line-height: 1.35;
  margin: 0;
}
.form-error.hidden {
  display: none !important;
}
