/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: off-canvas, футер: accent-band, стиль: warm-earth.
Version: 1.2.4
Author: Site Builder Plugin
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===== Reset & base layout ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sb-font-body, "Segoe UI", system-ui, -apple-system, sans-serif);
    font-size: var(--sb-font-size, 16px);
    line-height: var(--sb-line-height, 1.6);
    color: var(--sb-color-text, #222);
    background: var(--sb-color-bg, #fff);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sb-color-link, #2271b1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Site wrapper ===== */
.sb-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sb-site-content {
    flex: 1;
    padding: 32px 20px;
    max-width: var(--sb-content-max-width, 920px);
    width: 100%;
    margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-heading, var(--sb-font-body, sans-serif));
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }

/* ===== Content elements ===== */
.sb-content figure { margin: 24px 0; }
.sb-content figure img { border-radius: 4px; }
.sb-content figcaption {
    font-size: 0.9em;
    color: var(--sb-color-muted, #666);
    text-align: center;
    margin-top: 6px;
}
.sb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.sb-content th, .sb-content td {
    padding: 8px 12px;
    border: 1px solid var(--sb-color-border, #e2e8f0);
    text-align: left;
}
.sb-content th {
    background: var(--sb-color-bg-alt, #f8f9fa);
    font-weight: 600;
}
.sb-content blockquote {
    border-left: 4px solid var(--sb-color-accent, #2271b1);
    margin: 20px 0;
    padding: 12px 20px;
    background: var(--sb-color-bg-alt, #f8f9fa);
    color: var(--sb-color-muted, #555);
}
.sb-content code {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.sb-content pre {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

/* ===== Variant-specific styles (header, footer, color scheme) injected below ===== */

/* Warm Earth — тёплые земляные тона: кремовый, коричневый, терракотовый */
:root {
    --sb-color-bg:              #fdf8f3;    /* warm cream */
    --sb-color-bg-alt:          #f5ede2;    /* darker cream */
    --sb-color-text:            #3f2e1f;    /* deep espresso brown */
    --sb-color-muted:           #857055;    /* muted wood */
    --sb-color-link:            #c65d3d;    /* terracotta */
    --sb-color-link-hover:      #a04829;    /* deeper terracotta */
    --sb-color-border:          #e5d9c9;    /* soft sand */
    --sb-color-accent:          #6b8c5e;    /* moss green */

    --sb-font-body:             'Charter', 'Georgia', 'Times New Roman', serif;
    --sb-font-heading:          'Merriweather', 'Charter', 'Georgia', serif;
    --sb-font-size:             17px;
    --sb-line-height:           1.75;
    --sb-content-max-width:     880px;
}

body.sb-site {
    background: var(--sb-color-bg);
    color: var(--sb-color-text);
    font-family: var(--sb-font-body);
    font-size: var(--sb-font-size);
    line-height: var(--sb-line-height);
}

body.sb-site h1, body.sb-site h2, body.sb-site h3, body.sb-site h4 {
    font-family: var(--sb-font-heading);
    color: var(--sb-color-text);
    letter-spacing: -0.005em;
    font-weight: 700;
}
body.sb-site h1 { line-height: 1.2; }
body.sb-site h2 {
    margin-top: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--sb-color-border);
}

body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: underline;
    text-decoration-color: rgba(198, 93, 61, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
body.sb-site a:hover {
    color: var(--sb-color-link-hover);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

body.sb-site strong { color: var(--sb-color-accent); }
body.sb-site em     { color: var(--sb-color-muted); }
body.sb-site blockquote {
    border-left: 4px solid var(--sb-color-link);
    padding: 12px 22px;
    background: var(--sb-color-bg-alt);
    border-radius: 0 6px 6px 0;
    color: var(--sb-color-text);
    font-style: italic;
}
body.sb-site code {
    background: var(--sb-color-bg-alt);
    color: var(--sb-color-link);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
}


/* ===== Header variant: off-canvas ===== */
/* =========================================================
   OFF-CANVAS HEADER
   ========================================================= */

.sb-header-oc {
  background: var(--sb-color-bg, #fff);
  border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}

.sb-header-oc-inner {
  max-width: var(--sb-content-max-width, 920px);
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 14px 20px;
  height: 60px;
}

/* =========================================================
   BURGER
   ========================================================= */

.sb-header-oc-burger {
  background: transparent;
  border: none;

  padding: 8px;
  cursor: pointer;

  width: 36px;
  height: 36px;

  display: flex;
  flex-direction: column;
  gap: 5px;

  justify-content: center;
  align-items: center;

  border-radius: 6px;

  transition: background 0.15s;
}

.sb-header-oc-burger:hover {
  background: var(--sb-color-bg-alt, #f9fafb);
}

.sb-header-oc-burger span {
  display: block;

  width: 20px;
  height: 2px;

  background: var(--sb-color-text, #111);

  transition:
    transform 0.2s,
    opacity 0.2s;
}

.sb-header-oc-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sb-header-oc-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.sb-header-oc-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   BRAND / LOGO
   ========================================================= */

.sb-header-oc-brand {
  margin: 0;

  font-size: 1.1em;
  font-weight: 700;
}

.sb-header-oc-brand a,
.sb-header-oc-name {
  color: var(--sb-color-text, #111);
  text-decoration: none;
}

.sb-header-oc-brand img {
  max-height: 36px;
  width: auto;
  display: block;
}

/* =========================================================
   BACKDROP
   ========================================================= */

.sb-header-oc-backdrop {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.4);

  opacity: 0;

  transition: opacity 0.2s;

  z-index: 200;

  pointer-events: none;
}

.sb-header-oc-backdrop.sb-oc-open {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   OFF-CANVAS PANEL
   ========================================================= */

.sb-header-oc-panel {
  position: fixed;

  top: 0;
  left: 0;

  width: 320px;
  max-width: 88vw;

  height: 100vh;

  background: var(--sb-color-bg, #fff);

  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);

  z-index: 201;

  transform: translateX(-100%);

  transition: transform 0.25s ease-out;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.sb-header-oc-panel.sb-oc-open {
  transform: translateX(0);
}

/* hidden + animation */
.sb-header-oc-panel[hidden] {
  display: none;
}

.sb-header-oc-panel[hidden].sb-oc-open {
  display: flex;
}

/* =========================================================
   PANEL HEADER
   ========================================================= */

.sb-header-oc-panel-head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 16px 20px;

  border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}

.sb-header-oc-panel-title {
  font-weight: 700;

  font-size: 0.9em;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: var(--sb-color-muted, #6b7280);
}

.sb-header-oc-panel-close {
  background: transparent;
  border: none;

  font-size: 1.5em;

  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  cursor: pointer;

  border-radius: 6px;

  color: var(--sb-color-muted, #6b7280);

  transition:
    background 0.15s,
    color 0.15s;
}

.sb-header-oc-panel-close:hover {
  background: var(--sb-color-bg-alt, #f9fafb);

  color: var(--sb-color-text, #111);
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.sb-header-oc-nav {
  flex: 1;

  overflow-y: auto;

  padding: 12px 8px;
}

.sb-header-oc-nav ul {
  list-style: none;

  margin: 0;
  padding: 0;
}

.sb-header-oc-nav li {
  position: relative;
}

/* =========================================================
   NORMAL MENU LINKS
   ========================================================= */

.sb-header-oc-nav a {
  display: block;

  padding: 10px 14px;

  color: var(--sb-color-text, #111);

  text-decoration: none;

  font-size: 0.95em;

  border-radius: 6px;

  transition:
    background 0.15s,
    color 0.15s;
}

.sb-header-oc-nav a:hover,
.sb-header-oc-nav .current-menu-item > a {
  background: var(--sb-color-bg-alt, #f9fafb);

  color: var(--sb-color-link, #2563eb);
}

/* =========================================================
   PARENT MENU ITEMS
   ========================================================= */

/*
 * Parent item consists of:
 *
 * ┌─────────────────────────────┐
 * │ Link                    ▼   │
 * └─────────────────────────────┘
 *
 * Submenu lives below this row.
 */

.sb-header-oc-nav .menu-item-has-children {
  display: grid;

  grid-template-columns: minmax(0, 1fr) 40px;
}

/* Parent link occupies only its own row */

.sb-header-oc-nav .menu-item-has-children > a {
  grid-column: 1;
  grid-row: 1;

  padding-right: 10px;
}

/* =========================================================
   SUBMENU TOGGLE BUTTON
   ========================================================= */

.sb-header-oc-submenu-toggle {
  grid-column: 2;
  grid-row: 1;

  align-self: center;
  justify-self: center;

  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  background: transparent;

  color: inherit;

  cursor: pointer;

  border-radius: 6px;

  z-index: 2;
}

/* Arrow */

.sb-header-oc-submenu-toggle::before {
  content: "▾";

  display: block;

  font-size: 0.75em;

  opacity: 0.6;

  transition: transform 0.2s ease;
}

/* Arrow button hover */

.sb-header-oc-submenu-toggle:hover {
  background: var(--sb-color-bg-alt, #f9fafb);
}

/* Arrow when submenu is open */

.sb-header-oc-nav li.sb-oc-open > .sb-header-oc-submenu-toggle::before {
  transform: rotate(180deg);
}

/* =========================================================
   SUBMENUS / ACCORDION
   ========================================================= */

/*
 * Important:
 * submenu is NOT part of the grid row.
 * It occupies the full width below the parent item.
 */

.sb-header-oc-nav .sub-menu {
  grid-column: 1 / -1;
  grid-row: 2;

  max-height: 0;

  overflow: hidden;

  transition: max-height 0.2s ease-out;

  padding-left: 16px;
}

/* Open submenu */

.sb-header-oc-nav li.sb-oc-open > .sub-menu {
  max-height: 1000px;
}

/* =========================================================
   NESTED SUBMENUS
   ========================================================= */

/*
 * Third level gets additional indentation.
 */

.sb-header-oc-nav .sub-menu .sub-menu {
  padding-left: 16px;
}

/* =========================================================
   ACCESSIBILITY / FOCUS
   ========================================================= */

.sb-header-oc-nav a:focus-visible,
.sb-header-oc-submenu-toggle:focus-visible,
.sb-header-oc-burger:focus-visible,
.sb-header-oc-panel-close:focus-visible {
  outline: 2px solid var(--sb-color-link, #2563eb);

  outline-offset: 2px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .sb-header-oc-backdrop,
  .sb-header-oc-panel,
  .sb-header-oc-burger span,
  .sb-header-oc-submenu-toggle::before,
  .sb-header-oc-nav .sub-menu {
    transition: none;
  }
}


/* ===== Footer variant: accent-band ===== */
.sb-footer-accent-band {
    margin-top: 48px;
    color: var(--sb-color-text, #111);
}
.sb-footer-accent-band .sb-footer-ab-accent {
    padding: 46px 20px;
    background: var(--sb-color-accent, #18181b);
}
.sb-footer-accent-band .sb-footer-ab-accent-inner {
    max-width: var(--sb-content-max-width, 920px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    align-items: center;
    gap: 54px;
}
.sb-footer-accent-band .sb-footer-ab-brand img {
    display: block;
    width: auto;
    max-height: 46px;
}
.sb-footer-accent-band .sb-footer-ab-name {
    color: var(--sb-color-bg, #fff);
    font-family: var(--sb-font-heading, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 1.6em;
    font-weight: 800;
}
.sb-footer-accent-band .sb-footer-ab-description {
    margin: 0;
    color: var(--sb-color-bg, #fff);
    font-size: 1.02em;
    line-height: 1.7;
    opacity: .86;
}
.sb-footer-accent-band .sb-footer-ab-base {
    padding: 24px 20px;
    background: var(--sb-color-bg-alt, #f8f9fa);
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}
.sb-footer-accent-band .sb-footer-ab-base-inner {
    max-width: var(--sb-content-max-width, 920px);
    margin: 0 auto;
}
.sb-footer-accent-band .sb-footer-ab-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}

.sb-footer-accent-band .sb-footer-ab-col {
    min-width: 0;
}

.sb-footer-accent-band .sb-footer-ab-nav .sb-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sb-footer-accent-band .sb-footer-ab-nav {
    margin: 0;
}

.sb-footer-accent-band .sb-footer-ab-nav .sb-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sb-regulators-list {
    padding-left: 0;
}
.sb-regulators-item::marker {
    content: none;
}
.sb-footer-accent-band .sb-footer-ab-nav a {
    color: var(--sb-color-text, #111);
    text-decoration: none;
    font-size: .9em;
    font-weight: 550;
}
.sb-footer-accent-band .sb-footer-ab-nav a:hover,
.sb-footer-accent-band .sb-footer-ab-meta a:hover {
    color: var(--sb-color-link, #2563eb);
}
.sb-footer-accent-band .sb-footer-ab-meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    color: var(--sb-color-muted, #6b7280);
    font-size: .82em;
}
.sb-footer-accent-band .sb-footer-ab-meta a {
    flex: 0 0 auto;
    color: var(--sb-color-text, #111);
    text-decoration: none;
}
@media (max-width: 700px) {
    .sb-footer-accent-band .sb-footer-ab-accent-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
@media (max-width: 480px) {
    .sb-footer-accent-band .sb-footer-ab-accent { padding: 38px 20px; }
    .sb-footer-accent-band .sb-footer-ab-nav .sb-menu { flex-direction: column; gap: 10px; }
    .sb-footer-accent-band .sb-footer-ab-meta { flex-direction: column; }
}

/* Основной контейнер секции */
.faq.shell {
  max-width: 800px;
  margin: 10px auto;
  padding: 0 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
}

/* Маленький предзаголовок (FAQ) */
.faq .eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ff6b00; /* Яркий акцентный цвет, можно заменить под бренд */
  text-align: center;
  margin-bottom: 8px;
}

/* Главный заголовок h2 */
.faq h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
  color: #111111;
  line-height: 1.2;
}

/* Контейнер раскрывающегося списка (details) */
.faq details {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* Состояние при наведении */
.faq details:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Состояние открытой плашки */
.faq details[open] {
  border-color: #111111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Кликабельная область (summary) */
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Убирает дефолтную стрелку */
}

/* Убирает дефолтную стрелку в Safari */
.faq summary::-webkit-details-marker {
  display: none;
}

/* Кастомная иконка-плюс (превращается в минус) */
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: #6b7280;
  transition: transform 0.25s ease, color 0.25s ease;
  line-height: 1;
  margin-left: 16px;
  flex-shrink: 0;
}

/* Анимация иконки при открытии плашки */
.faq details[open] summary::after {
  content: "−"; /* Используется длинный минус для симметрии */
  transform: rotate(180deg);
  color: #111111;
}

/* Внутренний текстовый блок с ответом (p) */
.faq details p {
  margin: 0;
  padding: 0 24px 20px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
  animation: slideDown 0.25s ease-out;
}

/* Анимация плавного появления текста */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивный дизайн для мобильных экранов */
@media (max-width: 640px) {
  .faq.shell {
    margin: 5px auto
  }

  .faq h2 {
    font-size: 24px;
    margin-bottom: 28px;
  }
  
  .faq summary {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .faq details p {
    padding: 16px 20px;
    font-size: 15px;
  }
}
