/* ==========================================================================
   аллоха.store — база для 10 рекламных посевных страниц
   Брендбук: графит #1B1B1B, жёлтый #FCD901, светло-серый #E6E6E6,
   белый #FFFFFF, Montserrat. Один акцент, один радиус на элементы.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1b1b;
  --paper: #ffffff;
  --warm: #f4efe6;
  --sand: #efe3cc;
  --card: #e6e6e6;
  --text: #454545;
  --muted: #666666;
  --line: #d3d3d3;
  --line-dark: #474747;
  --accent: #fcd901;
  --accent-hover: #ffe53d;
  --radius-card: 16px;
  --radius-ctl: 10px;
  --wrap: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

dl,
dt,
dd {
  margin: 0;
}

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

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.page :focus-visible {
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4.2vw, 60px);
}

/* --- Шапка --------------------------------------------------------------- */

.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 14px;
}

.top__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.top__brand img {
  width: auto;
  height: clamp(16px, 1.7vw, 21px);
}

.top__side {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.top__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.top__phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.top__tag {
  display: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Служебная типографика ----------------------------------------------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.display {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.lead {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.62;
  color: var(--text);
  text-wrap: pretty;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- Кнопки -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-ctl);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .arr {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .arr {
  transform: translateX(3px);
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: #2f2f2f;
}

.btn--dark .arr {
  color: var(--accent);
}

/* Телефон рядом с кнопкой: удобная тап-зона и без прыжков базовой линии. */
.actions .call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

/* На тёмном фоне жёлтая кнопка сама по себе контрастна: рамка не нужна. */
.on-dark .btn,
.on-yellow .btn {
  border-color: transparent;
}

/* --- Футер --------------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  padding-block: 18px 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.foot a {
  font-weight: 600;
  color: var(--ink);
}

.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot--dark {
  border-top-color: var(--line-dark);
  color: #bdbdbd;
}

.foot--dark a {
  color: var(--paper);
}

/* --- Утилиты ------------------------------------------------------------- */

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

.no-js-note {
  display: none;
}

@media (min-width: 760px) {
  .top__tag {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .top {
    min-height: 64px;
    padding-block: 10px;
  }

  .top__phone {
    font-size: 13px;
  }

  .top__phone svg {
    width: 16px;
    height: 16px;
  }

  .btn {
    min-height: 52px;
    padding: 0 20px;
    font-size: 15px;
  }

  .foot {
    font-size: 11.5px;
  }
}

/* Мягкое появление контента; при reduced-motion ничего не двигается. */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.55s var(--ease) both;
  }

  .rise-2 {
    animation-delay: 0.08s;
  }

  .rise-3 {
    animation-delay: 0.16s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 560px) {
  .foot-mid {
    display: none;
  }
}
