.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.brand-logo {
  width: auto;
  height: 58px;
  max-width: 220px;
  object-fit: contain;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.52rem 1.05rem;
  font-weight: 700;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.header-btn:hover {
  transform: translateY(-1px);
}

.header-btn-login {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(54, 167, 255, 0.12);
}

.header-btn-login:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-strong);
  filter: brightness(1.03);
}

.header-btn-registration {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(238, 118, 5, 0.32);
}

.header-btn-registration:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(238, 118, 5, 0.38);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35);
}

.hero-banner {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  opacity: 1;
  transform: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.4rem;
  text-align: center;
  background: transparent;
}

.hero-content h1,
.hero-content p {
  text-align: center;
}

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(54, 167, 255, 0.3);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-accent:hover {
  filter: brightness(1.05);
  color: #ffffff;
  transform: translateY(-1px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card h2,
.card h3 {
  margin: 1rem 1rem 0.4rem;
}

.card p {
  margin: 0 1rem 1rem;
  color: var(--text-muted);
}

.tile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tile {
  flex: 1 1 180px;
  padding: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-main);
  font-weight: 600;
  transition: 0.2s ease;
}

.tile:hover {
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.tile-accent {
  border-color: rgba(238, 118, 5, 0.7);
  background: rgba(238, 118, 5, 0.22);
  box-shadow: inset 0 0 0 1px rgba(238, 118, 5, 0.14);
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.widget ul,
.terms-list,
.social-links {
  margin: 0;
  padding-left: 1rem;
}

.post-single {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.3);
}

.post-header {
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.post-image {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.post-content {
  color: var(--text-main);
}

.post-content h1 {
  margin-bottom: 1rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content h1 + h2 {
  margin-top: 1.25rem;
}

.post-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.98);
}

.post-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--accent-strong);
}

.post-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.post-content li + li {
  margin-top: 0.25rem;
}

.content-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content-table th,
.content-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.content-table thead th {
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

.content-table tbody tr:nth-child(even) td {
  background: rgba(11, 26, 69, 0.45);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.provider-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.6rem;
}

.provider-card img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 0.8rem 0.95rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
}

.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
}

.faq-item p + p {
  margin-top: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer-inner {
  padding: 1.35rem 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--accent-strong);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-main);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  transform: translateY(-1px);
  border-color: var(--accent-strong);
  color: var(--accent);
}

.footer-col-center {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  font-weight: 700;
}

.footer-logo {
  width: auto;
  height: 60px;
  max-width: 220px;
  object-fit: contain;
}

.footer-brand-caption {
  font-size: 0.95rem;
}

.footer-col-contacts {
  justify-self: end;
  text-align: left;
}

.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
}

.contacts-list a {
  color: var(--text-main);
}

.contacts-list a:hover {
  color: var(--accent);
}

.post-content .cta-mid {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: 2.35rem;
  padding-inline: 1.25rem;
  margin: 2.25rem 0 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(54, 167, 255, 0.45);
  box-shadow: 0 16px 28px var(--shadow);
  background-color: #5a7f96;
  background-image: linear-gradient(
      180deg,
      rgba(5, 18, 48, 0.52) 0%,
      rgba(5, 18, 48, 0.78) 100%
    ),
    var(--cta-mid-banner, none);
  background-size: cover, cover;
  background-position: center, center 8%;
  background-repeat: no-repeat;
}

@media (min-width: 760px) {
  .post-content .cta-mid {
    padding-block: 2.85rem;
    padding-inline: 1.5rem;
  }
}

.post-content .cta-mid .cta-mid-title {
  margin-top: 0;
}

.cta-mid-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-mid-title {
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.cta-mid-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.cta-mid-btn {
  margin-top: 0.25rem;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .providers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
    padding: 0.6rem 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-btn {
    padding: 0.42rem 0.8rem;
    font-size: 0.88rem;
  }

  .brand-logo {
    height: 44px;
    max-width: 170px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col-center,
  .footer-col-contacts {
    justify-self: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}
