/* ==================== Базові стилі ==================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #EEEEEE;
    display: flex;
    flex-direction: column;
}

/* ==================== Заголовки ==================== */
h1, h2, h3, h4, h5, h6 {
    margin: 1rem 0;
    line-height: 1.3;
    font-weight: 600;
    text-wrap: balance;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.85rem;
}

/* ==================== Таблиці ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
}

td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f1f8ff;
}


/* Додаткові стилі для покращення читабельності */
tbody tr:last-child td {
    border-bottom: none;
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

/* ==================== Списки ==================== */
ul ul, ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

ul ul {
    list-style-type: circle;
}

ul ul ul {
    list-style-type: disc;
}

dl {
    margin: 1rem 0;
}

dt {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 0.5rem;
}

dd {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==================== Код ==================== */

pre {
    position: relative;
}

pre code::before {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ==================== Цитати  ==================== */
blockquote {
    position: relative;
    padding: 1.5rem 2rem;
}

blockquote::before {
    content: "" ";
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 5rem;
    color: #3498db;
    opacity: 0.2;
    font-family: Georgia, serif;
}

blockquote footer {
    margin-top: 1rem;
    font-style: normal;
    color: #666;
}

blockquote footer::before {
    content: "— ";
}

/* ==================== Додаткові елементи ==================== */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), #3498db, rgba(0, 0, 0, 0));
    margin: 2rem 0;
}

figure {
    margin: 1.5rem 0;
    text-align: center;
}

figcaption {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 0.5rem;
}


/* ==================== Посилання ==================== */
a {
    color: hsl(206, 98.5%, 29%);
    text-decoration: none;
    border: none;
    transition: color 0.3s ease;
}


.link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* якщо треба */
}

a.link-left,
a.link-right {
    /* більше не потрібно float */
    order: 0; /* для контрольованої позиції у flex */
}

/* ==================== Зображення ==================== */
img {
    vertical-align: top;
    overflow: hidden;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.img-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.img-center {
    display: block;
    margin: 0 auto 1.5rem;
}

.img-caption {
    display: block;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.img-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* ==================== Відео контейнери ==================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== Спеціальні класи ==================== */
/* Утилітарні класи */
.text-small {
    font-size: 0.875rem;
}

.text-muted {
    color: #6c757d;
}

.highlight {
    background: #fff9c4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background: #3498db;
    color: white;
}

/* ==================== Стилі контенту ==================== */
.content-table {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    justify-content: space-between;
    background-color: #EEEEEE;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
    padding: 0 1rem;
}

.content {
    flex: 1 1 75%;
    /*min-width: 320px;*/
    min-width: 0;
    background-color: #EEEEEE;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.info {
    flex: 1 1 22%;
    max-width: 22%;
    background-color: #EEEEEE;
    padding: 0.4rem;
    margin-left: auto;
    box-sizing: border-box;
    text-align: center;
}

/* ==================== Інфоблоки ==================== */
.info_block {
    border-radius: 10px;
    box-shadow: 0 0 15px #A9A9A9;
    border: 2px solid #D4D4D4;
    padding: 20px;
    margin: 10px auto 20px auto;
    background-color: #fff;
    font-size: 1rem;
    width: 100%;
    max-width: 80%;
}

.info_block_content {
    width: 100%;
}

.info_block_content a {
    display: inline-block;
    margin-bottom: 10px;
}


/* ==================== Заголовки ==================== */
.header {
    padding: 50px 20px;
    text-align: center;
}

.header h1 {
    font-family: Georgia, serif;
    background: #b4d084;
    color: #FCF2E5;
    font-size: 2.5em;
    font-weight: normal;
    padding: 10px 40px;
    position: relative;
    display: inline-block;
    margin: 0;
    line-height: 1;
}

.header h1::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    left: 0;
    bottom: -15px;
    background: #b4d084;
}

.header h1::after {
    content: "";
    position: absolute;
    height: 0;
    width: 80%;
    border-top: 10px solid #b4d084;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    left: 50%;
    transform: translateX(-50%);
    bottom: -25px;
}

.sub-head {
    background: #F4F7EE;
    padding: 50px 20px;
    text-align: center;
}

.sub-head h3 {
    font-family: 'Merriweather', serif;
    color: #2CA58D;
    font-size: 3rem;
    border-top: 4px solid;
    border-left: 4px solid;
    padding: 8px 20px;
    margin: 0;
    display: inline-block;
    position: relative;
}

.sub-head h3::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    top: -28px;
    left: -28px;
    border: 4px solid #2CA58D;
    box-sizing: border-box;
}

.sign {
    background: #FFF4ED;
    padding: 50px 20px;
    text-align: center;
}

.sign h4 {
    font-family: 'Righteous', cursive;
    color: #3CA1D9;
    font-size: 1em;
    border-top: 2px solid;
    border-bottom: 2px solid;
    padding: 11px 60px;
    margin: 0;
    line-height: 1;
    display: inline-block;
    position: relative;
}

.sign h4::before,
.sign h4::after,
.one h4::after {
    content: "";
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    border-left: 2px solid;
    border-right: 2px solid;
    background: repeating-linear-gradient(180deg, transparent, transparent 2px, #3CA1D9 2px, #3CA1D9 4px);
}

.sign h4::before {
    left: 0;
}

.sign h4::after,
.one h4::after {
    right: 0;
}

/* ==================== Загальні блоки ==================== */
.card {
    overflow: hidden;
}

.block {
    display: block;
    width: 90%;
    margin: 20px auto;
    padding: 10px;
    border: 4px solid gray;
    height: max-content;
}

.columns-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.column {
    flex: 1 1 22%;
    min-width: 200px;
    box-sizing: border-box;
}


/* ==================== Попапи ==================== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    text-align: center;
}

.popup_bg {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.popup_img {
    position: relative;
    z-index: 2;
    max-width: 94%;
    max-height: 94%;
    margin: 1% auto 0;
}

.cover {
    position: fixed;
    z-index: 3;
    width: 100%;
    height: 100%;
    text-align: center;
}


/* ======== Сучасні стилі модального вікна та адаптивності ======== */

/* Модальні вікна */
.modal {
    display: inline-block;
    vertical-align: middle;
}

.fixed-overlay__modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}



/* ==================== Адаптивність ==================== */

/* ==================== Десктоп 1440px+ ==================== */
@media (max-width: 1440px) {
    /* Зменшення базового шрифту */
    html, body {
        font-size: 18px;
    }

    /* Заголовки */
    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.9rem;
    }

    h5 {
        font-size: 0.8rem;
    }

    h6 {
        font-size: 0.75rem;
    }

    /* Таблиці */
    table {
        font-size: 0.95rem;
    }

    th, td {
        padding: 10px 14px;
    }


    /* Заголовки-блоки */
    .header {
        padding: 60px 20px;
    }

    .header h1 {
        font-size: 2rem;
        padding: 14px 40px;
    }

    .sub-head h3 {
        font-size: 2.2rem;
        padding: 10px 20px;
    }

    .sign h4 {
        font-size: 1rem;
        padding: 10px 60px;
    }

    /* Зображення */
    .img-caption {
        font-size: 0.85rem;
    }

    .img-shadow {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* Копіювання коду */
    .copy-code {
        font-size: 0.75rem;
        top: 10px;
        right: 10px;
    }

    pre code::before {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    /* Відео */
    .video-container {
        margin: 1.5rem 0;
    }
}


/* Планшети (768px - 992px) */
@media (max-width: 992px) {
    /* Зменшення базового шрифту */
    html, body {
        font-size: 15px;
    }


    /* Заголовки */
    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.9rem;
    }

    h5 {
        font-size: 0.8rem;
    }

    h6 {
        font-size: 0.75rem;
    }

    /* Таблиці */
    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 8px 12px;
    }



    /* Заголовкові блоки */
    .header {
        padding: 40px 10px;
    }

    .header h1 {
        font-size: 1.8rem;
        padding: 10px 30px;
    }

    .sub-head h3 {
        font-size: 2rem;
        padding: 8px 20px;
    }

    .sign h4 {
        font-size: 0.95rem;
        padding: 8px 40px;
    }

    /* Зображення */
    .img-left,
    .img-right {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        max-width: 100%;
    }

    .img-caption {
        font-size: 0.85rem;
    }

    /* Код і pre */
    .copy-code {
        font-size: 0.7rem;
        top: 8px;
        right: 8px;
    }

    pre code::before {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    /* Відео */
    .video-container {
        margin: 1rem 0;
    }
}


/* Мобільні пристрої (менше 768px) */
@media (max-width: 768px) {
    /* Центрування контенту */
    .content-table {
        padding: 0;
    }

    .content {
        text-align: center;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Центрування заголовків */
    h1, h2, h3, h4, h5, h6,
    .sub-head h3 {
        text-align: center;
        margin: 0.5rem auto;
    }

    /* Адаптація розміру заголовків */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.8rem;
    }

    h6 {
        font-size: 0.65rem;
    }

    /* Хедер */
    .header {
        padding: 30px 10px;
    }

    .header h1 {
        font-size: 1.6rem;
        padding: 6px 20px;
    }

    .header h1::before,
    .header h1::after {
        display: none;
    }

    .sub-head h3 {
        font-size: 1.5rem;
        border-width: 2px;
    }

    .sub-head h3::before {
        width: 20px;
        height: 20px;
        top: -20px;
        left: -20px;
    }

    .sign h4 {
        padding: 8px 30px;
    }

    .columns-wrapper {
        flex-direction: column;
    }

    .column {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .info {
        display: none;
    }

    .info_block {
        max-width: 95%;
        padding: 15px;
    }

    .mobile-info {
        display: block;
        margin-top: 1.5rem;
    }
}


/* =========================================*/
/* Floating Action Button Menu */
/* =========================================*/
.fab-menu {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    transition: bottom 0.3s ease;
}

.fab-menu.raise-up {
    bottom: var(--fab-shift, 30px); /* піднімаємо FAB-кнопку */
}

.fab-container {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
}

.fab-float-wrapper {
    animation: floatAtom 2.1s ease-in-out infinite;
    width: 3.5rem;
    height: 3.5rem;
    position: relative;
}


.fab-toggle-btn {
    width: 3.5rem;
    height: 3.5rem;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background-color: rgba(255, 0, 38, 0.84);
    border-radius: 50px;
    border: none;
    color: white;
    cursor: pointer;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 2;
    transition: width 0.4s ease;
}


.fab-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.fab-icon.rotate {
    transform: rotate(180deg);
}

.fab-text {
    white-space: nowrap;
    font-size: 1.1rem;
    margin-left: 0.8rem;
    opacity: 0;
    display: inline; /* завжди займає місце */
    visibility: hidden; /* не видно для екран-рідерів і не клікабельно */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
}

.fab-toggle-btn.expanded {
    width: 14rem;
}


.fab-toggle-btn.expanded .fab-text,
.fab-toggle-btn:hover .fab-text {
    opacity: 1;
    visibility: visible;
}


.fab-actions {
    margin-bottom: 0.5rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    animation: slideUp 0.4s ease forwards;
}


.fab-actions.show {
    display: flex;
}

.fab-action {
    display: flex;
    position: relative;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    align-items: center;
    background-color: #fff;
    color: #333;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fab-action:hover {
    color: #2e6c3f;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.only-mobile {
    display: none;
}


/* Модифікатори кольору */
.fab-blue,
.fab-green,
.fab-red,
.fab-purple,
.fab-yellow,
.fab-lightblue,
.fab-teal {
    border: 2px solid #007bff !important;
}

.fab-blue i {
    color: #007bff;
}

.fab-green i {
    color: #28a745;
}

.fab-red i {
    color: #dc3545;
}

.fab-purple i {
    color: #6f42c1;
}

.fab-yellow i {
    color: #ffc107;
}

.fab-lightblue i {
    color: #63b3ed;
}

.fab-teal i {
    color: #20c997;
}


/* Glow ефект по кольорах */
.fab-action:hover.fab-blue {
    box-shadow: 0 0 10px #007bff80, 0 0 20px #007bff50;
}

.fab-action:hover.fab-green {
    box-shadow: 0 0 10px #28a74580, 0 0 20px #28a74550;
}

.fab-action:hover.fab-purple {
    box-shadow: 0 0 10px #6f42c180, 0 0 20px #6f42c150;
}

.fab-action:hover.fab-yellow {
    box-shadow: 0 0 10px #ffc10780, 0 0 20px #ffc10750;
}

.fab-action:hover.fab-red {
    box-shadow: 0 0 10px #dc354580, 0 0 20px #dc354550;
}

.fab-action:hover.fab-lightblue {
    box-shadow: 0 0 10px #63b3ed80, 0 0 20px #63b3ed50;
}

.fab-action:hover.fab-teal {
    box-shadow: 0 0 10px #20c99780, 0 0 20px #20c99750;
}

.fab-action i {
    margin-right: 0.6rem;
    font-size: 1.1rem;
}


.fab-toggle-btn::after {
    --light-x: 30%;
    --light-y: 25%;
    --light-radius: 3%;

    background: radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 1),
            transparent calc(1 * var(--light-radius))
    ),
    radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.8),
            transparent calc(2 * var(--light-radius))
    ),
    radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.6),
            transparent calc(3 * var(--light-radius))
    ),
    radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.4),
            transparent calc(4 * var(--light-radius))
    ),
    radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.2),
            transparent calc(5 * var(--light-radius))
    );
    content: "";
    border-radius: inherit;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}


@keyframes floatAtom {
    0% {
        transform: translateY(0);
    }
    10% {
        transform: translateY(-1%);
    }
    20% {
        transform: translateY(-2.5%);
    }
    30% {
        transform: translateY(-4%);
    }
    40% {
        transform: translateY(-5%);
    }
    50% {
        transform: translateY(-4%);
    }
    60% {
        transform: translateY(-2.5%);
    }
    70% {
        transform: translateY(-1.5%);
    }
    80% {
        transform: translateY(-0.5%);
    }
    90% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px); /* знизу */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Контейнер орбіт */
.fab-orbits {
    --color-line: #fff;
    --color-glow: #0ff;
    --electron-nb: 3;
    --radius: 110px;

    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--radius);
    height: var(--radius);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: drop-shadow(0 0 0.3rem var(--color-glow));
    pointer-events: none;
    z-index: 2;
}

/* Електронна орбіта */
.fab-orbit__electron {
    --clip-radius: 20%;
    --radius: 100%;
    --animation-duration: 1s;
    --ratio: 4;

    position: absolute;
    left: calc(50% - var(--radius) / 2);
    top: calc(50% - var(--radius) / (var(--ratio) * 2));
    width: var(--radius);
    height: calc(var(--radius) / var(--ratio));
    border-radius: var(--radius);
    transform: rotateZ(calc(var(--index) * 180deg / var(--electron-nb)));
    z-index: 3;
    animation-name: orbitElectron;
    animation-delay: calc((var(--index) + 1) * 0.5s / var(--electron-nb));
    animation-duration: var(--animation-duration);
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* Світлові лінії на орбітах */
.fab-orbit__electron::before,
.fab-orbit__electron::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: inset 0 var(--offset-direction) 0 0.02rem var(--color-line);
}

.fab-orbit__electron::before {
    --offset-direction: 0.1rem;
}

.fab-orbit__electron::after {
    --offset-direction: -0.1rem;
}

/* Позиції електронів */
.fab-orbit__electron:nth-child(1) {
    --index: 0;
}

.fab-orbit__electron:nth-child(2) {
    --index: 1;
}

.fab-orbit__electron:nth-child(3) {
    --index: 2;
}

/* Анімація обертання */
@keyframes orbitElectron {
    0% {
        clip-path: ellipse(calc(2 * var(--clip-radius)) var(--clip-radius) at 50% 0);
    }
    25% {
        clip-path: ellipse(calc(2 * var(--clip-radius)) var(--clip-radius) at 0 50%);
    }
    50% {
        clip-path: ellipse(calc(2 * var(--clip-radius)) var(--clip-radius) at 50% 100%);
    }
    75% {
        clip-path: ellipse(calc(2 * var(--clip-radius)) var(--clip-radius) at 100% 50%);
    }
    100% {
        clip-path: ellipse(calc(2 * var(--clip-radius)) var(--clip-radius) at 50% 0);
    }
}


@media (hover: hover) and (pointer: fine) {
    .fab-menu:hover .fab-actions {
        display: flex;
    }

    .fab-toggle-btn:hover {
        width: 14rem;
    }

    .fab-toggle-btn:hover .fab-icon {
        transform: rotate(180deg);
    }


    .fab-toggle-btn:hover .fab-text {
        display: inline;
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .fab-menu {
        gap: 0.1rem;
        left: 15px;
    }

    .only-mobile {
        display: flex;
    }

    .fab-action {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .fab-container,
    .fab-float-wrapper,
    .fab-toggle-btn {
        width: 2.8rem;
        height: 2.8rem;
        padding: 11px;
    }

    .fab-orbits {
        --radius: 70px;
    }

    .fab-icon {
        font-size: 1.1rem;
    }

}


/* =========================================*/
/* Смуга адреси (хлібних крихт) */
/* =========================================*/
.breadcrumbs-wrapper-full {
    width: 100%;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 4px 12px;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.breadcrumbs-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    gap: 6px;
}

.breadcrumb-item {
    position: relative;
    display: flex;
    align-items: center;
}

.breadcrumb-chip {
    background: #eef2f7;
    padding: 3px 12px;
    border-radius: 20px;
    color: #007bff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 100%;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.breadcrumb-chip:hover {
    background: #dce6f5;
    color: #0056b3;
}

/* Для поточного елемента */
.breadcrumb-current {
    white-space: normal;
    word-break: break-word;
    text-align: left;
    justify-content: center;
    display: flex;
    max-width: 100%;
}

/* Стрілочка розділення */
.breadcrumb-separator {
    margin: 0 6px;
    color: #ccc;
    font-weight: bold;
}

/* Випадаюче меню */
.breadcrumb-dropdown {
    position: relative;
}

.breadcrumb-parent {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.caret {
    margin-left: 5px;
    font-size: 10px;
}

/* === Основне випадаюче меню === */
.breadcrumb-dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    width: max-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 4px 4px;
    z-index: 1001 !important;
    list-style: none;
    margin: 0;
}

.breadcrumb-dropdown-content.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Пункти */
.breadcrumb-dropdown-content li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    text-align: left;
    color: #1a3c65;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s ease-in-out;
}

.breadcrumb-dropdown-content a:hover {
    background-color: #cce2ff;
}

/* === Підменю (3 рівень) === */
.breadcrumb-sub-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: max-content;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 4px 4px;
    z-index: 999;
    list-style: none;
    margin: 0;
}

.breadcrumb-subitem:hover .breadcrumb-sub-dropdown {
    display: block;
}

.breadcrumb-sub-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-sub-dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    text-align: left;
    color: #1a3c65;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s ease-in-out;
}

.breadcrumb-sub-dropdown a:hover {
    background-color: #d4ebff;
}

.breadcrumb-subitem.has-submenu > a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    margin-left: 8px;
    color: #6c757d;
    display: inline-block;
}


@media screen and (max-width: 768px) {

    .breadcrumbs-nav .fa-home {
        color: hsl(206, 98.5%, 29%);
    }


    .breadcrumbs-wrapper-full {
        max-width: 100%;
        width: 100%;
        padding: 6px 10px;
        background: none;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden;
        text-align: left;
    }

    .breadcrumbs-nav {
        display: block;
        font-size: 13px;
        line-height: 1.5;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        width: 100%;
        text-align: justify;
    }

    .breadcrumb-item {
        display: inline;
        white-space: normal;
    }

    /* Для поточного елемента */
    .breadcrumb-current {
        color: #00394d !important;
        font-weight: 600;
    }

    .breadcrumb-chip {
        display: inline;
        background: none;
        padding: 0;
        margin: 0;
        color: #1a3c65;
        border-radius: 0;
        text-decoration: none;
        white-space: normal;
        word-break: break-word;
    }

    .breadcrumb-separator {
        display: inline;
        margin: 0 4px;
    }

    .caret {
        display: none !important;
    }
}


/* =========================================*/
/* Стилі головної сторінки resume */
/* =========================================*/

.resume-section {
    /*padding: 80px 20px;*/
    background: rgba(255, 255, 255, 0.05); /* Майже прозорий */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* м'який верхній перехід */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* і нижній */
}


.resume-container {
    max-width: 1300px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Декор верхній і нижній */
.resume-top-decor, .resume-bottom-decor {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 440px; /* Підігнано під естетику */
    height: auto;
    opacity: 0.85;
    animation: glowing-silver 6s infinite ease-in-out;
}

.resume-top-decor {
    top: 30px;
    transform: translateX(-50%) translateY(-50%);
}

.resume-bottom-decor {
    bottom: 30px;
    transform: translateX(-50%) translateY(50%) rotate(180deg);
}


.resume-decor-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(189, 195, 199, 0.8)); /* Ефект сяйва */
}

/* Анімація срібного блиску */
@keyframes glowing-silver {
    0% {
        filter: drop-shadow(0 0 5px rgba(189, 195, 199, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(189, 195, 199, 0.9));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(189, 195, 199, 0.6));
    }
}


.resume-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.resume-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #34495e;
    line-height: 1.4;
    margin-bottom: 25px;
    text-align: justify;
    padding: 0 30px;
    text-indent: 30px;
    position: relative;
    padding-bottom: 15px;
}


.resume-content p:first-of-type {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-indent: 0; /* Перший абзац без абзацного відступу */
    padding-top: 10px;
    padding-bottom: 10px;
}


/* Додаємо тонку розділяючу лінію після кожного абзацу */
.resume-content p:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0.5;
    margin-top: 8px;
}


@media (max-width: 768px) {

    .resume-section {
        padding: 40px 10px;
        flex-direction: column;
    }

    .resume-container {
        padding: 40px 20px;
    }

    .resume-top-decor,
    .resume-bottom-decor {
        width: 200px;
    }

    .resume-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .resume-content p {
        font-size: 14px;
        padding: 5px 0;
        margin-bottom: 10px;
        text-indent: 20px;
        line-height: 1.5;
    }

    .resume-content p:first-of-type {
        font-size: 15px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

}


/* =========================================*/
/* Стилі блоку info_block Повітряна тривога*/
/* =========================================*/
.iframe-alert-container {
    position: relative;
    width: 100%;
    border: 1px solid #e5ab1e;
    padding-bottom: 100%;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.iframe-alert-container .iframe-alert {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.alert-batton-container {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    max-width: 305px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

@keyframes alert-pulse {
    0% {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

@keyframes border-dash {
    to {
        stroke-dashoffset: -40;
    }
}

@keyframes icon-alert {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

.alert-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    color: #fff;
    background: #e74c3c;
    border: 2px dashed #e5ab1e;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: alert-pulse 2s infinite;
}

.alert-link-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    animation: none;
}

.alert-link-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.alert-link-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.alert-link-btn span {
    font-size: 1.1rem;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    display: flex;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.alert-link-btn i {
    font-size: 1.1em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: transform 0.3s ease;
    animation: icon-alert 2s ease-in-out infinite;
}

.alert-link-btn:hover i {
    transform: scale(1.1) rotate(-10deg);
    animation: none; /* Зупиняємо пасивну анімацію при ховері */
}

@media (max-width: 1550px) {
    .alert-link-btn span {
        font-size: 1rem;
    }

    .alert-link-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 1430px) {
    .alert-link-btn span {
        font-size: 0.9rem;
    }

    .alert-link-btn i {
        font-size: 0.9rem;
    }
}


/* =========================================*/
/* Стили для блоку info_block авторизація*/
/* =========================================*/

/* === AUTH COMPACT STYLES === */
.auth-compact {
    --primary: #2c3e50;
    --accent: #3498db;
    --gray: #e0e0e0;
    --text: #2d2d2d;
    border-radius: 12px;
    max-width: 305px;
    margin: auto;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

.auth-title {
    text-align: center;
    font-size: 1.17rem;
    margin-bottom: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px 10px 40px;
    font-size: 0.95rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    background: #fafafa;
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.auth-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #7f8c8d;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    font-size: 1rem;
    gap: 0.4rem;
}

.auth-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}

.auth-action-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.5rem;
    box-sizing: border-box;
    width: 100%;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s ease;
    width: 100%;
    text-decoration: none;
}

.auth-btn-group span {
    font-size: 1.1rem;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


.auth-btn-group i {
    font-size: 1.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


.auth-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.3);
    transition: all 0.3s ease;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1c598a);
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.4);
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-btn-secondary {
    background: #eaf4ff;
    color: #1565c0;
    border: 2px solid #90caf9;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.05);
    transition: all 0.25s ease;
}

.auth-btn-secondary:hover {
    background: #dbefff;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.auth-btn-secondary:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === AUTH PROFILE STYLES === */
.auth-profile-compact {
    max-width: 305px;
    border-radius: 12px;
    margin: auto;
    background: transparent;
}

.auth-welcome {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.auth-welcome div {
    text-align: center;
    flex: 1;
}

.auth-avatar {
    font-size: 1.8rem;
    color: var(--accent);
}

.auth-username {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.auth-greeting {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.auth-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.auth-admin-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    width: 100%;
    text-align: center;
    background: #eaf4ff;
    color: #1565c0;
    border: 1px solid #90caf9;
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.05);
    position: relative;
}

.auth-admin-actions button:hover {
    background: #dbefff;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.auth-admin-actions i {
    font-size: 1.1rem;
    color: #1565c0;
}

.auth-badge {
    background: #e53935;
    color: white;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 8px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: pulseBadge 1.5s infinite ease-in-out;
}

.auth-btn-with-badge {
    justify-content: space-between !important;
}

.auth-btn-with-badge {
    justify-content: flex-start; /* тепер весь вміст вирівняний вліво */
}

.auth-btn-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.auth-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-btn span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.auth-btn-logout {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.auth-btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
}



@media (max-width: 1550px) {
    .auth-admin-actions button {
        font-size: 0.8rem;
    }

    .auth-options {
        font-size: 0.91rem;
        gap: 0.3rem;
    }

    .auth-checkbox {
        font-size: 0.9rem;
        gap: 0.2rem;
    }

    .auth-link {
        font-size: 0.9rem;
    }


    .auth-btn-group span {
        font-size: 1rem;
    }

    .auth-btn-group i {
        font-size: 1rem;
    }
}

@media (max-width: 1430px) {
    .auth-admin-actions button {
        font-size: 0.75rem;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .auth-link {
        align-self: flex-end;
    }

    .auth-btn-group span {
        font-size: 0.9rem;
    }

    .auth-btn-group i {
        font-size: 0.9rem;
    }
}


/* =========================================*/
/* Стилі блоку info_block оплата послуг */
/* =========================================*/
.payment-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 305px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.payment-block .payment-instruction {
    margin: 4px 0 2px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
}

.pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.pay-btn span {
    font-size: 1.05rem;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    display: flex;
    font-weight: 600;
    align-items: center;
    justify-content: center;
}

.pay-btn i {
    font-size: 1.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.pay-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Кнопка вартості навчання */
.pay-btn-yellow {
    background: linear-gradient(135deg, #3191d1, #1d77b5);
    color: #ffffff;
}

.pay-btn-yellow:hover {
    background: linear-gradient(135deg, #147ec4, #0a5584);
    box-shadow: 0 4px 12px rgba(10, 85, 132, 0.35);
}

/* Картка нових реквізитів оплати */
.payment-requisites-card {
    background: linear-gradient(145deg, #ffffff, #f4f8fc);
    border: 1.5px solid #d4e5f7;
    border-radius: 12px;
    padding: 12px 10px;
    box-shadow: 0 3px 10px rgba(10, 85, 132, 0.08);
    position: relative;
    margin-top: 4px;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.25s ease;
}

.payment-requisites-card:hover {
    border-color: #9ac7f0;
    box-shadow: 0 5px 15px rgba(10, 85, 132, 0.13);
}

.payment-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a5584;
    background: #e1effe;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.payment-card-badge i {
    font-size: 0.8rem;
    color: #3191d1;
}

.payment-account-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 9px;
}

.payment-iban-box {
    position: relative;
    background: #ffffff;
    border: 1.5px dashed #93c5fd;
    border-radius: 8px;
    padding: 8px 9px;
    margin-bottom: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
}

.payment-iban-box:hover {
    background: #f0f7ff;
    border-color: #3191d1;
    box-shadow: 0 2px 8px rgba(49, 145, 209, 0.15);
}

.payment-iban-box .iban-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-iban-box .iban-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.payment-iban-box .iban-val {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
    letter-spacing: 0.2px;
    line-height: 1.25;
}

.payment-iban-box .copy-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    border: none;
    background: #3191d1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    padding: 0;
}

.payment-iban-box:hover .copy-btn {
    background: #147ec4;
    transform: scale(1.06);
}

.copy-tooltip {
    position: absolute;
    top: -28px;
    right: 6px;
    background: #1e293b;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.payment-bank-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.payment-bank-name i {
    color: #16a34a;
    font-size: 0.95rem;
    flex-shrink: 0;
}

@media (max-width: 1550px) {
    .pay-btn span {
        font-size: 0.85rem;
    }

    .pay-btn i {
        font-size: 0.85rem;
    }

    .payment-block .payment-instruction {
        font-size: 0.85rem;
    }

    .payment-account-title {
        font-size: 0.85rem;
    }

    .payment-iban-box .iban-val {
        font-size: 0.78rem;
    }

    .payment-bank-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 1400px) {
    .pay-btn span {
        font-size: 0.8rem;
    }

    .pay-btn i {
        font-size: 0.8rem;
    }

    .payment-block .payment-instruction {
        font-size: 0.8rem;
    }

    .payment-account-title {
        font-size: 0.82rem;
    }

    .payment-iban-box .iban-val {
        font-size: 0.75rem;
    }

    .payment-bank-name {
        font-size: 0.78rem;
    }
}

/* === Модальне вікно перегляду зображення === */
.image-preview-modal,
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-modal.show,
.qr-modal.show {
    display: flex !important;
    opacity: 1;
    animation: fadeInImgModal 0.25s ease forwards;
}

.image-preview-modal.hide,
.qr-modal.hide {
    opacity: 0;
}

@keyframes fadeInImgModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-preview-content,
.qr-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomInImgModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomInImgModal {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-preview-content img,
.qr-modal-content img,
#modalImage {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.image-preview-close,
.qr-close-btn {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.image-preview-close:hover,
.qr-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.payment-info-box {
    position: relative;
    background: #ffffff;
    border: 1.5px dashed #93c5fd;
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
}

.payment-info-box:hover {
    background: #f0f7ff;
    border-color: #3191d1;
    box-shadow: 0 2px 8px rgba(49, 145, 209, 0.15);
}

.payment-info-box .info-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.payment-info-box .info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.payment-info-box .info-val {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
    letter-spacing: 0.2px;
    line-height: 1.25;
}

.payment-info-box .edrpou-val {
    font-size: 0.95rem;
    letter-spacing: 0.6px;
    color: #0284c7;
}

.payment-info-box .copy-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 6px;
    border: none;
    background: #3191d1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.82rem;
    padding: 0;
}

.payment-info-box:hover .copy-btn {
    background: #147ec4;
    transform: scale(1.06);
}
