/* ============================================================
   Sona.exchange — base.css
   ТОЛЬКО необходимое для работы страниц без style.css
   Версия 1.0 / 2026-06-06
   ============================================================ */

/* --- @font-face: иконочный шрифт --- */
@font-face {
  font-family: icons;
  font-display: swap;
  src: url(../fonts/icons.woff2) format("woff2");
  font-weight: 400;
  font-style: normal
}

/* --- @font-face: SF Pro Display (используется в старых страницах: reviews, reserves) --- */
@font-face {
  font-family: "SF Pro Display";
  font-display: swap;
  src: url(../fonts/SF-Pro-Display-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal
}
@font-face {
  font-family: "SF Pro Display";
  font-display: swap;
  src: url(../fonts/SF-Pro-Display-Medium.woff2) format("woff2");
  font-weight: 500;
  font-style: normal
}
@font-face {
  font-family: "SF Pro Display";
  font-display: swap;
  src: url(../fonts/SF-Pro-Display-Semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal
}
@font-face {
  font-family: "SF Pro Display";
  font-display: swap;
  src: url(../fonts/SF-Pro-Display-Bold.woff2) format("woff2");
  font-weight: 900;
  font-style: normal
}

/* --- Иконочный шрифт: базовые классы --- */
/* Применяется к _icon-* и .filters-dropdown__arrow */
.filters-dropdown__arrow::before,
[class*=_icon-]::before {
  font-family: icons;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

/* Unicode значения иконок */
._icon-arrow-right:before  { content: "" }
._icon-arrow-down:before   { content: "" }
._icon-arrow-spoller:before{ content: "" }
._icon-arrow:before        { content: "" }
._icon-attention:before    { content: "" }
._icon-close:before        { content: "" }
._icon-delete:before       { content: "" }
._icon-eye-off:before      { content: "" }
._icon-eye:before          { content: "" }
._icon-info:before         { content: "" }
._icon-instagram:before    { content: "" }
._icon-plus:before         { content: "" }
._icon-search:before       { content: "" }
._icon-telegram:before     { content: ""; font-weight: 600 }
._icon-twitter:before      { content: "" }
._icon-user:before         { content: "" }

/* SVG-mask иконки (copy, info) */
._icon-info::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--dark, #14213d);
  -webkit-mask: url("../img/icons/info.svg") no-repeat center / contain;
  mask: url("../img/icons/info.svg") no-repeat center / contain;
}
._icon-png-copy::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--dark, #14213d);
  -webkit-mask: url("../img/icons/copy.svg") no-repeat center / contain;
  mask: url("../img/icons/copy.svg") no-repeat center / contain;
}

/* --- CSS-переменные (нужны некоторым элементам) --- */
:root {
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffb706;
  --orange: #fc8500;
  --dark: #14213d;
  --grey: #868E96;
  --bg-primary: #f6f7f9;
  --text-error: #C4183C;
  --gradient: linear-gradient(133deg, #ffd106 0%, #f7ab09 100%);
  --font-family: "SF Pro Display", sans-serif;
  --second-family: "Inter", sans-serif;
  --third-family: "Arial", sans-serif
}

/* --- Минимальный reset --- */
*,
*::after,
*::before {
  box-sizing: border-box
}

/* УБРАН старый * { padding:0; margin:0; border:0 } — он ломал нужные отступы элементов */

/* Убираем outline на фокус — стандартное поведение старого шаблона */
:active,
:focus {
  outline: 0
}
a:active,
a:focus {
  outline: 0
}

/* Load state — отключить transitions */
.load * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important
}

/* --- Body / html базовые --- */
body,
html {
  height: 100%;
  min-width: 320px
}
body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 143%;
  background: var(--bg-primary);
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent
}

/* Базовые элементы формы */
button,
input,
textarea {
  font-family: var(--font-family);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background-color: transparent;
  transition: all .2s ease-in-out 0s
}

button,
option,
select {
  cursor: pointer;
  color: inherit;
  background-color: transparent;
  outline: 0;
  transition: all .2s ease-in-out 0s
}

a {
  color: inherit;
  text-decoration: none;
  outline: 0;
  transition: all .2s ease-in-out 0s
}

img {
  max-width: 100%;
  vertical-align: top;
  object-fit: contain
}

/* --- .wrapper layout --- */
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  /* overflow: clip — осторожно: старый style.css имел это, но cms-reference ЗАПРЕЩАЕТ overflow:hidden на wrapper>main */
}
@supports (overflow: clip) {
  .wrapper {
    overflow: clip
  }
}
.wrapper > main {
  flex: 1 1 auto
}
.wrapper > * {
  min-width: 0
}

/* --- Блокировка скролла (мобильное меню) --- */
.lock body {
  overflow: hidden;
  touch-action: none;
  -ms-scroll-chaining: none;
  overscroll-behavior: none
}

/* --- .payment__timer (order.php — нужен order.js) --- */
.payment__timer {
  font-weight: 600;
  font-size: 25px;
  line-height: 128%;
  letter-spacing: normal;
  opacity: .4
}

/* --- exchange-page алерты (нужны exchange.php и user-details.php) --- */
.exchange-page__error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  margin-bottom: 24px;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 2px 3px 0 rgba(90,97,105,.1), 0 4px 8px 0 rgba(90,97,105,.12);
  background: rgba(253,201,7,.6)
}
.exchange-page__text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 4px
}
.exchange-page__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 14px;
  opacity: .6
}

/* --- .form__error (inline validation messages) --- */
.form__error {
  width: max-content;
  top: calc(100% + 2px);
  left: 0;
  color: var(--text-error);
  font-size: 12px;
  line-height: 150%;
  word-break: keep-all
}

/* --- Checkbox toggle (используется в некоторых страницах) --- */
.checkbox__switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0
}
.checkbox__input {
  display: none
}
.checkbox__input:checked + .checkbox__label {
  border-color: var(--orange)
}
.checkbox__input:checked + .checkbox__label::before {
  transform: translateX(21px);
  background-color: var(--orange)
}
.checkbox__label {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  transition: .4s;
  border-radius: 100px;
  border: 1px solid #becad6
}
.checkbox__label::before {
  position: absolute;
  content: "";
  width: 20px;
  height: calc(100% - 8px);
  left: 4px;
  top: 4px;
  bottom: 4px;
  border-radius: 50%;
  background-color: #becad6;
  transition: .4s
}
