/* ======================================
   ГЛОБАЛЬНЫЕ СТИЛИ
   ====================================== */

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

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-secondary: #10b981;
    --color-whatsapp: #25d366;
    --color-telegram: #0088cc;
    --color-dark: #1f2937;
    --color-text: #374151;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-border: #e5e7eb;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ======================================
   ТИПОГРАФИЯ
   ====================================== */

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ======================================
   КНОПКИ
   ====================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

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

.btn-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ======================================
   HEADER / ШАПКА
   ====================================== */

.header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Навигация */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

/* Выпадающее меню */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: " ▾";
    font-size: 0.8em;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 250px;
    list-style: none;
    margin-top: 0.5rem;
}

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

.nav-dropdown-menu li {
    padding: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.header-contacts {
    display: flex;
    gap: 1rem;
}

/* ======================================
   HERO СЕКЦИЯ
   ====================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

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

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======================================
   СЕКЦИИ
   ====================================== */

.section {
    padding: 4rem 0;
}

.section-bg {
    background-color: var(--color-bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

/* ======================================
   СЕТКА КАРТОЧЕК
   ====================================== */

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

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ======================================
   ПРЕИМУЩЕСТВА
   ====================================== */

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

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

.feature-content p {
    color: var(--color-text-light);
}

/* ======================================
   ЭТАПЫ РАБОТЫ
   ====================================== */

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 60px;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-text-light);
}

/* ======================================
   КОНТАКТНЫЙ БЛОК
   ====================================== */

.contact-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contact-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======================================
   FAQ / АККОРДЕОН
   ====================================== */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-question.active::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ======================================
   КОНТАКТЫ
   ====================================== */

.contacts-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

.contact-item p {
    color: var(--color-text-light);
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ======================================
   FOOTER / ПОДВАЛ
   ====================================== */

.footer {
    background-color: var(--color-dark);
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

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

.footer-title {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-text {
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
}

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

.footer-messengers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-hours {
    color: #9ca3af;
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    margin-bottom: 0;
}

/* ======================================
   СТРАНИЦА УСЛУГИ
   ====================================== */

.service-page {
    padding: 3rem 0;
}

.service-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.service-content {
    margin: 3rem 0;
}

.service-advantages {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.service-advantages ul {
    list-style: none;
    padding: 0;
}

.service-advantages li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.service-advantages li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ======================================
   АДАПТИВНОСТЬ
   ====================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .header-contacts {
        display: flex;
        gap: 0.5rem;
    }
    
    .header-contacts .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons,
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}
