/* Wan Sheng Ceramic — unified stylesheet (base + design v2 + view transitions) */
:root {
  --is-slate-50: #f8fafc;
  --is-slate-100: #f1f5f9;
  --is-slate-300: #cbd5e1;
  --is-slate-400: #94a3b8;
  --is-slate-500: #64748b;
  --is-slate-600: #475569;
  --is-slate-700: #334155;
  --is-slate-800: #1e293b;
  --is-slate-900: #0f172a;
  --is-slate-950: #020617;
  --is-amber-300: #fcd34d;
  --is-amber-400: #fbbf24;
  --is-amber-500: #f59e0b;
  --is-amber-600: #d97706;
  --is-amber-700: #b45309;
  --is-white: #fff;
  --is-container: 80rem;
  --is-radius-xl: 0.75rem;
  --is-radius-2xl: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--is-slate-900);
  background: var(--is-slate-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.mobile-menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.is-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--is-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-main {
  flex: 1;
  /* Каждый шаблон сам управляет отступом от fixed-шапки */
}

/* ── Home hero & buttons (base; design v2 layer below overrides layout/colors) ── */
.hero-home {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: var(--is-slate-900);
}

@media (min-width: 1024px) {
  .hero-home {
    padding: 12rem 0 8rem;
  }
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home__bg img,
.hero-home__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-home__bg img {
  object-fit: cover;
}

.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  mix-blend-mode: multiply;
}

.hero-home__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent, rgba(15, 23, 42, 0.4));
}

.hero-home__inner {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 59rem;
}

.hero-home__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--is-amber-300);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero-home__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--is-amber-400);
}

.hero-home__h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--is-white);
  line-height: 1.1;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.hero-home__h1 span.accent,
.about-hero__h1 span.accent {
  color: var(--is-amber-400);
}

.hero-home__lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--is-slate-300);
  line-height: 1.8;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 100px;
}

.hero-stats__value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--is-amber-400);
}

.hero-stats__label {
  font-size: 0.875rem;
  color: var(--is-slate-400);
  text-align: center;
  line-height: 1.3;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--is-amber-600);
  color: var(--is-white);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--is-radius-xl);
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--is-amber-500);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--is-slate-300);
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: var(--is-radius-xl);
  border: 1px solid var(--is-slate-600);
  transition: color 0.2s, border-color 0.2s;
}

.btn-outline-light:hover {
  color: var(--is-white);
  border-color: var(--is-slate-400);
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--is-slate-800);
  margin: 0 0 1rem;
}

.section-head__rule {
  width: 80px;
  height: 4px;
  background: var(--is-amber-500);
  border-radius: 9999px;
  margin: 0 auto;
}

/* ── Home news ── */
.section-news-home {
  padding: 4rem 0 5rem;
  background: var(--is-white);
  border-top: 1px solid var(--is-slate-100);
}

.section-news-home .section-head {
  margin-bottom: 3rem;
}

.news-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .news-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--is-slate-50);
  border-radius: var(--is-radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--is-slate-500);
  margin-bottom: 1rem;
}

.news-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.news-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--is-slate-800);
  line-height: 1.25;
  transition: color 0.2s;
}

.news-card:hover .news-card__title {
  color: var(--is-amber-600);
}

.news-card__excerpt {
  margin: 0 0 1rem;
  color: var(--is-slate-600);
  line-height: 1.6;
  flex: 1;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--is-amber-600);
  font-weight: 500;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.news-card:hover .news-card__more {
  opacity: 1;
}

.section-news-home__footer {
  text-align: center;
  margin-top: 2.5rem;
}

.section-news-home__footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--is-amber-600);
}

.section-news-home__footer a:hover {
  color: var(--is-amber-700);
}

/* ── News archive template ── */
.news-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: var(--is-slate-900);
  text-align: center;
}

@media (min-width: 1024px) {
  .news-hero {
    padding: 10rem 0 5rem;
  }
}

.news-hero__kicker {
  display: inline-block;
  color: var(--is-amber-400);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.news-hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 700;
  color: var(--is-white);
  line-height: 1.15;
}

.news-hero p {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--is-slate-300);
  font-size: 1.125rem;
  line-height: 1.7;
}

.news-toolbar {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: var(--is-white);
  border-bottom: 1px solid var(--is-slate-200);
  padding: 2rem 0;
}

.news-toolbar__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .news-toolbar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.news-search {
  position: relative;
  width: 100%;
  max-width: 20rem;
}

.news-search input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--is-slate-300);
  border-radius: var(--is-radius-xl);
  font: inherit;
}

.news-search input:focus {
  outline: none;
  border-color: var(--is-amber-500);
}

.news-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--is-slate-400);
  pointer-events: none;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .cat-pills {
    justify-content: flex-start;
  }
}

.cat-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--is-slate-100);
  color: var(--is-slate-700);
  border: 0;
  cursor: pointer;
  font: inherit;
}

a.cat-pill {
  display: inline-block;
}

.cat-pill:hover {
  background: var(--is-slate-200);
}

.cat-pill.is-active {
  background: var(--is-amber-500);
  color: var(--is-white);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.news-archive-grid {
  padding: 4rem 0 6rem;
  background: var(--is-slate-50);
}

.news-archive-grid .news-home-grid {
  max-width: 80rem;
}

.news-count-hint {
  text-align: center;
  margin-top: 3rem;
  color: var(--is-slate-500);
}

/* ── Хлебные крошки ── */
.breadcrumbs {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--is-slate-500);
  font-weight: 400;
}

.breadcrumbs--dark .breadcrumbs__item + .breadcrumbs__item::before {
  color: var(--is-slate-500);
}

.breadcrumbs--dark a {
  color: var(--is-slate-400);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs--dark a:hover {
  color: var(--is-amber-400);
}

.breadcrumbs--dark .breadcrumbs__item--current span {
  color: var(--is-slate-200);
  font-weight: 500;
}

.breadcrumbs--light a {
  color: var(--is-slate-600);
  text-decoration: none;
}

.breadcrumbs--light a:hover {
  color: var(--is-amber-600);
}

.breadcrumbs--light .breadcrumbs__item + .breadcrumbs__item::before {
  color: var(--is-slate-400);
}

.breadcrumbs--light .breadcrumbs__item--current span {
  color: var(--is-slate-900);
  font-weight: 600;
}

.article-hero .breadcrumbs {
  margin-bottom: 1.25rem;
}

/* ── Single post (как NewsArticle.tsx) ── */
.article-hero {
  padding: 7rem 0 2rem;
  background: var(--is-slate-900);
  /* Иначе margin-bottom у последнего ребёнка схлопывается снаружи — между hero и картинкой видна полоса body */
  display: flow-root;
}

.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--is-amber-400);
  transition: color 0.2s;
}

.article-hero__back:hover {
  color: var(--is-amber-300);
}

.article-featured-section {
  padding: 0 0 2rem;
  background: var(--is-slate-900);
}

.article-featured-img {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: var(--is-radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  background: var(--is-slate-800);
  aspect-ratio: 896 / 504;
}

.article-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.article-content {
  background: #fff;
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .article-content {
    padding: 6rem 0;
  }
}

.article-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding-top: 0;
}

@media (min-width: 640px) {
  .article-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

.article-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--is-slate-600);
  transition: color 0.2s;
  max-width: 48%;
}

.article-nav__link:hover {
  color: var(--is-amber-600);
}

.article-nav__link--next {
  margin-left: auto;
  text-align: right;
  flex-direction: row-reverse;
}

.article-hero__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--is-white);
  line-height: 1.2;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--is-slate-400);
  font-size: 0.875rem;
}

.article-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-body {
  max-width: 48rem;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.article-body .entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--is-slate-700);
}

.article-body .entry-content > * + * {
  margin-top: 1.25rem;
}

.article-body .entry-content h2 {
  font-size: 1.5rem;
  color: var(--is-slate-900);
  margin-top: 2rem;
}

.article-body .entry-content ul {
  padding-left: 1.25rem;
}

.article-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--is-slate-200);
}

.article-footer-actions__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--is-slate-600);
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.article-footer-actions__link:hover {
  color: var(--is-amber-600);
}

.article-cta {
  padding: 4rem 0;
  background: var(--is-slate-50);
}

.article-cta__card {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--is-radius-xl);
}

@media (min-width: 640px) {
  .article-cta__card {
    padding: 2rem 2.5rem;
  }
}

.article-cta__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--is-slate-800);
}

.article-cta__text {
  margin: 0 0 1.5rem;
  color: var(--is-slate-600);
  line-height: 1.6;
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.article-cta__btn--secondary {
  border: 2px solid var(--is-amber-600);
  color: var(--is-amber-700);
  background: transparent;
}

.article-cta__btn--secondary:hover {
  background: var(--is-amber-600);
  color: #fff;
  border-color: var(--is-amber-600);
}


/* Page generic */
.page-standard {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.page-standard h1 {
  margin-top: 0;
}

/* 404 */
.page-404 {
  padding: 8rem 0 6rem;
  text-align: center;
}

.page-404__code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--is-slate-200);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.page-404 h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--is-slate-800);
  margin: 0 0 0.75rem;
}

.page-404 p {
  color: var(--is-slate-500);
  margin: 0 0 2rem;
}

.page-404 .btn-primary {
  text-decoration: none;
}

/* ── Шапка подвала — лого блок ── */
.site-footer__logo-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.site-footer__legal-small {
  font-size: 0.75rem;
  color: var(--is-slate-500);
  margin: 0 0 0.25rem;
}

.site-footer__requisite-name {
  color: var(--is-white);
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.site-footer__address {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Социальные кнопки в подвале (точно как в прототипе) ── */
.footer-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-soc-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--is-slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--is-slate-400);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.footer-soc-btn img,
.footer-soc-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-soc-btn:hover {
  background: var(--is-slate-700);
  color: var(--is-white);
}

/* WA кнопка — зелёный ховер как в прототипе */
.footer-soc-btn--wa:hover {
  color: #4ade80;
  background: var(--is-slate-700);
}

/* ── Строки контактов в подвале ── */
.site-footer__contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.site-footer__contacts-list li {
  margin: 0;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--is-slate-400);
  transition: color 0.2s;
}

.footer-contact-row--top {
  align-items: flex-start;
}

.footer-contact-row:hover {
  color: var(--is-amber-500);
}

.footer-contact-row--wa:hover {
  color: #4ade80;
}

.footer-contact-row--tg:hover {
  color: #38bdf8;
}

.footer-contact-label {
  color: var(--is-white);
  font-weight: 500;
}

.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-contact-icon--amber {
  color: var(--is-amber-500);
}

.footer-contact-icon--img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon--img img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.site-footer__requisites {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__requisites .footer-contact-row {
  align-items: flex-start;
}

.site-footer__requisites .footer-contact-icon {
  margin-top: 2px;
}

/* ── Карточка производителя без фото ── */
.mfg-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Первая буква названия как декоративный элемент */
.mfg-card__placeholder::before {
  content: attr(data-letter);
  font-size: 7rem;
  font-weight: 800;
  color: rgba(251, 191, 36, 0.12);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  user-select: none;
}

/* Тонкие декоративные линии-сетка */
.mfg-card__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.05) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

/* ── Новостная карточка без фото ── */
.news-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--is-slate-100) 0%, var(--is-slate-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Пагинация WordPress ── */
.pagination-row {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.page-numbers > li {
  display: flex;
}

.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  background: var(--is-white);
  border: 1px solid var(--is-slate-200);
  font-size: 0.875rem;
  color: var(--is-slate-700);
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-numbers a:hover {
  background: var(--is-amber-500);
  color: var(--is-white);
  border-color: var(--is-amber-500);
}

.page-numbers .current {
  background: var(--is-amber-500);
  color: var(--is-white);
  border-color: var(--is-amber-500);
  cursor: default;
}

.page-numbers .dots {
  border: 0;
  background: none;
}

/* ── Gutenberg контент в статьях ── */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--is-radius-xl);
  margin: 1.5rem 0;
}

.entry-content figure {
  margin: 1.5rem 0;
}

.entry-content figcaption {
  font-size: 0.875rem;
  color: var(--is-slate-500);
  text-align: center;
  margin-top: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--is-amber-500);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--is-slate-600);
  font-style: italic;
}

.entry-content a {
  color: var(--is-amber-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--is-amber-700);
}

.entry-content h3 {
  font-size: 1.25rem;
  color: var(--is-slate-900);
  margin-top: 2rem;
}

/* ── Пустые состояния ── */
.news-empty-hint {
  text-align: center;
  color: var(--is-slate-500);
  padding: 3rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Avoid admin notice for non-dashboard pages ── */
.notice.notice-info { font-size: 0.875rem; }

/* ══════════════════════════════════════════════════════════
   Страница «Спасибо за обращение»
   ══════════════════════════════════════════════════════════ */

.thankyou-section {
  padding: 6rem 0 8rem;
  background: var(--is-slate-50);
  min-height: calc(100vh - 260px);
  display: flex;
  align-items: center;
}

.thankyou-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: #d1fae5;
  color: #059669;
  margin-bottom: 2rem;
}

.thankyou-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--is-slate-900);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.thankyou-lead {
  font-size: 1.125rem;
  color: var(--is-slate-600);
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.thankyou-contact-hint {
  font-size: 0.9375rem;
  color: var(--is-slate-500);
  margin: 0 0 2.5rem;
}

.thankyou-phone {
  font-weight: 600;
  color: var(--is-amber-600);
  white-space: nowrap;
  text-decoration: none;
}

.thankyou-phone:hover {
  text-decoration: underline;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.thankyou-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--is-slate-600);
  text-decoration: none;
  transition: color 0.2s;
}

.thankyou-back-link:hover {
  color: var(--is-slate-900);
}

/* =============================================================================
   Design v2 (header, footer, home, contacts) — order matters for cascade
   ============================================================================= */

/* ── Design v2 (header, footer, home, contacts) ── */
/* Design v2 — ported from apps/project (terracotta / slate) */

:root {
  --is-accent: #c2410c;
  --is-accent-hover: #9a3412;
  --is-accent-light: #ffedd5;
  --is-amber-300: var(--is-accent-light);
  --is-amber-400: #ea580c;
  --is-amber-500: var(--is-accent);
  --is-amber-600: var(--is-accent);
  --is-amber-700: var(--is-accent-hover);
  --is-input-bg: oklch(0.984 0.003 247.858);
  --is-border-input: #e2e8f0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Reset legacy shell styles */
#site-header.site-header-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border: 0;
  padding: 0;
  transition: box-shadow 0.3s, background 0.3s;
}

.prefooter:not(.prefooter-v2),
.site-footer:not(.site-footer-v2) {
  display: none !important;
}

#mobile-menu-panel:not(.mobile-drawer-v2) {
  display: none !important;
}

/* ── Header v2 ── */
.site-header-v2 {
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header-v2__utility {
  display: none;
  background: var(--is-slate-900);
  border-bottom: 1px solid var(--is-slate-800);
  height: 2.5rem;
  overflow: hidden;
  transition: height 0.3s, opacity 0.3s;
}

@media (min-width: 768px) {
  .site-header-v2__utility {
    display: block;
  }
}

.site-header-v2.site-header--scrolled .site-header-v2__utility {
  height: 0;
  opacity: 0;
  border: 0;
}

.site-header-v2__utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  font-size: 0.75rem;
  color: var(--is-slate-300);
}

.site-header-v2__utility-left,
.site-header-v2__utility-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header-v2__utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  transition: color 0.2s;
}

.site-header-v2__utility-link svg {
  flex-shrink: 0;
  color: var(--is-accent);
}

.site-header-v2__utility-link--wa svg,
.site-header-v2__utility-link--tg svg {
  color: currentColor;
}

.site-header-v2__utility-link:hover {
  color: var(--is-white);
}

.site-header-v2__utility-link--wa:hover { color: #25d366; }
.site-header-v2__utility-link--tg:hover { color: #229ed9; }
.site-header-v2__utility-link--max:hover { color: var(--is-white); }

.site-header-v2__utility-icon-img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.site-header-v2__main {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header-v2.site-header--scrolled .site-header-v2__main {
  background: var(--is-white);
  border-bottom-color: var(--is-slate-200, #e2e8f0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.site-header-v2__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 5rem;
  transition: height 0.3s;
}

.site-header-v2.site-header--scrolled .site-header-v2__main-inner {
  height: 4rem;
}

.site-brand-v2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-brand-v2__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  transition: transform 0.2s;
}

.site-brand-v2:hover .site-brand-v2__logo {
  transform: scale(1.05);
}

.site-brand-v2__name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--is-slate-900);
  line-height: 1;
  letter-spacing: -0.025em;
}

.site-brand-v2__tag {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--is-slate-500);
}

.nav-v2 {
  display: none;
}

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

.nav-v2__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-v2__list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--is-slate-600);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-v2__list a:hover,
.nav-v2__list .current-menu-item > a,
.nav-v2__list .current_page_item > a {
  color: var(--is-accent);
}

.nav-v2__list .current-menu-item > a::after,
.nav-v2__list .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--is-accent);
  border-radius: 2px 2px 0 0;
}

.site-header-v2__actions {
  display: none;
}

@media (min-width: 1024px) {
  .site-header-v2__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--is-slate-900);
  color: var(--is-white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: background 0.2s;
}

.btn-header-cta:hover {
  background: var(--is-slate-800);
  color: var(--is-white);
}

.mobile-toggle-v2 {
  display: flex;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--is-slate-600);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle-v2 {
    display: none;
  }
}

/* Mobile drawer — override legacy #mobile-menu-panel (main.css) */
.mobile-overlay-v2 {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-overlay-v2.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .mobile-overlay-v2 {
    display: none !important;
  }
}

#mobile-menu-panel.mobile-drawer-v2 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 80%;
  max-width: 24rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--is-white);
  box-shadow: -25px 0 50px -12px rgba(15, 23, 42, 0.25);
  opacity: 1;
  pointer-events: none;
  backdrop-filter: none;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

#mobile-menu-panel.mobile-drawer-v2.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  #mobile-menu-panel.mobile-drawer-v2 {
    display: none !important;
  }
}

.mobile-drawer-v2__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1.5rem;
  border-bottom: 1px solid var(--is-slate-100, #f1f5f9);
}

.mobile-drawer-v2__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--is-slate-900);
}

.mobile-drawer-v2__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-right: -0.5rem;
  border: 0;
  border-radius: 9999px;
  background: var(--is-slate-50, #f8fafc);
  color: var(--is-slate-500, #64748b);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.mobile-drawer-v2__close:hover {
  color: var(--is-slate-900, #0f172a);
  background: var(--is-slate-100, #f1f5f9);
}

.mobile-drawer-v2__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-drawer-v2__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer-v2__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--is-slate-700, #334155);
  transition: background 0.2s, color 0.2s;
}

.mobile-drawer-v2__list a:hover {
  background: var(--is-slate-50, #f8fafc);
  color: var(--is-slate-900, #0f172a);
}

.mobile-drawer-v2__list .current-menu-item > a,
.mobile-drawer-v2__list a.is-current {
  background: #fff7ed;
  color: var(--is-accent);
}

.mobile-drawer-v2__list .current-menu-item > a::after,
.mobile-drawer-v2__list a.is-current::after {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mobile-drawer-v2__foot {
  flex-shrink: 0;
  padding: 1.5rem;
  border-top: 1px solid var(--is-slate-100, #f1f5f9);
  background: var(--is-slate-50, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-v2__phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--is-slate-900, #0f172a);
  color: var(--is-white);
  font-weight: 500;
  border-radius: 0.75rem;
  transition: background 0.2s;
}

.mobile-drawer-v2__phone-btn:hover {
  background: var(--is-slate-800, #1e293b);
  color: var(--is-white);
}

.mobile-drawer-v2__social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mobile-drawer-v2__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--is-white);
  border: 1px solid var(--is-slate-200, #e2e8f0);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--is-slate-700, #334155);
  transition: background 0.2s, border-color 0.2s;
}

.mobile-drawer-v2__social a:hover {
  background: var(--is-slate-50, #f8fafc);
  border-color: var(--is-slate-300, #cbd5e1);
  color: var(--is-slate-900, #0f172a);
}

.admin-bar .site-header-v2 {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header-v2 {
    top: 46px;
  }
}

/* ── Hero home v2 ── */
.hero-home {
  --hero-header-offset: 5rem;
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--hero-header-offset) + 1.5rem);
  padding-bottom: 5rem;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-home {
    --hero-header-offset: 7.5rem;
    padding-top: calc(var(--hero-header-offset) + 2rem);
  }
}

@media (min-width: 1024px) {
  .hero-home {
    padding-bottom: 8rem;
  }
}

.hero-home .container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-home__inner {
  max-width: 48rem;
  text-align: left;
}

.hero-home__badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--is-white);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero-home__badge-dot {
  background: var(--is-accent);
}

.hero-home__h1 span.accent,
.about-hero__h1 span.accent {
  color: var(--is-accent);
}

.hero-home__br {
  display: none;
}

@media (min-width: 768px) {
  .hero-home__br {
    display: block;
  }
}

.hero-home__lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-stats {
  justify-content: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  gap: 2rem 3rem;
}

.hero-stats__item {
  align-items: flex-start;
}

.hero-stats__value {
  color: var(--is-white);
}

.hero-stats__label {
  font-weight: 500;
}

.hero-cta-row {
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.btn-primary {
  background: var(--is-accent);
  border-radius: 0.5rem;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--is-accent-hover);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--is-white);
}

.hero-home__gradient {
  background: linear-gradient(to right, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.9), transparent);
}

.hero-home__overlay {
  background: rgba(15, 23, 42, 0.4);
  mix-blend-mode: normal;
}

/* Image break */
.hero-break {
  background: var(--is-slate-50);
  border-bottom: 1px solid var(--is-slate-200, #e2e8f0);
  padding: 4rem 0;
}

.hero-break__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-break__grid {
    flex-direction: row;
    gap: 2rem;
  }
}

.hero-break__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-break__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--is-slate-900);
}

.hero-break__text {
  margin: 0;
  color: var(--is-slate-600);
  line-height: 1.7;
  max-width: 42rem;
}

.hero-break__media {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-break__media {
    justify-content: flex-end;
  }
}

.hero-break__media-frame {
  width: 100%;
  max-width: 32rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.hero-break__media-frame img,
.hero-break__media img,
.hero-break__media picture {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-break__media-frame img {
  border-radius: 0;
  box-shadow: none;
}

/* ── Catalog section v2 ── */
.section-catalog {
  background: var(--is-white);
  padding: 5rem 0;
}

.section-catalog__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-catalog__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-catalog__eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--is-accent);
}

.section-catalog__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--is-slate-900);
}

.section-catalog__aside {
  margin: 0;
  max-width: 18rem;
  font-size: 0.875rem;
  color: var(--is-slate-500);
  line-height: 1.6;
}

.section-head__rule {
  display: none;
}

.catalog-filters__panel {
  background: var(--is-slate-50);
  border-radius: 1rem;
  box-shadow: none;
}

.catalog-filters__search:focus {
  border-color: var(--is-accent);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
}

.catalog-filters__chip.is-active {
  background: var(--is-slate-900);
  border-color: var(--is-slate-900);
  color: var(--is-white);
}

.catalog-card:hover {
  border-color: var(--is-slate-300, #cbd5e1);
}

/* ── Prefooter v2 ── */
.prefooter-v2 {
  background: linear-gradient(135deg, var(--is-slate-900), var(--is-slate-800));
  padding: 2.5rem 0;
}

.prefooter-v2__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .prefooter-v2__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.prefooter-v2__title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--is-white);
}

.prefooter-v2__sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--is-slate-400);
  max-width: 36rem;
}

.prefooter-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prefooter-v2__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.prefooter-v2__btn--primary {
  background: var(--is-accent);
  color: var(--is-white);
}

.prefooter-v2__btn--primary:hover {
  background: var(--is-accent-hover);
  color: var(--is-white);
}

.prefooter-v2__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--is-white);
}

.prefooter-v2__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--is-white);
}

/* ── Footer v2 ── */
.site-footer-v2 {
  background: var(--is-slate-900);
  color: var(--is-slate-400);
  border-top: 1px solid var(--is-slate-800);
}

.site-footer-v2__main {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.site-footer-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .site-footer-v2__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer-v2__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer-v2__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.site-footer-v2__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--is-white);
  border-radius: 0.5rem;
}

.site-footer-v2__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--is-white);
}

.site-footer-v2__about {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 28rem;
}

.site-footer-v2__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer-v2__soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--is-slate-800);
  color: var(--is-slate-300);
  transition: background 0.3s, color 0.3s;
}

.site-footer-v2__soc:hover {
  color: var(--is-white);
}

.site-footer-v2__soc--wa:hover {
  background: #25d366;
}

.site-footer-v2__soc--tg:hover {
  background: #229ed9;
}

.site-footer-v2__soc--max:hover {
  background: linear-gradient(135deg, #0077ff 0%, #7b42f6 50%, #ff2d55 100%);
}

.site-footer-v2__soc-icon-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.site-footer-v2__heading {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--is-white);
  border: 0;
  padding: 0;
}

.site-footer-v2__links,
.site-footer-v2__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-v2__links li + li,
.site-footer-v2__contacts li + li {
  margin-top: 1rem;
}

.site-footer-v2__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: inherit;
  transition: color 0.2s;
}

.site-footer-v2__links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--is-slate-700);
  transition: background 0.2s;
}

.site-footer-v2__links a:hover {
  color: var(--is-white);
}

.site-footer-v2__links a:hover::before {
  background: var(--is-accent);
}

.site-footer-v2__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: inherit;
  transition: color 0.2s;
}

.site-footer-v2__contact:hover {
  color: var(--is-white);
}

.site-footer-v2__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  background: var(--is-slate-800);
  transition: background 0.2s;
}

.site-footer-v2__contact:hover .site-footer-v2__contact-icon {
  background: var(--is-accent);
  color: var(--is-white);
}

.site-footer-v2__address {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.site-footer-v2__address svg {
  flex-shrink: 0;
  color: var(--is-slate-500);
}

.site-footer-v2__bottom {
  border-top: 1px solid var(--is-slate-800);
  padding: 2rem 0;
}

.site-footer-v2__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--is-slate-500);
}

@media (min-width: 768px) {
  .site-footer-v2__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer-v2__bottom a {
  color: inherit;
}

.site-footer-v2__bottom a:hover {
  color: var(--is-white);
}

/* ── Contacts split layout ── */
.contacts-page-v2 .contacts-hero {
  display: none;
}

.contacts-split {
  display: grid;
  grid-template-columns: 1fr;
  --contacts-header-offset: 5rem;
  min-height: 100vh;
  padding-top: var(--contacts-header-offset);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .contacts-split {
    --contacts-header-offset: 7.5rem;
  }
}

@media (min-width: 1024px) {
  .contacts-split {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
  }
}

.contacts-split__info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: var(--is-slate-900);
  color: var(--is-slate-400);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contacts-split__info {
    padding: 5rem 3rem;
    min-height: calc(100vh - var(--contacts-header-offset));
  }
}

.contacts-split__info::before,
.contacts-split__info::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.contacts-split__info::before {
  top: 0;
  right: 0;
  width: 40rem;
  height: 40rem;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(60px);
  transform: translate(50%, -50%);
}

.contacts-split__info::after {
  bottom: 0;
  left: 0;
  width: 30rem;
  height: 30rem;
  background: rgba(194, 65, 12, 0.1);
  filter: blur(60px);
  transform: translate(-50%, 50%);
}

.contacts-split__info-inner {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contacts-split__info-inner {
    margin: 0;
  }
}

.contacts-split__badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--is-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  backdrop-filter: blur(8px);
}

.contacts-split__h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--is-white);
  line-height: 1.15;
}

.contacts-split__h1 .accent {
  color: var(--is-accent);
}

.contacts-split__lead {
  margin: 0 0 3rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.contacts-split__items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contacts-split__item {
  display: flex;
  gap: 1.25rem;
  color: inherit;
  transition: color 0.2s;
}

a.contacts-split__item:hover {
  color: var(--is-white);
}

a.contacts-split__item:hover .contacts-split__icon {
  background: var(--is-accent);
}

a.contacts-split__item:hover .contacts-split__value {
  color: var(--is-accent);
}

.contacts-split__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--is-white);
  transition: background 0.2s;
}

.contacts-split__label {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: var(--is-slate-500);
}

.contacts-split__value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--is-white);
  transition: color 0.2s;
}

.contacts-split__value--detail {
  font-size: 1rem;
  font-weight: 500;
}

.contacts-split__value--multiline {
  line-height: 1.5;
}

.contacts-split__messengers {
  display: inline;
}

.contacts-split__messengers a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contacts-split__messengers a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contacts-split__messengers a.contacts-split__messenger--wa:hover {
  color: #25d366;
}

.contacts-split__messengers a.contacts-split__messenger--tg:hover {
  color: #229ed9;
}

.contacts-split__messengers a.contacts-split__messenger--max:hover {
  color: #7b42f6;
}

.contacts-split__form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4rem 1.5rem;
  background: var(--is-white);
}

@media (min-width: 1024px) {
  .contacts-split__form {
    justify-content: center;
    padding: 5rem 3rem;
    min-height: calc(100vh - var(--contacts-header-offset));
  }
}

.contacts-split__form-inner {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.contacts-split__form h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--is-slate-900);
}

.contacts-split__form .contacts-form-card__sub {
  margin: 0 0 2.5rem;
  color: var(--is-slate-500);
  line-height: 1.6;
}

/* Contact form — match React (slate-50 fields, terracotta focus) */
.contacts-split .cf-form {
  gap: 1.5rem;
  position: relative;
}

/* Honeypot — скрыт от пользователей, доступен ботам */
.contacts-split .cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contacts-split .cf-field {
  gap: 0.5rem;
}

.contacts-split .cf-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--is-slate-700);
}

.contacts-split .cf-field label span {
  color: var(--is-accent);
}

.contacts-split .cf-field input,
.contacts-split .cf-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--is-border-input);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--is-slate-900);
  background-color: #f8fafc;
  background-color: var(--is-input-bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contacts-split .cf-field input::placeholder,
.contacts-split .cf-field textarea::placeholder {
  color: var(--is-slate-400);
  font-weight: 400;
}

.contacts-split .cf-field input:focus,
.contacts-split .cf-field textarea:focus {
  border-color: var(--is-accent);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
}

.contacts-split .cf-field textarea {
  resize: none;
  min-height: 6.5rem;
  line-height: 1.5;
}

.contacts-split .cf-field--consent {
  margin-top: 0;
}

.contacts-split .cf-consent-label {
  font-size: 0.875rem;
  color: var(--is-slate-500);
  line-height: 1.5;
}

.contacts-split .cf-consent-label a {
  color: var(--is-slate-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-split .cf-consent-label a:hover {
  color: var(--is-slate-900);
}

.contacts-split .cf-consent-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--is-accent);
  border-radius: 0.25rem;
}

.contacts-split .cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.25;
  color: var(--is-white);
  background: var(--is-accent);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contacts-split .cf-submit svg {
  flex-shrink: 0;
}

.contacts-split .cf-submit:hover {
  background: var(--is-accent-hover);
}

.contacts-split .cf-submit:active {
  background: var(--is-accent-hover);
}

.contacts-split .cf-notice {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contacts-split .cf-notice--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contacts-map {
  height: 22rem;
  background: var(--is-slate-200, #e2e8f0);
  overflow: hidden;
}

.contacts-map__iframe,
.contacts-map__iframe iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* About page accents — see assets/about.css (.about-page-v2) */

/* =============================================================================
   Cross-document View Transitions
   ============================================================================= */

/**
 * Cross-document View Transitions (MPA).
 * Chrome 126+, Edge 126+ — same-origin navigation only.
 * Graceful no-op in other browsers.
 */

@view-transition {
	navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}

#site-header {
	view-transition-name: site-header;
}

#main-content {
	view-transition-name: main-content;
}

.site-footer-v2 {
	view-transition-name: site-footer;
}

#mobile-menu-panel.mobile-drawer-v2,
.catalog-lightbox,
.cf-hp {
	view-transition-name: none;
}

::view-transition-group(site-header) {
	z-index: 100;
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
	animation: none;
	mix-blend-mode: normal;
}

::view-transition-group(main-content) {
	animation-duration: 0.42s;
}

::view-transition-old(main-content) {
	animation: vt-main-out 0.26s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(main-content) {
	animation: vt-main-in 0.36s cubic-bezier(0, 0, 0.2, 1) 0.05s both;
}

::view-transition-old(site-footer) {
	animation: vt-footer-out 0.22s ease both;
}

::view-transition-new(site-footer) {
	animation: vt-footer-in 0.3s ease 0.08s both;
}

@keyframes vt-main-out {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateY(-12px) scale(0.995);
	}
}

@keyframes vt-main-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.995);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes vt-footer-out {
	to {
		opacity: 0;
	}
}

@keyframes vt-footer-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}
