@font-face {
  font-family: "Vesenniy Text Web";
  src: url("../assets/shared/Vesenniy-Text.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vesenniy Book Web";
  src: url("../assets/shared/Vesenniy-Book.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Vesenniy Regular Web";
  src: url("../assets/shared/Vesenniy-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vesenniy Regular Web";
  src: url("../assets/shared/Vesenniy-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vesenniy Medium Web";
  src: url("../assets/shared/Vesenniy-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vesenniy Regular Web";
  src: url("../assets/shared/Vesenniy-Semi-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Vesenniy Regular Web";
  src: url("../assets/shared/Vesenniy-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vesenniy Regular Web";
  src: url("../assets/shared/Vesenniy-Extra-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Цвета макета */
:root {
  --font-information: "Vesenniy Book Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-regular: "Vesenniy Regular Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-medium: "Vesenniy Medium Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --information-letter-spacing: 0.05em;
  --surface-3100: #f8f8f8;
  --surface-2900: #e8e8e8;
  --surface-3000: #f0f0f0;
  --text-100: #000000;
  --text-1000: #505050;
  --a-blue-300: #cdecff;
  --green-100: #e4f5f4;
  --red-50: #ffeae8;
  --mart-r3: #f23518;
  --mart-r4: #cc190c;
  --mart-g3: #00bf60;
  --mart-b3: #0095ff;
  --mart-b2: #33ccff;
}

/* Сброс и базовые стили */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  --page-block-width: min(100%, clamp(708px, calc(53.125vw + 300px), 1320px));
  --section-gap: 150px;

  background: var(--surface-3100);
  color: #111111;
  font-family: var(--font-regular);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  height: auto;
}

body.feedback-open {
  overflow: hidden;
}

.site-page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--surface-3100);
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease;
}

/* На первом кадре, пока CSS и шрифты ещё загружаются, виден только цвет фона. */
html.site-page-entering body {
  visibility: hidden;
}

.site-page-leaving .site-page-transition,
.site-page-entering .site-page-transition {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .site-page-transition {
    transition: none;
  }
}

.page {
  min-height: 100vh;
  padding-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  width: min(calc(100% - 30px), var(--page-block-width));
  margin: var(--section-gap) auto 0;
  padding-bottom: clamp(30px, 6vw, 60px);
  color: var(--site-footer-color, var(--text-100));
}

.site-footer__copyright {
  font-family: "Vesenniy Text Web", var(--font-regular);
  font-weight: 400;
  font-size: clamp(14px, calc(1vw + 10px), 18px);
  line-height: 1.8;
  letter-spacing: var(--information-letter-spacing);
  text-wrap: balance;
}

.site-footer__contacts {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(20px, 4vw, 30px);
  min-height: 32px;
}

.site-footer__filters {
  position: absolute;
}

.site-footer__filters feFlood {
  flood-color: var(--mart-b3);
}

.site-footer__contact {
  position: relative;
  display: block;
  width: var(--footer-icon-width);
  height: var(--footer-icon-height);
}

.site-footer__contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--footer-icon) center / contain no-repeat;
  filter: var(--site-footer-icon-filter, none);
}

a.site-footer__contact::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
}

a.site-footer__contact:hover::before,
a.site-footer__contact:focus-visible::before {
  filter: url(#site-footer-icon-hover);
}

a.site-footer__contact:focus-visible {
  outline: 2px solid var(--mart-b3);
  outline-offset: 5px;
}

.site-footer__contact--telegram {
  --footer-icon: url("../assets/shared/footer-telegram.svg");
  --footer-icon-width: 27px;
  --footer-icon-height: 22px;
}

.site-footer__contact--email {
  --footer-icon: url("../assets/shared/footer-email.svg");
  --footer-icon-width: 28px;
  --footer-icon-height: 20px;
}

.site-footer__contact--youtube {
  --footer-icon: url("../assets/shared/footer-youtube.svg");
  --footer-icon-width: 30px;
  --footer-icon-height: 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Шапка: размеры макета при 1920px, с адаптацией до мобильного меню. */
.header {
  /* Линейные формулы без умножения в calc(): иначе старый Chromium сбрасывает height. */
  --header-h: clamp(60px, calc(46.6667px + 1.73611vw), 80px);
  --logo-w: clamp(72px, calc(50px + 2.86458vw), 105px);
  --header-gap: clamp(18px, calc(7.33333px + 1.38889vw), 34px);
  --header-padding: clamp(20px, calc(13.3333px + .868056vw), 30px);
  --header-font: clamp(12px, calc(9.33333px + .347222vw), 16px);

  position: relative;
  z-index: 50;
}

/* ===== Десктопная шапка ===== */
.header__desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1920px;
  height: var(--header-h);
  margin: 0 auto;
  padding-inline: var(--header-padding);
  background: var(--surface-3100);
  font-size: var(--header-font);
  letter-spacing: 0.04em;
}

.header__side {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

.header__side--right {
  justify-content: flex-end;
}

.header__logo {
  display: block;
  flex-shrink: 0;
  padding-top: 2px;
}

.header__logo img {
  display: block;
  width: var(--logo-w);
  height: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--header-gap);
  flex: 0 1 1320px;
  min-width: 0;
  white-space: nowrap;
}

.header__link {
  color: #000000;
  transition: color 0.2s ease;
}

.header__link:not([aria-current="page"]):hover,
.header__link:not([aria-current="page"]):focus-visible {
  color: var(--mart-r3);
}

.header__link--icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__icon {
  display: flex;
  color: #a0a0a0;
  transition: color 0.2s ease;
}

.header__link--icon:not([aria-current="page"]):hover .header__icon,
.header__link--icon:not([aria-current="page"]):focus-visible .header__icon {
  color: var(--mart-r3);
}

.header__icon svg {
  display: block;
}

.header__language {
  white-space: nowrap;
}

.flag-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.2em;
  object-fit: contain;
  vertical-align: -0.14em;
}

@media (max-width: 767.98px) {
  body {
    --page-block-width: min(calc(100% - 30px), 420px);
    --section-gap: clamp(50px, calc(7.14286vw + 24.2857px), 60px);
  }
}

/* FAQ: строки и текст масштабируются непрерывно, мобильная фаза перестраивает переносы. */
.faq {
  --faq-question-size: clamp(24px, calc(0.64516vw + 17.548px), 28px);
  --faq-answer-size: clamp(20px, calc(0.32258vw + 16.774px), 22px);
  --faq-preview-size: clamp(46px, calc(1.29032vw + 33.097px), 54px);

  width: var(--page-block-width);
  margin: var(--section-gap) auto 0;
}

.faq__item {
  padding: 22px 30px 22px 0;
  border-bottom: 2px solid #d8d8d8;
}

.faq__question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: var(--faq-preview-size);
  list-style: none;
  cursor: pointer;
}

.faq__question-row::-webkit-details-marker {
  display: none;
}

.faq__question-row::marker {
  content: "";
}

.faq__prompt {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.faq__question {
  min-width: 0;
  color: #000;
  font-size: var(--faq-question-size);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  transition: color 220ms ease;
}

.faq__preview {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--faq-preview-size);
  height: var(--faq-preview-size);
  overflow: hidden;
  border: 2px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
}

.faq__preview img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--faq-preview-size);
  height: var(--faq-preview-size);
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.faq__preview--ai {
  background: #d97757;
}

.faq__preview--ai img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.faq__arrow {
  flex: none;
  width: 30px;
  height: 30px;
  overflow: visible;
  color: #d8d8d8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 220ms ease, transform 220ms ease;
}

.faq__item[open] .faq__arrow {
  color: #000;
  transform: rotate(90deg);
}

.faq__item.is-collapsing .faq__arrow {
  color: #d8d8d8;
  transform: rotate(0);
}

.faq__question-row:focus-visible {
  outline: 2px solid var(--mart-b3);
  outline-offset: 5px;
}

.faq__question-row:focus-visible .faq__question {
  color: var(--mart-b3);
}

.faq__question-row:focus-visible .faq__arrow {
  color: #000;
}

@media (hover: hover) {
  .faq__question-row:hover .faq__question {
    color: var(--mart-b3);
  }

  .faq__question-row:hover .faq__arrow {
    color: #000;
  }
}

.faq__answer {
  padding-top: 18px;
  overflow: hidden;
  color: #282828;
  font-size: var(--faq-answer-size);
  font-family: var(--font-information);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: var(--information-letter-spacing);
  text-wrap: balance;
}

.faq__answer a:not(.faq__contact) {
  color: var(--mart-b3);
}

.faq__answer a:not(.faq__contact):hover,
.faq__answer a:not(.faq__contact):focus-visible {
  text-decoration: underline;
}

.faq__contact {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-top: 32px;
  padding: 12px 36px;
  border-radius: 100px;
  background: #000;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

@media (max-width: 767.98px) {
  .faq {
    --faq-question-size: 20px;
    --faq-answer-size: 16px;
    --faq-preview-size: 40px;
  }

  .faq__item {
    padding-block: 18px;
  }

  .faq__prompt {
    gap: 14px;
  }

  .faq__question {
    line-height: 1.3;
  }

  .faq__arrow {
    width: 22px;
    height: 22px;
  }

  .faq__contact {
    min-height: 48px;
    padding: 10px 24px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__question,
  .faq__arrow {
    transition: none;
  }
}

