* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige-light: #E8DDD0;
    --beige: #D4C4B0;
    --cream: #F0EAE0;
    --warm-grey: #C4B8A8;
    --milk: #F8F5F0;
    --dark-shadow: #2C2C2C;
    --text-dark: #3A3A3A;
    --text-light: #FFFFFF;
    --accent-coral: #FF8A73;
    --font-display: 'Unbounded', sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--warm-grey) 50%, var(--cream) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(232, 221, 208, 0.9) 0%,
        rgba(212, 196, 176, 0.8) 40%,
        rgba(240, 234, 224, 0.9) 80%,
        rgba(248, 245, 240, 1) 100%
    );
    z-index: -1;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(44, 44, 44, 0.1);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px 20px;
    background: rgba(232, 221, 208, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -8px 32px rgba(44, 44, 44, 0.1);
    z-index: 1000;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: rgba(58, 58, 58, 0.6);
    min-width: 60px;
}

.nav-item svg {
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
}

.nav-item.active {
    color: var(--accent-coral);
}

.nav-item.active svg {
    stroke: var(--accent-coral);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    padding: 20px 16px;
    padding-bottom: 100px;
    max-width: 500px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 32px 24px;
    border-radius: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(58, 58, 58, 0.8);
}

/* Ticker (бегущая строка) */
.ticker-wrapper {
    overflow: hidden;
    margin-bottom: 32px;
    padding: 20px 0;
    position: relative;
}

.ticker {
    display: flex;
    gap: 48px;
    animation: scroll 15s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding: 16px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(44, 44, 44, 0.1) !important;
}

.ticker-icon {
    flex-shrink: 0;
    color: var(--accent-coral);
    width: 48px;
    height: 48px;
}

.ticker-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    max-width: 220px;
}

.ticker-text strong {
    font-weight: 700;
    color: var(--accent-coral);
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Carousel Section */
.carousel-section {
    margin-bottom: 32px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 calc(50% - 140px);
}

.carousel-card {
    flex-shrink: 0;
    width: 280px;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
    opacity: 0.6;
}

.carousel-card.active {
    transform: scale(1);
    opacity: 1;
    cursor: pointer;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lock-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.lock-icon[data-locked="true"] {
    color: var(--accent-coral);
}

.lock-icon[data-locked="false"] {
    color: #2ECC71;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: var(--text-light);
}

.card-overlay h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-overlay p {
    font-size: 14px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: rgba(255, 138, 115, 0.8);
}

/* Package Section - Redesigned */
.package-section {
    padding: 0;
    border-radius: 24px;
    margin-bottom: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 165px;
}

.package-section:hover {
    transform: translateY(-4px);
}

.package-image {
    width: 30%;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.package-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.package-subtitle {
    font-size: 13px;
    color: rgba(58, 58, 58, 0.7);
    margin-bottom: 16px;
}

.package-prices {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.price-old-line {
    margin-bottom: 0;
}

.old-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-coral);
    text-decoration: line-through;
    white-space: nowrap;
}

.price-new-line {
    display: flex;
    align-items: center;
}

.new-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #2ECC71;
    white-space: nowrap;
}

.package-info-button {
    background: transparent;
    color: var(--accent-coral);
    border: 2px solid var(--accent-coral);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.package-info-button:hover {
    background: var(--accent-coral);
    color: var(--text-light);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 138, 115, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Expert Section */
.expert-section {
    padding: 0;
    border-radius: 24px;
    margin-bottom: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 165px;
}

.expert-section:hover {
    transform: translateY(-4px);
}

.expert-image {
    width: 30%;
    overflow: hidden;
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expert-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.expert-subtitle {
    font-size: 13px;
    color: rgba(58, 58, 58, 0.7);
    margin-bottom: 16px;
}

.expert-info-button {
    background: transparent;
    color: var(--accent-coral);
    border: 2px solid var(--accent-coral);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.expert-info-button:hover {
    background: var(--accent-coral);
    color: var(--text-light);
}

/* Expert Modal Styles */
.expert-modal-list {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.expert-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-coral);
}

.expert-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(58, 58, 58, 0.8);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px 32px 0 0;
    padding: 24px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.modal-close svg {
    color: var(--text-dark);
}

.modal-image-container {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    text-align: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 16px;
    color: rgba(58, 58, 58, 0.7);
    margin-bottom: 20px;
}

.modal-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(58, 58, 58, 0.8);
    margin-bottom: 32px;
    text-align: left;
    white-space: pre-line;
}

.modal-description strong {
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
}

.modal-price-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.modal-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-coral);
    white-space: nowrap;
}

.modal-buy-button {
    background: linear-gradient(135deg, var(--accent-coral), var(--warm-grey));
    color: var(--text-light);
    border: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 138, 115, 0.3);
    width: 100%;
    max-width: 300px;
}

.modal-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 138, 115, 0.4);
}

/* Package Modal Styles */
.package-modal-prices {
    margin: 24px 0;
}

.package-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(58, 58, 58, 0.1);
}

.package-price-row span:first-child {
    font-size: 14px;
    color: rgba(58, 58, 58, 0.8);
}

.package-old-price {
    font-size: 18px;
    font-weight: 600;
    color: rgba(58, 58, 58, 0.5);
    text-decoration: line-through;
}

.package-price-row.highlight {
    background: rgba(46, 204, 113, 0.1);
    padding: 16px 12px;
    border-radius: 12px;
    margin: 8px 0;
}

.package-new-price {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #2ECC71;
    white-space: nowrap;
}

.package-price-row.save {
    border: none;
}

.package-save-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-coral);
}

.package-modal-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(58, 58, 58, 0.8);
    margin: 24px 0;
    text-align: left;
}

.package-benefits {
    background: rgba(255, 138, 115, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin: 24px 0;
    text-align: left;
}

.package-benefits h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.package-benefits ul {
    list-style: none;
    padding: 0;
}

.package-benefits li {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(58, 58, 58, 0.8);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.package-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ECC71;
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .carousel-card {
        width: 240px;
        height: 320px;
    }

    .carousel-track {
        padding: 0 calc(50% - 120px);
    }

    .hero-title {
        font-size: 24px;
    }

    .package-title {
        font-size: 20px;
    }

    .modal-image-container {
        height: 220px;
    }

    .modal-title {
        font-size: 24px;
    }
}
