/* Shared layout: header, footer, forms, containers (kuda + afisha) */

:root {
  --n5-container: min(1200px, calc(100% - 32px));
  --n5-header-bg: #14141f;
  --n5-header-border: rgba(255, 255, 255, 0.08);
  --n5-footer-bg: #14141f;
  --n5-font: "Inter", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --n5-input-bg: #fff;
  --n5-input-border: #e2e4ea;
  --n5-input-radius: 10px;
  --n5-input-height: 42px;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body,
.uni-body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container.max-w-xl,
.page-container {
  width: var(--n5-container);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

.uni-body,
.uni-body h1,
.uni-body h2,
.uni-body h3,
.uni-body h4,
.uni-body h5,
.uni-body h6 {
  font-family: var(--n5-font) !important;
}

/* ─── Header ─────────────────────────────────────────── */
.n5-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--n5-header-bg);
  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid var(--n5-header-border);
}

.n5-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1024px) {
  .n5-header__inner {
    min-height: 72px;
  }
}

.n5-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.n5-logo img {
 /* width: 32px;
  height: 32px;*/
  flex-shrink: 0;
}

.n5-logo__accent {
  color: var(--color-primary);
}

.n5-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

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

.n5-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.n5-nav a:hover,
.n5-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.n5-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .n5-header__actions {
    margin-left: 0;
  }
}

.n5-header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.n5-header__burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .n5-header__burger {
    display: none;
  }
}

.n5-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--n5-header-border);
}

.n5-mobile-nav.open {
  display: flex;
}

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

.n5-mobile-nav a,
.n5-mobile-nav button.n5-mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.n5-mobile-nav a:hover,
.n5-mobile-nav button.n5-mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.n5-mobile-nav__muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.n5-btn-header {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .n5-btn-header {
    display: inline-flex;
  }
}

.n5-btn-header--primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.n5-btn-header--primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.n5-city-select-wrap {
  display: none;
}

@media (min-width: 768px) {
  .n5-city-select-wrap {
    display: block;
  }
}

/* ─── Footer ─────────────────────────────────────────── */
.n5-footer {
  background: var(--n5-footer-bg);
  color: #fff;
  margin-top: 3rem;
  border-top: 1px solid var(--n5-header-border);
}

.n5-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 40px 0 28px;
}

@media (min-width: 640px) {
  .n5-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .n5-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.n5-footer__brand {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.n5-footer__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.n5-footer__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.n5-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.n5-footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.n5-footer__links a:hover {
  color: #fff;
}

.n5-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.n5-footer__bottom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.n5-footer__bottom a:hover {
  color: #fff;
}

/* ─── Form controls ──────────────────────────────────── */
.n5-select,
.n5-input {
  display: block;
  width: 100%;
  min-height: var(--n5-input-height);
  padding: 0 14px;
  font-family: var(--n5-font);
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  background-color: var(--n5-input-bg);
  border: 1px solid var(--n5-input-border);
  border-radius: var(--n5-input-radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.n5-select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.n5-select:focus,
.n5-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.n5-select--dark {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

.n5-select--dark option {
  color: #1a1a2e;
  background: #fff;
}

.n5-select--sm {
  min-height: 36px;
  font-size: 13px;
  padding-inline: 12px;
  padding-right: 32px;
  min-width: 130px;
}

.n5-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

/* Override broken News5 responsive utilities in our components */
.hero-search .form-select,
.hero-search .form-control {
  min-height: var(--n5-input-height);
  border-radius: var(--n5-input-radius);
  border-color: var(--n5-input-border);
  font-family: var(--n5-font);
}

.hero-search .form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.n5-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
