:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #f0f0f0;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --danger: #ff6b6b;
    --success: #51cf66;
    --border: #e0e0e0;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --accent: #ff6b35;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

/* HEADER */
header {
    background: white;
    color: var(--text-dark);
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    transition: all 0.3s ease;
}

nav a .logo:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.logo svg {
    width: 40px;
    height: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

nav > a {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

main {
    margin-top: 90px;
    min-height: calc(100vh - 90px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* BUTTONS */
.btn {
    padding: 14px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ALERTS */
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background: rgba(81, 207, 102, 0.1);
    color: #2e7d32;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: #c62828;
    border-left: 4px solid var(--danger);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -2px;
    animation: slideInDown 0.8s ease;
}

.hero p {
    font-size: 22px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CARDS */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 20px;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* PRICING */
.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    transform: scale(1.06);
}

.pricing-card.featured::before {
    content: '⭐ САМЫЙ ПОПУЛЯРНЫЙ';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 26px;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.price {
    font-size: 48px;
    color: var(--primary);
    font-weight: 900;
    margin: 1rem 0;
}

.price-period {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.features {
    text-align: left;
    margin: 2rem 0;
    list-style: none;
}

.features li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--light);
    font-size: 15px;
}

.features li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 800;
    margin-right: 0.7rem;
}

/* FOOTER */
footer {
    background: #f5f7fa;
    color: var(--text-dark);
    padding: 4rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.9;
    font-size: 15px;
    color: var(--text-light);
}

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

.footer-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2.5rem auto 0;
    padding-top: 2.5rem;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 1rem;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* SECTION TITLES */
h2 {
    font-size: 48px;
    text-align: center;
    margin: 4rem 0 2.5rem;
    color: var(--text-dark);
    position: relative;
    font-weight: 800;
    letter-spacing: -1px;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    margin: 1rem auto;
    border-radius: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .grid, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}
