/* style.css */

/* Общие настройки */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6; /* bg-gray-100 из Tailwind */
}

/* Адаптивный фон с поддержкой мобильных устройств */
.bg-sretensky {
    background-image: url("assets/sretensky_monastery_background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.bg-sretensky {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
    url("assets/sretensky_monastery_background.jpg");
  background-size: cover;
  background-position: center;
}

/* Отключаем fixed-фон на мобильных (Safari и Android могут тормозить) */
@media (max-width: 768px) {
    .bg-sretensky {
        background-attachment: fixed;
    }
}



/* Стеклянные карточки — iOS 26 Style */
.card-glass {
background-image: 
    linear-gradient(rgba(0, 0, 0, -5), rgba(0, 0, 0, -5)), 
    url("assets/sretensky_monastery_background.jpg");
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Блестящий эффект при наведении */
.card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

/* Свечение по краю */
.card-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Эффекты при наведении */
.card-glass:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-glass:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.card-glass:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Стиль кнопок — iOS-inspired с градиентом и анимацией */
.button-ios {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 24px rgba(220, 38, 38, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-ios::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button-ios:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button-ios:hover::before {
    left: 100%;
}

.button-ios:active {
    transform: translateY(0) scale(0.98);
}

/* Стили для логотипов */
.logo-container {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-group:hover .logo-image {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* Адаптивные улучшения для маленьких экранов */
@media (max-width: 640px) {
    .button-ios {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .logo-container {
        width: 100px;
        height: 100px;
    }

    .logo-image {
        max-width: 160%;
    }
}