/* Загальні стилі */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
    font-size: 16px;
    scroll-behavior: smooth;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Лінки */
a {
    color: #ff6f61;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover,
a:focus {
    color: #e64b3c;
}

/* Заголовки */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2a2a2a;
    line-height: 1.2;
}
h1.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
h2 {
    font-size: 2.2rem;
}
h3 {
    font-size: 1.6rem;
}
h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Відступи для параграфів */
p {
    margin-bottom: 1.25rem;
    color: #555;
}

/* Зображення */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Логотип у хедері */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.1);
}
.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ff6f61;
}

/* Навігація */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-menu li a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}
.nav-menu li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6f61;
    transition: width 0.3s ease;
}
.nav-menu li a:hover::after,
.nav-menu li a:focus::after {
    width: 100%;
}

/* Герой-секція */
.hero-section {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: #4a2300;
    padding: 5rem 1rem 6rem;
    margin-bottom: 5rem;
    box-shadow: inset 0 0 100px rgb(255 204 51 / 0.25);
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.download-buttons {
    display: flex;
    justify-content: center;
}
.store-badge {
    max-width: 180px;
    filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.15));
    transition: transform 0.3s ease;
}
.store-badge:hover,
.store-badge:focus {
    transform: scale(1.05);
}

/* Секції з контентом */
.content-section {
    margin-bottom: 6rem;
}

/* Макети сітки */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.grid-layout.reverse {
    grid-template-columns: 1fr 1fr;
}
.grid-layout.reverse > .text-block {
    order: 2;
}
.grid-layout.reverse > .image-block {
    order: 1;
}

/* Текстові блоки */
.text-block h2 {
    margin-bottom: 1.5rem;
}

/* Зображення в текстових секціях */
.img-responsive {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgb(0 0 0 / 0.12);
    transition: transform 0.4s ease;
}
.img-responsive:hover,
.img-responsive:focus {
    transform: scale(1.03);
}

/* Секція з особливостями - картки */
.features-section.bg-light {
    background: #fff;
    padding: 4rem 1rem 6rem;
}
.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ff6f61;
    text-shadow: 0 1px 4px rgb(255 111 97 / 0.4);
}
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
}
.features-list li {
    background: linear-gradient(145deg, #ffe0d6, #ffbfb4);
    border-radius: 18px;
    padding: 1.8rem 2rem;
    box-shadow:
        5px 5px 15px rgb(255 111 97 / 0.3),
        inset 0 2px 6px rgb(255 255 255 / 0.7);
    font-weight: 600;
    color: #6b2a18;
    position: relative;
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}
.features-list li:hover,
.features-list li:focus-within {
    box-shadow:
        8px 8px 25px rgb(255 111 97 / 0.5),
        inset 0 3px 8px rgb(255 255 255 / 0.85);
    transform: translateY(-6px);
}
.features-list li::before {
    content: "✓";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #e64b3c;
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

/* Секція "Як грати" - картки кроків */
.steps-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.steps-list li {
    background: linear-gradient(120deg, #fff9f6, #ffe6de);
    border-radius: 14px;
    padding: 1.6rem 2rem;
    box-shadow: 0 5px 15px rgb(255 111 97 / 0.25);
    font-weight: 600;
    color: #7a3a29;
    border-left: 6px solid #ff6f61;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}
.steps-list li:hover,
.steps-list li:focus-within {
    background: #ffede8;
    transform: translateX(6px);
}
.steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    background-color: #ff6f61;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}
.steps-list {
    counter-reset: step-counter;
}

/* Галерея скріншотів */
.screenshots-section {
    padding: 4rem 1rem 5rem;
    background: #fff;
}
.screenshots-section h2 {
    color: #ff6f61;
    text-shadow: 0 1px 3px rgb(255 111 97 / 0.5);
    margin-bottom: 0.25rem;
}
.screenshots-section p {
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
    font-weight: 500;
}
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 1.8rem;
}
.screenshot-item {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgb(255 111 97 / 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    user-select: none;
}
.screenshot-item:hover,
.screenshot-item:focus {
    transform: scale(1.05);
    box-shadow: 0 14px 40px rgb(255 111 97 / 0.35);
}

/* CTA секція */
.cta-section {
    background: linear-gradient(90deg, #ff726f 0%, #ffb347 100%);
    color: #4a1e0e;
    padding: 5rem 1rem 6rem;
    box-shadow: inset 0 0 100px rgb(255 179 71 / 0.25);
}
.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgb(74 30 14 / 0.35);
}
.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
}
.small-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Футер */
.main-footer {
    background-color: #2c2c2c;
    color: #d1d1d1;
    padding: 4rem 1rem 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    user-select: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 2rem 3rem;
    margin-bottom: 2rem;
}
.footer-brand h3 {
    color: #ff6f61;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-brand p {
    margin-bottom: 0.5rem;
    color: #bbb;
}
.footer-links h4,
.footer-legal h4 {
    color: #ff6f61;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-links ul,
.footer-legal ul {
    list-style: none;
}
.footer-links li,
.footer-legal li {
    margin-bottom: 0.7rem;
}
.footer-links a,
.footer-legal a {
    color: #d1d1d1;
    transition: color 0.3s ease;
}
.footer-links a:hover,
.footer-legal a:hover,
.footer-links a:focus,
.footer-legal a:focus {
    color: #ff6f61;
}
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    color: #999;
}

/* Користувацькі класи */
.text-center {
    text-align: center;
}

/* Інтервал між секціями */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Адаптивність */
@media (max-width: 900px) {
    .grid-layout,
    .grid-layout.reverse {
        grid-template-columns: 1fr;
    }
    .grid-layout.reverse > .text-block,
    .grid-layout.reverse > .image-block {
        order: initial;
    }
    .nav-menu {
        gap: 1rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }
    .logo-text {
        font-size: 1.25rem;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .steps-list {
        grid-template-columns: 1fr;
    }
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 3.5rem 1rem 4rem;
    }
}