/* Reset and Base Styles */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: #32b7e3;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIcon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

@keyframes scaleDown {
    from {
        transform: scale(1.1);
        opacity: 0.5;
    }
    to {
        transform: scale(1.0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 165, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.5);
    }
}

@keyframes cloudAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(4px);
    }
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Page Frame Wrapper */
.PageFrameWrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #32b7e3; /* Fallback цвет, если изображение не загрузится */
    width: 100%;
    min-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    /* Убран filter: blur, так как размытие применяется только к :before */
}

.PageFrameWrapper:before {
    content: "";
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #32b7e3; /* Fallback цвет, если изображение не загрузится */
    background-image: url(./bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    will-change: filter;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.PageFrameWrapper.bg-loaded:before {
    opacity: 1;
}

/* Main Container */
.main-container {
    position: relative;
    color: rgb(28, 28, 28);
    overscroll-behavior-block: none;
    position: relative;
    min-height: 100vh;
    z-index: 10;
}

.content-wrapper {
    background-color: transparent; /* Прозрачный, так как фон уже есть в PageFrameWrapper */
    align-items: center;
    justify-content: center;
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.content-inner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

.content-center {
    justify-content: center;
    padding-top: 72px;
    padding-bottom: 72px;
    display: flex;
    width: 100%;
}

/* Card Container */
.card-container {
    background-image: linear-gradient(rgb(0, 98, 177), rgb(0, 98, 177));
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cloud-image {
    position: absolute;
    pointer-events: none;
    bottom: -25%;
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: blur(8px);
    z-index: 20;
    scale: 1;
    pointer-events: none;
    opacity: 0;
    animation: cloudAppear 1.5s ease-out forwards, cloudFloat 4s ease-in-out infinite;
    animation-delay: 0.5s, 2s;
}

.cloud-image-2 {
    position: absolute;
    pointer-events: none;
    bottom: -15%;
    right: -30%;
    width: 80%;
    height: auto;
    z-index: 30;
    scale: 1;
    pointer-events: none;
    opacity: 0;
    animation: cloudAppear 1.4s ease-out forwards, cloudFloat 5s ease-in-out infinite;
    animation-delay: 0.5s, 3s;
}
.card-content {
    padding-bottom: 120px;
    padding-left: 8px;
    padding-right: 8px;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.card-inner {
    position: relative;
}

.card-flex {
    flex-wrap: wrap;
    display: flex;
    width: 100%;
}

/* Hero Section */
.hero-section {
    width: 100%;
    margin-top: 48px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 16px;
}

.hero-image-container {
    align-items: center;
    flex-direction: column;
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.hero-image-container img {
    width: 100%;
}

.hero-image {
    object-fit: contain;
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.3s ease;
    animation: scaleDown 1.2s ease-out;
    transform-origin: center center;
    display: block;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-overlay {
    bottom: 0px;
    position: absolute;
    text-align: center;
    z-index: 10;
    width: 100%;
}

.hero-title {
    color: rgb(254, 254, 254);
    font-size: 28px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    border-radius: 26px;
    font-weight: 700;
}

.hero-title-inner {
    width: 100%;
}

.hero-title-text {
    position: relative;
    display: inline-block;
}

.hero-social {
    margin-top: 8px;
}

.social-links {
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
}

.social-link {
    text-decoration-line: underline;
}

.social-icon {
    cursor: pointer;
    display: inline;
    width: 28px;
    height: 28px;
    padding: 8px;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

.gradient-overlay-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 98, 177) 100%);
    bottom: 0px;
    position: absolute;
    width: 100%;
    height: 9rem;
}

.gradient-overlay-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 98, 177) 100%);
    bottom: 0px;
    position: absolute;
    width: 100%;
    height: 6rem;
}

/* Button Section */
.button-section {
    width: 100%;
    margin-bottom: 23px;
    font-size: 16px;
    color: rgb(254, 254, 254);
    font-weight: 500;
}

.button-grid {
    grid-template-columns: repeat(1, minmax(0px, 1fr));
}

.button-wrapper {
    position: relative;
    text-align: -webkit-center;
    width: 100%;
    box-sizing: border-box;
}

.primary-button {
    background-color: rgb(14, 5, 21);
    align-items: center;
    justify-content: center;
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 64px;
    border-width: 2px;
    box-sizing: border-box;
    border-color: rgb(254, 254, 254);
    border-style: solid;
    border-radius: 26px;
    padding: 8px;
    text-decoration: none;
    box-shadow: 0 6px 0 black;
}

.button-content {
    cursor: pointer;
    text-align: center;
    width: 100%;
    color: white;
}

.button-subtitle {
    font-size: 12px;
}

/* Accordion Section */
.accordion-section {
    width: 100%;
    margin-bottom: 15px;
    color: rgba(0, 0, 0, 0.87);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.accordion-container {
    background-color: rgb(14, 5, 21);
    text-align: center;
    border-width: 2px;
    border-color: rgb(254, 254, 254);
    border-style: solid;
    border-radius: 26px;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 6px 0 black;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.accordion-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 black;
}

.accordion-header {
    color: rgb(254, 254, 254);
    align-items: center;
    cursor: pointer;
    justify-content:center;
    position: relative;
    display: flex;
    border-radius: 26px;
    gap: 8px;
}

.accordion-title {
    font-size: 18px;
    font-weight: 600;
}

.accordion-icon {
    align-items: center;
    position: absolute;
    right: 0px;
    display: flex;
    width: 1em;
    height: 1em;
    transition: transform 0.3s ease;
}

.accordion-section.active .accordion-icon,
#accordion-content.active ~ .accordion-section .accordion-icon {
    transform: rotate(180deg);
}

/* Image Section */
.image-section {
    width: 100%;
    margin-bottom: 23px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.image-container {
    align-items: center;
    flex-direction: column;
    display: flex;
}

.image-link {
    justify-content: center;
    text-decoration-line: underline;
    display: flex;
    width: 100%;
}

.image-content {
    cursor: pointer;
    object-fit: cover;
    width: 100%;
    height: 314.734px;
    border-radius: 26px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.image-content:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Telegram Button */
.telegram-button {
    background-color: rgb(14, 5, 21);
    align-items: center;
    justify-content: center;
    position: relative;
    display: flex;
    width: 100%;
    min-width: 64px;
    max-width: 100%;
    border-width: 2px; 
    box-sizing: border-box;
    border-color: rgb(254, 254, 254);
    border-style: solid;
    border-radius: 26px;
    padding: 8px;
    text-decoration: none;
    color: white;
    box-shadow: 0 6px 0 black;
}

.telegram-icon-wrapper {
    align-items: center;
    cursor: pointer;
    justify-content: center;
    display: flex;
    width: 3.5rem;
    min-width: 56px;
    margin-right: 8px;
}

.telegram-icon {
    object-fit: cover;
    width: 45px;
    height: 45px;
    border-radius: 26px;
}

.telegram-text {
    cursor: pointer;
    text-align: center;
    width: 100%;
}

/* Footer Section */
.footer-section {
    margin-top: 48px;
}

.footer-content {
    justify-content: center;
    display: flex;
}

.footer-link {
    text-decoration-line: underline;
}

.footer-logo {
    cursor: pointer;
    display: inline;
    width: 126.094px;
    height: 35px;
}

.beacons-banner {
    position: relative;
    z-index: 50;
    width: 100%;
    margin-top: 24px;
}

.beacons-banner-inner {
    margin-right: 16px;
    margin-bottom: 24px;
    margin-left: 16px;
}

.beacons-banner-content {
    background-color: rgb(255, 255, 255);
    align-items: center;
    cursor: pointer;
    opacity: 0.9;
    display: flex;
    border-radius: 8px;
    padding: 12px;
}

.beacons-banner-icon-wrapper {
    align-items: center;
    display: flex;
    gap: 8px;
}

.beacons-banner-icon {
    width: 16px;
    height: 16px;
}

.beacons-banner-text {
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
}

/* Media Queries */
@media (min-width: 600px) {
    .my-btn span {
        font-size: 20px;
    }
}

@media (min-width: 600px) {
    .cloud-image {
        bottom: -23%;
    }
}

@media (min-width: 600px) {
    .card-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 150px;
        max-width: 600px !important;
    }
}


@media (min-width: 450px) {
    /* Убрана фиксированная высота для адаптивности */
}

.acc-item__content {
    /* 
    grid grid-rows-[0fr] opacity-0 transition-all duration-300 ease-in-out peer-checked:grid-rows-[1fr] peer-checked:opacity-100 */
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  animation: fadeIn 0.3s ease-out;
}

.acc-item__content.active {
  grid-template-rows: 1fr;
  opacity: 1;
}
.acc-item__wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.acc-item__wrapper a img {
    max-width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.acc-item__wrapper a img:hover {
    opacity: 0.9;
}
.accordions {
}

.acc-item__img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    overflow: hidden;
}

.my-buttons {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.my-btn {
    position: relative;
    padding: 16px;
    border-radius: 26px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgb(255, 255, 255);
    display: flex;
    width: 100%;
    z-index: 50;
    max-height: 97px;
    min-height: 97px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 25%, #ffd700 50%, #ffa500 75%, #ff6b6b 100%);
    background-size: 200% 100%;
    border-width: 3px;
    border-color: rgba(255, 255, 255, 0.9);
    border-style: solid;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 165, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-position 0.5s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards, pulse 2s ease-in-out infinite, shimmer 3s linear infinite;
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.my-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.my-btn:hover::before {
    left: 100%;
}

.my-btn:nth-child(1) {
    animation-delay: 0.4s;
}

.my-btn:nth-child(2) {
    animation-delay: 0.5s;
}

.my-btn:nth-child(3) {
    animation-delay: 0.6s;
}

.my-btn:nth-child(4) {
    animation-delay: 0.7s;
}

.my-btn:nth-child(5) {
    animation-delay: 0.8s;
}

.my-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 165, 0, 0.6), 0 0 120px rgba(255, 140, 0, 0.4);
    background-position: 100% 0;
    border-color: rgba(255, 255, 255, 1);
}

.my-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.5);
}

.my-btn img {
    max-width: 35px;
    min-width: 35px;
    height: 35px;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;

    
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 16px;
}

.my-btn svg {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.my-btn:hover svg {
    transform: translateY(-50%) scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
}

.my-btn span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 4px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.my-btn:hover span {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 255, 255, 0.4), 0 0 16px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}