:root {
    --primary-color: #2b5278;
    --secondary-color: #4a76a8;
    --text-color: #333;
    --white: #ffffff;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 80px;
}

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

/* Header styles */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    display: block;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
}

.logo p {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
}

.logo a:hover {
    opacity: 0.9;
}

/* Navigation styles */
.main-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

/* Dropdown menu */
.services-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 250px;
    list-style: none;
    z-index: 1000;
}

.services-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 10px 15px;
    display: block;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

/* Social icons */
.social-icons a {
    color: var(--primary-color);
    font-size: 24px;
    margin-left: 15px;
    text-decoration: none;
}

/* Banner section */
.banner {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Info block */
.info-block {
    padding: 60px 0;
    text-align: center;
}

.info-block p {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0088cc;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.telegram-button:hover {
    background: #006699;
}

/* Advantages section */
.advantages {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 32px;
}

.advantages-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-color);
}

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

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.advantage-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.advantage-item p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: 20px 15px;
    }
}

/* Catalog section */
.catalog {
    padding: 80px 0;
}

.catalog h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 32px;
}

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

.service-item {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    margin-top: auto;
}

.service-button:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 32px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
}

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

.services-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.services-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

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

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.contact-info h3 {
    text-align: center;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.whatsapp-button,
.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.whatsapp-button {
    background: #25D366;
    color: var(--white);
}

.whatsapp-button:hover {
    background: #1ea952;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
    }
    
    .about-content {
        padding: 0 20px;
    }
}

/* How we work section */
.how-we-work {
    padding: 80px 0;
    background: #f8f9fa;
}

.how-we-work h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-size: 32px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    position: relative;
    max-width: 250px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.step a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.step a:hover {
    text-decoration: underline;
}

.step-arrow {
    flex: 0 0 50px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-color) 5px,
        transparent 5px,
        transparent 10px
    );
    position: relative;
    margin-top: 25px;
}

.step-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-color);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Волнообразная анимация для стрелок */
@keyframes wave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.step-arrow {
    animation: wave 2s infinite ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .step {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .step-arrow {
        width: 2px;
        height: 30px;
        margin: 0;
        background: repeating-linear-gradient(
            180deg,
            var(--primary-color),
            var(--primary-color) 5px,
            transparent 5px,
            transparent 10px
        );
    }
    
    .step-arrow::after {
        right: 50%;
        bottom: -6px;
        top: auto;
        transform: translateX(50%) rotate(90deg);
    }
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Стили для активного гамбургера */
.mobile-menu-toggle.active .hamburger {
    background: transparent !important;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg) !important;
    top: 0 !important;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) !important;
    bottom: 0 !important;
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    body {
        padding-top: 90px;
    }

    .mobile-menu-toggle {
        display: block !important;
        z-index: 1002;
        position: relative;
        border: none;
        background: transparent;
        padding: 10px;
        margin-left: 10px;
    }

    .main-nav {
        display: none;
        position: fixed !important;
        top: 90px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        overflow-y: auto;
        z-index: 999;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block !important;
    }

    .main-menu {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-menu > li {
        border-bottom: 1px solid #eee;
        width: 100%;
        margin: 0;
    }

    .main-menu a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        color: var(--text-color);
        text-decoration: none;
    }

    /* Стили для мобильного выпадающего меню услуг */
    .services-dropdown {
        position: relative !important;
    }

    .services-dropdown > a::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.3s;
    }

    .services-dropdown.active > a::after {
        transform: translateY(-50%) rotate(-135deg);
    }

    .dropdown-menu {
        position: static !important;
        display: none;
        width: 100%;
        box-shadow: none;
        background: #f8f9fa;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-menu a {
        padding-left: 40px;
    }

    /* Убираем hover эффект на мобильных */
    .services-dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Стили для гамбургера */
    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        position: relative;
        transition: all 0.3s ease-in-out;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        bottom: -6px;
    }

    .mobile-menu-toggle.active .hamburger {
        background: transparent !important;
    }

    .mobile-menu-toggle.active .hamburger::before {
        transform: rotate(45deg) !important;
        top: 0 !important;
    }

    .mobile-menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) !important;
        bottom: 0 !important;
    }
}

/* Page header styles */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin: 0;
}

/* Page content styles */
.page-content {
    padding: 60px 0;
}

.about-page h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

.about-page h3 {
    color: var(--secondary-color);
    margin: 30px 0 20px;
    font-size: 24px;
}

.about-page p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.benefits-list,
.services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefits-list li,
.services-list li {
    padding: 10px 0 10px 25px;
    position: relative;
}

.benefits-list li:before,
.services-list li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.contact-block {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
}

.contact-block h3 {
    margin-bottom: 15px;
}

.contact-block p {
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 40px 20px;
    }
}

/* FAQ styles */
.faq-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Contacts page styles */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info-block,
.contact-form-block {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.contact-method {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-method i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-method h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
}

.contact-link:hover {
    text-decoration: underline;
}

.working-hours {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Contact form styles */
.contact-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: var(--secondary-color);
}

.additional-info {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* Стили для страниц услуг */
.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.service-description {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-features,
.service-process,
.service-advantages {
    margin-top: 30px;
}

.service-features ul,
.service-process ol,
.service-advantages ul {
    padding-left: 20px;
    margin-top: 15px;
}

.service-features li,
.service-process li,
.service-advantages li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
}

/* Плавающий блок заказа */
.service-order {
    position: sticky;
    top: 20px;
    align-self: start;
}

.order-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.whatsapp-button,
.telegram-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.whatsapp-button {
    background: #25D366;
}

.telegram-button {
    background: #0088cc;
}

.whatsapp-button:hover,
.telegram-button:hover {
    opacity: 0.9;
}

.service-note {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-note ul {
    padding-left: 20px;
    margin-top: 10px;
}

.service-note li {
    margin-bottom: 8px;
    color: #666;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
    }

    .service-order {
        position: static;
    }
}

/* Добавляем медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .logo p {
        display: inline-block;
    }
    
    .logo p::after {
        content: '\A';
        white-space: pre;
    }
}

.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }
}

/* Медиа-запрос для планшетов и больших экранов */
@media screen and (min-width: 769px) {
    body {
        padding-top: 80px;
    }

    .main-nav {
        display: block !important;
    }

    /* Стили для выпадающего меню на десктопе */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }

    .services-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Стили для заголовков */
h1 {
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Дополнительные стили для контейнера */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Стили для основного контента */
main {
    position: relative;
    z-index: 1;
    background: #fff;
} 