/*
Theme Name: Skupka Belgorod
Theme URI: https://t.me/aamineev
Author: aamineev
Author URI: https://t.me/aamineev
Description: RU: Автор темы: aamineev (https://t.me/aamineev). Автор верстки: Артем Сорокин (https://t.me/ArtyomSorokin082). Кастомная WordPress-тема для проекта скупки техники в Белгороде на базе HTML-верстки и гибких секций ACF. EN: Theme author: aamineev (https://t.me/aamineev). Markup author: Artyom Sorokin (https://t.me/ArtyomSorokin082). Custom WordPress theme for an electronics buyback project in Belgorod based on HTML markup and ACF flexible sections.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: skupka-belgorod
*/

.site-shell {
  min-height: 100vh;
  background: #f8fafc;
  color: #101828;
}

.site-main {
  padding: 0;
}

.section.section--white,
.section--white {
  background: var(--color-white);
}

.section.section--surface,
.section--surface {
  background: var(--color-surface);
}

.theme-placeholder {
  background: #ffffff;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.theme-placeholder--footer {
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  border-bottom: 0;
}

.theme-placeholder__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.theme-placeholder__brand {
  color: #101828;
  font-size: 1.125rem;
  font-weight: 800;
  text-decoration: none;
}

.theme-placeholder__meta {
  margin: 0;
  color: #475467;
  font-size: 0.95rem;
}

.seo-block .content-narrow,
.content-block--seo-like {
  font-size: 1rem;
  line-height: 1.75;
  color: #101828;
}

.seo-block .content-narrow > * + *,
.content-block--seo-like > * + * {
  margin-top: 1.25rem;
}

.seo-block .content-narrow a,
.content-block--seo-like a {
  color: #007aff;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  word-break: break-word;
  transition: color 0.2s ease;
}

.seo-block .content-narrow a:hover,
.content-block--seo-like a:hover {
  color: #005fcc;
}

.seo-block .content-narrow strong,
.content-block--seo-like strong {
  font-weight: 700;
  color: #101828;
}

.seo-block .content-narrow h2,
.seo-block .content-narrow h3,
.seo-block .content-narrow h4,
.seo-block .content-narrow h5,
.seo-block .content-narrow h6,
.content-block--seo-like h2,
.content-block--seo-like h3,
.content-block--seo-like h4,
.content-block--seo-like h5,
.content-block--seo-like h6 {
  color: #101828;
  line-height: 1.2;
  font-weight: 800;
}

.seo-block .content-narrow h2,
.content-block--seo-like h2 {
  font-size: 1.85rem;
  margin-top: 2rem;
}

.seo-block .content-narrow h3,
.content-block--seo-like h3 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
}

.seo-block .content-narrow ul,
.seo-block .content-narrow ol,
.content-block--seo-like ul,
.content-block--seo-like ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.seo-block .content-narrow ul,
.content-block--seo-like ul {
  list-style: disc;
}

.seo-block .content-narrow ol,
.content-block--seo-like ol {
  list-style: decimal;
}

.seo-block .content-narrow li + li,
.content-block--seo-like li + li {
  margin-top: 0.45rem;
}

.seo-block .content-narrow blockquote,
.content-block--seo-like blockquote {
  border-left: 4px solid #007aff;
  background: rgba(0, 122, 255, 0.06);
  padding: 1rem 1.25rem;
  border-radius: 0 16px 16px 0;
  color: #344054;
}

.seo-block .content-narrow table,
.content-block--seo-like table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  table-layout: auto;
  box-shadow: none;
}

.seo-block .content-narrow .table-scroll,
.content-block--seo-like .table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.seo-block .content-narrow th,
.seo-block .content-narrow td,
.content-block--seo-like th,
.content-block--seo-like td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  color: #475467;
}

.seo-block .content-narrow th,
.content-block--seo-like th {
  background: #f5f7fa;
  font-weight: 700;
}

@media (max-width: 768px) {
  .seo-block .content-narrow th,
  .seo-block .content-narrow td,
  .content-block--seo-like th,
  .content-block--seo-like td {
    min-width: 160px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

.seo-block .content-narrow .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: #007aff;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.seo-block .content-narrow .wp-block-button__link:hover {
  color: #fff;
  background: #005fcc;
}

.seo-block .content-narrow .wp-block-image img {
  border-radius: 20px;
}

.content-block,
.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

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

.content-block a,
.article-body a {
  color: #007aff;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  word-break: break-word;
  transition: color 0.2s ease;
}

.content-block a:hover,
.article-body a:hover {
  color: #005fcc;
}

.content-block strong,
.article-body strong {
  font-weight: 700;
  color: #101828;
}

.content-block h2,
.content-block h3,
.content-block h4,
.content-block h5,
.content-block h6,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: #101828;
  line-height: 1.2;
  font-weight: 800;
}

.content-block h2,
.article-body h2 {
  font-size: 1.85rem;
  margin-top: 2rem;
}

.content-block h3,
.article-body h3 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
}

.content-block ul,
.content-block ol,
.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.content-block ul,
.article-body ul {
  list-style: disc;
}

.content-block ol,
.article-body ol {
  list-style: decimal;
}

.content-block li + li,
.article-body li + li {
  margin-top: 0.45rem;
}

.content-block blockquote,
.article-body blockquote {
  border-left: 4px solid #007aff;
  background: rgba(0, 122, 255, 0.06);
  padding: 1rem 1.25rem;
  border-radius: 0 16px 16px 0;
  color: #344054;
}

.content-block table,
.article-body table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  table-layout: auto;
  box-shadow: none;
}

.content-block .table-scroll,
.article-body .table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.content-block th,
.content-block td,
.article-body th,
.article-body td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  color: #475467;
}

.content-block th,
.article-body th {
  background: #f5f7fa;
  font-weight: 700;
}

.content-block .wp-block-button__link,
.article-body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: #007aff;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.content-block .wp-block-button__link:hover,
.article-body .wp-block-button__link:hover {
  color: #fff;
  background: #005fcc;
}

.content-block .wp-block-image img,
.article-body .wp-block-image img {
  border-radius: 20px;
}

@media (max-width: 768px) {
  .content-block th,
  .content-block td,
  .article-body th,
  .article-body td {
    min-width: 160px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .theme-placeholder__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-main {
    padding: 0;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card__link--media {
  position: relative;
}

.blog-card__image {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1e;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.blog-card__image--dark {
  background: #1c1c1e;
}

.blog-card__image--macbook {
  background: #636366;
}

.blog-card__image--playstation {
  background: #003087;
}

.blog-card__image--tips {
  background: #007aff;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__emoji {
  color: #fff;
  font-size: 2.5rem;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.blog-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #007aff;
  background: rgba(0, 122, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin: 16px 16px 8px;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0 16px 8px;
  color: #101828;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: #667085;
  line-height: 1.55;
  padding: 0 16px 12px;
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 0.82rem;
  color: #667085;
}

.blog-card__author {
  font-weight: 600;
  color: #101828;
}

.blog-card__read-more {
  color: #007aff;
  font-weight: 700;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card__icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.contact-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #101828;
}

.contact-card__body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #101828;
}

.contact-card__hint {
  font-size: 0.85rem;
  color: #667085;
}

.contact-card__phone {
  font-size: 1.2rem;
  font-weight: 800;
  color: #007aff;
  margin-top: 4px;
  text-decoration: none;
}

.contact-card__link {
  color: #007aff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 4px;
  text-decoration: none;
}

.contact-card__cta {
  margin-top: 16px;
  align-self: flex-start;
}

.contact-card__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #101828;
}

.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 32px;
  display: block;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.article-meta__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #007aff;
  background: rgba(0, 122, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.article-meta__date {
  font-size: 0.85rem;
  color: #667085;
}

.article-meta__time {
  font-size: 0.85rem;
  color: #667085;
}

.toc {
  background: #f8fafc;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.toc__title {
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
  margin-bottom: 14px;
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.toc__list li::before {
  content: counter(toc);
  font-size: 0.75rem;
  font-weight: 700;
  color: #007aff;
  min-width: 18px;
}

.toc__list a {
  font-size: 0.92rem;
  color: #101828;
  text-decoration: none;
  line-height: 1.4;
}

.toc__list a:hover {
  color: #007aff;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.article-body p,
.article-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: #101828;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.article-body blockquote {
  border-left: 4px solid #007aff;
  margin: 28px 0;
  padding: 16px 24px;
  background: rgba(0, 122, 255, 0.05);
  border-radius: 0 16px 16px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #101828;
}

.article-body img {
  width: 100%;
  border-radius: 20px;
  margin: 24px 0;
}

.article-cta-inline {
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  border-radius: 24px;
  padding: 28px 32px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 36px 0;
  flex-wrap: wrap;
}

.article-cta-inline__text {
  flex: 1;
  min-width: 200px;
}

.article-cta-inline__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.article-cta-inline__sub {
  font-size: 0.9rem;
  opacity: 0.88;
}

.article-cta-inline .btn {
  background: #fff;
  color: #007aff;
  font-weight: 800;
}

.author-block__avatar img,
.author-block__avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: 24px 28px;
  margin-top: 40px;
}

.author-block__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #007aff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
}

.author-block__avatar-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.author-block__name {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.author-block__bio {
  font-size: 0.875rem;
  color: #667085;
  line-height: 1.5;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget--accent {
  background: linear-gradient(135deg, #007aff, #0056b3);
  border: 0;
  color: #fff;
}

.sidebar-widget__eyebrow,
.sidebar-widget__title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.sidebar-widget__eyebrow {
  opacity: 0.8;
  margin-bottom: 10px;
}

.sidebar-widget__headline {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.sidebar-widget__text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.sidebar-widget__phone {
  margin-bottom: 10px;
}

.sidebar-widget__caption {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

.sidebar-widget__button {
  background: #fff;
  color: #007aff;
  font-weight: 800;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: #101828;
}

.sidebar-link__num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #007aff;
  min-width: 24px;
}

.sidebar-link__text {
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 600;
}

.comments-section {
  margin-top: 56px;
}

.comments-section__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 28px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.comment-meta {
  font-size: 0.8rem;
  color: #667085;
  margin-bottom: 6px;
}

.comment-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #101828;
}

.comment-form {
  background: #f8fafc;
  border-radius: 24px;
  padding: 32px;
  margin-top: 32px;
}

.comment-form__title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.comment-form-author,
.comment-form-email {
  width: calc(50% - 10px);
  display: inline-block;
  vertical-align: top;
}

.comment-form-author {
  margin-right: 16px;
}

.comment-form-comment,
.comment-form-math {
  width: 100%;
}

.comment-form__textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.comment-form .form-note {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: #667085;
}

.recaptcha-note {
  font-size: 0.78rem;
  color: #667085;
  margin-top: 8px;
}

.comment-form-math {
  margin-bottom: 14px;
}

.page-header--blog {
  padding-bottom: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-grid--spaced {
  margin-top: 40px;
}

.related-card {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-card--plain {
  text-decoration: none;
  color: inherit;
}

.related-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.related-card__img--iphone {
  background: #1c1c1e;
}

.related-card__img--macbook {
  background: #636366;
}

.related-card__img--playstation {
  background: #003087;
}

.related-card__img--tips {
  background: #007aff;
}

.related-card__body {
  padding: 16px;
}

.related-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #007aff;
  margin-bottom: 6px;
}

.related-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: #101828;
}

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

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-img {
    height: 220px;
  }

  .toc,
  .article-cta-inline,
  .comment-form {
    padding: 22px;
  }

  .comment-form-author,
  .comment-form-email {
    width: 100%;
    display: block;
    margin-right: 0;
  }
}

.error-hero {
  padding: 24px 0 8px;
}

.error-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
}

.error-hero__content,
.error-panel {
  border-radius: 32px;
  overflow: hidden;
}

.error-hero__content {
  background: radial-gradient(
      circle at top left,
      rgba(0, 122, 255, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(16, 24, 40, 0.08);
  padding: 40px;
}

.error-hero__code {
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #007aff;
  margin-bottom: 18px;
}

.error-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.error-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 16px;
  max-width: 12ch;
}

.error-hero__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: #475467;
  max-width: 60ch;
  margin: 0 0 24px;
}

.error-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.error-hero__search .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.error-hero__search .search-field {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  font-size: 0.95rem;
}

.error-hero__search .search-submit {
  padding: 14px 20px;
  border-radius: 14px;
  border: 0;
  background: #101828;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.error-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
}

.error-panel__section {
  padding: 28px;
}

.error-panel__section + .error-panel__section {
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.error-panel__section--accent {
  background: linear-gradient(135deg, #0f172a 0%, #111827 45%, #0056b3 100%);
  color: #fff;
}

.error-panel__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.error-panel__text {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 18px;
  color: inherit;
  opacity: 0.92;
}

.error-links {
  display: grid;
  gap: 12px;
}

.error-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #101828;
  background: #f8fafc;
  border: 1px solid rgba(16, 24, 40, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.error-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.error-link__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  font-size: 1.1rem;
}

.error-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.error-card {
  display: block;
  text-decoration: none;
  color: #101828;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.error-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 122, 255, 0.24);
}

.error-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff 0%, #e6f6ff 100%);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.error-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.error-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475467;
}

@media (max-width: 980px) {
  .error-hero__grid {
    grid-template-columns: 1fr;
  }

  .error-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .error-hero__content,
  .error-panel__section,
  .error-card {
    padding: 22px;
  }

  .error-hero__search .search-form {
    grid-template-columns: 1fr;
  }

  .error-hero__actions {
    flex-direction: column;
  }
}

.form-notice {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-notice--success {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.18);
}

.form-notice--error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.16);
}

.lead-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.lead-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.lead-popup__dialog {
  width: min(100%, 420px);
  padding: 28px 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.lead-popup--success .lead-popup__dialog {
  border: 1px solid rgba(5, 150, 105, 0.16);
}

.lead-popup--error .lead-popup__dialog {
  border: 1px solid rgba(220, 38, 38, 0.16);
}

.lead-popup__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}

.lead-popup__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}

.leads-dashboard {
  display: grid;
  gap: 24px;
}

.leads-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
  gap: 12px;
  margin-bottom: 20px;
}

.leads-filters__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leads-filters__field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
}

.leads-filters__field input,
.leads-filters__field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: #fff;
  font-size: 0.95rem;
  color: #0f172a;
}

.leads-filters__actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.leads-dashboard__table-wrap,
.leads-dashboard__detail {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  padding: 24px;
  overflow: auto;
}

.leads-table,
.leads-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table th,
.leads-table td,
.leads-detail-table th,
.leads-detail-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: top;
}

.leads-table th,
.leads-detail-table th {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.leads-table a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leads-table__phone {
  font-weight: 700;
  white-space: nowrap;
}

.leads-detail-table th {
  width: 220px;
}

.lead-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: lowercase;
}

.lead-status--sent {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.lead-status--failed {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.lead-status--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

@media (max-width: 900px) {
  .leads-filters {
    grid-template-columns: 1fr;
  }

  .leads-filters__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .leads-dashboard__table-wrap,
  .leads-dashboard__detail {
    padding: 18px;
    border-radius: 20px;
  }

  .leads-table thead {
    display: none;
  }

  .leads-table,
  .leads-table tbody,
  .leads-table tr,
  .leads-table td {
    display: block;
    width: 100%;
  }

  .leads-table tr {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: #fff;
  }

  .leads-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .leads-table td:last-child {
    border-bottom: 0;
    padding-top: 12px;
  }

  .leads-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .leads-detail-table th,
  .leads-detail-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .leads-detail-table th {
    padding-bottom: 0;
  }
}

.skupka-hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  margin: 24px 0 32px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.catalog-grid--term {
  margin-top: 32px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.catalog-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.catalog-card__icon {
  font-size: 2.25rem;
  line-height: 1;
}

.catalog-card__icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}

.catalog-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: #101828;
}

.catalog-card__price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
}

.catalog-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475467;
}

.page-header--calculator {
  padding: 24px 0 8px;
}

.page-header__subtitle {
  max-width: 760px;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: #667085;
}

.calc-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-accordion__item {
  background: #fff;
  border: 1.5px solid rgba(16, 24, 40, 0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-accordion__item.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.calc-accordion__item.is-done {
  border-color: rgba(37, 99, 235, 0.24);
}

.calc-accordion__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.calc-accordion__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: #eaecf0;
  color: #667085;
  flex-shrink: 0;
}

.calc-accordion__item.is-active .calc-accordion__num,
.calc-accordion__item.is-done .calc-accordion__num {
  background: #2563eb;
  color: #fff;
}

.calc-accordion__label {
  font-size: 1rem;
  font-weight: 700;
  color: #101828;
  flex: 1;
}

.calc-accordion__chosen {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563eb;
  text-align: right;
}

.calc-accordion__body {
  display: none;
  padding: 0 20px 22px;
}

.calc-accordion__item.is-active .calc-accordion__body {
  display: block;
}

.calc-accordion__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-chip,
.calc-model,
.calc-condition {
  border: 1.5px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, color 0.15s;
}

.calc-chip {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #101828;
}

.calc-model {
  width: 100%;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #101828;
}

.calc-model:first-child {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.calc-model:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.calc-chip:hover,
.calc-model:hover,
.calc-condition:hover {
  border-color: #2563eb;
  transform: translateY(-1px);
}

.calc-chip.is-selected,
.calc-model.is-selected,
.calc-condition.is-selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.calc-model-list {
  border: 1.5px solid rgba(16, 24, 40, 0.12);
  border-radius: 14px;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}

.calc-accordion__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-condition {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  width: 100%;
  text-align: left;
}

.calc-condition__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.calc-condition__body {
  display: flex;
  flex-direction: column;
}

.calc-condition__title {
  font-size: 0.98rem;
  font-weight: 700;
}

.calc-condition__text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #667085;
}

.calc-condition.is-selected .calc-condition__text {
  color: rgba(255, 255, 255, 0.82);
}

.calc-battery-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eef4ff;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475467;
}

.calc-battery-hint__icon {
  flex-shrink: 0;
}

.calc-accordion__note {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475467;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-form__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #344054;
}

.calc-form__field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(16, 24, 40, 0.12);
  border-radius: 12px;
  font-size: 0.95rem;
}

.calc-form__privacy {
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  color: #98a2b3;
}

.calc-form__privacy a {
  color: #2563eb;
}

.acc-calc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.acc-item {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.acc-item.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.acc-item.is-done {
  border-color: #d0dff8;
}

.acc-item__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: default;
}

.acc-item.is-done .acc-item__head {
  cursor: pointer;
}

.acc-item__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  background: #e8e8e8;
  color: #999;
  transition: background 0.25s, color 0.25s;
}

.acc-item.is-active .acc-item__num {
  background: #2563eb;
  color: #fff;
}

.acc-item.is-done .acc-item__num {
  background: #dbeafe;
  color: #2563eb;
}

.acc-item__label {
  font-size: 1rem;
  font-weight: 700;
  color: #999;
  flex: 1;
  transition: color 0.25s;
}

.acc-item.is-active .acc-item__label,
.acc-item.is-done .acc-item__label {
  color: #101828;
}

.acc-item__chosen {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  text-align: right;
}

.acc-item__edit {
  font-size: 0.8rem;
  color: #aaa;
  margin-left: 6px;
}

.acc-item.is-done .acc-item__edit {
  color: #2563eb;
}

.acc-item__body {
  display: none;
  padding: 0 20px 22px;
}

.acc-item.is-active .acc-item__body {
  display: block;
}

.acc-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acc-opt {
  padding: 10px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #101828;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  user-select: none;
}

.acc-opt:hover {
  border-color: #2563eb;
  transform: translateY(-1px);
}

.acc-opt.selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.acc-opts--cards {
  flex-direction: column;
  gap: 8px;
}

.acc-opt--card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: left;
  width: 100%;
}

.acc-opt--card .card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.acc-opt--card .card-text {
  display: flex;
  flex-direction: column;
}

.acc-opt--card .card-title {
  font-weight: 700;
  font-size: 0.97rem;
}

.acc-opt--card .card-desc {
  font-size: 0.82rem;
  color: #888;
  margin-top: 2px;
}

.acc-opt--card.selected .card-desc {
  color: rgba(255, 255, 255, 0.8);
}

.battery-hint {
  margin-bottom: 16px;
  background: #f0f4ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.battery-hint__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.battery-hint--plain {
  display: block;
  gap: 0;
}

.acc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acc-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  margin-bottom: 6px;
}

.acc-form__field label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.acc-form__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.acc-form__field input:focus {
  border-color: #2563eb;
}

.acc-form__field input[aria-invalid="true"] {
  border-color: #dc2626;
}

.quiz__form-field {
  margin-bottom: 0;
}

.acc-form__error {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #dc2626;
}

.acc-form__submit {
  width: 100%;
  padding: 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.acc-form__submit:hover {
  background: #1a4fcc;
  transform: translateY(-1px);
}

.acc-form__privacy {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: -4px;
}

.acc-form__privacy a {
  color: #2563eb;
}

.acc-calc__note {
  font-size: 0.93rem;
  color: #777;
  margin-bottom: 20px;
}

.required-mark {
  color: #e33;
}

.acc-model-list {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
}

.acc-model-item {
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
  color: #101828;
  background: #fff;
}

.acc-model-item:last-child {
  border-bottom: none;
}

.acc-model-item:hover {
  background: #f0f5ff;
}

.acc-model-item.selected {
  background: #2563eb;
  color: #fff;
}

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

@media (max-width: 640px) {
  .catalog-filters {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .calc-accordion__head {
    flex-wrap: wrap;
  }

  .calc-accordion__chosen {
    width: 100%;
    text-align: left;
  }

  .acc-item__head {
    flex-wrap: wrap;
  }

  .acc-item__chosen {
    width: 100%;
    text-align: left;
  }
}
