/* 
* M&A Эксперт - Основные стили
* Версия: 1.0.0
* Дата: Апрель 2024
*/

/* === Основные настройки === */
:root {
    --primary-color: #1e5288;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #f5f7fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #dddddd;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    --font-size-base: 16px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

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

.btn-secondary {
    background-color: var(--gray-300);
    color: var(--dark-color);
}

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

/* === Хедер и навигация === */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* === Главная страница === */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(30, 82, 136, 0.9), rgba(30, 82, 136, 0.9)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

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

.countdown {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.countdown h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.time-unit .label {
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-top: 0.5rem;
}

.summary {
    background-color: var(--gray-100);
    padding: 3rem 0;
    text-align: center;
}

.summary p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.blog-posts {
    padding: 4rem 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 0.25rem;
    transition: transform var(--transition-speed) ease;
    display: inline-block;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* === Страница статьи === */
.post-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.post-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.post-header .post-meta {
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.post-content {
    padding: 3rem 0;
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

article {
    max-width: 800px;
    margin: 0 auto;
}

article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

article p {
    margin-bottom: 1.5rem;
}

article ul, article ol {
    margin-bottom: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* === Страница О нас === */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    margin: 0;
}

.about-intro {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.mission-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.our-mission {
    background-color: var(--gray-100);
    padding: 4rem 0;
    text-align: center;
}

.team {
    padding: 4rem 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.5rem 0 0.25rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.team-member p:nth-child(3) {
    font-weight: 600;
    color: var(--primary-color);
}

.team-member .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.team-member .social-icons a {
    color: var(--text-light);
}

.team-member .social-icons a:hover {
    color: var(--primary-color);
}

.expertise {
    background-color: var(--gray-100);
    padding: 4rem 0;
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.expertise-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.stats {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.stats h2 {
    color: white;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* === Страница Контакты === */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    margin-right: 1rem;
    min-width: 40px;
    color: var(--primary-color);
}

.contact-text h3 {
    margin-bottom: 0.5rem;
}

.social-contact {
    margin-top: 3rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-200);
    border-radius: 50%;
    color: var(--dark-color);
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.required {
    color: var(--accent-color);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox label {
    margin: 0;
}

.map-section {
    padding: 2rem 0 4rem;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* === Модальное окно === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.thank-you-message {
    padding: 1rem;
}

.thank-you-message svg {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
}

/* === Футер === */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-column p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-column p svg {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    opacity: 0.7;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: white;
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-content {
    padding: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-link {
    font-size: 0.9rem;
}

/* === Адаптивный дизайн === */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .contact-grid, .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed) ease;
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    nav ul li {
        margin: 0 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .timer {
        gap: 1rem;
    }
    
    .time-unit span:first-child {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .footer-links a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .cookie-content {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation .btn {
        width: 100%;
    }
    
    .timer {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .time-unit {
        width: 45%;
        margin-bottom: 1rem;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}
