/*!
Theme Name: Theme
Theme URI: #
Author: NK Studio
Author URI: https://NK-studio.ru/
Description: Description
Version: 2.6.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================
   Общие БЭМ-компоненты
   Подключать один раз на сайте.
   Здесь нет привязки к конкретной секции .directions.
   ========================================================== */

:root {
  --bg: #020303;
  --card: #0e1212;
  --card-2: #111616;
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(211, 45, 32, 0.62);
  --text: #f3f5f4;
  --muted: #a7adab;
  --accent: #d93628;
  --accent-dark: #8d1d16;
  --radius: 12px;

  /* Алиасы, чтобы эти же переменные можно было использовать в других блоках */
  --ui-bg: var(--bg);
  --ui-card: var(--card);
  --ui-card-2: var(--card-2);
  --ui-border: var(--border);
  --ui-border-hover: var(--border-hover);
  --ui-text: var(--text);
  --ui-muted: var(--muted);
  --ui-accent: var(--accent);
  --ui-accent-dark: var(--accent-dark);
  --ui-radius: var(--radius);
  --ui-container: 1180px;
      --color-bg: #0a0a0a;
    --color-text: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-accent: #dc2626;
    --color-card: #171717;
    --color-border: #dc262633;
    --font-sans: var(--font-geist-sans), system-ui, sans-serif;
    --font-mono: var(--font-geist-mono), monospace;
    --container-max: 1200px;
    --space-section: 3rem;

}

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

body{
  background-color: #000;
}
.sitemap-page {
  padding: 48px 0 72px;
}

.sitemap-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}



.sitemap-page__section h2 {
  margin: 0 0 20px;
  color: var(--ui-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

/* Общий список */
.sitemap-page__section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Пункты */
.sitemap-page__section li {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Отступы между пунктами одного уровня */
.sitemap-page__section li + li {
  margin-top: 9px;
}

/* Ссылки */
.sitemap-page__section a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ui-muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  transition: color .2s ease;
}

.sitemap-page__section a::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ui-accent);
  opacity: .65;
}

.sitemap-page__section a:hover {
  color: var(--ui-accent);
}

/* Вложенные списки */
.sitemap-page__section li > ul {
  margin-top: 10px;
  margin-left: 13px;
  padding-left: 18px;
  border-left: 1px solid var(--ui-border);
}

/* Второй уровень */
.sitemap-page__section li > ul > li > a {
  font-size: 14px;
  color: var(--ui-muted);
}

.sitemap-page__section li > ul > li > a::before {
  width: 4px;
  height: 4px;
  flex-basis: 4px;
  margin-top: 8px;
  background: currentColor;
  opacity: .45;
}

/* Третий уровень и глубже */
.sitemap-page__section li > ul > li > ul {
  margin-top: 8px;
  margin-left: 10px;
  padding-left: 15px;
}

.sitemap-page__section li > ul > li > ul a {
  font-size: 13.5px;
  opacity: .9;
}

/* Родительские пункты, у которых есть дочерние */
.sitemap-page__section li:has(> ul) > a {
  color: var(--ui-text);
  font-weight: 600;
}

/* Чтобы длинные названия нормально переносились */
.sitemap-page__section a {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Если блок один очень длинный, чтобы он не ломал сетку */
.sitemap-page__section {
  min-width: 0;
}

/* Адаптив */
@media (max-width: 991px) {
  .sitemap-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .sitemap-page {
    padding: 36px 0 56px;
  }

  .sitemap-page__grid {
    gap: 18px;
    margin-top: 24px;
  }

  .sitemap-page__section {
    padding: 20px;
    border-radius: 10px;
  }

  .sitemap-page__section h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .sitemap-page__section a {
    font-size: 14px;
  }

  .sitemap-page__section li > ul {
    margin-left: 6px;
    padding-left: 14px;
  }
}
/* ---------- Общая секция ---------- */

.site-section {
  position: relative;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.site-section__container {
  width: min(100%, var(--ui-container));
  margin: 0 auto;
}

/* ---------- Общий заголовок секции ---------- */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-head__content {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.section-head__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-head__line {
  display: block;
  width: 72px;
  height: 2px;
  flex: 0 0 72px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(217, 54, 40, 0));
  transform: translateY(2px);
}

.section-head__text {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.section-head__action {
  flex: 0 0 auto;
}

/* ---------- Общая текстовая ссылка со стрелкой ---------- */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.text-link svg,
.text-link__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.text-link:hover {
  color: #ff4b3b;
}

.text-link--arrow:hover {
  transform: translateX(2px);
}

/* ---------- Thanks page ---------- */

.thanks-page {
  min-height: 620px;
  padding: 44px 0 86px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 58%, rgba(38, 0, 0, 0.36) 100%),
    radial-gradient(circle at 82% 20%, rgba(255, 57, 57, 0.18), transparent 30%),
    #050505;
  color: #ffffff;
}

.thanks-page__header {
  margin-bottom: 36px;
}

.thanks-page__breadcrumbs {
  margin-bottom: 16px;
}

.thanks-page__title {
  margin: 0;
  color: #ffffff;
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

.thanks-page__panel {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  max-width: 930px;
  padding: 30px 34px;
  border: 1px solid rgba(255, 57, 57, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 20, 20, 0.94), rgba(10, 12, 12, 0.94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.thanks-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ff3939;
  border-radius: 8px;
  color: #ff3939;
}

.thanks-page__icon svg {
  width: 26px;
  height: 26px;
}

.thanks-page__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thanks-page__content {
  min-width: 0;
}

.thanks-page__subtitle {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
}

.thanks-page__text {
  max-width: 660px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.thanks-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.thanks-page__button {
  min-height: 46px;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
}

.thanks-page__button--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff3939;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.thanks-page__button--outline:hover {
  background: #ff3939;
  color: #ffffff;
}

.thanks-page__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.thanks-page__contact-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.4;
}

.thanks-page__contact-phone {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none;
}

.thanks-page__contact-phone:hover {
  color: #ff3939;
}

.thanks-page__extra {
  max-width: 930px;
  margin-top: 28px;
  padding: 24px 30px;
  border: 1px solid rgba(255, 57, 57, 0.5);
  border-radius: 8px;
  background: rgba(14, 16, 16, 0.86);
}

@media (max-width: 900px) {
  .thanks-page {
    min-height: 0;
    padding: 34px 0 64px;
  }

  .thanks-page__title {
    font-size: 46px;
  }

  .thanks-page__panel {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .thanks-page {
    padding: 24px 0 48px;
  }

  .thanks-page__header {
    margin-bottom: 24px;
  }

  .thanks-page__title {
    font-size: 36px;
  }

  .thanks-page__panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .thanks-page__subtitle {
    font-size: 25px;
  }

  .thanks-page__text {
    font-size: 15px;
  }

  .thanks-page__actions {
    gap: 10px;
    margin-top: 22px;
  }

  .thanks-page__button,
  .thanks-page__button--outline {
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
  }

  .thanks-page__contact {
    display: grid;
  }

  .thanks-page__contact-phone {
    font-size: 18px;
  }

  .thanks-page__extra {
    padding: 18px;
  }
}

/* ---------- 404 page ---------- */

.error-page {
  min-height: 620px;
  padding: 44px 0 86px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 58%, rgba(38, 0, 0, 0.36) 100%),
    radial-gradient(circle at 82% 20%, rgba(255, 57, 57, 0.18), transparent 30%),
    #050505;
  color: #ffffff;
}

.error-page__header {
  margin-bottom: 36px;
}

.error-page__breadcrumbs {
  margin-bottom: 16px;
}

.error-page__heading {
  margin: 0;
  color: #ffffff;
  font-size: 76px;
  line-height: 1;
  font-weight: 900;
}

.error-page__panel {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  max-width: 930px;
  padding: 30px 34px;
  border: 1px solid rgba(255, 57, 57, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 20, 20, 0.94), rgba(10, 12, 12, 0.94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.error-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ff3939;
  border-radius: 8px;
  color: #ff3939;
}

.error-page__icon svg {
  width: 26px;
  height: 26px;
}

.error-page__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.error-page__content {
  width: auto;
  min-width: 0;
}

.error-page__title {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
}

.error-page__subtitle {
  max-width: 660px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.error-page__button {
  min-height: 46px;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
}

.error-page__button--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff3939;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-page__button--outline:hover {
  background: #ff3939;
  color: #ffffff;
}

@media (max-width: 900px) {
  .error-page {
    min-height: 0;
    padding: 34px 0 64px;
  }

  .error-page__heading {
    font-size: 58px;
  }

  .error-page__panel {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .error-page {
    padding: 24px 0 48px;
  }

  .error-page__header {
    margin-bottom: 24px;
  }

  .error-page__heading {
    font-size: 44px;
  }

  .error-page__panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .error-page__title {
    font-size: 25px;
  }

  .error-page__subtitle {
    font-size: 15px;
  }

  .error-page__actions {
    gap: 10px;
    margin-top: 22px;
  }

  .error-page__button,
  .error-page__button--outline {
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
  }
}
