/* === ОБЩИЕ НАСТРОЙКИ === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    line-height: 1.6;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
  /*  backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); */
    background-color: rgba(0, 0, 0, 0.55);
    background-blend-mode: overlay;
}

/* === ШАПКА === */
header {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 20px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #3fb1d6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3fb1d6;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(63, 177, 214, 0.6);
}

.logo p {
    font-size: 0.9rem;
    color: #d0d0d0;
    margin-top: -5px;
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(63, 177, 214, 0.5);
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background: rgba(63, 177, 214, 0.3);
    border-color: #3fb1d6;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #3fb1d6;
    color: #000000;
    border-color: #3fb1d6;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(63, 177, 214, 0.5);
}

/* === ОСНОВНОЙ КОНТЕНТ === */
main {
    flex: 1;
    max-width: 1100px;
    width: 90%;
    margin: 40px auto;
    padding: 30px 25px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 16px;
    border: 1px solid rgba(63, 177, 214, 0.3);
    backdrop-filter: blur(4px);
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    font-size: 2rem;
    color: #3fb1d6;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(63, 177, 214, 0.5);
    padding-bottom: 10px;
    font-weight: 600;
}

.tab-content p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #eaeaea;
}

/* === АККОРДЕОН === */
.accordion {
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(63, 177, 214, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.accordion-link {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 4px solid #3fb1d6;
    cursor: pointer;
    transition: background 0.3s, border-left-width 0.3s, transform 0.3s;
    position: relative;
}

.accordion-link:hover {
    background: rgba(63, 177, 214, 0.25);
    border-left-width: 8px;
    transform: translateX(5px);
    color: #3fb1d6;
}

.accordion-link::after {
    content: '▼';
    float: right;
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: #3fb1d6;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.03);
    color: #eaeaea;
}

.accordion-content p {
    margin: 0 0 15px;
    font-size: 1rem;
}
.accordion-content p:last-child {
    margin-bottom: 0;
}

/* При активном состоянии padding добавляется, но max-height задаётся скриптом */
.accordion-content.active {
    padding: 1px 20px 1px;
}

/* === ГАЛЕРЕЯ === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(63, 177, 214, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    border-color: #3fb1d6;
    box-shadow: 0 8px 25px rgba(63, 177, 214, 0.4);
}

/* === ЛАЙТБОКС === */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #3fb1d6;
    box-shadow: 0 0 30px rgba(63, 177, 214, 0.5);
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #3fb1d6;
    transform: rotate(90deg);
}

/* Стили для цитат */
blockquote.shasp-quote {
    margin: 20px 0;
    padding: 20px 25px;
    background: rgba(63, 177, 214, 0.1);
    border-left: 5px solid #3fb1d6;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #e0e0e0;
}

blockquote.shasp-quote p {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.6;
}

blockquote.shasp-quote footer {
    text-align: right;
    font-style: normal;
    font-size: 0.9rem;
    color: #3fb1d6;
}

/* === ПОДВАЛ === */
footer {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 18px;
    border-top: 2px solid #3fb1d6;
    color: #b0b0b0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

a {
    color: #3fb1d6;          /* голубой */
    text-decoration: none;   /* убрать подчёркивание (по желанию) */
}
a:hover {
    color: #ffffff;          /* белый при наведении */
    text-decoration: underline;
}

/* Отступы для списков */
.tab-content ul,
.tab-content ol,
.accordion-content ul,
.accordion-content ol {
    margin: 15px 0 15px 30px;  /* левый отступ 30px */
    padding-left: 0;           /* убираем встроенный padding, оставляем margin */
    color: #eaeaea;
    font-size: 1rem;
    line-height: 1.6;
}

.tab-content li,
.accordion-content li {
    margin-bottom: 5px;
}

/* === КОМПАКТНАЯ СНОСКА ВНУТРИ АККОРДЕОНА (footer-note) === */
.footer-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #3fb1d6;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
    font-style: italic;
}

.footer-note p {
    margin: 0;
}

.footer-note .footer-highlight {
    color: #3fb1d6;
    font-style: normal;
    font-weight: 500;
}

.entry {
            display: block;
            margin: 0.2rem 0;
        }
        dt {
            display: inline;
            font-weight: 700;
            color: #fafafa;
        }
        dd {
            display: inline;
            margin-left: 0;
        }
        dt::after {
            content: "; ";
            font-weight: 400;
        }
        dt .term-note {
            font-weight: 400;
            font-style: italic;
            color: #fafafa;
            font-size: 0.95rem;
        }
        /* Для вложенных списков внутри определений */
        dd ol, dd ul {
            display: inline;
            padding-left: 0.5rem;
            margin: 0;
        }
        dd ol li, dd ul li {
            display: inline;
        }
        dd ol li::after, dd ul li::after {
            content: "; ";
        }
        dd ol li:last-child::after, dd ul li:last-child::after {
            content: "";
        }

        .my-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.25rem;     /* выравнивание (по умолчанию) */
}
.faq-item {
            margin: 1.2rem 0;
            padding: 0.5rem 1rem;
            border-left: 3px solid #3fb1d6;
            border-radius: 0 6px 6px 0;
        }
.faq-item p {
            margin: 0.4rem 0;
        }
        .faq-item strong {
            color: #1f7a9e ;
        }
        .q {
            font-weight: 700;
            color: #3fb1d6 ;
        }
        .a {
            font-weight: 700;
            color: #a3dbf0  ;
        }
.subhead {
            border-top: 2px solid rgba(63, 177, 214, 0.5);
            padding-top: 10px;
            text-align: left;
            font-style: italic;
            color: #5a3f2b;
            margin-top: -0.2rem;
            margin-bottom: 2rem;
        }
.subhead2 {
            border-top: 2px solid rgba(63, 177, 214, 0.5);
            padding-top: 10px;
            text-align: center;
            font-style: italic;
            color: #5a3f2b;
            margin-top: -0.2rem;
            margin-bottom: 2rem;
        }

/* Изображения внутри аккордеонов */
/* === Одиночное изображение внутри аккордеона === */
.accordion-figure {
    margin: 15px auto;
    text-align: center;
    max-width: 70%;       /* ограничиваем ширину изображения */
}

.accordion-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(63, 177, 214, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.accordion-figure figcaption {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #cccccc;
    font-style: italic;
}

/* === Галерея изображений внутри аккордеона === */
.accordion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* меньше минимальная ширина */
    gap: 12px;
    margin: 15px auto;
    max-width: 80%;       /* сужаем всю сетку */
}

.accordion-gallery-item {
    margin: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.accordion-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(63, 177, 214, 0.3);
}

.accordion-gallery-item img {
    display: block;
    width: 100%;
    height: 110px;         /* уменьшенная высота плитки */
    object-fit: cover;
}

.accordion-gallery-item figcaption {
    padding: 6px 8px;
    font-size: 0.8rem;
    color: #dddddd;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

/* === Общее правило для изображений внутри аккордеона (если используется без figure) === */
.accordion-content img {
    display: block;
    max-width: 70%;        /* ограничиваем ширину */
    height: auto;
    margin: 15px auto;
    border-radius: 8px;
    border: 1px solid rgba(63, 177, 214, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .logo h1 { font-size: 2rem; text-align: center; }
    .logo p { text-align: center; }
    nav { justify-content: center; gap: 8px; }
    .tab-btn { padding: 8px 16px; font-size: 0.9rem; }
    main { padding: 20px 15px; margin: 20px auto; }
    .tab-content h2 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .gallery-grid img { height: 150px; }
    .accordion-link { font-size: 1rem; padding: 12px 15px; }
    .accordion-content p { font-size: 0.95rem; }
    .lightbox-image { max-width: 95%; max-height: 70vh; }
    .lightbox-close { font-size: 2.5rem; top: 15px; right: 20px; }
}