:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 5px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

.phone-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('inc/dom.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-btns .btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn.max {
    background-color: #ff4c4c; /* Цветовой акцент для Max.ru */
    color: var(--white);
}

.btn:hover {
    opacity: 0.9;
}

/* About & Features */
section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
}

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

.feature-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Video Section */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    display: block;
}

/* Services */
.services {
    background-color: var(--bg-light);
}

.services ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.services li {
    background: var(--white);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 5px solid var(--secondary-color);
    font-size: 1.1rem;
}

/* Contacts */
.contact-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.contact-card .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    word-break: break-all;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* Popular Pages Section */
.popular-pages {
    background-color: var(--white);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tag-item:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Page Specific Enhancements */
.content-detail {
    padding: 60px 0;
    line-height: 1.8;
}

.content-detail h2 {
    text-align: left;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.info-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
}

.cta-box h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-box p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-box .btn.primary {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.cta-box .btn.primary:hover {
    background: transparent;
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav {
        margin: 15px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
