@font-face {
    font-family: 'CustomFont';
    src: url('font/font.ttf') format('truetype');
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #333333;
    --light-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CustomFont', sans-serif;
}

body {
    background-image: url('картинка для сайта.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    transition: background-position 1s cubic-bezier(0.4, 0, 0.2, 1);
}

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    background-color: transparent;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--light-gray);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    background-color: transparent;
}

.hero h1, h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(45deg, #000000, #ffffff, #000000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 1.5s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
}

.features, .optimization, .gallery, .download-section {
    padding: 4rem 1rem;
    background-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: transparent;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.optimization-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.optimization-content ul {
    list-style: none;
    margin-top: 2rem;
}

.optimization-content li {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.gallery {
    padding: 4rem 1rem;
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 16/9;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    color: var(--white);
    padding: 1rem;
    margin: 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-item:hover p {
    transform: translateY(0);
}

/* Адаптивность для галереи */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    main {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .nav {
        width: 100%;
        box-sizing: border-box;
    }

    .hero {
        width: 100%;
        box-sizing: border-box;
    }

    .features, .optimization, .gallery, .download-section {
        width: 100%;
        box-sizing: border-box;
    }

    .feature-grid {
        width: 100%;
        box-sizing: border-box;
    }

    .feature-card {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-grid {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-item {
        width: 100%;
        box-sizing: border-box;
    }

    .download-buttons {
        width: 100%;
        box-sizing: border-box;
    }

    .download-button {
        width: 100%;
        box-sizing: border-box;
    }

    .footer {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-content {
        width: 100%;
        box-sizing: border-box;
    }

    .nav {
        flex-direction: column;
        padding: 1rem 15px;
    }

    .logo {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }

    .hero {
        padding: 2rem 15px;
        height: auto;
        min-height: 100vh;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .feature-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .optimization-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .optimization-content ul {
        padding-left: 1.5rem;
        text-align: left;
    }

    .optimization-content li {
        font-size: 1rem;
        margin: 0.8rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .gallery-item {
        aspect-ratio: 16/9;
        margin: 0 auto;
        max-width: 100%;
    }

    .gallery-item p {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .download-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 15px;
        max-width: 100%;
    }

    .download-button {
        width: 100%;
        min-width: auto;
    }

    .footer {
        padding: 1.5rem 15px;
        text-align: center;
    }

    .footer-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .social-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

/* Медиа-запросы для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    main {
        padding: 0 30px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .download-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .download-button {
        width: calc(50% - 1rem);
        min-width: auto;
    }
}

/* Улучшенная поддержка сенсорных устройств */
@media (hover: none) {
    .feature-card:hover,
    .gallery-item:hover,
    .download-button:hover,
    .social-link:hover {
        transform: none;
    }

    .download-button:active {
        background-color: #fff;
        color: #000;
    }

    .feature-card:active,
    .gallery-item:active {
        transform: scale(0.98);
    }
}

.footer {
    background-color: transparent;
    padding: 2rem;
    text-align: center;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: modalZoom 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Дополнительные анимации */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feature-card, .gallery-item {
    animation: slideIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.3s; }
.feature-card:nth-child(2) { animation-delay: 0.6s; }
.feature-card:nth-child(3) { animation-delay: 0.9s; }

.gallery-item:nth-child(1) { animation-delay: 0.3s; }
.gallery-item:nth-child(2) { animation-delay: 0.4s; }
.gallery-item:nth-child(3) { animation-delay: 0.5s; }
.gallery-item:nth-child(4) { animation-delay: 0.6s; }
.gallery-item:nth-child(5) { animation-delay: 0.7s; }
.gallery-item:nth-child(6) { animation-delay: 0.8s; }

/* Анимация для навигации */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Анимация для кнопок */
.button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button::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: 0.5s;
}

.button:hover::before {
    left: 100%;
}

/* Более плавные анимации для заголовков */
h1, h2, h3 {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Приветственный экран */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: welcomeFade 3s ease-in-out forwards;
}

.welcome-text {
    font-size: 5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 10px;
    background: linear-gradient(45deg, #000000, #ffffff, #000000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 3s ease infinite;
}

@keyframes welcomeFade {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}

/* Скрываем основной контент на время показа приветственного экрана */
body > *:not(.welcome-screen) {
    opacity: 0;
    animation: contentFadeIn 0.5s ease forwards;
    animation-delay: 3s;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.social-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link span {
    color: var(--light-gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
}

.download-section {
    padding: 4rem 1rem;
    background-color: transparent;
    text-align: center;
}

.download-section h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background: linear-gradient(45deg, #000000, #ffffff, #000000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 1.5s linear infinite;
}

.download-buttons {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
    max-width: 1200px;
    flex-wrap: wrap;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #fff;
    min-width: 300px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.download-button::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: 0.5s;
}

.download-button:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.download-button:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .download-section h2 {
        font-size: 2.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .download-button {
        width: 100%;
        min-width: auto;
    }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center;
        font-size: 14px;
    }

    .nav {
        flex-direction: column;
        padding: 0.5rem;
    }

    .logo {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.3rem;
    }

    .hero {
        padding: 1rem;
        height: auto;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .features, .optimization, .gallery, .download-section {
        padding: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .optimization-content {
        padding: 0 0.5rem;
    }

    .optimization-content ul {
        padding-left: 1rem;
    }

    .optimization-content li {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
        margin: 0.5rem 0;
    }

    .gallery-item p {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .download-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .download-buttons {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .download-button {
        width: 100%;
        min-width: auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1rem;
    }

    .footer-content {
        padding: 0 0.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-link {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    section {
        margin: 0.5rem 0;
    }

    h1, h2, h3 {
        margin: 0.5rem 0;
    }

    .button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .social-link img {
        width: 20px;
        height: 20px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .gallery-item {
        margin: 0.3rem 0;
    }

    ul, ol {
        padding-left: 1rem;
    }

    li {
        margin: 0.3rem 0;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 0.8rem;
    }

    .download-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .social-link {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* Для браузеров, которые не поддерживают scroll-behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Для браузеров, которые не поддерживают scroll-behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
} 