/* Сброс стилей и общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #FFD700;
    --primary-orange: #FFA500;
    --accent-orange: #FF8C00;
    --dark-orange: #FF6600;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Навигация */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 0.8vw, 18px);
    padding: 0 clamp(18px, 2vw, 40px);
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    position: static;
    min-width: 0;
}

.nav-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo span {
    white-space: nowrap;
    line-height: 1.2;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(10px, 0.65vw, 16px);
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.02vw, 1.22rem);
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--dark-orange);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark-orange);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--dark-orange);
}

.social-links {
    display: flex;
    gap: clamp(3px, 0.3vw, 6px);
    align-items: center;
    justify-self: end;
    position: static;
}

.social-links a {
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 3px;
}

.social-links a:hover {
    color: var(--dark-orange);
    transform: scale(1.1);
}

.social-links img {
    height: 18px;
    width: 18px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Стили для страницы книг */
.books-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    text-align: center;
    color: var(--text-dark);
}

.books-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.books-hero p {
    font-size: 1.2rem;
    font-weight: 500;
}

.purchase-examples {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.purchase-example {
    width: 360px;
    height: 540px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.purchase-example:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.purchase-example img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.book-content.reverse {
    direction: rtl;
}

.book-content.reverse > * {
    direction: ltr;
}

.book-content.reverse .book-image img {
    height: auto;
    transform: scaleY(1.3);
}

.book-image {
    text-align: center;
}

.book-image img {
    max-width: 375px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.book-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.book-info h2 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.book-price {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 20px;
}

.book-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.book-features {
    list-style: none;
    margin: 20px 0;
}

.book-features li {
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.book-features i {
    color: var(--primary-orange);
    margin-top: 5px;
    flex-shrink: 0;
}

.how-to-use {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.how-to-use h4 {
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.how-to-use ol {
    margin-left: 20px;
}

.how-to-use li {
    margin: 8px 0;
    font-weight: 500;
}

.payment-info {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 60px 0;
    text-align: center;
    color: var(--text-dark);
}

.payment-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.payment-info p {
    font-size: 1.1rem;
    margin: 10px 0;
    font-weight: 500;
}

.section {
    padding: 20px 0;
    position: relative;
}

.section-alt {
    background: var(--light-bg);
}

/* Адаптивность */
@media (max-width: 2100px) {
    .nav-container {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 16px;
    }

    .nav-logo {
        gap: 8px;
        font-size: 1.05rem;
    }

    .nav-logo img {
        height: 38px;
    }

    .nav-logo span {
        max-width: 215px;
    }

    .nav-menu {
        justify-self: stretch;
        justify-content: center;
        gap: clamp(9px, 0.6vw, 14px);
    }

    .social-links a {
        padding: 1px;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-logo {
        font-size: 1rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-logo span {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .social-links {
        display: none;
    }

    .books-hero h1 {
        font-size: 2rem;
    }

    .book-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .payment-info {
        padding: 30px 20px;
    }

    .purchase-examples {
        gap: 15px;
    }

    .purchase-example {
        width: 300px;
        height: 450px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }
}
/* Desktop header reset for small screens */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }

    .hamburger {
        margin-left: auto;
    }
}

@media (min-width: 1201px) and (max-width: 2100px) {
    .book-info h2 {
        font-size: 1.48rem;
        margin-bottom: 0.85rem;
    }

    .book-price {
        font-size: 1rem;
        padding: 8px 16px;
        margin-bottom: 12px;
    }

    .book-description {
        font-size: 0.94rem;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .book-features {
        margin: 12px 0;
    }

    .book-features li {
        margin: 6px 0;
        gap: 8px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .how-to-use {
        padding: 13px;
        margin: 12px 0;
    }

    .how-to-use h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .how-to-use li {
        font-size: 0.88rem;
        line-height: 1.35;
        margin-bottom: 5px;
    }
}
