/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

/* Портретный режим */
.portrait-mode {
    display: block;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.landscape-mode {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Ландшафтный режим */
body.landscape {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.landscape .landscape-mode {
    display: block;
}

body.landscape .landscape-content {
    transform: rotate(90deg);
    transform-origin: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 100vw;
    margin-top: -50vw;
    margin-left: -50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.site-wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.site-wrapper.rotated {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 100vh;
    height: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 50px 0;
}

.landing-svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

/* Стили для хедера */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #F47D63;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.logo-img {
    height: 40px;
    width: auto;
}

.navigation {
    display: flex;
    gap: 20px;
}

.navigation .nav-link {
    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.navigation .nav-link:hover {
    color: #333;
}

/* Стили для основного контента */
.hero {
    text-align: center;
    padding: 50px 0;
}

.hero h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.hero-content {
    max-width: 100%;
    overflow: hidden;
}

.svg-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-text {
    text-align: left;
}

.hero-image {
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-item {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

/* Стили для блока 'О нас' */
.about {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
}

.about h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.about p {
    line-height: 1.6;
    color: #555;
    margin: 10px 0;
}

.about-text {
    padding: 20px;
}

.about-image {
    width: 100%;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.donation-info {
    margin: 20px 0;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Стили для футера */
.footer {
    background-color: #f8f8f8;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: left;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link img {
    width: 30px;
    height: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .main-content {
        gap: 20px;
        margin: 25px 0;
    }
    
    .landing-block {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .rotate-screen-button {
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        gap: 15px;
        margin: 15px 0;
    }
    
    .landing-block {
        transform: translateX(-10px) scale(0.95);
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
}

/* Анимации для карточек */
.landing-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.landing-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Оптимизация производительности */
.landing-block {
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.character-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.character-button {
    background-color: #F47D63;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.character-button:hover {
    background-color: #e06b57;
}

.card {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.card.active {
    display: block;
}

.action-button {
    background-color: #F47D63;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.action-button:hover {
    background-color: #e06b57;
}

.coming-soon {
    opacity: 0.5;
}

/* Стили для кнопки поворота экрана */
.rotate-screen-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: none;
}

#rotateScreenBtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #F47D63;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#rotateScreenBtn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

#rotateScreenBtn.rotated {
    transform: rotate(-90deg);
}

/* Медиа-запросы */
@media screen and (max-width: 768px) {
    .rotate-screen-button {
        display: block;
    }
}

@media screen and (max-height: 768px) and (orientation: landscape) {
    .rotate-screen-button {
        display: block;
    }
} 
