/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background: #f9f7f5 url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* ===== HEADER ===== */
.top-header {
    background: linear-gradient(90deg, #4a1f1f, #6b2b2b);
    border-bottom: 1px solid #8b3a3a;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 10px 16px;
}

/* LEFT */
.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 100px;
    max-height: 8vh; /* адаптивное ограничение по высоте */
    cursor: pointer;
}

.header-logo:hover {
    opacity: 0.9;
}

/* CENTER */
.header-center {
    display: flex;
    justify-content: center;
}

/* ===== NAVIGATION (ЕДИНСТВЕННЫЙ СТИЛЬ КНОПОК В HEADER) ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    position: relative;
    font-family: Georgia, serif;
}

.main-nav button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.25s ease;
    font-family: Georgia, serif;
}

.main-nav button.active::after {
    width: 100%;
}

.main-nav a.nav-link {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  font-family: Georgia, serif;
  text-decoration: none;
}

.main-nav a.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.25s ease;
}

.main-nav a.nav-link:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #5a2a2a;
  border-radius: 8px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}



.nav-dropdown-menu button {
  background: none;
  border: none;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-menu button:hover {
  background: rgba(255,255,255,0.15);
}

/* RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 26px;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
    display: none;
    padding: 30px 20px;
}

.page-section.active {
    display: block;
}

/* ===== TITLES ===== */
h1 {
    text-align: center;
    color: #5a2a2a;
    margin: 10px 0 20px;
}

h2 {
    color: #5a2a2a;
    margin-bottom: 10px;
    font-size: 18px;
}

/* ===== CONTENT ===== */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.section {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    min-width: 280px;
    max-width: 360px;
    text-align: center;
}

/* ===== FORMS ===== */
input,
select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 12px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 16px;
    font-family: Georgia, serif;
}

/* ===== FORM / CONTENT BUTTONS (НЕ HEADER) ===== */
.form-btn,
.button-link {
    width: 100%;
    background-color: #5a2a2a;
    color: #ffffff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    font-family: Georgia, serif;
    text-decoration: none;
    display: inline-block;
}

.form-btn:hover,
.button-link:hover {
    background-color: #7e3e3e;
}

.dc-button {
    display: block;
    width: 100%;
    background: #5a2a2a;
    color: #fff !important;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-family: Georgia, sans-serif;
    font-size: 16px;
    margin-top: 12px;
    cursor: pointer;
    text-align: center;
}

.dc-button:hover {
    background: #7e3e3e;
}

/* ===== DIVIDER ===== */
.divider {
    border-top: 1px solid #ccc;
    margin: 20px 0;
}



/* ===== MARQUEE / NEWS TICKER ===== */
.marquee-wrap {
    background: #f3ece8;
    border-bottom: 1px solid #d8cfc9;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-size: 14px;
    color: #5a2a2a;
    font-weight: 600;
}

.marquee span {
    margin-right: 60px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .header-center,
    .header-right {
        justify-content: center;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }
}
/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(90deg, #4a1f1f, #6b2b2b);
    border-top: 1px solid #8b3a3a;
    color: #ffffff;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: start;
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Центральная колонка с QR-кодом */
.footer-col:nth-child(3) {
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 46px;
    margin-bottom: 15px;
    align-self: center;
}

.footer-text {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
    text-align: center;
}

.footer-col strong {
    display: block;
    margin-bottom: 15px;
    font-size: 15px;
    color: #f0e6d6;
    text-align: center;
    width: 100%;
}

.footer-col a,
.footer-col span {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
    transition: opacity 0.2s;
    text-align: center;
}

.footer-col a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Стиль для QR-кода */
.footer-col:nth-child(3) img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-col:nth-child(3) div {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-col {
        align-items: center;
    }
    
    .footer-text {
        text-align: center;
    }
}

.page-section {
    min-height: calc(70vh - 100px);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3c7c3;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots span.active {
  background: #5a2a2a;
}

/* ===== NOTICE BAR FULL WIDTH FIX ===== */
.notice-bar-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ===== FAQ ===== */
.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.faq-tab {
  background: #5a2a2a;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 14px;
}

.faq-tab.active {
  background: #7e3e3e;
}

.faq-content {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
}

.faq-question {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: bold;
  color: #5a2a2a;
}

.faq-answer {
  display: none;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #3c1f1f;
}

.card-flip-wrapper {
  perspective: 1000px;
  width: 100%;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-flip-wrapper:hover .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front, .card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.card-flip-front {
  z-index: 2;
}

.card-flip-back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* ===== POPUP BANNER ===== */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  padding: 20px;
  text-align: center;
  position: relative;
}

.popup-box img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}

.popup-box h2 {
  font-size: 18px;
  color: #5a2a2a;
  margin-bottom: 10px;
}

.popup-box a.button-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
}

.popup-box .popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
}

/* ===============================
   HOME SINGLE CARD
================================ */

.home-card-single {
  display: flex;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 30px;
}

.home-card-image {
  flex: 0 0 320px;
}

.home-card-image img {
  width: 100%;
  border-radius: 12px;
}

.home-card-content {
  flex: 1;
}

.home-card-content h2 {
  margin-bottom: 12px;
}

.home-card-content div {
  margin-bottom: 16px;
}

.home-card-btn {
  width: auto;
  padding: 10px 28px;
}

/* ===============================
   HOME GRID CARDS (2–3)
================================ */

.home-card-grid {
  display: grid;
  gap: 24px;
}

.home-card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.home-card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.home-card-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.home-card-thumb {
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 10px;
}

.home-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card-item h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.home-card-item div {
  font-size: 14px;
}

.home-card-btn-small {
  margin-top: 10px;
  display: inline-block;
}

/* ===============================
   HOME SLIDER (4+)
================================ */

.home-slider {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 30px;
  position: relative;
}

.home-slider-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.home-slider-item {
  min-width: 260px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.home-slider-thumb {
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 10px;
}

.home-slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   SLIDER ARROWS
================================ */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #5a2a2a;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  z-index: 5;
}

.slider-btn-left {
  left: 10px;
}

.slider-btn-right {
  right: 10px;
}

.home-block-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.home-text-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #5a2a2a;
  line-height: 1.6;
}

.card-image {
  width: 100%;
  border-radius: 12px;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-text-large {
  font-size: 16px;
  margin-bottom: 14px;
}

.home-text-small {
  font-size: 14px;
  opacity: 0.9;
}

.card-text {
  margin-bottom: 16px;
}

.slider-title {
  font-size: 15px;
}

.footer-center {
  text-align: center;
}

.footer-qr {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  display: block;
  background: white;
  padding: 8px;
  border-radius: 8px;
}

.footer-qr-text {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.4;
}

.container-900 {
  max-width: 900px;
  margin: 0 auto;
}