* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 1400px;
    min-height: 100vh;
    background: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    gap: 30px;
}

/* ===== ОБЩИЙ БЛОК (без тени) ===== */
.card {
    width: 100%;
    max-width: 900px;
    background: #ffffff00;
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}

/* ===== HEADER ===== */


header.card {
    padding: 30px;
}

header img {
    width: 100%;
    max-width: 100%;
    height: auto;
    flex-shrink: 1;
    border-radius: 12px;
}

header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

/* ===== СЕКЦИИ ===== */
section {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

section .card {
    max-width: 900px;
}

/* ===== СЛАЙДЕР (ТОЛЬКО ЗДЕСЬ ТЕНЬ!) ===== */
.slider-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    min-height: 400px;
    /* 👇 ТОЛЬКО ЗДЕСЬ ТЕНЬ */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 600px; 
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eaeef3;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide .error-text {
    font-size: 1.2rem;
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

/* ===== СТРЕЛКИ СЛАЙДЕРА ===== */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    user-select: none;
}

.arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.arrow-left {
    left: 16px;
}
.arrow-right {
    right: 16px;
}

/* ===== ТОЧКИ СЛАЙДЕРА ===== */
.dots-container {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ===== */
.responsive-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.center-items {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-pre-description {
    width: 100%;
    max-width: 100%;
    height: auto;
    flex-shrink: 1;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #444;
    text-align: center;
}
.header-description {
    width: 100%;
    max-width: 80%;
    height: auto;
    flex-shrink: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    text-align: center;
}

/* ===== ВКЛАДКИ ===== */
.tabs {
    width: 100%;
}

.tab-header {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #f0f7ff;
}

.tab-panel {
    display: none;
    padding: 20px 0;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    color: #333;
    margin-bottom: 15px;
}

.tab-panel h3 {
    color: #555;
    margin-bottom: 10px;
}

.tab-panel p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
}

.tab-panel ul li {
    padding: 8px 0;
    padding-left: 25px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    position: relative;
}

.tab-panel ul li::before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Вложенные вкладки */
.sub-tabs .tab-header {
    border-bottom-color: #d0d0d0;
    margin-bottom: 10px;
}

.sub-tabs .tab-btn {
    font-size: 14px;
    padding: 8px 18px;
    font-weight: 500;
}

.sub-tabs .tab-btn.active {
    color: #28a745;
    border-bottom-color: #28a745;
    background: #f0fff4;
}

.sub-tabs .tab-panel {
    padding: 10px 0;
}

/* ===== сноски ===== */
.footnote-text {
    color: #2c3e50;
    font-size: 16px;
}
.footnote-star {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.footnote-star::before {
    content: "✱";
    position: absolute;
    left: 0;
    color: #919296;
    font-size: 0.8em;
    font-weight: bold;
}

/* ===== КАРТА ===== */
.map-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== АДАПТИВ ===== */
@media (min-width: 801px) {
    .responsive-stack {
        flex-direction: row;
        gap: 30px;
    }
    .header-description {
        max-width: 60%;
    }
    header.card {
        padding: 40px 50px;
    }
    .card {
        padding: 40px;
    }
}

@media (max-width: 800px) {
    .card {
        padding: 20px;
    }
    header.card {
        padding: 20px;
    }
    .header-description {
        max-width: 100%;
    }
    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .slider-container {
        border-radius: 16px;
        min-height: 260px;
    }
    .slide {
        height: 260px;
    }
    .arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    .arrow-left {
        left: 8px;
    }
    .arrow-right {
        right: 8px;
    }
    .dots-container {
        gap: 8px;
        padding: 6px 12px;
        bottom: 12px;
    }
    .dot {
        width: 12px;
        height: 12px;
    }
    .card {
        padding: 15px;
        border-radius: 16px;
    }
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    .tab-header {
        gap: 3px;
    }
    .sub-tabs .tab-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .map-wrapper iframe {
        height: 300px;
    }
    header h1 {
        font-size: 1.5rem;
    }
}

/* ===== КАРТА ===== */
.map-wrapper {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1 / 1; /* Соотношение сторон 1:1 (квадрат) */
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== КОНТАКТЫ ===== */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover {
    background: #ffffff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    
}
.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* или contain, если нужно сохранить пропорции */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contacts h2 {
    color: #333;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
}
.contacts {
    padding: 12px 1px;

}
.contact-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}
.graphick-text{
    text-align: center;
    font-size: 20px;

}

/* Адаптив */
@media (max-width: 600px) {
    .contacts h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-item {
        padding: 12px 15px;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
}


.address-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address h2 {
    color: #333;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
}
.address {
    padding: 12px 1px 30px 1px;
    display: flex;
    justify-content: center;  /* Горизонтальное центрирование */
    align-items: center;      /* Вертикальное центрирование (опционально) */
    gap: 20px;                /* Расстояние между элементами */
    flex-wrap: wrap;          /* Перенос на новую строку, если не помещаются */
}
.address-info {
    margin: 0 auto;
}
.address-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}


.table-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
  }
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th {
    background: #adadb4;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;

  }
  td {
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    white-space: normal;

  }
  tr:last-child td {
    border-bottom: none;
  }
  tr:hover td {
    background: #f9f9f9;
  }
  .price {
    font-weight: 600;
    color: #1a1a2e;
  }

  @font-face {
    font-family: 'Font_Ankona';
    src: url('../static/fonts/Ankona Kursive.ttf') format('truetype');
    font-display: swap;
}
.font-Font_Ankona {
    font-family: 'Font_Ankona', Arial, sans-serif;
}

   @font-face { font-family: 'Font_Boingster'; src: url('../static/fonts/Boingster-Regular.ttf') format('truetype'); font-display: swap; }
   .font-Font_Boingster { font-family: 'Font_Boingster', Arial, sans-serif; }
   
   @font-face { font-family: 'Font_Broadsheet'; src: url('../static/fonts/Broadsheet.ttf') format('truetype'); font-display: swap; }
   .font-Font_Broadsheet { font-family: 'Font_Broadsheet', Arial, sans-serif; }
   
   @font-face { font-family: 'Font_BulbasaurSP'; src: url('../static/fonts/BulbasaurSP.otf') format('opentype'); font-display: swap; }
   .font-Font_BulbasaurSP { font-family: 'Font_BulbasaurSP', Arial, sans-serif; }
   
   @font-face { font-family: 'Font_EternaOldstyle'; src: url('../static/fonts/Eterna Oldstyle.ttf') format('truetype'); font-display: swap; }
   .font-Font_EternaOldstyle { font-family: 'Font_EternaOldstyle', Arial, sans-serif; }
   
   @font-face { font-family: 'Font_IceAgeSHA'; src: url('../static/fonts/Ice_Age_SHA.otf') format('opentype'); font-display: swap; }
   .font-Font_IceAgeSHA { font-family: 'Font_IceAgeSHA', Arial, sans-serif; }
   
   @font-face { font-family: 'Font_LeonovSP'; src: url('../static/fonts/LeonovSP.otf') format('opentype'); font-display: swap; }
   .font-Font_LeonovSP { font-family: 'Font_LeonovSP', Arial, sans-serif; }
   

   .dynamic-bg {
    background: linear-gradient(135deg, #ffffff, #c3c3ec);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(24, 3, 3);
    font-family: Arial, sans-serif;
    text-align: center;
}