/* Полностью переработаны стили под bold yellow aesthetic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    font-weight: 700;
}

/* Bold typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Hover эффект для изображений */
.hover-scale {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* 3D flip карточки */
.card-flip-container {
    perspective: 1000px;
    cursor: pointer;
}

.card-flip {
    position: relative;
    width: 100%;
    height: 500px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-flip.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
}

/* Плавные переходы с акцентом */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover,
button:hover {
    transform: translateY(-2px);
}

/* Bold тени */
.shadow-brutal {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 1);
}

/* Фокус для доступности с желтым акцентом */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 4px solid #FACC15;
    outline-offset: 2px;
}

/* Bold формы */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-size: 16px;
    font-weight: 700;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #FACC15 !important;
}

/* Активное состояние кнопок */
button:active,
a:active {
    transform: translateY(2px);
}

/* Bold чекбокс */
input[type="checkbox"] {
    cursor: pointer;
    width: 24px;
    height: 24px;
    border: 4px solid #000;
}

/* Изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Улучшенная читаемость */
p {
    max-width: 75ch;
}

/* Fade-in анимация */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* iframe стили */
iframe {
    display: block;
    border: none;
}

/* Ссылки без подчёркивания */
a {
    text-decoration: none;
}

/* Мобильное меню */
#mobileMenu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Медиа-запросы */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-flip {
        height: 450px;
    }
}

/* Анимация cookie popup */
#cookiePopup {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Bold контрастность */
.text-gray-700 {
    color: #000;
}

.text-gray-900 {
    color: #000;
}

/* Bold scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #FACC15;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border: 2px solid #FACC15;
}

::-webkit-scrollbar-thumb:hover {
    background: #1f1f1f;
}

/* Selection стиль */
::selection {
    background: #FACC15;
    color: #000;
}

::-moz-selection {
    background: #FACC15;
    color: #000;
}

/* Печать */
@media print {
    header,
    footer,
    #cookiePopup,
    button {
        display: none;
    }
}

/* Дополнительные анимации */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Grid hover эффекты */
.group:hover {
    transform: scale(1.02);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bold border эффекты */
.border-brutal {
    border: 4px solid #000;
}

/* Rotate эффекты при наведении */
.hover-rotate:hover {
    transform: rotate(2deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text outline эффект для больших заголовков */
.text-outline {
    -webkit-text-stroke: 2px #000;
    color: transparent;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #FACC15 0%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Box shadow brutal */
.shadow-brutal-lg {
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 1);
}

.shadow-brutal-yellow {
    box-shadow: 8px 8px 0 #FACC15;
}

/* Transition utilities */
.transition-brutal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animation */
@keyframes pulse-brutal {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-brutal {
    animation: pulse-brutal 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
