/* ==========================================================================
   theme.css — Pech.Info News Portal
   Standalone theme replacing the Tilda-exported main.css.
   No Tilda classes or dependencies required.
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. Font Face
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'LiteratureDecor';
  src: url('../fonts/LiteratureDecor.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* --------------------------------------------------------------------------
   1. Design Tokens (Custom Properties)
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --pech-accent:       #c04130;
  --pech-accent-hover: #a8352a;
  --pech-bg:           #fff7f1;
  --pech-dark:         #130c0c;
  --pech-light:        #fff7f1;

  /* Typography */
  --pech-font:         'Manrope', sans-serif;

  /* Layout */
  --pech-container:    1200px;
  --pech-gap:          20px;

  /* Radii */
  --pech-radius-img:   16px;
  --pech-radius-btn:   30px;
  --pech-radius-card:  16px;

  /* Breakpoints (reference only — used in media queries below)
     mobile:      < 640px
     tablet:      640px – 959px
     desktop-sm:  960px – 1199px
     desktop:     >= 1200px
  */
}


/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--pech-bg);
  color: var(--pech-dark);
  font-family: var(--pech-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}


/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.pech-container {
  max-width: var(--pech-container);
  margin: 0 auto;
  padding: 0 20px;
}

.pech-section {
  padding: 45px 0;
}

.pech-section--dark {
  background: var(--pech-dark);
  color: var(--pech-light);
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  padding: 45px 30px;
}

.pech-section--dark .pech-card__meta {
  color: rgba(255, 247, 241, 0.6);
}

.pech-section--dark .pech-card__title {
  color: var(--pech-light);
}

.pech-section--dark .pech-card__excerpt {
  color: rgba(255, 247, 241, 0.7);
}

/* Блок «главная новость + лента» внутри тёмной секции («Эксклюзивы»). */
.pech-section--dark .pech-featured-card__cat {
  color: var(--pech-light);
  opacity: 0.7;
}

.pech-section--dark .pech-featured-card__title {
  color: var(--pech-light);
}

.pech-section--dark .pech-featured-card__time {
  color: var(--pech-light);
  opacity: 0.6;
}

.pech-section--dark .pech-news-top__sidebar-title {
  color: var(--pech-light);
}

.pech-section--dark .pech-sidebar-item {
  border-bottom-color: rgba(255, 247, 241, 0.16);
}

.pech-section--dark .pech-sidebar-item:first-of-type {
  border-top-color: rgba(255, 247, 241, 0.16);
}

.pech-section--dark .pech-sidebar-item__title {
  color: var(--pech-light);
}

.pech-section--dark .pech-sidebar-item__meta {
  color: rgba(255, 247, 241, 0.55);
}

.pech-section--dark .pech-featured-card:hover .pech-featured-card__title,
.pech-section--dark .pech-sidebar-item:hover .pech-sidebar-item__title {
  color: var(--pech-accent);
}

.pech-section--dark .pech-news-row__cat {
  color: var(--pech-light);
  opacity: 0.7;
}

.pech-section--dark .pech-news-row__subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 247, 241, 0.68);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pech-section--dark .pech-news-row__title {
  color: var(--pech-light);
}

.pech-section--dark .pech-news-row__thumb {
  background: rgba(255, 247, 241, 0.08);
}

.pech-section--dark .pech-news-row__thumb--empty {
  background: rgba(255, 247, 241, 0.14);
}

.pech-section--dark .pech-news-row:hover .pech-news-row__title {
  color: var(--pech-accent);
}

@media (max-width: 639px) {
  .pech-section {
    padding: 30px 0;
  }

  .pech-section--dark {
    border-radius: 0;
    max-width: none;
    /* Внутренний контейнер уже задаёт боковые отступы, как в остальных секциях. */
    padding: 30px 0;
  }
}

@media (max-width: 959px) and (min-width: 640px) {
  .pech-section--dark {
    border-radius: 0;
    max-width: none;
  }
}


/* --------------------------------------------------------------------------
   4. Grid
   -------------------------------------------------------------------------- */

.pech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pech-gap);
}

/* 3-column item */
.pech-grid__col-4 {
  width: 100%;
}

/* 2-column item */
.pech-grid__col-6 {
  width: 100%;
}

@media (min-width: 640px) {
  .pech-grid__col-4 {
    width: calc((100% - var(--pech-gap)) / 2);
  }
}

@media (min-width: 960px) {
  .pech-grid__col-4 {
    width: calc((100% - var(--pech-gap) * 2) / 3);
  }

  .pech-grid__col-6 {
    width: calc((100% - var(--pech-gap)) / 2);
  }
}


/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.pech-header {
  position: fixed;
  top: 25px;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: 1160px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  background: var(--pech-light);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(19, 12, 12, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pech-header--hidden {
  transform: translateY(calc(-100% - 20px));
}

.pech-header--sticky {
  box-shadow: 0 4px 32px rgba(19, 12, 12, 0.12);
}

.pech-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 12px 0 24px;
}

.pech-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: 8px;
  position: relative;
  top: 2px;
}

.pech-header__logo img {
  width: 133px;
  height: 49px;
  display: block;
  object-fit: contain;
}

.pech-header .pech-header__cta {
  flex-shrink: 0;
  width: 186px;
  height: 44px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.pech-header__cta:hover {
  background: var(--pech-light);
  color: var(--pech-accent);
  border-color: var(--pech-accent);
}

.pech-header-social {
  position: relative;
  flex-shrink: 0;
  margin: 0 12px;
}

.pech-header-social__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 12, 12, 0.1);
  border-radius: 24px;
  color: var(--pech-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.pech-header-social__trigger::-webkit-details-marker {
  display: none;
}

.pech-header-social__trigger:hover,
.pech-header-social[open] .pech-header-social__trigger {
  color: var(--pech-accent);
  border-color: rgba(192, 65, 48, 0.35);
}

.pech-header-social__arrow {
  transition: transform 0.2s ease;
}

.pech-header-social[open] .pech-header-social__arrow {
  transform: rotate(180deg);
}

.pech-header-social__menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1100;
  width: 220px;
  padding: 8px;
  border: 1px solid rgba(19, 12, 12, 0.08);
  border-radius: 16px;
  background: var(--pech-light);
  box-shadow: 0 12px 32px rgba(19, 12, 12, 0.16);
}

.pech-header-social__menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--pech-dark);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.pech-header-social__menu a:hover,
.pech-header-social__menu a:focus-visible {
  background: rgba(192, 65, 48, 0.08);
  color: var(--pech-accent);
}

.pech-header-social__menu img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 959px) {
  .pech-header-social {
    display: none;
  }

  .pech-header .pech-header__cta {
    display: none;
  }

  .pech-header {
    max-width: 620px;
    height: 58px;
  }

  .pech-header__inner {
    padding: 0 8px 0 16px;
  }

  .pech-header__logo img {
    width: 120px;
    height: 44px;
  }
}

@media (max-width: 1200px) {
  .pech-header {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 639px) {
  .pech-header {
    max-width: none;
    height: 58px;
    left: 10px;
    right: 10px;
    top: 15px;
    border-radius: 30px;
  }

  .pech-header__logo {
    margin-left: 8px;
    top: 2px;
  }

  .pech-header__logo img {
    width: 120px;
    height: 44px;
  }
}


/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */

.pech-nav {
  display: none;
}

.pech-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pech-nav__item {
  display: flex;
  align-items: center;
  line-height: 1;
}

.pech-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 14px;
  color: var(--pech-dark);
  white-space: nowrap;
  line-height: 1;
  transition: color 0.2s ease;
}

.pech-nav__link:hover,
.pech-nav__link:focus-visible {
  color: var(--pech-accent);
}

.pech-nav__fire {
  width: 14px;
  height: 20px;
  flex-shrink: 0;
}

.pech-nav__fire--dark {
  filter: brightness(0);
}

.pech-nav__arrow {
  width: 10px;
  height: 6px;
  margin-left: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Dropdown submenu */
.pech-nav__item--has-sub {
  position: relative;
}

.pech-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  padding: 16px 0;
  margin-top: 16px;
  background: var(--pech-accent);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(19, 12, 12, 0.2);
  list-style: none;
  z-index: 100;
}

/* Треугольник-указатель сверху */
.pech-nav__sub::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--pech-accent);
}

/* Невидимая область для hover-перехода от меню к dropdown */
.pech-nav__sub::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.pech-nav__item--has-sub:hover > .pech-nav__sub {
  display: block;
}

.pech-nav__item--has-sub:hover > .pech-nav__link .pech-nav__arrow {
  transform: rotate(180deg);
}

.pech-nav__sublink {
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pech-light);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.pech-nav__sublink:hover {
  opacity: 0.7;
}

.pech-nav__item--sub {
  display: block;
}

@media (min-width: 960px) {
  .pech-nav {
    display: block;
  }
}


/* --------------------------------------------------------------------------
   7. Burger Button
   -------------------------------------------------------------------------- */

.pech-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: var(--pech-accent);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.pech-burger:hover {
  background: #a83428;
}

.pech-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pech-burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.pech-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.pech-burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 960px) {
  .pech-burger {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   8. Mobile Menu
   -------------------------------------------------------------------------- */

/* Fullscreen mobile menu */
.pech-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--pech-light, #fff7f1);
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pech-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.pech-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(19, 12, 12, 0.08);
  flex-shrink: 0;
}

.pech-mobile-menu__logo img {
  height: 40px;
  width: auto;
}

.pech-mobile-menu__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(19, 12, 12, 0.12);
  border-radius: 50%;
  padding: 0;
  color: var(--pech-dark);
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.pech-mobile-menu__close:hover {
  background: rgba(19, 12, 12, 0.05);
}

.pech-mobile-menu__body {
  flex: 1;
  padding: 24px 20px;
  overflow-y: auto;
}

.pech-mobile-menu__section {
  margin-bottom: 28px;
}

.pech-mobile-menu__section:last-child {
  margin-bottom: 0;
}

.pech-mobile-menu__section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(19, 12, 12, 0.4);
  margin-bottom: 14px;
}

.pech-mobile-menu__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pech-mobile-menu__chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(19, 12, 12, 0.12);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pech-dark);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pech-mobile-menu__chip:hover,
.pech-mobile-menu__chip:active {
  background: var(--pech-accent);
  border-color: var(--pech-accent);
  color: #fff;
}

.pech-mobile-menu__pages {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(19, 12, 12, 0.08);
  border-bottom: 1px solid rgba(19, 12, 12, 0.08);
}

.pech-mobile-menu__page-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pech-dark);
  border-bottom: 1px solid rgba(19, 12, 12, 0.06);
  transition: color 0.2s;
}

.pech-mobile-menu__page-link:last-child {
  border-bottom: none;
}

.pech-mobile-menu__page-link svg {
  color: var(--pech-accent);
  flex-shrink: 0;
}

.pech-mobile-menu__page-link:hover {
  color: var(--pech-accent);
}

.pech-mobile-menu__cta-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pech-mobile-menu__footer {
  flex-shrink: 0;
  padding: 14px 20px;
  border-top: 1px solid rgba(19, 12, 12, 0.08);
  text-align: center;
}

.pech-mobile-menu__footer-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(19, 12, 12, 0.4);
  margin-bottom: 10px;
}

.pech-mobile-menu__socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pech-mobile-menu__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(19, 12, 12, 0.05);
  transition: background 0.2s;
}

.pech-mobile-menu__socials a:hover {
  background: rgba(19, 12, 12, 0.1);
}

.pech-mobile-menu__socials img {
  width: 22px;
  height: 22px;
}

@media (min-width: 960px) {
  .pech-mobile-menu {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   9. Main Video
   -------------------------------------------------------------------------- */

.pech-main-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pech-dark);
}

.pech-main-video__video,
.pech-main-video__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pech-main-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 12, 12, 0.6);
  z-index: 1;
}

.pech-main-video__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.pech-main-video__logo {
  max-width: 220px;
  margin-bottom: 24px;
}

.pech-main-video__tagline {
  font-size: 18px;
  color: var(--pech-light);
  max-width: 520px;
  line-height: 1.6;
  font-weight: 300;
}

/* Отступы главного видео задаются вместе с .pech-archive-hero — см. раздел
   «Archive Hero» ниже: там эти два блока получают одни и те же значения. */

@media (max-width: 639px) {
  .pech-main-video__logo {
    max-width: 160px;
  }

  .pech-main-video__tagline {
    font-size: 16px;
  }
}


/* --------------------------------------------------------------------------
   9b. Topic of the Day Banner
   -------------------------------------------------------------------------- */

.pech-topic-of-day {
  padding: 20px 0 0;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.pech-topic-of-day__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--pech-accent);
  color: var(--pech-light);
  border-radius: 16px;
  padding: 20px 28px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(192, 65, 48, 0.25);
}

.pech-topic-of-day__inner:hover {
  background: #a8352a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192, 65, 48, 0.35);
}

.pech-topic-of-day__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pech-topic-of-day__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.pech-topic-of-day__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pech-topic-of-day__content {
  flex: 1;
  min-width: 0;
}

.pech-topic-of-day__subtitle {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pech-topic-of-day__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pech-topic-of-day__meta {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.pech-topic-of-day__arrow {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pech-topic-of-day__inner:hover .pech-topic-of-day__arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 959px) {
  .pech-topic-of-day {
    padding-top: 16px;
  }

  .pech-topic-of-day__inner {
    padding: 16px 20px;
    gap: 16px;
  }

  .pech-topic-of-day__title {
    font-size: 16px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 639px) {
  .pech-topic-of-day {
    padding: 12px 16px 0;
  }

  .pech-topic-of-day__inner {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px;
  }

  .pech-topic-of-day__badge {
    padding: 6px 12px;
  }

  .pech-topic-of-day__arrow {
    display: none;
  }

  .pech-topic-of-day__title {
    font-size: 15px;
  }
}


/* --------------------------------------------------------------------------
   10. Section Headers
   -------------------------------------------------------------------------- */

.pech-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.pech-section--editorial {
  padding-bottom: 20px;
}

.pech-section--editorial > .pech-container > .pech-btn-wrap {
  margin-top: 20px;
}

.pech-section--video {
  padding: 20px 0 24px;
}

.pech-section-header--video {
  margin-bottom: 20px;
}

.pech-section-header--video .pech-video-slider__controls {
  margin: 0 0 0 auto;
  flex-shrink: 0;
}

.pech-section-header--video .pech-section-header__title {
  white-space: nowrap;
}

.pech-section--video > .pech-container > .pech-btn-wrap {
  margin-top: 20px;
}

.pech-section--social-ad {
  padding: 20px 0 24px;
}

.pech-social-ad {
  display: block;
  max-width: 1160px;
  margin: 0 auto;
  line-height: 0;
}

.pech-social-ad picture,
.pech-social-ad img {
  display: block;
  width: 100%;
}

.pech-social-ad img {
  height: auto;
}

.pech-section-header__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.pech-section-header__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pech-section-header__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 639px) {
  .pech-section-header__title {
    font-size: 24px;
  }
}


/* --------------------------------------------------------------------------
   11. Feed Cards
   -------------------------------------------------------------------------- */

.pech-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.pech-card:hover {
  transform: translateY(-4px);
}

.pech-card__image {
  aspect-ratio: 1 / 1;
  border-radius: var(--pech-radius-img);
  overflow: hidden;
  position: relative;
  background: rgba(19, 12, 12, 0.05);
}

.pech-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pech-card:hover .pech-card__image img {
  transform: scale(1.04);
}

.pech-card__meta {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(19, 12, 12, 0.7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.pech-card__meta span + span::before {
  content: '\00b7';
  margin: 0 6px;
}

.pech-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.3;
}

.pech-card__excerpt {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.8;
  line-height: 1.5;
}

@media (max-width: 639px) {
  .pech-card__title {
    font-size: 18px;
  }
}


/* --------------------------------------------------------------------------
   12. Buttons
   -------------------------------------------------------------------------- */

.pech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--pech-radius-btn);
  font-family: var(--pech-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.pech-btn--primary {
  background: var(--pech-accent);
  color: var(--pech-light);
  border: 2px solid var(--pech-accent);
}

.pech-btn--primary:hover,
.pech-btn--primary:focus-visible {
  background: var(--pech-light);
  color: var(--pech-accent);
  border-color: var(--pech-accent);
}

.pech-btn--outline {
  background: var(--pech-accent);
  color: var(--pech-light);
  border: 2px solid var(--pech-accent);
}

.pech-btn--outline:hover,
.pech-btn--outline:focus-visible {
  background: var(--pech-light);
  color: var(--pech-accent);
  border-color: var(--pech-accent);
}

.pech-btn-wrap {
  text-align: center;
  margin-top: 40px;
}


/* --------------------------------------------------------------------------
   12b. News Top Block (Featured + Лента новостей)
   -------------------------------------------------------------------------- */

.pech-news-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

/* Featured card (left, 2/3) */
.pech-news-top__featured {
  min-width: 0;
}

/* Вариант list: 4 материала строками «фото, рубрика, заголовок» */
.pech-news-top--list .pech-news-top__featured {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.pech-news-row {
  display: grid;
  grid-template-columns: 226px 1fr;
  gap: 22px;
  align-items: start;
}

.pech-news-row__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--pech-radius-img);
  overflow: hidden;
  background: rgba(19, 12, 12, 0.06);
}

.pech-news-row__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pech-news-row__thumb--empty {
  background: rgba(19, 12, 12, 0.08);
}

.pech-news-row:hover .pech-news-row__thumb img {
  transform: scale(1.03);
}

.pech-news-row__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-top: 6px;
}

.pech-news-row__cat {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pech-dark);
  opacity: 0.6;
}

.pech-news-row__subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(19, 12, 12, 0.62);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pech-news-row__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pech-dark);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.pech-news-row:hover .pech-news-row__title {
  color: var(--pech-accent);
}

.pech-featured-card {
  display: block;
}

.pech-featured-card__cat {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pech-dark);
  opacity: 0.6;
  margin-bottom: 8px;
}

.pech-featured-card__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pech-dark);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.pech-featured-card:hover .pech-featured-card__title {
  color: var(--pech-accent);
}

.pech-featured-card__time {
  display: inline-block;
  font-size: 14px;
  color: var(--pech-dark);
  opacity: 0.5;
  margin-bottom: 16px;
}

.pech-featured-card__image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.pech-featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pech-featured-card:hover .pech-featured-card__image img {
  transform: scale(1.02);
}

/* Sidebar — Лента новостей (right, 1/3) */
.pech-news-top__sidebar {
  min-width: 0;
}

.pech-news-top__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pech-news-top__sidebar-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--pech-dark);
}

.pech-news-top__search-wrap {
  position: relative;
  flex-shrink: 0;
}

.pech-news-top__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pech-news-top__search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--pech-accent);
  padding: 0;
  transition: opacity 0.2s;
}

.pech-news-top__search-btn:hover {
  opacity: 0.7;
}

.pech-news-top__search-input {
  display: none;
  border: 1px solid var(--pech-accent, #c04130);
  border-radius: 28px;
  padding: 8px 16px;
  font-size: 14px;
  width: 200px;
  outline: none;
  background: #fff;
  color: var(--pech-dark);
}

.pech-news-top__search-input::placeholder {
  color: rgba(19, 12, 12, 0.4);
}

.pech-news-top__search-input:focus {
  border-color: var(--pech-accent);
  box-shadow: 0 0 0 2px rgba(192, 65, 48, 0.15);
}

.pech-news-top__search.is-open .pech-news-top__search-input {
  display: block;
}

.pech-news-top__live-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(19, 12, 12, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(19, 12, 12, 0.12);
  margin-top: 8px;
  display: none;
  z-index: 100;
  padding: 8px 0;
}

.pech-news-top__live-results.is-visible {
  display: block;
}

.pech-sidebar-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(19, 12, 12, 0.1);
}

.pech-sidebar-item:first-of-type {
  border-top: 1px solid rgba(19, 12, 12, 0.1);
}

.pech-sidebar-item__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pech-dark);
  transition: color 0.2s ease;
}

.pech-sidebar-item:hover .pech-sidebar-item__title {
  color: var(--pech-accent);
}

.pech-sidebar-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(19, 12, 12, 0.4);
  margin-top: 4px;
}

.pech-sidebar-item__cat {
  display: inline-block;
  background: var(--pech-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 1;
  line-height: 1.4;
}

/* Responsive */
@media (min-width: 960px) {
  .pech-news-top {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .pech-featured-card__title {
    font-size: 32px;
  }
}

@media (max-width: 959px) and (min-width: 640px) {
  .pech-news-row {
    grid-template-columns: 186px 1fr;
  }
}

@media (max-width: 639px) {
  body.home .pech-news-top--list .pech-news-top__featured > .pech-news-row:nth-child(n+3) {
    display: none;
  }

  .pech-news-row__subtitle {
    font-size: 12px;
  }

  .pech-featured-card__title {
    font-size: 22px;
  }

  .pech-news-row {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }

  .pech-news-row__title {
    font-size: 17px;
    -webkit-line-clamp: 2;
  }

  .pech-archive-hero,
  .pech-main-video {
    align-items: flex-start;
    /* Сверху 100px: шапка занимает ~93px (top 15 + высота 58 + статус-бар). */
    padding: 100px 0 50px;
  }

  .pech-sidebar-item__title {
    font-size: 14px;
  }

  .pech-news-top__sidebar-header {
    position: relative;
  }

  .pech-news-top__search-wrap {
    position: static;
  }

  .pech-news-top__search-input {
    font-size: 16px;
  }

  .pech-news-top__live-results {
    left: 0;
    right: 0;
    width: auto;
  }
}


.pech-video-slider {
  position: relative;
  margin-bottom: 0;
}

.pech-video-slider__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.pech-video-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(19, 12, 12, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--pech-dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pech-video-slider__arrow:hover {
  border-color: var(--pech-accent);
  background: var(--pech-accent);
  color: #fff;
}

.pech-video-slider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.pech-video-slider__track::-webkit-scrollbar {
  display: none;
}

.pech-video-slider__slide {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 959px) {
  .pech-video-slider__slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 639px) {
  .pech-section.pech-section--contacts {
    padding: 18px 0 32px;
  }

  .pech-section--editorial {
    padding-bottom: 12px;
  }

  .pech-section--editorial > .pech-container > .pech-btn-wrap {
    margin-top: 16px;
  }

  .pech-section--video {
    padding: 14px 0 18px;
  }

  .pech-section--social-ad {
    padding: 12px 0 18px;
  }

  .pech-section-header--video {
    gap: 8px;
    margin-bottom: 16px;
  }

  .pech-section-header--video .pech-section-header__title {
    font-size: 22px;
  }

  .pech-video-slider__slide {
    flex-basis: 84%;
  }

  .pech-video-slider__controls {
    margin-bottom: 0;
  }

  .pech-video-slider__arrow {
    width: 36px;
    height: 36px;
  }
}

.pech-video-feed__item {
  min-width: 0;
}

.pech-video-feed__item .pech-video-card__title {
  margin-top: 10px;
}

@media (max-width: 639px) {
  .pech-video-feed__featured {
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   13. Video Grid
   -------------------------------------------------------------------------- */

.pech-video-card {
  display: block;
  cursor: pointer;
}

.pech-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--pech-radius-img);
  overflow: hidden;
  background: var(--pech-dark);
}

.pech-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pech-video-card:hover .pech-video-card__thumb img {
  transform: scale(1.03);
}

.pech-video-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--pech-dark);
}

.pech-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.pech-video-card:hover:not(:has(.pech-video-card__article-link:hover)) .pech-video-card__play {
  opacity: 1;
}

.pech-video-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1.3;
  color: var(--pech-dark);
  transition: color 0.2s ease;
}

.pech-video-card__thumb:hover ~ .pech-video-card__title,
.pech-video-card__title:hover {
  color: var(--pech-accent);
}

@media (max-width: 639px) {
  .pech-video-card__title {
    font-size: 16px;
  }
}

.pech-video-card__article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pech-accent);
  transition: opacity 0.2s;
}

.pech-video-card__article-link:hover {
  opacity: 0.7;
}

.pech-video-card__article-link:hover ~ .pech-video-card__title,
.pech-video-card:has(.pech-video-card__article-link:hover) .pech-video-card__title {
  color: var(--pech-dark);
}

/* --------------------------------------------------------------------------
   13a. Video Archive Grid
   -------------------------------------------------------------------------- */

.pech-video-archive {
  padding: 60px 0 80px;
}

.pech-video-archive__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 639px) {
  .pech-video-archive__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* --------------------------------------------------------------------------
   13b. Video Lightbox
   -------------------------------------------------------------------------- */

.pech-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pech-video-lightbox.is-active {
  display: flex;
}

.pech-video-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.pech-video-lightbox__wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.pech-video-lightbox__wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

.pech-video-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.pech-video-lightbox__close:hover {
  opacity: 1;
}

@media (max-width: 639px) {
  .pech-video-lightbox {
    padding: 16px;
  }
  .pech-video-lightbox__close {
    top: -36px;
    font-size: 28px;
  }
}


/* --------------------------------------------------------------------------
   14. Popup / Modal
   -------------------------------------------------------------------------- */

body.popup-open {
  position: fixed;
  left: 0;
  right: 0;
  overflow-y: scroll;
}

.pech-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pech-popup.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pech-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 12, 12, 0);
  transition: background 0.3s ease;
}

.pech-popup.is-active .pech-popup__overlay {
  background: rgba(19, 12, 12, 0.5);
}

.pech-popup__content {
  position: relative;
  background: var(--pech-bg);
  border-radius: var(--pech-radius-img);
  max-width: 600px;
  width: 90%;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pech-popup.is-active .pech-popup__content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pech-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--pech-dark);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.pech-popup__close:hover {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.pech-footer {
  background: var(--pech-dark);
  color: var(--pech-light);
  padding: 60px 0 0;
}

/* --- Footer Top: brand + nav --- */
.pech-footer__top {
  display: flex;
  gap: 60px;
  padding-bottom: 40px;
}

.pech-footer__brand {
  flex: 0 0 420px;
  max-width: 420px;
}

.pech-footer__logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.pech-footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
}

.pech-footer__nav-columns {
  display: flex;
  gap: 48px;
  flex: 1;
}

.pech-footer__nav {
  display: flex;
  flex-direction: column;
}

.pech-footer__nav-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.pech-footer__nav-title a {
  color: inherit;
  opacity: 1;
  font-size: inherit;
  font-weight: inherit;
  transition: color 0.2s;
}

.pech-footer__nav-title a:hover {
  color: var(--pech-accent);
}

.pech-footer__nav a {
  font-size: 14px;
  opacity: 0.7;
  display: block;
  padding: 3px 0;
  transition: opacity 0.2s ease;
}

.pech-footer__nav a:hover,
.pech-footer__nav a:focus-visible {
  opacity: 1;
}

.pech-footer__nav-spacer {
  height: 24px;
}

/* --- Footer Bottom: legal + links + socials --- */
.pech-footer__bottom {
  border-top: 1px solid rgba(255, 247, 241, 0.15);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.pech-footer__legal {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.5;
}

.pech-footer__legal p {
  margin-bottom: 12px;
}

.pech-footer__age {
  margin-top: 8px;
}

.pech-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pech-footer__links a {
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  line-height: 1.4;
}

.pech-footer__links a:hover {
  opacity: 1;
}

.pech-footer__copyright {
  font-size: 14px;
  opacity: 0.5;
  margin-top: 16px;
}

.pech-footer__social-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.pech-footer__socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pech-footer__socials a {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.pech-footer__socials a:hover {
  opacity: 0.8;
}

.pech-footer__socials a img {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Footer responsive --- */
@media (min-width: 960px) {
  .pech-footer__bottom {
    grid-template-columns: 1.2fr 0.8fr auto;
    gap: 40px;
  }

  .pech-footer__social-block {
    align-items: flex-end;
  }
}

@media (max-width: 959px) {
  .pech-footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .pech-footer__brand {
    flex: none;
    max-width: 100%;
  }

  .pech-footer__nav-columns {
    flex-wrap: wrap;
    gap: 32px;
  }

  .pech-footer__social-block {
    order: -1;
  }
}

@media (max-width: 639px) {
  .pech-mobile-menu__header {
    padding: 22px 18px 16px 26px;
  }

  .pech-mobile-menu__logo {
    margin-left: 8px;
  }

  .pech-mobile-menu__logo img {
    height: 44px;
  }

  .pech-mobile-menu__close {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .pech-mobile-menu__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}


/* --------------------------------------------------------------------------
   15b. Archive / News Page
   -------------------------------------------------------------------------- */

/* Hero. Общие свойства для .pech-archive-hero (страницы «Новости» и
   «Видеосюжеты») и .pech-main-video (главная). */
.pech-archive-hero,
.pech-main-video {
  position: relative;
  background: var(--pech-dark);
  color: var(--pech-light);
  text-align: center;
  overflow: hidden;
}

/* Отступы у блоков разные намеренно: контент главного видео (лого 65px +
   слоган) ниже контента hero (заголовок + подзаголовок) примерно на 30px,
   поэтому на главной добавлено по 15px сверху и снизу, чтобы итоговая высота
   блоков совпадала. Замерено по скриншотам: 481px против 511px. */
.pech-main-video {
  padding: 135px 0 95px;
}

.pech-archive-hero {
  padding: 120px 0 80px;
}

.pech-archive-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pech-archive-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 12, 12, 0.75);
  z-index: 1;
}

.pech-archive-hero__content {
  position: relative;
  z-index: 2;
}

.pech-archive-hero__title {
  font-family: 'LiteratureDecor', serif;
  font-size: 72px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.pech-archive-hero__subtitle {
  font-size: 18px;
  opacity: 0.7;
  line-height: 1.6;
}

/* Category Tabs */
.pech-archive-tabs {
  padding: 40px 0 24px;
  border-bottom: 1px solid rgba(19, 12, 12, 0.1);
}

.pech-archive-tabs .pech-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.pech-archive-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  flex: 1;
}

.pech-archive-tabs__tab {
  font-size: 16px;
  font-weight: 500;
  color: var(--pech-dark);
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
  padding: 4px 0;
  white-space: nowrap;
}

.pech-archive-tabs__tab:hover {
  opacity: 1;
}

.pech-archive-tabs__tab.is-active {
  font-weight: 700;
  opacity: 1;
}

.pech-archive-tabs__search-wrap {
  position: relative;
  flex-shrink: 0;
}

.pech-archive-tabs__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pech-archive-tabs__search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--pech-accent);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
}

.pech-archive-tabs__search-btn:hover {
  opacity: 0.7;
}

.pech-archive-tabs__search-input {
  display: none;
  border: 1px solid var(--pech-accent, #c04130);
  border-radius: 28px;
  padding: 10px 20px;
  font-size: 16px;
  width: 220px;
  font-family: inherit;
  background: #fff;
  color: var(--pech-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pech-archive-tabs__search-input::placeholder {
  color: rgba(19, 12, 12, 0.4);
}

.pech-archive-tabs__search-input:focus {
  border-color: var(--pech-accent);
  box-shadow: 0 0 0 2px rgba(192, 65, 48, 0.15);
}

.pech-archive-tabs__search.is-open .pech-archive-tabs__search-input {
  display: block;
}

/* Live Search Results */
.pech-live-search__results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  max-height: 440px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(19, 12, 12, 0.15);
  margin-top: 8px;
  z-index: 100;
  display: none;
}

.pech-live-search__results.is-visible {
  display: block;
}

.pech-live-search__item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(19, 12, 12, 0.06);
  transition: background 0.15s;
}

.pech-live-search__item:last-child {
  border-bottom: none;
}

.pech-live-search__item:hover {
  background: var(--pech-light, #fff7f1);
}

.pech-live-search__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(19, 12, 12, 0.05);
}

.pech-live-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pech-live-search__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pech-live-search__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pech-accent);
}

.pech-live-search__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pech-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pech-live-search__date {
  font-size: 12px;
  color: rgba(19, 12, 12, 0.4);
}

.pech-live-search__empty,
.pech-live-search__loading {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: rgba(19, 12, 12, 0.5);
}

@media (max-width: 639px) {
  .pech-archive-tabs {
    position: relative;
  }

  .pech-archive-tabs__search-wrap {
    position: static;
  }

  .pech-live-search__results {
    left: 20px;
    right: 20px;
    width: auto;
  }
}

/* Grid */
.pech-archive-grid {
  padding: 40px 0 12px;
}

.pech-archive-empty {
  text-align: center;
  font-size: 18px;
  opacity: 0.5;
  padding: 60px 0;
}

/* Card category badge */
.pech-card__cat {
  display: inline-block;
  background: var(--pech-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

/* Card video badge */
.pech-card__video-badge {
  display: inline-flex;
  align-items: center;
  color: var(--pech-accent);
  vertical-align: middle;
}

/* Pagination */
.pech-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pech-pagination .nav-links {
  display: flex;
  gap: 8px;
}

.pech-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pech-dark);
  background: rgba(19, 12, 12, 0.05);
  transition: background 0.2s ease;
}

.pech-pagination .page-numbers:hover {
  background: rgba(19, 12, 12, 0.1);
}

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

.pech-pagination .prev,
.pech-pagination .next {
  width: auto;
  padding: 0 16px;
}

/* Responsive */
@media (max-width: 639px) {
  /* Тот же расклад, что и на десктопе: главному видео +15px с каждой стороны,
     потому что его контент ниже контента hero. */
  .pech-archive-hero {
    padding: 80px 0 50px;
  }

  .pech-main-video {
    padding: 95px 0 65px;
  }

  .pech-archive-hero__title {
    font-size: 40px;
  }

  .pech-archive-hero__subtitle {
    font-size: 16px;
  }

  .pech-archive-tabs .pech-container {
    flex-direction: column;
  }

  .pech-archive-tabs__list {
    gap: 6px 16px;
  }

  .pech-archive-tabs__tab {
    font-size: 14px;
  }
}


/* --------------------------------------------------------------------------
   16. Single Post — Category Tabs (reuses .pech-archive-tabs)
   -------------------------------------------------------------------------- */

.pech-archive-tabs--single {
  padding-top: 40px;
  margin-top: 80px;
}

/* --------------------------------------------------------------------------
   16a. Single Post — Layout
   -------------------------------------------------------------------------- */

.pech-single-layout {
  padding: 40px 0 60px;
}

.pech-single-layout__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.pech-single {
  min-width: 0;
}

.pech-single__category {
  display: inline-block;
  background: var(--pech-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
}

.pech-single__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}

.pech-single__subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(19, 12, 12, 0.6);
  margin-bottom: 12px;
}

.pech-single__meta {
  font-size: 14px;
  color: rgba(19, 12, 12, 0.5);
  margin-bottom: 24px;
}

.pech-single__thumbnail {
  border-radius: 16px;
  margin-bottom: 24px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(19, 12, 12, 0.05);
}

.pech-single__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pech-single__content {
  font-size: 17px;
  line-height: 1.7;
}

.pech-single__content p {
  margin-bottom: 1.4em;
}

.pech-single__content img {
  border-radius: 12px;
  margin: 1.5em 0;
}

.pech-single__content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 2em 0 0.8em;
  line-height: 1.3;
}

.pech-single__content h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 1.5em 0 0.6em;
  line-height: 1.3;
}

.pech-single__content ul,
.pech-single__content ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.pech-single__content ol {
  list-style: decimal;
}

.pech-single__content li {
  margin-bottom: 0.4em;
}

.pech-single__content blockquote {
  border-left: 4px solid var(--pech-accent);
  padding: 16px 24px;
  margin: 1.5em 0;
  font-style: italic;
  opacity: 0.9;
}

.pech-single__content a {
  color: var(--pech-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* --------------------------------------------------------------------------
   16b. Single Post — Sidebar (Популярное)
   -------------------------------------------------------------------------- */

.pech-single-sidebar {
  position: sticky;
  top: 110px;
}

.pech-single-sidebar__block {
  background: var(--pech-dark);
  color: var(--pech-light);
  border-radius: 16px;
  padding: 24px;
}

.pech-single-sidebar__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pech-single-sidebar__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pech-single-sidebar__tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.pech-single-sidebar__tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.pech-single-sidebar__tab.is-active {
  color: #fff;
}

.pech-single-sidebar__tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pech-accent);
  border-radius: 2px;
}

.pech-single-sidebar__panel {
  display: none;
}

.pech-single-sidebar__panel.is-active {
  display: block;
}

.pech-single-sidebar__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s ease;
}

.pech-single-sidebar__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pech-single-sidebar__item:hover {
  opacity: 0.8;
}

.pech-single-sidebar__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--pech-accent);
  line-height: 1;
  min-width: 28px;
  flex-shrink: 0;
}

.pech-single-sidebar__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pech-single-sidebar__cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--pech-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.4;
}

.pech-single-sidebar__headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.pech-single-sidebar__date {
  font-size: 12px;
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   16c. Сейчас читают
   -------------------------------------------------------------------------- */

.pech-reading {
  background: var(--pech-dark);
  color: var(--pech-light);
  padding: 60px 0 80px;
}

.pech-reading__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.pech-reading__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pech-reading__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.pech-reading__card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pech-reading__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pech-reading__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pech-reading__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pech-reading__cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--pech-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.pech-reading__headline {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.pech-reading__date {
  font-size: 12px;
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   16d. Single Post — Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .pech-single-layout__grid {
    grid-template-columns: 1fr;
  }

  .pech-single-sidebar {
    position: static;
  }

  .pech-reading__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .pech-single__title {
    font-size: 24px;
  }

  .pech-single__subtitle {
    font-size: 16px;
  }

  .pech-single__content {
    font-size: 16px;
  }

  .pech-reading__grid {
    grid-template-columns: 1fr;
  }

  .pech-reading__title {
    font-size: 22px;
  }
}

/* --------------------------------------------------------------------------
   17. Page (generic)
   -------------------------------------------------------------------------- */

.pech-page {
  padding: 120px 0 60px;
}

.pech-page__title {
  font-family: 'LiteratureDecor', serif;
  font-size: 72px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
  line-height: 1.1;
  border-bottom: 2px solid var(--pech-accent);
  padding-bottom: 24px;
}

.pech-page__content {
  font-size: 17px;
  line-height: 1.7;
}

.pech-page__content p {
  margin-bottom: 1.5em;
}

.pech-page__content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
}

.pech-page__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.pech-page__content ul,
.pech-page__content ol {
  margin-bottom: 1.5em;
  padding-left: 24px;
}

.pech-page__content li {
  margin-bottom: 6px;
}

@media (max-width: 639px) {
  .pech-page {
    padding: 90px 0 40px;
  }

  .pech-page__title {
    font-size: 36px;
    margin-bottom: 32px;
    padding-bottom: 16px;
  }

  .pech-page__content {
    font-size: 16px;
  }
}


/* --------------------------------------------------------------------------
   18. About Page (О нас)
   -------------------------------------------------------------------------- */

/* --- Hero --- */
.pech-about-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.pech-about-hero__title {
  font-family: 'LiteratureDecor', serif;
  font-size: 72px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.pech-about-hero__desc {
  font-size: 20px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  color: rgba(19, 12, 12, 0.7);
  text-align: center;
}

.pech-about-hero__desc p {
  margin-bottom: 12px;
}

.pech-about-hero__desc p:last-child {
  margin-bottom: 0;
}

/* --- Миссия --- */
.pech-about-mission {
  padding: 40px 0 0;
}

.pech-about-mission .pech-container {
  position: relative;
  text-align: center;
  padding: 48px 20px;
}

.pech-about-mission .pech-container::before,
.pech-about-mission .pech-container::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(19, 12, 12, 0.2);
}

.pech-about-mission .pech-container::before {
  top: 0;
}

.pech-about-mission .pech-container::after {
  bottom: 0;
}

.pech-about-mission__title {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pech-dark, #130c0c);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 40px;
  white-space: nowrap;
}

.pech-about-mission__text {
  font-size: 20px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* --- Команда --- */
.pech-about-team {
  padding: 48px 0 80px;
}

.pech-about-team__heading {
  font-family: 'LiteratureDecor', serif;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 48px;
}

.pech-about-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.pech-about-team__card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(19, 12, 12, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pech-about-team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(19, 12, 12, 0.14);
}

.pech-about-team__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.pech-about-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pech-about-team__info {
  padding: 20px;
}

.pech-about-team__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.pech-about-team__position {
  font-size: 14px;
  color: var(--pech-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.pech-about-team__quote {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(19, 12, 12, 0.6);
  font-style: italic;
}

/* --- Section title (shared) --- */
.pech-about-section__title {
  font-family: 'LiteratureDecor', serif;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 40px;
}

/* --- Вакансии --- */
.pech-about-vacancy {
  padding: 60px 0;
  background: var(--pech-light, #fff7f1);
}

.pech-about-vacancy__card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(19, 12, 12, 0.06);
  text-align: center;
}

.pech-about-vacancy__name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pech-about-vacancy__desc {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.pech-about-vacancy__list {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 20px;
  list-style: disc;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.7;
}

.pech-about-vacancy__cta {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* --- Услуги --- */
.pech-about-services {
  padding: 80px 0;
}

.pech-about-services .pech-about-section__title {
  text-align: center;
}

.pech-about-services__row {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.pech-about-services__row:last-child {
  margin-bottom: 0;
}

.pech-about-services__row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pech-about-services__row--2 {
  grid-template-columns: repeat(2, 1fr);
}

.pech-about-services__card {
  background: #fff;
  border: 1px solid rgba(19, 12, 12, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pech-about-services__name {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.pech-about-services__card p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(19, 12, 12, 0.7);
  flex: 1;
}

.pech-about-services__btn {
  margin-top: 24px;
  align-self: center;
}

/* --- CTA --- */
.pech-about-cta {
  padding: 80px 0;
  background: var(--pech-dark, #130c0c);
  text-align: center;
}

.pech-about-cta__text {
  font-family: 'LiteratureDecor', serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.3;
}

.pech-about-cta .pech-btn--primary {
  font-size: 18px;
  padding: 16px 40px;
}

/* --- Сведения об издателе --- */
.pech-about-publisher {
  padding: 80px 0;
}

.pech-about-publisher__content {
  max-width: 900px;
  margin: 0 auto;
}

.pech-about-publisher__company {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.pech-about-publisher__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.pech-about-publisher__col h4 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--pech-accent);
}

.pech-about-publisher__col p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.pech-about-publisher__col a {
  color: var(--pech-accent);
  text-decoration: underline;
}

.pech-about-publisher__note {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(19, 12, 12, 0.6);
  text-align: center;
  border-top: 1px solid rgba(19, 12, 12, 0.1);
  padding-top: 24px;
}

.pech-about-publisher__age {
  font-size: 14px;
  color: rgba(19, 12, 12, 0.5);
  text-align: center;
  margin-top: 8px;
}

/* --- Modal / Forms --- */
.pech-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.pech-modal[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.pech-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 12, 12, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pech-modal[aria-hidden="false"] .pech-modal__overlay {
  opacity: 1;
}

.pech-modal__dialog {
  position: relative;
  background: var(--pech-light, #fff7f1);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(19, 12, 12, 0.25);
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pech-modal[aria-hidden="false"] .pech-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pech-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: rgba(19, 12, 12, 0.35);
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.pech-modal__close:hover {
  color: var(--pech-accent);
}

.pech-modal__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pech-dark);
}

.pech-modal__subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--pech-dark);
  margin-bottom: 28px;
}

.pech-modal__input {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--pech-accent, #c04130);
  border-radius: 28px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--pech-dark);
}

.pech-modal__input::placeholder {
  color: rgba(19, 12, 12, 0.4);
}

.pech-modal__input:focus {
  border-color: var(--pech-accent);
}

.pech-modal__input--error {
  border-color: var(--pech-accent);
}

/* Phone field with flag */
.pech-modal__phone-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--pech-accent, #c04130);
  border-radius: 28px;
  background: #fff;
  margin-bottom: 16px;
  padding-left: 20px;
  gap: 6px;
  transition: border-color 0.2s;
}

.pech-modal__phone-wrap:focus-within {
  border-color: var(--pech-accent);
}

.pech-modal__phone-wrap.pech-modal__input--error {
  border-color: var(--pech-accent);
}

.pech-modal__phone-flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.pech-modal__phone-prefix {
  font-size: 16px;
  font-weight: 500;
  color: var(--pech-dark);
  flex-shrink: 0;
  user-select: none;
}

.pech-modal__input--phone {
  border: none;
  background: transparent;
  margin-bottom: 0;
  padding-left: 4px;
  border-radius: 0 28px 28px 0;
}

.pech-modal__input--phone:focus {
  border-color: transparent;
}

.pech-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  cursor: pointer;
  color: rgba(19, 12, 12, 0.6);
}

.pech-modal__checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--pech-accent, #c04130);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.pech-modal__checkbox input[type="checkbox"]:checked {
  background: var(--pech-accent, #c04130);
}

.pech-modal__checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.pech-modal__checkbox a:hover {
  text-decoration: underline;
}

.pech-modal__submit {
  width: 100%;
  margin-top: 12px;
  padding: 18px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  background: var(--pech-accent);
  color: #fff;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.pech-modal__submit:hover {
  background: #a83428;
}

.pech-modal__submit:active {
  transform: scale(0.98);
}

.pech-modal__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pech-modal__status {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.pech-modal__status--success {
  color: #2e7d32;
}

.pech-modal__status--error {
  color: var(--pech-accent);
}

.pech-modal__textarea {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--pech-accent, #c04130);
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--pech-dark);
  resize: vertical;
  min-height: 120px;
}

.pech-modal__textarea::placeholder {
  color: rgba(19, 12, 12, 0.4);
}

.pech-modal__textarea:focus {
  border-color: var(--pech-accent);
  box-shadow: 0 0 0 2px rgba(192, 65, 48, 0.15);
}

.pech-modal__textarea.pech-modal__input--error {
  border-color: var(--pech-accent);
}

.pech-modal__field-error {
  color: var(--pech-accent);
  font-size: 12px;
  margin-top: -12px;
  margin-bottom: 12px;
  padding-left: 20px;
}

@media (max-width: 639px) {
  .pech-modal__dialog {
    padding: 32px 20px;
    margin: 16px;
    max-width: calc(100% - 32px);
  }
  .pech-modal__title {
    font-size: 24px;
  }
}

/* --- About responsive --- */
@media (max-width: 1023px) {
  .pech-about-team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .pech-about-services__row--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pech-about-services__row--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .pech-about-hero {
    padding: 100px 0 40px;
  }

  .pech-about-hero__title {
    font-size: 40px;
  }

  .pech-about-hero__desc {
    font-size: 17px;
  }

  .pech-about-mission__title {
    font-size: 15px;
    padding: 8px 24px;
    top: -18px;
  }

  .pech-about-mission__text {
    font-size: 17px;
  }

  .pech-about-team__heading,
  .pech-about-section__title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .pech-about-team__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pech-about-services__row--3,
  .pech-about-services__row--2 {
    grid-template-columns: 1fr;
  }

  .pech-about-vacancy__card {
    padding: 24px;
  }

  .pech-about-cta__text {
    font-size: 24px;
  }

  .pech-about-publisher__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   19. 404 Page
   -------------------------------------------------------------------------- */

.pech-404 {
  text-align: center;
  padding: 120px 20px;
}

.pech-404__code {
  font-size: 120px;
  font-weight: 700;
  color: var(--pech-accent);
  line-height: 1;
}

.pech-404__title {
  font-size: 24px;
  margin: 16px 0;
  font-weight: 600;
}

.pech-404__text {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 32px;
}

@media (max-width: 639px) {
  .pech-404__code {
    font-size: 80px;
  }

  .pech-404 {
    padding: 90px 16px;
  }
}


/* --------------------------------------------------------------------------
   19. Contacts Section
   -------------------------------------------------------------------------- */

.pech-section--contacts {
  background: var(--pech-light);
  padding: 24px 0 40px;
}

.pech-contacts__title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--pech-dark);
}

.pech-contacts__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 60px;
}

.pech-contacts__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pech-accent);
  font-size: 24px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.pech-contacts__item:hover {
  opacity: 0.7;
}

.pech-contacts__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--pech-accent);
  align-self: center;
  display: block;
}

@media (max-width: 639px) {
  .pech-contacts__title {
    font-size: 28px;
  }

  .pech-contacts__grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .pech-contacts__item {
    font-size: 18px;
  }
}


/* --------------------------------------------------------------------------
   21. AOS (Animate On Scroll) Overrides
   -------------------------------------------------------------------------- */

[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* Fade up */
[data-aos="fade-up"] {
  transform: translateY(24px);
}

/* Fade in */
[data-aos="fade-in"],
[data-aos="fade"] {
  transform: none;
}

/* Fade right */
[data-aos="fade-right"] {
  transform: translateX(-24px);
}

/* Fade left */
[data-aos="fade-left"] {
  transform: translateX(24px);
}

/* Zoom in */
[data-aos="zoom-in"] {
  transform: scale(0.95);
}

/* Stagger support via data-aos-delay */
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.5s; }


/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Visually hidden but focusable (skip link) */
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Generic spacing helpers */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }


/* --------------------------------------------------------------------------
   23. Breadcrumbs
   -------------------------------------------------------------------------- */

.pech-breadcrumbs {
  padding: 0 0 12px;
  font-size: 13px;
  color: rgba(19, 12, 12, 0.5);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.pech-breadcrumbs a {
  color: rgba(19, 12, 12, 0.5);
  transition: color 0.2s;
}

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

.pech-breadcrumbs__sep {
  margin: 0 8px;
  opacity: 0.5;
}

.pech-breadcrumbs__current {
  display: inline-block;
  background: var(--pech-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
}


/* --------------------------------------------------------------------------
   24. Progress Bar
   -------------------------------------------------------------------------- */

.pech-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(19, 12, 12, 0.08);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.pech-progress-bar.is-hidden-by-menu {
  opacity: 0 !important;
  visibility: hidden;
}

.pech-progress-bar__fill {
  height: 100%;
  width: 0;
  background: var(--pech-accent);
  transition: width 0.1s linear;
}


/* --------------------------------------------------------------------------
   25. Scroll-to-Top Button
   -------------------------------------------------------------------------- */

.pech-scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pech-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(192, 65, 48, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}

.pech-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pech-scroll-top.is-hidden-by-menu {
  opacity: 0 !important;
  visibility: hidden !important;
}

.pech-scroll-top:hover {
  background: var(--pech-accent-hover, #a8352a);
}

@media (max-width: 639px) {
  .pech-scroll-top {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}


/* --------------------------------------------------------------------------
   25b. Linked Video / Article Badges
   -------------------------------------------------------------------------- */

.pech-linked-video {
  margin: 24px 0;
}

.pech-linked-video__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pech-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 6px 6px 0 0;
}

.pech-linked-video__player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0 8px 8px 8px;
  background: #000;
}

.pech-linked-video__player iframe,
.pech-linked-video__player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pech-linked-article {
  margin: 20px 0;
}

.pech-linked-article__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pech-light, #fff7f1);
  border: 1px solid var(--pech-accent);
  color: var(--pech-accent);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.pech-linked-article__link:hover {
  background: var(--pech-accent);
  color: #fff;
}

.pech-linked-article__link svg {
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   26. Dark Theme Toggle
   -------------------------------------------------------------------------- */

.pech-theme-toggle {
  position: fixed;
  bottom: 80px;
  left: 24px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pech-dark, #130c0c);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(19, 12, 12, 0.2);
  transition: background 0.2s;
}

.pech-theme-toggle:hover {
  background: rgba(19, 12, 12, 0.8);
}

.pech-theme-toggle__moon { display: none; }
.pech-theme-toggle__sun  { display: block; }

[data-theme="dark"] .pech-theme-toggle__moon { display: block; }
[data-theme="dark"] .pech-theme-toggle__sun  { display: none; }

[data-theme="dark"] .pech-theme-toggle {
  background: #fff;
  color: var(--pech-dark);
}

@media (max-width: 639px) {
  .pech-theme-toggle {
    bottom: 68px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}


/* --------------------------------------------------------------------------
   27. Skeleton Loading (Live Search)
   -------------------------------------------------------------------------- */

@keyframes pechShimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.pech-skeleton {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(19, 12, 12, 0.06);
}

.pech-skeleton__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(19,12,12,0.06) 25%, rgba(19,12,12,0.12) 50%, rgba(19,12,12,0.06) 75%);
  background-size: 400px 100%;
  animation: pechShimmer 1.2s ease-in-out infinite;
}

.pech-skeleton__lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.pech-skeleton__line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(19,12,12,0.06) 25%, rgba(19,12,12,0.12) 50%, rgba(19,12,12,0.06) 75%);
  background-size: 400px 100%;
  animation: pechShimmer 1.2s ease-in-out infinite;
}

.pech-skeleton__line:nth-child(1) { width: 40%; }
.pech-skeleton__line:nth-child(2) { width: 85%; }
.pech-skeleton__line:nth-child(3) { width: 55%; }


/* --------------------------------------------------------------------------
   28. Related Posts
   -------------------------------------------------------------------------- */

.pech-related {
  padding: 40px 0 60px;
  background: var(--pech-light, #fff7f1);
}

.pech-related__title {
  font-family: var(--pech-font-display, 'LiteratureDecor', serif);
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--pech-dark);
}


/* --------------------------------------------------------------------------
   29. Dark Theme
   -------------------------------------------------------------------------- */

[data-theme="dark"] {
  --pech-dark: #e8e0dc;
  --pech-light: #1a1410;
}

[data-theme="dark"] body,
[data-theme="dark"] .pech-body {
  background-color: #121010;
  color: #e8e0dc;
}

[data-theme="dark"] .pech-header {
  background: rgba(18, 16, 16, 0.95);
}

[data-theme="dark"] .pech-card,
[data-theme="dark"] .pech-reading__card {
  background: #1e1a18;
}

[data-theme="dark"] .pech-card__title,
[data-theme="dark"] .pech-reading__headline,
[data-theme="dark"] .pech-single__title,
[data-theme="dark"] .pech-single-sidebar__headline {
  color: #e8e0dc;
}

[data-theme="dark"] .pech-single__subtitle {
  color: rgba(232, 224, 220, 0.6);
}

[data-theme="dark"] .pech-card__excerpt,
[data-theme="dark"] .pech-single__content {
  color: rgba(232, 224, 220, 0.75);
}

[data-theme="dark"] .pech-archive-tabs {
  background: #1a1410;
}

[data-theme="dark"] .pech-single-sidebar {
  background: #1e1a18;
}

[data-theme="dark"] .pech-footer {
  background: #0e0c0a;
}

[data-theme="dark"] .pech-live-search__results,
[data-theme="dark"] .pech-cookie-popup {
  background: #1e1a18;
}

[data-theme="dark"] .pech-live-search__title,
[data-theme="dark"] .pech-cookie-popup__title {
  color: #e8e0dc;
}

[data-theme="dark"] .pech-breadcrumbs__current {
  color: #fff;
}

[data-theme="dark"] .pech-modal__dialog {
  background: #1e1a18;
}

[data-theme="dark"] .pech-modal__title {
  color: #e8e0dc;
}

[data-theme="dark"] .pech-modal__input,
[data-theme="dark"] .pech-modal__textarea,
[data-theme="dark"] .pech-archive-tabs__search-input {
  background: #2a2420;
  color: #e8e0dc;
  border-color: rgba(232, 224, 220, 0.2);
}

[data-theme="dark"] .pech-related {
  background: #1a1410;
}

[data-theme="dark"] .pech-nav__link,
[data-theme="dark"] .pech-archive-tabs__tab {
  color: rgba(232, 224, 220, 0.7);
}

[data-theme="dark"] .pech-progress-bar {
  background: rgba(232, 224, 220, 0.1);
}

[data-theme="dark"] .pech-linked-article__link {
  background: rgba(232, 224, 220, 0.05);
  border-color: var(--pech-accent);
}

[data-theme="dark"] .pech-skeleton__thumb,
[data-theme="dark"] .pech-skeleton__line {
  background: linear-gradient(90deg, rgba(232,224,220,0.06) 25%, rgba(232,224,220,0.12) 50%, rgba(232,224,220,0.06) 75%);
  background-size: 400px 100%;
}


/* --------------------------------------------------------------------------
   30. Cookie / Consent Banners
   -------------------------------------------------------------------------- */

/* Top bar — Яндекс.Метрика */
.pech-consent-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10010;
  background: var(--pech-accent, #c04130);
  color: #fff;
  padding: 12px 0;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s ease;
}

.pech-consent-bar.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.pech-consent-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pech-consent-bar__text {
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.pech-consent-bar__text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pech-consent-bar__btn {
  flex-shrink: 0;
  padding: 8px 24px;
  border: 2px solid #fff;
  border-radius: 28px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pech-consent-bar__btn:hover {
  background: #fff;
  color: var(--pech-accent);
}

/* Bottom-right popup — Cookie */
.pech-cookie-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10010;
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 400px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 40px rgba(19, 12, 12, 0.18);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pech-cookie-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pech-cookie-popup__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--pech-dark);
  margin-bottom: 8px;
}

.pech-cookie-popup__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(19, 12, 12, 0.7);
  margin-bottom: 20px;
}

.pech-cookie-popup__text a {
  color: var(--pech-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pech-cookie-popup__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pech-cookie-popup__accept {
  padding: 10px 24px;
  background: var(--pech-accent);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.pech-cookie-popup__accept:hover {
  background: var(--pech-accent-hover, #a8352a);
}

.pech-cookie-popup__settings-btn {
  background: none;
  border: none;
  color: rgba(19, 12, 12, 0.5);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.pech-cookie-popup__settings-btn:hover {
  color: var(--pech-dark);
}

/* Settings panel */
.pech-cookie-popup__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(19, 12, 12, 0.08);
}

.pech-cookie-popup__option:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
}

.pech-cookie-popup__option-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--pech-dark);
}

.pech-cookie-popup__option-desc {
  display: block;
  font-size: 12px;
  color: rgba(19, 12, 12, 0.5);
  margin-top: 2px;
  line-height: 1.3;
}

/* Toggle switch */
.pech-cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.pech-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pech-cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(19, 12, 12, 0.2);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.pech-cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.pech-cookie-toggle input:checked + .pech-cookie-toggle__slider {
  background: var(--pech-accent);
}

.pech-cookie-toggle input:checked + .pech-cookie-toggle__slider::before {
  transform: translateX(20px);
}

.pech-cookie-toggle input:disabled + .pech-cookie-toggle__slider {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 639px) {
  .pech-consent-bar__inner {
    flex-direction: column;
    gap: 10px;
  }

  .pech-consent-bar__text {
    font-size: 13px;
  }

  .pech-cookie-popup {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    padding: 20px;
  }
}


/* --------------------------------------------------------------------------
   31. Print Styles
   -------------------------------------------------------------------------- */

@media print {
  .pech-header,
  .pech-footer,
  .pech-mobile-menu,
  .pech-popup,
  .pech-btn-wrap {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .pech-single,
  .pech-page {
    padding-top: 0;
    max-width: 100%;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    opacity: 0.6;
  }
}


/* MediaMetrics widgets */
.pech-section--mediametrics {
	padding: 8px 0 12px;
}
.pech-mediametrics-widget {
	max-width: 100%;
	overflow-x: auto;
}
.pech-mediametrics-widget--horizontal {
	margin: 0;
}
.pech-mediametrics-widget--vertical {
	margin-top: 24px;
}


.pech-social-ad__caption {
  display: none;
}

@media (max-width: 479px) {
  .pech-social-ad__caption {
    display: block;
    margin: 8px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
  }
}
