/*
Theme Name: Чебанько
Theme URI: https://chebanko.ru
Author: Дмитрий Чебанько
Description: Персональная тема сайта-визитки
Version: 1.0
*/

/* ===== БАЗОВЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text-primary: #222222;
  --text-secondary: #444444;
  --accent: #2637CD;
  --accent-hover: #3b00ff;
  --btn-bg: #FA7A2F;
  --btn-bg-hover: #FA902F;
  --btn-text: #FFFFFF;
  --border-color: #DEE2E6;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --tag-bg: #2637CD;
  --tag-text: #FFFFFF;
  --tag-border: #2637CD;
  --tag-hover-bg: #3b00ff;
  --tag-hover-border: #3b00ff;
  --modal-bg: #FFFFFF;
  --modal-text: #222222;
  --footer-text: #6C757D;
  --figure-caption-color: #6C757D;
  --link-underline: #2637CD;
}

/* ===== ТЁМНАЯ ТЕМА ===== */
[data-theme="dark"] {
  --bg-primary: #1A1A2E;
  --bg-secondary: #16213E;
  --text-primary: #E0E0E0;
  --text-secondary: #B0B0B0;
  --accent: #7B8AFF;
  --accent-hover: #9BA9FF;
  --btn-bg: #FA7A2F;
  --btn-bg-hover: #FA902F;
  --btn-text: #FFFFFF;
  --border-color: #2A2A4A;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --tag-bg: #7B8AFF;
  --tag-text: #1A1A2E;
  --tag-border: #7B8AFF;
  --tag-hover-bg: #9BA9FF;
  --tag-hover-border: #9BA9FF;
  --modal-bg: #16213E;
  --modal-text: #E0E0E0;
  --footer-text: #B0B0B0;
  --figure-caption-color: #B0B0B0;
  --link-underline: #7B8AFF;
}

/* ===== ШРИФТЫ ===== */
@font-face {
  font-family: 'Gilroy-Regular';
  src: url('fonts/gilroy-regular.eot');
  src: url('fonts/gilroy-regular.eot?#iefix') format('embedded-opentype'),
    url('fonts/gilroy-regular.woff2') format('woff2'),
    url('fonts/gilroy-regular.woff') format('woff'),
    url('fonts/gilroy-regular.ttf') format('truetype'),
    url('fonts/gilroy-regular.svg#gilroy-regular') format('svg');
}

@font-face {
  font-family: 'Gilroy-Black';
  src: url('fonts/gilroy-black.ttf') format('truetype');
}

@font-face {
  font-family: 'Gilroy-Bold';
  src: url('fonts/gilroy-bold.eot');
  src: url('fonts/gilroy-bold.eot?#iefix') format('embedded-opentype'),
    url('fonts/gilroy-bold.woff') format('woff'),
    url('fonts/gilroy-bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font: 20px/28px 'Gilroy-Regular', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

h1 {
  font-family: 'Gilroy-Black', sans-serif;
  font-size: 50px;
  line-height: 60px;
  color: var(--accent);
}

h2 {
  font-family: 'Gilroy-Black', sans-serif;
  font-size: 45px;
  line-height: 48px;
  color: var(--accent);
}

h3 {
  font-family: 'Gilroy-Black', sans-serif;
  font-size: 25px;
  line-height: 30px;
  color: var(--accent);
}

h3.h3-link a {
  font-family: 'Gilroy-Black', sans-serif;
  color: var(--accent);
}

strong, b {
  font-weight: bold;
}

p {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

a {
  color: var(--accent);
  font-family: 'Gilroy-Regular', sans-serif;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

/* ===== НАВБАР ===== */
.navbar {
  transition: background-color 0.3s ease;
}

.navbar-light {
  background-color: var(--bg-primary) !important;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-primary) !important;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--accent) !important;
}

.navbar-light .navbar-toggler {
  border-color: var(--border-color);
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34, 34, 34, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Бургер-иконка в тёмной теме */
[data-theme="dark"] .navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== КНОПКИ ===== */
.btn {
  height: 50px;
  background: var(--btn-bg);
  box-shadow: 0px 10px 10px rgb(250 122 47 / 20%);
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: 20px;
  line-height: 25px;
  color: var(--btn-text);
  display: inline-block;
  text-decoration: none;
  line-height: 50px;
  text-align: center;
  border-radius: 10px / 4px;
  position: relative;
  margin: 0 4px;
  padding: 0 45px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: -4px;
  left: -4px;
  background: var(--btn-bg);
  border-radius: 7px / 12px;
  z-index: -1;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
  box-shadow: 0px 10px 10px rgba(250, 122, 47, 0.2);
}

.btn:hover:before {
  background: var(--btn-bg-hover);
}

.btn:active {
  background: var(--btn-bg);
  box-shadow: inset 0px 10px 10px rgba(250, 122, 47, 0.2);
}

.btn:active:before {
  background: var(--btn-bg);
}

.btn-input {
  margin: 0;
  border-radius: 10px;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ (ФИКСИРОВАННАЯ КНОПКА) ===== */
.theme-toggle-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.theme-toggle-fixed:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.theme-toggle-fixed:active {
  transform: scale(0.95);
}

.theme-toggle-icon {
  line-height: 1;
  pointer-events: none;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
img {
  max-width: 100%;
  height: auto;
}

.figure-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a:hover .figure-img {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.figure-caption {
  color: var(--figure-caption-color);
  transition: color 0.3s ease;
}

/* ===== СПИСКИ ===== */
.checkmark li {
  position: relative;
  margin-bottom: 2px;
  padding: 0px 0px 0px 30px;
  list-style: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.checkmark li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background-image: url("img/checkmark.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: filter 0.3s ease;
}

/* В темной теме инвертируем синий кружок галочки в белый / цвет шрифта */
[data-theme="dark"] .checkmark li::before {
  filter: brightness(0) invert(0.89);
}

ul {
  padding-left: 5px !important;
}

ul.pdflist {
  list-style: none !important;
}

/* ===== ССЫЛКИ С ИКОНКАМИ ===== */
a.pdflink::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("img/pdf.svg");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 2px;
  margin-bottom: 5px;
  transition: filter 0.3s ease;
}

/* В темной теме инвертируем синюю иконку в цвет шрифта */
[data-theme="dark"] a.pdflink::before {
  filter: brightness(0) invert(0.89);
}

[data-theme="dark"] a.pdflink:hover::before {
  filter: brightness(0) invert(1);
}

a.pdflink {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

a.pdflink:hover {
  color: var(--accent);
}

a.articlelink {
  text-decoration: none;
}

a.mail::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("img/mail.svg");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 2px;
  margin-bottom: 5px;
  transition: filter 0.3s ease;
}

/* В темной теме инвертируем синюю иконку почты в цвет шрифта */
[data-theme="dark"] a.mail::before {
  filter: brightness(0) invert(0.89);
}

[data-theme="dark"] a.mail:hover::before {
  filter: brightness(0) invert(1);
}

a.mail {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

a.mail:hover {
  color: var(--accent);
}

a.tenchat::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("img/tenchat.svg");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 2px;
  margin-bottom: 5px;
}

a.tenchat {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

a.tenchat:hover {
  color: var(--accent);
}

a.telegram::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("img/telegram.svg");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 2px;
  margin-bottom: 5px;
}

a.telegram {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

a.telegram:hover {
  color: var(--accent);
}

a.dot {
  text-decoration: none;
  border-bottom: 1px dashed var(--link-underline);
}

a.dot:hover {
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom: none;
}

a.case {
  text-decoration: none;
  color: var(--accent);
}

a.case:hover {
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom: none;
}

/* ===== ТЕГИ ===== */
.tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  border-radius: 7px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 2px;
  padding-top: 2px;
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--tag-hover-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-hover-border);
  cursor: pointer;
}

/* ===== СИНИЕ СПИСКИ ===== */
.blue span {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.3s ease;
}

.blue li {
  list-style-type: circle;
  list-style-position: inside;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.blue li::marker {
  color: var(--accent);
  transition: color 0.3s ease;
}

/* ===== СОЦИАЛЬНЫЕ ИКОНКИ ===== */
.social li {
  list-style: none;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-content {
  background-color: var(--modal-bg);
  color: var(--modal-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
}

.modal-title {
  color: var(--text-primary);
}

/* ===== ФУТЕР ===== */
footer {
  background-color: var(--bg-primary) !important;
  transition: background-color 0.3s ease;
  padding: 0 0 30px 0;
  margin-top: 60px;
}

footer .footer-inner {
  border-top: 1px solid var(--border-color);
  padding-top: 36px;
}

footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

.footer-brand-title {
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: 18px;
  line-height: 22px;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.2px;
  color: var(--footer-text);
  margin-top: 2px;
  margin-bottom: 0;
}

.footer-copy {
  font-size: 14px;
  color: var(--footer-text);
  margin-bottom: 12px;
}

.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal-list a {
  color: var(--footer-text);
  border-bottom: 1px dashed var(--border-color);
}

.footer-legal-list a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.footer-col-title {
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
}

.footer-links-list a {
  color: var(--text-primary);
}

.footer-links-list a:hover {
  color: var(--accent);
}

/* ===== БЛОГ ===== */
.blog-preview {
    margin-bottom: 30px;
}

.blog-preview h3 {
    margin-bottom: 10px;
}

.blog-preview h3 a {
    color: var(--accent);
    text-decoration: none;
}

.blog-preview h3 a:hover {
    color: var(--accent-hover);
}

.blog-excerpt {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.blog-single h1 {
    margin-bottom: 10px;
}

.blog-content {
    font-size: 20px;
    line-height: 32px;
    color: var(--text-primary);
}

.blog-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 25px !important;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-content pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 16px;
    line-height: 24px;
}

.blog-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Пагинация */
.pagination {
    margin-top: 40px;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Gilroy-Regular', sans-serif;
    font-size: 18px;
}

.pagination .page-numbers.current {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--bg-secondary);
    border-color: var(--accent);
}

/* ===== ШАПКА СТАТЬИ ===== */
.article-hero {
    margin-bottom: 40px;
}

.article-hero-image {
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.article-hero-overlay {
    width: 100%;
    padding: 60px 0 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

.article-hero h1 {
    color: #FFFFFF;
    font-size: 42px;
    line-height: 50px;
    margin-bottom: 15px;
    max-width: 800px;
}

.article-hero-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

/* Хлебные крошки (глобально) */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}

.breadcrumbs::-webkit-scrollbar {
    display: none;
}

.breadcrumbs a,
.breadcrumbs span {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Хлебные крошки в темной шапке статей */
.breadcrumbs-light,
.breadcrumbs-light a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 20px;
}

.breadcrumbs-light a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.breadcrumbs-light span {
    margin: 0 8px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media screen and (max-width: 600px) {
  .figure-caption {
    line-height: 1em;
    font-size: 12px;
  }
  
  h1 {
    font-size: 36px;
    line-height: 42px;
  }
  
  h2 {
    font-size: 30px;
    line-height: 36px;
  }
  
  h3 {
    font-size: 20px;
    line-height: 26px;
  }
  
  body {
    font-size: 16px;
    line-height: 24px;
  }

  .theme-toggle-fixed {
    width: 42px;
    height: 42px;
    bottom: 16px;
    right: 16px;
    font-size: 18px;
  }

  .blog-content {
    font-size: 18px;
    line-height: 28px;
  }

  .article-hero-image {
    min-height: 300px;
  }

  .article-hero-overlay {
    padding: 40px 0 30px;
  }

  .article-hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .article-hero-meta {
    font-size: 16px;
  }
}

/* ===== АДАПТИВНОСТЬ НАВБАРА ===== */
@media screen and (max-width: 991px) {
  .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .navbar-brand {
    order: 1;
  }
  
  .navbar-toggler {
    order: 2;
    margin-left: auto;
  }
  
  #navbarTogglerDemo02 {
    order: 3;
    width: 100%;
  }
  
  .navbar-nav .menu-item:last-child a {
    display: inline-block;
    margin-top: 0.5rem;
    margin-left: 0;
  }
  
  .navbar-nav .menu-item a {
    padding: 0.5rem 0;
  }
}

/* ===== УТИЛИТЫ ===== */
.container {
  transition: color 0.3s ease;
}

.row {
  transition: color 0.3s ease;
}

/* ===== СТИЛИ ДЛЯ МЕНЮ WORDPRESS ===== */
/* WordPress генерирует .menu-item вместо .nav-item */
.navbar-nav .menu-item {
    list-style: none;
}

.navbar-nav .menu-item a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Gilroy-Regular', sans-serif;
    font-size: 20px;
    line-height: 28px;
}

.navbar-nav .menu-item a:hover,
.navbar-nav .menu-item a:focus {
    color: var(--accent);
}

/* Текущий пункт меню */
.navbar-nav .current-menu-item a {
    color: var(--accent);
}

/* Кнопка "Связаться со мной" в меню */
.navbar-nav .menu-item:last-child a {
    color: var(--btn-text);
    background: var(--btn-bg);
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    margin-left: 0.5rem;
    transition: background-color 0.3s ease;
}

.navbar-nav .menu-item:last-child a:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-text);
}

/* Блок внимания */
.attention-block p:last-child {
    margin-bottom: 0;
}

/* ===== ОВЕРЛЕЙ КЕЙСОВ ПРИ НАВЕДЕНИИ (ВАРИАНТ 2) ===== */
.case-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

.case-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 24, 38, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 5;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    text-align: left;
    box-sizing: border-box;
}

.case-card:hover .case-card-overlay {
    opacity: 1;
    visibility: visible;
}

.case-card-overlay-title {
    color: #FFFFFF !important;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 15px;
    line-height: 20px;
    margin: 0 0 8px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-overlay-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Gilroy-Regular', sans-serif;
    font-size: 13px;
    line-height: 18px;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-overlay-more {
    display: inline-block;
    margin-top: 10px;
    color: #FA7A2F !important;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 13px;
    line-height: 16px;
}

/* ===== РАЗДЕЛ ИНСТРУМЕНТЫ (/tools/) ===== */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-row-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: block;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: none;
}

.tool-row-card:hover {
    text-decoration: none;
    color: inherit;
}

.tool-row-content {
    display: block;
}

.tool-row-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.tool-row-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 20px;
    line-height: 24px;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    display: block;
}

.tool-row-desc {
    font-size: 15px;
    line-height: 22px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 767px) {
    .tool-row-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.tool-badge {
    display: inline-block;
    background-color: var(--bg-primary);
    color: var(--accent);
    border: 1px solid var(--border-color);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Gilroy-Bold', sans-serif;
}

/* ===== КОНВЕРТЕР PUNYCODE (/tools/punycode/) ===== */
.tool-header {
    margin-bottom: 24px;
}

.tool-main-title {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 8px;
}

.tool-main-subtitle {
    font-size: 17px;
    line-height: 26px;
    color: var(--text-secondary);
    max-width: 800px;
}

.punycode-tool-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.punycode-modes-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.punycode-mode-buttons {
    display: inline-flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.puny-mode-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Gilroy-Bold', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.puny-mode-btn:hover {
    color: var(--text-primary);
}

.puny-mode-btn.active {
    background: var(--accent);
    color: #FFFFFF;
}

.puny-mode-btn.active code {
    color: #FFFFFF;
}

.punycode-quick-examples {
    display: flex;
    align-items: center;
    gap: 8px;
}

.puny-example-label {
    font-size: 13px;
    color: var(--footer-text);
}

.puny-example-chip {
    border: 1px dashed var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.puny-example-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.puny-field-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.puny-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.puny-field-label {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
}

.puny-action-link {
    background: none;
    border: none;
    color: var(--footer-text);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.puny-action-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.puny-dir-badge {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 12px;
    font-family: 'Gilroy-Bold', sans-serif;
    padding: 2px 8px;
    border-radius: 6px;
}

.puny-textarea {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.puny-textarea::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

[data-theme="dark"] .puny-textarea::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

.puny-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(38, 55, 205, 0.15) !important;
}

[data-theme="dark"] .puny-textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 138, 255, 0.25) !important;
}

.puny-textarea-output {
    background-color: var(--bg-secondary) !important;
}

.puny-field-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
}

.puny-stats {
    font-size: 12px;
    color: var(--footer-text);
}

.puny-paste-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.puny-paste-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.puny-output-actions {
    display: flex;
    gap: 8px;
}

.puny-btn-swap {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.puny-btn-swap:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.puny-btn-copy {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.puny-btn-copy:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: none;
}

.puny-btn-copy.copied {
    color: #198754 !important;
    border-color: #198754 !important;
    background: none !important;
}

.puny-options-bar {
    border-top: 1px solid var(--border-color);
}

.puny-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.puny-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

.puny-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.puny-convert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 15px;
    line-height: 1;
    border-radius: 8px;
    background: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    margin: 0 !important;
    cursor: pointer;
    position: static !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.puny-convert-btn:before,
.puny-convert-btn:after {
    display: none !important;
}

.puny-convert-btn:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    box-shadow: none !important;
}

.puny-convert-btn:hover:before,
.puny-convert-btn:active:before {
    display: none !important;
}

.puny-table {
    border-color: var(--border-color) !important;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.puny-table th, .puny-table td {
    border-color: var(--border-color) !important;
    padding: 10px 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.puny-table th {
    background-color: var(--bg-secondary);
}

.tool-sidebar-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.tool-sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.tool-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.tool-features-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tool-features-list .feather-icon {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--accent);
}

/* ===== ПОДСЧЕТ СИМВОЛОВ И СЛОВ (/tools/length-chars/) ===== */
.counter-tool-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.counter-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.counter-quick-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.counter-textarea {
    font-size: 15px !important;
    line-height: 1.6 !important;
    min-height: 220px;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    resize: vertical;
    padding: 16px !important;
    width: 100%;
    box-sizing: border-box;
}

.counter-textarea::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

[data-theme="dark"] .counter-textarea::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

.counter-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(38, 55, 205, 0.15) !important;
}

[data-theme="dark"] .counter-textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 138, 255, 0.25) !important;
}

.counter-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 991px) {
    .counter-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .counter-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-tile {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: border-color 0.2s ease;
}

.stat-tile-highlight {
    border-color: var(--accent);
}

.stat-tile-num {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 26px;
    line-height: 30px;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-tile-label {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 13px;
    line-height: 16px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stat-tile-sub {
    font-size: 11px;
    line-height: 14px;
    color: var(--footer-text);
}

/* ===== ТРАНСЛИТЕРАТОР (/tools/translit/) ===== */
.translit-tool-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.translit-modes-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.translit-mode-buttons {
    display: inline-flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
}

.translit-quick-examples {
    display: flex;
    align-items: center;
    gap: 8px;
}

.translit-options-bar {
    border-top: 1px solid var(--border-color);
}

.translit-opt-label {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.translit-select {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    padding: 6px 12px;
    font-size: 14px;
}

.translit-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(38, 55, 205, 0.15) !important;
}

[data-theme="dark"] .translit-select:focus {
    box-shadow: 0 0 0 3px rgba(123, 138, 255, 0.25) !important;
}

/* ===== КАРОУСЕЛЬ БРЕНДОВ НА ГЛАВНОЙ СТРАНИЦЕ ===== */
.brands-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 16px 0 24px;
    margin-bottom: 24px;
}

.brands-carousel-row {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.brands-carousel-row:last-child {
    margin-bottom: 0 !important;
}

.brands-carousel-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
}

.brands-track-left {
    animation: brandsScrollLeft 34s linear infinite;
}

.brands-track-right {
    animation: brandsScrollRight 34s linear infinite;
}

.brands-carousel-row:hover .brands-carousel-track {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 68px;
    min-width: 145px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: var(--card-shadow);
}

.brand-link:hover {
    border-color: var(--accent);
}

.brand-logo-img {
    max-height: 42px;
    max-width: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: none;
}

.brand-logo-dark {
    display: none;
}

/* В темной теме */
[data-theme="dark"] .brand-logo-img.has-dark-version {
    display: none;
}

[data-theme="dark"] .brand-logo-dark {
    display: block;
    opacity: 1;
    filter: none;
}

/* Если отдельного темного логотипа нет, авто-инвертируем темный PNG в белый в темной теме */
[data-theme="dark"] .brand-logo-img.no-dark-version {
    filter: brightness(0) invert(1);
    opacity: 1;
}

@keyframes brandsScrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes brandsScrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .brands-carousel-track {
        gap: 14px;
    }
    .brands-track-left,
    .brands-track-right {
        animation-duration: 22s;
    }
    .brand-link {
        height: 56px;
        min-width: 115px;
        padding: 6px 12px;
    }
    .brand-logo-img {
        max-height: 32px;
        max-width: 95px;
    }
}

/* ===== ПЛАШКА COOKIES ===== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    max-width: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
    z-index: 1060;
    animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-accept-btn {
    flex-shrink: 0;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.cookie-accept-btn:hover {
    opacity: 0.9;
}

.cookie-accept-btn:active {
    transform: scale(0.97);
}

@media (max-width: 576px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100% - 24px);
        padding: 14px 16px;
        box-shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-accept-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== СЛАЙДЕР ПУБЛИКАЦИЙ (SWIPER) ===== */
.articles-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 0.8rem;
    width: 100%;
}

.carousel-nav-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-btn svg {
    display: block;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.carousel-btn:hover:not(:disabled) svg {
    stroke: #ffffff;
}

[data-theme="dark"] .carousel-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .carousel-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #1A1A2E;
    border-color: var(--accent);
}

[data-theme="dark"] .carousel-btn:hover:not(:disabled) svg {
    stroke: #1A1A2E;
}

.carousel-btn:disabled,
.carousel-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.articles-swiper-container {
    width: 100%;
    position: relative;
    padding-bottom: 24px;
}

.articles-swiper-container .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.articles-swiper-container .swiper-slide .figure {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.articles-swiper-container .swiper-slide .figure-img,
.articles-swiper-container .swiper-slide a:hover .figure-img {
    transform: none !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease;
}

.articles-swiper-container .swiper-slide a:hover .figure-img {
    opacity: 0.92;
}


.articles-swiper-pagination {
    position: relative !important;
    margin-top: 12px;
}

.articles-swiper-pagination .swiper-pagination-bullet {
    background: var(--text-secondary);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.articles-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
    width: 16px;
    border-radius: 4px;
}



@media (max-width: 767.98px) {
    .articles-swiper-container {
        padding-left: 4px;
        padding-right: 4px;
    }
}
/* ===== СТРАНИЦА УСЛУГИ (СОВРЕМЕННЫЙ ЛЕНДИНГ) ===== */
.service-landing {
    padding-bottom: 0;
}

/* 1. Первый экран (Hero) */
.service-hero {
    padding: 30px 0 45px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 45px;
}

.service-hero-main {
    margin-bottom: 36px;
}

.service-hero-main.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: center;
}

.service-hero-content {
    min-width: 0;
}

.service-hero-content > :last-child {
    margin-bottom: 0;
}

.service-hero h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.service-hero h1.service-hero-eyebrow {
    display: inline-block;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-hero-offer {
    display: block;
    font-family: 'Gilroy-Black', sans-serif;
    font-size: 48px;
    line-height: 1.15;
    color: var(--accent);
    margin-bottom: 20px;
    max-width: 540px;
}

.service-hero-lead {
    font-size: 21px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.service-hero-media {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    margin-left: auto;
}

.service-hero-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: block;
}

.service-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.service-hero-feat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.service-hero-feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(38, 55, 205, 0.1);
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

[data-theme="dark"] .service-hero-feat-icon {
    background: rgba(123, 138, 255, 0.18);
    color: var(--accent);
}

.service-hero-feat-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-hero-feat-text span {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
    display: block;
}

.service-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 2. Секции лендинга */
.service-section {
    margin-bottom: 50px;
}

.service-section:last-child,
.service-section:last-of-type {
    margin-bottom: 0;
}

.service-section-title {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--accent);
}

.service-section-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 820px;
    margin-bottom: 28px;
}

/* 2. Блок "Боли аудитории" (Карточки проблем) */
.service-problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.service-problem-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-problem-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 14px 0;
    color: var(--text-primary);
}

.service-problem-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.service-problem-desc > :last-child {
    margin-bottom: 0;
}

/* 2.1 Блок "Наше решение" (Манифест и ключевые тезисы) */
.service-solution-card {
    position: relative;
}

.service-solution-manifesto {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 20px;
}

.service-solution-manifesto-bar {
    width: 4px;
    min-width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.service-solution-manifesto-text {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 22px;
    line-height: 1.45;
    color: var(--text-primary);
}

.service-solution-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.service-solution-desc > :last-child {
    margin-bottom: 0;
}

.service-solution-points-list,
.service-solution-points-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.service-solution-point-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-solution-point-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.service-solution-point-icon svg {
    width: 13px;
    height: 13px;
}

.service-solution-point-content {
    flex: 1;
}

.service-solution-point-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.service-solution-point-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.service-solution-point-desc p {
    margin: 0;
}

.service-solution-point-desc > :last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-solution-manifesto-text {
        font-size: 18px;
        line-height: 1.4;
    }
}

/* 3. Горизонтальный таймлайн "Как мы работаем" (1 -> 2 -> 3 -> 4 -> 5) */
.service-timeline-h {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: stretch;
}

.timeline-h-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.25s ease;
}

.timeline-h-card:hover {
    border-color: var(--accent);
}

.timeline-h-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.timeline-h-number {
    font-family: 'Gilroy-Black', sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.timeline-h-arrow {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -4px;
}

.timeline-h-card h3 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.timeline-h-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.timeline-h-result {
    margin-top: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
}

.timeline-h-result-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.timeline-h-result-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

/* 4. Кейсы: сетка перехода Точка А -> Точка Б */
.case-transition-row {
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    gap: 16px;
    align-items: center;
}

.case-arrow-col {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.case-point-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    height: 100%;
}

.case-point-card-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.case-point-card-title.is-before {
    color: var(--footer-text);
}

.case-point-card-title.is-after {
    color: var(--accent);
}

.case-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-facts-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}

.case-facts-list li:last-child {
    margin-bottom: 0;
}

.case-facts-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: -1px;
    color: var(--accent);
    font-size: 18px;
    line-height: 1.2;
}

.case-facts-list.is-before li::before {
    color: var(--footer-text);
}

/* ===== ТАРИФНЫЕ КАРТОЧКИ (СТОИМОСТЬ) ===== */
.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: border-color 0.25s ease;
}

.pricing-card:hover {
    border-color: var(--accent);
}

.pricing-card.is-featured {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(38, 55, 205, 0.08);
}

.pricing-card-badge {
    align-self: flex-start;
    background: var(--accent);
    color: #ffffff;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.pricing-card-title {
    font-size: 22px;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.pricing-card-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pricing-card-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card-price {
    font-family: 'Gilroy-Black', sans-serif;
    font-size: 30px;
    line-height: 1.1;
    color: var(--accent);
}

.pricing-card-period {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pricing-card-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 28px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0 !important;
}

.pricing-feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(38, 55, 205, 0.1);
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

[data-theme="dark"] .pricing-feat-icon {
    background: rgba(123, 138, 255, 0.18);
    color: var(--accent);
}

.pricing-card-action {
    margin-top: auto;
    padding-top: 8px;
}

.pricing-card-btn {
    width: 100%;
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    text-align: center;
    display: block;
    margin: 0;
}

.pricing-card-btn.btn-secondary-style {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: none;
    font-family: 'Gilroy-Bold', sans-serif;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pricing-card-btn.btn-secondary-style:before {
    display: none;
}

.pricing-card-btn.btn-secondary-style:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

/* 5. Форма */
.service-form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Gilroy-Regular', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.25s ease;
}

.service-form-control:focus {
    border-color: var(--accent);
    outline: none;
}

textarea.service-form-control {
    min-height: 110px;
    resize: vertical;
}

/* 6. FAQ */
details.service-faq-item summary::-webkit-details-marker {
    display: none;
}

details.service-faq-item[open] summary .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* ===== HTML-ФОРМАТИРОВАНИЕ И СПИСКИ В СЕРВИСНЫХ БЛОКАХ ===== */
.service-rich-text > p:first-child {
    margin-top: 0;
}
.service-rich-text > p:last-child {
    margin-bottom: 0;
}
.service-rich-text p {
    margin-bottom: 12px;
}
.service-rich-text ul {
    list-style: disc !important;
    padding-left: 22px !important;
    margin: 10px 0 14px 0 !important;
}
.service-rich-text ol {
    list-style: decimal !important;
    padding-left: 22px !important;
    margin: 10px 0 14px 0 !important;
}
.service-rich-text li {
    margin-bottom: 6px;
    line-height: 1.55;
}
.service-rich-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.timeline-h-card p,
.timeline-h-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}
.timeline-h-desc > :last-child {
    margin-bottom: 0;
}


/* Адаптивность */
@media (max-width: 991.98px) {
    .service-hero-main.has-media {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-bottom: 32px;
    }
    .service-hero-media {
        order: -1;
        width: 100%;
        max-width: 440px;
        margin-left: 0;
        margin-right: auto;
    }
    .service-hero-features {
        grid-template-columns: 1fr;
    }
    .service-timeline-h {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-transition-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .case-arrow-col {
        transform: rotate(90deg);
        height: 24px;
    }
}

@media (max-width: 767.98px) {
    .service-hero-main.has-media {
        gap: 20px;
        margin-bottom: 28px;
    }
    .service-hero-media {
        max-width: 100%;
    }
    .service-hero h1 {
        font-size: 32px;
        line-height: 38px;
    }
    .service-hero h1.service-hero-eyebrow {
        font-size: 12px;
        line-height: 16px;
        padding: 4px 10px;
        margin-bottom: 12px;
    }
    .service-hero-offer {
        font-size: 30px;
        line-height: 36px;
        margin-bottom: 16px;
        max-width: 100%;
    }
    .service-hero-lead {
        font-size: 18px;
    }
    .service-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .service-hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .service-hero-actions a[href="#process"] {
        text-align: center;
        display: block;
    }
    .service-solution-desc {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .service-timeline-h {
        grid-template-columns: 1fr;
    }
}

/* ===== КАРТА САЙТА (/sitemap/) ===== */
.sitemap-container {
    padding: 30px 0 60px;
}

.sitemap-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 720px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.sitemap-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: var(--card-shadow);
}

.sitemap-section-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.sitemap-section-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sitemap-section-title a:hover {
    color: var(--accent);
}

.sitemap-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sitemap-list > li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 24px;
}

.sitemap-list > li:last-child {
    margin-bottom: 0;
}

.sitemap-list > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}

.sitemap-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    transition: color 0.2s ease;
}

.sitemap-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.sitemap-sublist {
    list-style: none;
    padding-left: 18px;
    margin: 8px 0 4px;
}

.sitemap-sublist > li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 15px;
}

.sitemap-sublist > li::before {
    content: "–";
    position: absolute;
    left: 2px;
    color: var(--footer-text);
}

.sitemap-sublist a {
    font-size: 15px;
    color: var(--text-secondary);
}

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

@media (max-width: 767.98px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sitemap-section {
        padding: 20px;
    }
    .sitemap-intro {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

