        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #1e88e5;
            --primary-light: #64b5f6;
            --primary-dark: #1565c0;
            --secondary: #00bcd4;
            --light-bg: #f8f9fa;
            --card-bg: #ffffff;
            --text-dark: #333333;
            --text-muted: #6c757d;
            --border-color: #e0e0e0;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            --success: #28a745;
        }

        body {
            background-color: var(--light-bg);
            color: var(--text-dark);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            line-height: 1.6;
           background: url("../img/back.png") no-repeat center center / cover fixed;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 40px;
            border-bottom: 1px solid var(--border-color);
            background-color: rgba(255, 255, 255, 0.95);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
        }
        .logo a img{
        transition: transform 0.3s, box-shadow 0.3s;
        }
        .self-buy-button{
        all: unset;
        margin-left:10px;
        font-weight: 600;
        color: var(--primary);
        }

        .star-icon {
            width: 38px;
            height: 38px;
            object-fit: contain;
            margin-bottom:-10px;
        }

        /* Стили для вкладок */
.tabs {
    display: flex;
    margin: 30px 0 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.tab:hover:not(.active) {
    color: var(--primary-dark);
    background-color: rgba(30, 136, 229, 0.05);
}

/* Стили для истории покупок */
.history-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-dark);
}

.history-items {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.stars-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.auth-required {
    text-align: center;
    padding: 40px 0;
}

.auth-required h3 {
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hidden {
    display: none;
}


        .logo i {
            color: var(--primary-dark);
        }

                .logo-img{
        width:150px;
        height:60px;
         }

        .connect-btn {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: var(--shadow);
        }

        .connect-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(30, 136, 229, 0.25);
        }

        .main-container {
            max-width: 1200px;
            width: 90%;
            margin: 40px auto;
            flex: 1;
        }

        .hero {
            text-align: center;
            margin-bottom: 40px;
            padding: 0 20px;
        }

        .hero h1 {
            font-size: 2.7rem;
            margin-bottom: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            color: var(--text-dark);
            font-weight: 700;
        }


        .hero p {
            font-size: 1.2rem;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.7;
        }

        .card {
            background-color: var(--card-bg);
            border-radius: 16px;
            padding: 40px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .form-group {
            margin-bottom: 30px;
        }

        .form-group label {
            display: block;
            margin-bottom: 12px;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-dark);
        }

        .input-field {
            width: 100%;
            background-color: #ffffff;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            padding: 16px 20px;
            font-size: 1rem;
            color: var(--text-dark);
            transition: all 0.3s;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
        }

        .input-field::placeholder {
            color: #adb5bd;
        }

        #h3-war{
        padding-bottom:15px;
        }

        #history-card{
        margin:0px;
        }

        .package-section h3 {
            margin: 40px 0 25px;
            font-size: 1.3rem;
            color: var(--text-dark);
            font-weight: 600;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .packages-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .package {
            background: #ffffff;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .package:hover {
            transform: translateY(-7px);
            border-color: var(--primary-light);
            box-shadow: var(--hover-shadow);
        }

        .package.selected {
            border-color: var(--primary);
            background: linear-gradient(145deg, #f0f9ff, #e1f5fe);
            box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
        }

        .package-header {
            display: flex;
            align-items: center;
            margin-bottom: 18px;
        }

        .package-radio {
            margin-right: 15px;
            width: 20px;
            height: 20px;
            accent-color: var(--primary);
        }

        .package-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .stars-count {
            margin-left: 8px;
            font-size: 1.3rem;
        }

        .package-details {
            padding-left: 35px;

        }

        .package-details div {
            margin-bottom: 10px;
            display: flex;
            gap:10px;
            font-size: 1.05rem;
        }

        .package-details .label {
            color: var(--text-muted);
            font-weight: 500;
        }
        #contact-phone{
        padding-bottom:8px;
        font-size:1.1rem;
        color: #696969;
        }

        .package-details .value {
            font-weight: 600;
            color: var(--text-dark);
        }
        #package-price {
        font-weight: 650;
        }
        #package-price2 {
        font-weight: 650;
        }
        .show-more {
            display: inline-flex;
            align-items: center;
            margin-top: 25px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            cursor: pointer;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 8px;
        }

        .show-more:hover {
            color: var(--primary-dark);
            background-color: rgba(30, 136, 229, 0.05);
        }

        .buttons-container {
            display: flex;
            gap: 20px;
            margin-top: 40px;
            flex-wrap: wrap;
        }
        #history-star{
        margin-bottom:0px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 18px 36px;
            border-radius: 12px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            flex: 1;
            min-width: 280px;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
            padding: 18px 36px;
            border-radius: 12px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            flex: 1;
            min-width: 280px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .btn-secondary:hover {
            background-color: rgba(30, 136, 229, 0.08);
            transform: translateY(-2px);
        }

        footer {
            padding: 50px 20px 30px;
            margin-top: auto;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 100px;
            align-items:center;
        }

        .footer-logo {
            flex: 1;
            min-width: 280px;
        }

        .footer-logo .logo {
            font-size: 1.6rem;
            margin-bottom: 10px;
        }

        .footer-logo p {
            color: var(--text-muted);
            max-width: 300px;
            line-height: 1.7;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 50px;
            align-items:center;
        }

        .link-group h4 {
            margin-bottom: 20px;
            color: var(--text-dark);
            font-size: 1.2rem;
            font-weight: 600;
        }

        .link-group ul {
            list-style: none;
        }

        .link-group li {
            margin-bottom: 14px;
        }

        .link-group a {
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.3s;
            display: block;
            padding: 4px 0;
        }
        #error{
        padding-left:8px;
        color:#B22222;
        font-weight:600;
        }
        .footer-links a {
            color: var(--text-dark);
            text-decoration: none;
            font-size: 1.05rem;
            font-weight: 500;
            transition: all 0.3s;
            position: relative;
            padding: 0px 0;
            font-weight:500;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 5px;
            flex-wrap: wrap;
            flex-direction:column;
        }


        .copyright {
            text-align: center;
            padding-top: 30px;
            color: var(--text-muted);
            font-size: 0.95rem;
            border-top: 1px solid var(--border-color);
            margin-top: 40px;
            padding-top: 25px;
            max-width: 1200px;
            margin: 40px auto 0;
        }

        .additional-packages {
            display: none;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 25px;
        }

        .additional-packages.show {
            display: grid;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .package-badge {
            position: absolute;
            top: 15px;
            right: -30px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 5px 35px;
            font-size: 0.85rem;
            font-weight: 600;
            transform: rotate(45deg);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .stats-container {
            display: flex;
            justify-content: space-around;
            max-width: 800px;
            margin: 40px auto;
            flex-wrap: wrap;
            gap: 20px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            flex: 1;
            min-width: 200px;
        }
        .logo a img{
        margin-top:5px;;
        }
        .logo a img:hover{
        transform: translateY(-5px);
        }

        .stat-card .number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .stat-card .label {
            color: var(--text-muted);
            font-size: 1.1rem;
        }

        @media (max-width: 992px) {
            .hero h1 {
                font-size: 2.3rem;
            }
            
            .card {
                padding: 30px;
            }
        }

        @media (max-width: 768px) {
            header {
                padding: 15px 20px;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            .card {
                padding: 25px;
            }
            
            .buttons-container {
                flex-direction: column;
            }
            
            .btn-primary, .btn-secondary {
                width: 100%;
                min-width: auto;
            }
            
            .footer-content {
                flex-direction: column;
                gap: 30px;
            }

            .footer-logo {
                min-width: 100%;
            }
        }
        @media (max-width: 525px){
                    .hero h1 {
                font-size: 1.8rem;
            }
        }
        @media (max-width: 480px) {
            .hero h1 {
            font-size: 2rem;
            line-height: 35px;
            }

            .logo {
            display: flex;
            align-items: center;
            gap: 0px;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary);
            margin-left:-20px;
        }
        .logo a img{
        width:24px;
        height:24px;
        }
        .logo img{
        width:120px;
        height:40px;
        }

            .star-icon{
            display:none;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .packages-container, .additional-packages {
                grid-template-columns: 1fr;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 15px;
            }

            .connect-btn {
                padding: 7px 9px;
                font-size: 0.9rem;
            }
            .self-buy-button{
            all: unset;
            margin-left:10px;
            font-weight: 600;
            color: var(--primary);
            font-size:14px;
            }
        }
        @media (max-width: 425px) {
        .hero h1 {
        font-size: 1.8rem;
        line-height: 35px;
            }

        }
        /* Футер */
/* Футер светлый */
footer {
    background-color: #ffffff;
    color: #333333;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    flex: 1 1 250px;
}

.footer-logo .logo-img {
    width: 150px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

.footer-links {
    flex: 2 1 500px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer-links h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #111111;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 5px;
}

.footer-links p,
.footer-links a {
    font-size: 14px;
    color: #555555;
    margin: 5px 0;
    text-decoration: none;
}

.footer-links a:hover {
    color: #000000;
    text-decoration: underline;
}

footer .copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #888888;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
}

    
    
    