:root {
  color-scheme: dark;
  --bg: #071226;
  --surface: rgba(10, 18, 33, 0.96);
  --muted: #9fb0c6;
  --text: #eef5fb;
  --accent: #c5a880;
  --border: rgba(255, 255, 255, 0.08);
}
* {
  box-sizing: border-box;
}
nav {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(10, 18, 33, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(210, 177, 118, 0.12),
      transparent 14%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(119, 189, 255, 0.06),
      transparent 16%
    ),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  line-height: 1.8;
}
.page-header {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 16, 34, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  flex-wrap: nowrap !important; /* 1. Забранява на Flexbox да чупи елементите */
  white-space: nowrap !important; /* 2. Забранява на самия текст да пада на нов ред */
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding-right: 12px;
  overflow: visible;
  border-radius: 6px;
  box-shadow: none;
  border: none;
  background: transparent;
}
.logo-mark img {
  display: block;
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.button:hover {
  background: rgba(197, 168, 128, 0.12);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 !important;
  min-height: 72px;
  width: 100%;
  max-width: 1120px; /* 1. Ограничава менюто до ширината на сайта */
  margin: 0 auto; /* 2. Центрира целия контейнер перфектно в средата */
  flex-wrap: nowrap !important;
}

.nav-menu li:last-child,
.nav-menu div,
#lang-toggle,
#theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 6px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--text);
  background: var(--surface-soft);
}
.lang-toggle,
.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.button.primary {
  background: linear-gradient(135deg, var(--accent), #ad8f5a);
  color: #071226;
  border-color: transparent;
}
.button.primary:hover {
  background: linear-gradient(135deg, var(--accent), #ad8f5a);
  opacity: 0.92;
}
.content {
  width: min(1080px, calc(100% - 40px));
  margin: 30px auto 60px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.article-image {
  width: 100%;
  height: clamp(260px, 36vw, 420px);
  object-fit: cover;
  display: block;
}
.article-body {
  padding: 40px;
}
.article-title {
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}
.article-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 26px;
}
.article-body p,
.article-body li {
  color: #d7e0f0;
  font-size: 1rem;
}
.article-body h2,
.article-body h3 {
  color: #ffffff;
  margin-top: 32px;
}
.article-body h2 {
  font-size: 1.55rem;
}
.article-body h3 {
  font-size: 1.25rem;
}
.article-footer {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.price-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(185, 154, 94, 0.1);
  border: 1px solid rgba(185, 154, 94, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.price-box .price-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-box .price-value {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-container {
    flex-wrap: wrap !important;
    gap: 8px;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
  }
  .logo a {
    white-space: normal !important;
    flex-wrap: wrap !important;
  }
  .logo-mark {
    height: 44px;
    padding-right: 8px;
  }
  .logo-mark img {
    height: 44px;
  }
  .logo-name {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
  }
  .nav-menu {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 12px 14px;
    background: rgba(10, 18, 33, 0.98);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }
  .nav-menu.open,
  .nav-menu.active,
  .nav-container.active .nav-menu {
    display: flex !important;
  }

  .nav-menu li {
    width: 100%;
  }
  .nav-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-controls button {
    flex: 1;
  }
}
@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .article-body {
    padding: 28px;
  }
}
.back-bubble {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #071226;
  padding: 14px 22px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
  border: none;
}
.back-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.back-bubble .arrow {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s;
}
.back-bubble:hover .arrow {
  transform: translateX(-4px);
}
@media (max-width: 640px) {
  .back-bubble {
    display: none;
  }
}
.phone-bubble {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #ad8f5a);
  color: #071226;
  padding: 14px 22px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  border: none;
}
.phone-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.phone-bubble .phone-icon {
  font-size: 1.3rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .phone-bubble {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    border-radius: 999px;
    padding: 16px 20px;
    font-size: 0.9rem;
    width: auto;
    max-width: none;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  max-width: 460px;
  width: 90vw;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}
.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}
.modal-input:focus {
  border-color: var(--accent);
}
.modal-submit {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  border-radius: 60px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #ad8f5a);
  color: #071226;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.modal-submit:hover {
  opacity: 0.9;
}
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 20px 0;
}
.modal-success.active {
  display: flex;
}
.modal-success-icon {
  font-size: 3.5rem;
  line-height: 1;
}
.modal-success-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

nav {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(10, 18, 33, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
}
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding-right: 12px;
  overflow: visible;
  border-radius: 6px;
  background: transparent;
}
.logo-mark img {
  display: block;
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 6px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--text);
  background: var(--surface-soft);
}
.lang-toggle,
.nav-toggle,
#nav-back-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-controls button {
  flex: 1;
  max-width: 140px;
}
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-container {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 14px 0;
    overflow-x: auto;
  }
  .logo-mark {
    height: 44px;
    padding-right: 8px;
  }
  .logo-mark img {
    height: 44px;
  }
  .logo-name {
    font-size: 0.95rem;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 12px 14px;
    background: rgba(10, 18, 33, 0.98);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-controls button {
    flex: 1;
    max-width: 140px;
  }
}
@media (max-width: 520px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .logo-mark {
    height: 38px;
    padding-right: 6px;
  }
  .logo-mark img {
    height: 38px;
  }
  .logo-name {
    font-size: 0.85rem;
  }
  .nav-menu {
    order: 3;
    width: 100%;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-controls {
    order: 2;
  }
  .nav-toggle {
    order: 0;
  }
}
