/* Базовые стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --text-dark: #1A1A2E;
    --text-light: #666;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #E9ECEF;
    --border-color: #DEE2E6;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Хедер */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Гамбургер меню */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 20px;
}

.nav-list li {
    margin-bottom: 10px;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Герой секция */
.hero {
    margin-top: 70px;
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.85) 0%, rgba(0, 61, 107, 0.9) 100%),
                url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1600&q=80') center/cover no-repeat;
    text-align: center;
    position: relative;
}

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

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--bg-white);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Секции */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
}

/* Услуги */
.services {
    background-color: var(--bg-white);
}

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

.service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.service-icon-strategy {
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&q=80');
}

.service-icon-branding {
    background-image: url('https://images.unsplash.com/photo-1558655146-9f40138edfeb?w=800&q=80');
}

.service-icon-lead {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&q=80');
}

.service-icon-sales {
    background-image: url('images/sales.jpg');
}

.service-icon-analytics {
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&q=80');
}

.service-icon-resources {
    background-image: url('images/resources.jpg');
}

.service-content {
    padding: 30px;
    text-align: center;
}

.service-card h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Про нас */
.about {
    background-color: var(--bg-light);
}

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

.about-text h3 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.about-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    max-height: 400px;
}

/* Форма заявки */
.contact-form-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e55a2b 100%);
    color: var(--bg-white);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-wrapper h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--bg-white);
}

.form-description {
    margin-bottom: 35px;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 40px;
    font-size: 18px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #e55a2b;
}

/* Контакты */
.contacts {
    background-color: var(--bg-white);
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    font-size: 16px;
}

/* Футер */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Плавающая кнопка телефона */
.phone-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    color: var(--bg-white);
    cursor: pointer;
}

.phone-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.modal-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.callback-form {
    margin-top: 20px;
}

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

.callback-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.callback-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

.callback-form .btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .service-icon {
        height: 180px;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-image {
        max-height: 300px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 30px 25px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 0;
        background-position: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .service-icon {
        height: 160px;
    }

    .service-content {
        padding: 25px 20px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .about-text h3 {
        font-size: 24px;
    }

    .form-wrapper h2 {
        font-size: 26px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .phone-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .phone-button svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu {
        width: 100%;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.contact-item {
    animation: fadeIn 0.6s ease-out;
}

/* Toast уведомления */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.toast {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: toastSlideIn 0.4s ease-out;
    border-left: 4px solid var(--primary-color);
    min-width: 320px;
}

.toast.success {
    border-left-color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

.toast.warning {
    border-left-color: #F59E0B;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.toast.success .toast-icon {
    color: #10B981;
}

.toast.error .toast-icon {
    color: #EF4444;
}

.toast.warning .toast-icon {
    color: #F59E0B;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
}

.toast-message {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 20px;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-out forwards;
}

/* Адаптация toast для мобильных */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}
