/* Сброс всех отступов и границ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Убираем стандартные стили списков */
ul, ol {
    list-style: none;
}

/* Убираем подчёркивание у ссылок */
a {
    text-decoration: underline;
    color: #ea8824;
}

/* Убираем рамку у изображений */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Убираем стандартные стили кнопок */
button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

/* Убираем стандартные стили полей ввода */
input,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
}

/* Базовые настройки для body */
body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: Roboto, OpenSans, sans-serif;
}

/* Убираем маркеры у summary */
summary {
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.button {
    background: #ea8824;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    display: block;
    text-align: center;
}

body {
    background: /*url('../images/bg.jpg') no-repeat*/ #ececec;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    max-height: 800px;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Шапка */
section.top header {
    max-width: 1200px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 30px 20px;
}

section.top .header-logo img {
    max-height: 100%;
}

section.top .header-icons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: right;
}

section.top .header-icons a {
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.25);
    padding:8px;
    border-radius: 8px;
    transition: all 0.3s;
}

section.top .header-icons a:hover {
    background: rgba(255,255,255,0.05);
}

section.top .header-icons a img {
    width: 25px;
}

section.top .top-banner {
    min-height: 460px;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    padding: 15px;
    flex-direction: column;
}

section.top .top-banner span {
    font-size:24px;
    color:#ea8824;
    font-weight:300;
}
section.top .top-banner h2 {
    font-size: 50px;
    color: #fefefe;
    line-height: 1.3;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    background-color: #fff;
    border-radius: 8px;
    margin: 0 auto;
    padding:30px;

}

.main-pay-form-oferta {
    margin-top: 15px;
    text-align: right;
    font-size: 14px;
    color: #808080;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.main-pay-form-oferta > div:nth-of-type(2) {
    max-width:320px;
}

.main-pay-form-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.pay-form-donation-item {
    background: #ececec;
    border-radius: 8px;
    padding:20px;
    transition: all 0.3s;
    font-size:18px;
}

.pay-form-donation-item.active {
    background:#24ac6e;
    color:#fff;
}

.pay-form-donation-item.active::placeholder {
    color:#fefefe;
}

.pay-form-button {
    background: #ea8824;
    border-radius: 8px;
    padding:20px;
    color: #fff;
    font-weight: 700;
    width:320px;
    margin-left: auto;
    font-size:18px;
}

.main-digits {
    display: flex;
    flex-direction: row;
    gap:30px;
    justify-content: space-between;
    margin: 40px 0;
}

.main-digits-item {
    width:calc(25% - 30px);
}

.main-digits-item span {
    display: block;
}

.main-digits-item span:nth-of-type(1) {
    text-align: center;
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    color: #ea8824;
}

.main-digits-item span:nth-of-type(2) {
    text-align: center;
    color:#888;
}

.main-text {
    margin-top: 50px;
}

.main-text p {
    margin-bottom: 10px;
    font-size:18px;
}

.main-text-button {
    margin-top: 20px;
}

.main-text-button .button {
    max-width: 240px;
    margin:  auto;
}

.breadcrumbs .back-to-main {
    text-decoration: none;
    background: #ececec;
    border-radius: 8px;
    padding: 4px 10px;
    line-height: 1;
    color: #888;
    transition: all 0.3s;
}

.breadcrumbs .back-to-main:hover {
    background: #ececec;
    color: #444;
}

.breadcrumbs .back-to-main::before {
    content: '<';
    display: inline-block;
    text-decoration: none;
    margin-right: 5px;
    transform: scale(0.8);
    transform: scaleX(0.6);
}

footer {
    margin-top:40px;
    background: #383736;
}

footer .container {
    background: transparent;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    justify-content: right;
    text-align: right;
    margin-bottom: 20px;
}

.footer-contacts span:nth-of-type(1) {
    color:#fff;
    font-size: 20px;
    font-weight: 700;
}

.footer-contacts span:nth-of-type(2),
.footer-contacts span:nth-of-type(3) {
    color:#ececec;
    font-size: 16px;
}

.footer-contacts span:nth-of-type(3) {
    margin-top:15px;
}


.footer-socials {
    display: flex;
    flex-direction: row;
    gap:10px;
    align-items: center;
    justify-content: right;
}

.footer-socials img {
    width: 25px;
}

.cookie-note {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 99;
    background: #fff;
    max-width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ececec;
    font-size: 12px;
}

/* POPUP */
.popup-title {
    font-size:27px;
    font-weight: 700;
}

.popup-content {
    margin-top:15px;
    position: relative;
}

#requisite-pay .popup-content p {
    margin-bottom:8px;
}

#pay-overlay,
#pay-thanks {
    min-width:400px;
}

#pay-overlay span {
    color:#808080;
}

.payment-overlay {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}


/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ea8824;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ПЛАВАЮЩЕЕ ВИДЕО  */
.floating-video {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 120px;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
    background: #000;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Эффект при наведении */
.floating-video:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.3);
    border-color: #ea8824;
}

/* Видео внутри плавающего блока */
.floating-video video {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;  /* чтобы клик шёл на родителя (блок целиком) */
}

/* Небольшая подсказка-иконка */
.floating-video::after {
    content: "⤢";
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 20px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 30px;
    font-weight: bold;
    pointer-events: none;
    backdrop-filter: blur(4px);
    font-family: monospace;
}

/* Убираем ограничения по высоте/ширине, чтобы видео показывалось в реальных пропорциях */
.fancybox-slide--video .fancybox-content {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    background: transparent !important;
}

.fancybox-video {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.fancybox-video video {
    width: auto !important;
    height: auto !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.5);
}

/* Центрируем вертикальное видео */
.fancybox-slide.fancybox-slide--video {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media screen and (max-width:550px) {
    section.top header {
        flex-direction: column;
        height: auto;
    }
   
    section.top .header-logo img {
        max-width: 180px;
        margin: 0 auto;
    }

    section.top .header-icons {
        justify-content: center;
        margin-top:15px;
    }

    section.top .top-banner {
        text-align: center;
        min-height: 300px;
    }

    .video-background {
        max-height:500px;
    }

    .video-background video {
        height: 100%;
    }

    section.top .top-banner h2 {
        font-size: 30px;
    }

    section.top .top-banner span {
        font-size: 20px;
    }

    .main-pay-form-buttons {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-pay-form .pay-form-button {
        width: 100%;
        margin-top:5px;
    }

    .main-pay-form-oferta {
        text-align: center;
        flex-direction: column-reverse;
        gap: 15px;
        margin-top: 5px;
    }

    .main-pay-form-oferta > div:nth-of-type(2) {
        margin-top: 15px;
    }

    .pay-form-donation-item {
        font-size: 16px;
        width: calc(25% - 10px);
        padding: 20px 0; 
    }

    input.pay-form-donation-item {
        width: 100%;
        padding:20px;
        text-align: center;
    }

    .main-digits {
        flex-direction: column;
    }

    .main-digits-item {
        width: 100%;
    }

    .fancybox-slide--html {
        padding: 0 !important;
    }

    .fancybox-content {
        vertical-align: bottom !important;
        border-radius: 8px 8px 0 0;
    }

    #pay-overlay {
        min-width:auto;
        width: 100%;
    }

    .floating-video {
        width: 90px;
        bottom: 16px;
        left: 16px;
    }
    .floating-video::after {
        font-size: 14px;
        bottom: 4px;
        right: 6px;
        padding: 2px 6px;
    }

    .fancybox-slide.fancybox-slide--video {
        padding:0 !important;
    }
}
