/* Общий стиль страниц-гайдов по функциям (kaspi-reviews, additional-cities,
   kaspi-xml-integrations, kaspi-ignore-sellers, delivery-dumping).

   Значения взяты из лендинга (src/<lang>/style.css): боковые отступы секций
   120/60/16px, кнопка как .main-button (зелёная, радиус 4px, 16px/400),
   заголовки Unbounded (на kz — Noto Sans, см. --g-display), текст Noto Sans. Страницы подключают этот файл первым,
   а свой — вторым, и описывают в нём только уникальные блоки. */

/* Unbounded подключён только в ru/style.css — дублируем для kz/en-зеркал */
@font-face{
  font-family: 'Unbounded';
  font-weight: 200 900;
  font-style: normal;
  src: url('public/fonts/Unbounded/Unbounded-VariableFont_wght.ttf') format('truetype-variations'),
    url('public/fonts/Unbounded/Unbounded-VariableFont_wght.ttf') format('truetype');
  font-display: swap;
}

.guide{
  /* Шрифт заголовков и крупных цифр. В Unbounded нет казахских букв
     (ә, ғ, қ, ң, ө, ұ, ү, һ) — на kz-версиях заголовки набраны Noto Sans */
  --g-display: Unbounded, sans-serif;

  /* Цвета лендинга */
  --g-ink: #181818;
  --g-title: #1d1d1f;
  --g-text: #444444;
  --g-muted: #5e5252;
  --g-faint: #8e8e93;
  --g-blue: #007aff;
  --g-blue-dark: #0060cc;
  --g-green: #34c759;
  --g-green-dark: #2eb050;
  --g-green-text: #34c759; /* тот же, что --g-green: тёмного оттенка на гайдах нет */
  --g-green-soft: #eaf7ee;
  --g-red: #f04438;
  --g-red-text: #f04438; /* тот же, что --g-red */
  --g-red-soft: #fdecea;
  --g-violet: #5e5ce6;
  --g-violet-soft: #f0f0fe;
  --g-bg-soft: #f8f8fc;
  --g-pill: #f1f1f6;
  --g-line: #ececf1;
  --g-line-2: #e4e4ee;
  --g-line-3: #f0f0f6;

  /* Геометрия */
  --g-radius-button: 4px;
  --g-radius-card: 12px;
  --g-radius-block: 16px;
  --g-radius-pill: 100px;

  color: var(--g-ink);
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

.guide:lang(kk){
  --g-display: 'Noto Sans', Arial, sans-serif;
}

.guide a{
  color: var(--g-blue);
}

.guide a:hover{
  color: var(--g-blue-dark);
}

.guide button{
  font-family: inherit;
  cursor: pointer;
}

.guide [hidden]{
  display: none !important;
}

/* ---------------------------------------------------------------------------- */
/* Секции и контейнер — те же отступы, что у .section__container лендинга */

.guide__section{
  padding-block: 72px;
  background: #ffffff;
}

.guide__section--soft{
  background: var(--g-bg-soft);
}

/* Ширина колонки: на 1440px даёт те же 1200px контента и поля 120px, что у лендинга.
   box-sizing задан явно: на части страниц внутри действует content-box. */
.guide .guide__container{
  box-sizing: border-box;
}

.guide__container{
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 60px;
}

.guide__container--narrow{
  max-width: 940px;
}

/* Первый экран: одинаковый вертикальный ритм на всех страницах */
.guide__hero{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
}

.guide__hero--center{
  align-items: center;
  text-align: center;
}

/* Пилюля-бейдж не тянется на всю колонку */
.guide__hero > .guide__badge{
  align-self: flex-start;
}

.guide__hero--center > .guide__badge{
  align-self: center;
}

/* ---------------------------------------------------------------------------- */
/* Типографика */

.guide__h1{
  margin: 0;
  font-family: var(--g-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--g-title);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.guide__h2{
  margin: 0;
  font-family: var(--g-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--g-title);
  text-wrap: pretty;
}

.guide__h3{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--g-ink);
}

.guide__lead{
  margin: 0;
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--g-text);
  text-wrap: pretty;
}

.guide__text{
  margin: 0;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--g-muted);
}

.guide__note{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-muted);
}

/* Капсовая метка над блоком */
.guide__label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--g-faint);
}

/* ---------------------------------------------------------------------------- */
/* Кнопки — как .main-button лендинга */

.guide .guide__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--g-radius-button);
  background: var(--g-green);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #ffffff;
  text-align: center;
}

.guide .guide__cta:hover{
  background: var(--g-green-dark);
  color: #ffffff;
}

.guide .guide__cta--blue{
  background: var(--g-blue);
}

.guide .guide__cta--blue:hover{
  background: var(--g-blue-dark);
}

.guide .guide__cta--ghost{
  border: 1px solid var(--g-line);
  background: #ffffff;
  color: var(--g-ink);
}

.guide .guide__cta--ghost:hover{
  border-color: var(--g-blue);
  background: #ffffff;
  color: var(--g-blue);
}

/* ---------------------------------------------------------------------------- */
/* Повторяющиеся элементы */

/* Выделение слова в заголовке — как .kaspi__text на главной лендинга */
.guide__accent{
  padding: 0 8px;
  border-radius: 6px;
  background: var(--g-red);
  color: #ffffff;
  white-space: nowrap;
}

/* Пилюля «Гид по услугам SaleScout · Функция» */
.guide__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: var(--g-radius-pill);
  background: var(--g-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--g-muted);
}

.guide__card{
  padding: 26px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius-card);
  background: #ffffff;
}

/* ---------------------------------------------------------------------------- */
/* FAQ — один вид на всех гайдах: карточки-аккордеон на <details>.
   Разметка: .guide-faq > details.guide-faq__item > summary.guide-faq__question
   (h3.guide-faq__question-text + span.guide-faq__sign) + p.guide-faq__answer */

@keyframes guideFaqIn{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: none; }
}

.guide-faq{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 820px;
  margin: 26px auto 0;
}

.guide-faq__item{
  overflow: hidden;
  border-radius: 14px;
  background: var(--g-bg-soft);
}

/* На мягком фоне секции карточки белые, иначе сливаются с фоном */
.guide__section--soft .guide-faq__item{
  background: #ffffff;
}

.guide-faq__question{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
}

.guide-faq__question::-webkit-details-marker{
  display: none;
}

.guide-faq__question-text{
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--g-ink);
  text-wrap: pretty;
}

/* Знак «+/−» нарисован двумя линиями: не зависит от шрифта */
.guide-faq__sign{
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.guide-faq__sign::before,
.guide-faq__sign::after{
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #a6a6b3;
  transform: translate(-50%, -50%);
  transition: transform .2s, background .2s;
}

.guide-faq__sign::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

.guide-faq__item[open] .guide-faq__sign::before,
.guide-faq__item[open] .guide-faq__sign::after{
  background: var(--g-blue);
}

.guide-faq__item[open] .guide-faq__sign::after{
  transform: translate(-50%, -50%);
}

.guide-faq__answer{
  max-width: 680px;
  margin: 0;
  padding: 0 26px 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--g-muted);
  text-wrap: pretty;
}

.guide-faq__item[open] .guide-faq__answer{
  animation: guideFaqIn .3s ease both;
}

@media screen and (max-width: 600px){
  .guide-faq__question{
    padding: 18px 20px;
  }
  .guide-faq__answer{
    padding: 0 20px 20px;
  }
}

/* ---------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce){
  .guide *,
  .guide *::before,
  .guide *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media screen and (max-width: 1280px){
  .guide__h1{
    font-size: 32px;
  }
  .guide__h2{
    font-size: 26px;
  }
  .guide__lead{
    font-size: 17px;
  }
}

@media screen and (max-width: 1024px){
  .guide__section{
    padding-block: 56px;
  }
  .guide__container{
    padding-inline: 24px;
  }
}

@media screen and (max-width: 768px){
  .guide__section{
    padding-block: 48px;
  }
  .guide__container{
    padding-inline: 16px;
  }
}

@media screen and (max-width: 480px){
  .guide__section{
    padding-block: 40px;
  }
  .guide__h1{
    font-size: 28px;
    letter-spacing: -0.01em;
  }
  .guide__h2{
    font-size: 22px;
  }
  .guide__lead{
    font-size: 16px;
  }
}
