/* Theme Variables */
:root {
    --bg-color: #FBFFFF;
    --text-color: #333;
    --text-color-light: #666;
    --header-bg: rgba(251, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --shadow-color-strong: rgba(0, 0, 0, 0.2);
    --gradien-text-color: transparent;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --text-color-light: #b0b0b0;
    --header-bg: rgba(18, 18, 18, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-color-strong: rgba(0, 0, 0, 0.6);
    --gradient-text-color: transparent;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('resources/bg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    min-width: 320px;
    overflow-x: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    background-image: url('resources/bg-dark.png');
}

/* Navigation */
header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
}

.nav-links a:not(.download-link) {
    background-clip: text;
    -webkit-background-clip: text;
    transition: all 0.3s ease;
}

.nav-links a:not(.download-link):hover {
    background: linear-gradient(90deg, #406FF9 0%, #CA27B7 31%, #FF4E17 61%, #F2B017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a:not(.download-link):active {
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.download-link {
    position: relative;
    background: linear-gradient(90deg, #406FF9 0%, #CA27B7 31%, #FF4E17 61%, #F2B017 100%);
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    -webkit-text-fill-color: white;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Hero Section */
.hero {
    padding: 80px 5% 30px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* App Preview Section */
.app-preview {
    position: relative;
    margin: 1rem auto;
    max-width: 1148px;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    min-height: 290px;
    overflow: visible;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.bubble {
    position: absolute;
    width: 84%;
    max-width: 84%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.app-icon {
    position: absolute;
    left: 10%;
    width: 22%; 
    max-width: 165px; 
    z-index: 2;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.phone-mockup {
    width: 35%;
    max-width: 340px;
    position: relative;
    z-index: 4;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.calendar-preview {
    position: absolute;
    right: 10%;
    width: 30%;
    max-width: 415px;
    z-index: 2;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
    transition: transform 0.3s ease;
}

.hero-content {
    max-width: 800px;
    margin: 3rem auto 1rem;
    position: relative;
    z-index: 4;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #406FF9 0%, #CA27B7 31%, #FF4E17 61%, #F2B017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

/* Download Section */
.download-section {
    margin-top: 160px;
    text-align: center;
    position: relative;
    z-index: 4;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.store-buttons a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.store-buttons a:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.store-buttons a:active {
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.store-buttons img {
    height: 48px;
    width: auto;
}

/* Contact Section */
.contact-section {
    margin-top: 160px;
    position: relative;
    z-index: 4;
    padding: 1rem 0;
}

.contact-section p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

.contact-email {
    display: inline-block;
    background: linear-gradient(90deg, #406FF9 0%, #CA27B7 31%, #FF4E17 61%, #F2B017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    position: relative;
    font-size: 1.2rem;
    padding: 4px;
}

/* Remove hover effects */
.contact-email:hover {
    background: linear-gradient(90deg, #406FF9 0%, #CA27B7 31%, #FF4E17 61%, #F2B017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-email::after {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-preview {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
    }
    
    .calendar-preview {
        max-width: 300px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .how-to-use h2, .download-section h2, .contact-section h2 {
        font-size: 2.2rem;
        margin-bottom: 1.3rem;
    }
    
    .features-grid {
        gap: 4rem;
    }
    
    .feature-text h3 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 4%;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links .how-to-use-link,
    .nav-links .about-link {
        display: none;
    }
    
    .app-preview {
        height: 431px;
        width: 100%;
        padding: 0 5px;
    }
    
    .app-icon {
        max-width: 155px;
        transform: translateX(15%);
    }
    
    .phone-mockup {
        max-width: 259px;
    }
    
    .calendar-preview {
        max-width: 155px;
        transform: translateX(-15%);
    }
    
    .bubble {
        max-width: 84%;
        transform: translate(-50%, -60%);
    }
    
    h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-content {
        margin: 2rem auto;
    }
    
    .how-to-use h2, .download-section h2, .contact-section h2, .about-section h2 {
        font-size: 2.2rem !important;
        letter-spacing: -0.01em;
        margin-bottom: 1rem;
    }
    
    .contact-email {
        font-size: 1.1rem;
    }
    
    .feature-image img {
        max-width: 80%;
        width: 80%;
    }
    
    .features-grid {
        gap: 5rem;
        margin-top: 2rem;
    }
    
    .feature-text h3 {
        font-size: 1.6rem;
        margin-bottom: 0.7rem;
    }
    
    .feature-text p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    header {
        padding: 0.7rem 3%;
    }
    
    .logo img {
        height: 30px;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .app-preview {
        height: 362px;
        width: 100%;
        padding: 0 5px;
    }
    
    .app-icon {
        max-width: 121px;
        transform: translateX(30%);
    }
    
    .calendar-preview {
        max-width: 121px;
        transform: translateX(-30%);
    }
    
    .phone-mockup {
        max-width: 242px;
    }
    
    .bubble {
        max-width: 84%;
        transform: translate(-50%, -60%);
    }
    
    h1 {
        font-size: 1.9rem;
    }
    
    .contact-section {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .how-to-use h2, .download-section h2, .contact-section h2, .about-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-email {
        font-size: 1rem;
    }
    
    .feature-image img {
        max-width: 80%;
        width: 80%;
    }
    
    .features-grid {
        gap: 4.5rem;
    }
    
    .feature-text h3 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.6rem 3%;
    }
    
    .logo img {
        height: 22px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 70px 15px 40px;
    }
    
    .app-preview {
        height: 301px;
        width: 100%;
        padding: 0 5px;
    }
    
    .app-icon {
        max-width: 86px;
        transform: translateX(50%);
    }
    
    .calendar-preview {
        max-width: 86px;
        transform: translateX(-50%);
    }
    
    .phone-mockup {
        max-width: 207px;
    }
    
    .bubble {
        max-width: 84%;
        transform: translate(-50%, -55%);
    }
    
    h1 {
        font-size: 1.4rem;
        margin-bottom: 0.7rem;
    }
    
    .hero-content {
        margin: 1.5rem auto;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .download-section {
        margin-top: 4rem;
    }
    
    .contact-section {
        margin-top: 5rem;
        padding: 1.5rem 0;
    }
    
    .how-to-use h2, .download-section h2, .contact-section h2, .about-section h2 {
        font-size: 1.8rem !important;
        letter-spacing: -0.01em;
        margin-bottom: 0.8rem;
    }
    
    .contact-email {
        font-size: 1rem;
    }
    
    .feature-image img {
        max-width: 80%;
        width: 80%;
        border-radius: 15px;
    }
    
    .features-grid {
        gap: 3.5rem;
        margin-top: 1.5rem;
    }
    
    .about-content h3, .feature-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-text p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    header {
        padding: 0.5rem 2%;
    }
    
    .logo img {
        height: 26px;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 60px 10px 30px;
    }
    
    .app-preview {
        height: 259px;
        width: 100%;
        padding: 0 5px;
    }
    
    .app-icon, .calendar-preview {
        max-width: 69px;
    }
    
    .app-icon {
        transform: translateX(70%);
    }
    
    .calendar-preview {
        transform: translateX(-70%);
    }
    
    .phone-mockup {
        max-width: 181px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .store-buttons img {
        height: 40px;
    }
    
    .how-to-use h2, .download-section h2, .contact-section h2, .about-section h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.7rem;
    }
    
    .about-content h3, .feature-text h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
}

/* How to use section */
.how-to-use {
    margin: 160px auto 0;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 4;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5%;
    justify-content: space-between;
}

.feature-item .feature-image,
.feature-item .feature-text {
    flex: 0 0 47.5%; /* 47.5% ширины для каждого блока с 5% отступом между ними */
    max-width: 47.5%;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: none;
}

.feature-text {
    flex: 1;
    text-align: left;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(90deg, #406FF9 0%, #CA27B7 31%, #FF4E17 61%, #F2B017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-color-light);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .features-grid {
        gap: 4rem;
    }
    
    .feature-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .how-to-use {
        margin: 3rem auto;
        padding: 0 1.5rem;
    }
    
    .features-grid {
        gap: 5rem;
        margin-top: 2rem;
    }
    
    .feature-item, .feature-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .feature-item .feature-image,
    .feature-item .feature-text {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .feature-text {
        text-align: center;
    }
    
    .feature-text h3 {
        font-size: 1.6rem;
        margin-bottom: 0.7rem;
    }
    
    .feature-text p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .feature-image img {
        max-width: 80%;
        width: 80%;
    }
}

@media (max-width: 640px) {
    .how-to-use {
        margin: 2.5rem auto;
        padding: 0 1rem;
    }
    
    .features-grid {
        gap: 4.5rem;
    }
    
    .feature-text h3 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .feature-image img {
        max-width: 80%;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .how-to-use {
        margin: 4rem auto;
    }
    
    .features-grid {
        gap: 3.5rem;
        margin-top: 1.5rem;
    }
    
    .feature-item {
        gap: 1.5rem;
    }
    
    .feature-image img {
        border-radius: 15px;
    }
    
    .feature-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-text p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    .how-to-use {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }
    
    .features-grid {
        gap: 3rem;
    }
    
    .feature-text h3 {
        font-size: 1.3rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
}

/* Section Headers - базовое определение */
.how-to-use h2, .download-section h2, .contact-section h2, .about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    text-align: center;
    font-weight: 700;
}

/* About Section */
.about-section {
    margin-top: 160px;
    position: relative;
    z-index: 4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.about-content {
    margin-top: 2rem;
    text-align: center;
}

.about-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #CA27B7 0%, #FF4E17 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-weight: 700;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 1.2rem;
    text-align: left;
}

.about-quote {
    font-style: italic;
    border-left: 4px solid #406FF9;
    padding-left: 1.5rem;
    margin-bottom: 2rem !important;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .about-section {
        margin-top: 3.5rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        margin-top: 6rem;
        padding: 0 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 640px) {
    .about-section {
        margin-top: 5rem;
        padding: 0 1rem;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .about-quote {
        padding-left: 1rem;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .about-section {
        margin-top: 6rem;
        padding: 0 0.8rem;
    }
    
    .about-content h3 {
        font-size: 1.4rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* Мобильные медиа-правила с увеличенными заголовками (в 2 раза от текущих) */
@media (max-width: 768px) {
    .how-to-use h2, 
    .download-section h2, 
    .contact-section h2, 
    .about-section h2 {
        font-size: 2.2rem !important;
        letter-spacing: -0.01em;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .how-to-use h2, 
    .download-section h2, 
    .contact-section h2, 
    .about-section h2 {
        font-size: 1.8rem !important;
        letter-spacing: -0.01em;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 360px) {
    .how-to-use h2, 
    .download-section h2, 
    .contact-section h2, 
    .about-section h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.7rem;
    }
} 