/* Reset и основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Top Bar */
.top-bar {
    background: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    color: #3498db;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-contact a:hover {
    color: #2980b9;
}

.top-auth a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
    position: relative;
}

.top-auth a:hover {
    color: #3498db;
}

/* Cart Count */
.cart-count {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
    display: none;
}

.cart-count.has-items {
    display: inline-block;
}

.cart-link.active {
    color: #e74c3c;
}

/* Navigation */
.navbar {
    background: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    margin-right: 12px;
    color: #e74c3c;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 800;
    color: #2c3e50;
}

.logo-sub {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover {
    color: #e74c3c;
}

.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e74c3c;
}

.nav-links .active {
    color: #e74c3c;
}

.nav-links .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e74c3c;
}

.nav-btn {
    background: #e74c3c;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    transition: all 0.3s !important;
}

.nav-btn:hover {
    background: #c0392b !important;
    transform: translateY(-2px);
}

.nav-btn:hover::after {
    display: none !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #3498db;
    transform: translateY(-2px);
}

.btn-check {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 0 5px 5px 0;
}

.btn-check:hover {
    background: #219a52;
}

.btn-card {
    width: 100%;
    text-align: center;
    background: #3498db;
    color: white;
}

.btn-card:hover {
    background: #2980b9;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 18px;
    font-size: 18px;
}

/* Domain Check */
.domain-check {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.domain-check h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.domain-form {
    max-width: 600px;
    margin: 0 auto;
}

.domain-input-group {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.domain-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.domain-input-group select {
    padding: 15px;
    border: none;
    border-left: 1px solid #eee;
    background: white;
    font-size: 16px;
    outline: none;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border: 2px solid #e74c3c;
    transform: scale(1.05);
}

.popular-badge {
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
    width: 150px;
    text-align: center;
}

.card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 16px;
    margin-bottom: 5px;
}

.price {
    font-size: 48px;
    font-weight: 800;
}

.price span {
    font-size: 18px;
    font-weight: normal;
}

.card-features {
    padding: 30px;
}

.card-features ul {
    list-style: none;
}

.card-features li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features i {
    color: #27ae60;
    margin-right: 10px;
    font-size: 14px;
}

.card-footer {
    padding: 0 30px 30px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    color: #3498db;
    margin-top: 5px;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-item p {
    color: #7f8c8d;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .domain-input-group {
        flex-direction: column;
    }
    
    .domain-input-group select {
        border-left: none;
        border-top: 1px solid #eee;
    }
    
    .btn-check {
        border-radius: 0 0 5px 5px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-contact, .top-auth {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .top-contact a, .top-auth a {
        margin: 0 5px;
    }
}
