@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;500&display=swap");

:root {
    --color-primary: #b28704;
    --color-secondary: #3a2e0f;
    --color-accent: #d9c078;
    --color-bg-light: #fdf8f0;
    --color-bg-dark: #1f1b0e;
    --color-text-dark: #2e2a1f;
    --color-text-light: #fffdfa;
    --shadow-default: 0 4px 15px rgba(178, 135, 4, 0.3);
    --shadow-card: 0 6px 20px rgba(58, 46, 15, 0.15);
    --radius-md: 12px;
    --gap-lg: 64px;
    --gap-md: 32px;
    --gap-sm: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.main-header {
    background: linear-gradient(90deg, #a87f0c 0%, #5c4a11 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-default);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4));
}

.brand-name {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-bg-light);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--color-bg-light);
    width: 0;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -4px;
    left: 0;
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after {
    width: 100%;
}

main {
    flex-grow: 1;
}

.hero-section {
    background: linear-gradient(90deg, #f9f4e7, #d8c98a);
    padding: 6rem 0 8rem;
    display: flex;
    align-items: center;
    min-height: 640px;
}

.hero-section .container {
    display: flex;
    gap: var(--gap-lg);
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1 1 480px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-content h1 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--color-secondary);
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(162, 132, 11, 0.4);
}

.hero-subtitle {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.06em;
    margin: 0;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-dark);
}

.store-buttons {
    margin-top: 2.5rem;
}
.store-link {
    display: inline-block;
    margin: auto;
}
.store-link img {
    max-width: 180px;
    filter: drop-shadow(0 4px 6px rgba(178, 135, 4, 0.35));
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.store-link img:hover,
.store-link img:focus {
    transform: scale(1.06);
}

.hero-image {
    flex: 1 1 420px;
    max-width: 480px;
    filter: drop-shadow(0 10px 15px rgba(58, 46, 15, 0.4));
    border-radius: var(--radius-md);
    overflow: hidden;
}

.content-section {
    padding: 6rem 0 8rem;
    background-color: var(--color-bg-light);
}

.content-section h2 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--color-secondary);
    margin-bottom: 2.25rem;
    text-align: center;
    letter-spacing: 0.04em;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.text-block p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-dark);
}

.image-block img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.features-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-md);
}

.feature-card {
    background: linear-gradient(135deg, #fff9dc 0%, #f0e3b8 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.75rem;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: default;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(178, 135, 4, 0.35);
}

.feature-card h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 0;
}

.feature-card p {
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--color-secondary);
}

.gallery-section {
    background: linear-gradient(180deg, #d8c98a 0%, #f9f4e7 100%);
    padding: 6rem 0 8rem;
    text-align: center;
}

.gallery-section h2 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 0.25rem;
    color: var(--color-secondary);
}

.gallery-section p {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    margin-bottom: 3rem;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem 2rem;
    justify-items: center;
}

.screenshot-gallery img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s ease;
    cursor: pointer;
}

.screenshot-gallery img:hover,
.screenshot-gallery img:focus {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(58, 46, 15, 0.4);
}

.guide-section {
    background-color: var(--color-bg-light);
    padding: 6rem 0 10rem;
}

.guide-section h2 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 2.8rem;
    text-align: center;
    color: var(--color-secondary);
    margin-bottom: 3rem;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 2.5rem;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

.step {
    background: linear-gradient(135deg, #fff9dc 0%, #f0e3b8 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 2.25rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
    cursor: default;
}

.step:hover,
.step:focus-within {
    box-shadow: 0 20px 40px rgba(178, 135, 4, 0.35);
    transform: translateY(-6px);
}

.step-number {
    flex-shrink: 0;
    background: var(--color-primary);
    color: var(--color-bg-light);
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 2.3rem;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    user-select: none;
}

.step p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-secondary);
    line-height: 1.4;
}

.cta-section {
    background: linear-gradient(90deg, #a87f0c 0%, #5c4a11 100%);
    color: var(--color-bg-light);
    padding: 5rem 0 6rem;
    text-align: center;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}

.cta-section h2 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-shadow: 1.5px 1.5px 4px rgba(0, 0, 0, 0.4);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.75rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-section .store-link img {
    max-width: 200px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.cta-section .store-link img:hover,
.cta-section .store-link img:focus {
    transform: scale(1.1);
}

.main-footer {
    background-color: var(--color-secondary);
    color: var(--color-bg-light);
    padding-top: 3rem;
    user-select: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    padding: 0 1rem 3rem;
}

.footer-info h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.footer-info p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #d4cfa3;
}

.footer-links h4,
.footer-legal h4 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.04em;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.7rem;
}

.footer-links a,
.footer-legal a {
    color: #d4cfa3;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-legal a:hover,
.footer-legal a:focus {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(90deg, #5c4a11 0%, #3a2e0f 100%);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #b9b391;
    font-weight: 300;
    letter-spacing: 0.06em;
}

/* Responsive */

@media (max-width: 1024px) {
    .hero-section {
        min-height: 560px;
        padding: 4.5rem 0 6rem;
    }
    .hero-section .container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 3rem;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .hero-image {
        max-width: 100%;
        filter: drop-shadow(0 8px 12px rgba(58, 46, 15, 0.4));
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps-list {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .brand-name {
        font-size: 1.4rem;
    }
    .nav-menu {
        font-size: 0.9rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .feature-card h3 {
        font-size: 1.5rem;
    }
    .feature-card p,
    .step p {
        font-size: 1rem;
    }
    .step-number {
        font-size: 1.8rem;
        width: 3rem;
        height: 3rem;
    }
    .cta-section h2 {
        font-size: 2.4rem;
    }
    .cta-section p {
        font-size: 1.1rem;
    }
    .store-link img {
        max-width: 160px;
    }
}
