/* ===== ШРИФТЫ ===== */
@font-face {
    src: url("../fonts/MuseoSansCyrl.otf");
    font-family: MuseoSansCyrillic;
    font-weight: 100;
}
@font-face {
    src: url("../fonts/MuseoSansCyrl_0.otf");
    font-family: MuseoSansCyrillic;
    font-weight: 300;
}
@font-face {
    src: url("../fonts/MuseoSansCyrl_1.otf");
    font-family: MuseoSansCyrillic;
    font-weight: 500;
}
@font-face {
    src: url("../fonts/MuseoSansCyrl_2.otf");
    font-family: MuseoSansCyrillic;
    font-weight: 700;
}
@font-face {
    src: url("../fonts/MuseoSansCyrl_3.otf");
    font-family: MuseoSansCyrillic;
    font-weight: 900;
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #eff6ff;
    --accent-orange: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* ===== ШАПКА ===== */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--bg-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.header-main {
    padding: 16px 0;
}

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

.logo {
    flex-shrink: 0;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}

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

.header-contacts {
    text-align: right;
    flex-shrink: 0;
}

.header-contacts a {
    font-size: 18px;
    font-weight: 600;
    color: var(--bg-dark);
}

.header-contacts p {
    font-size: 12px;
    color: var(--text-light);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
}

.mobile-menu a.active {
    color: var(--primary);
}

.mobile-menu.show {
    display: flex;
}

/* ===== ОСНОВНАЯ СТРУКТУРА ===== */
.main-wrapper {
    padding: 40px 0;
}

.main-wrapper .container {
    display: flex;
    gap: 40px;
}

aside {
    width: 320px;
    flex-shrink: 0;
}

.main {
    flex: 1;
}

/* ===== САЙДБАР ===== */
.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.order-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-widget form .input,
.sidebar-widget form .textarea,
.sidebar-widget form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: inherit;
}

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

.sidebar-widget form .textarea {
    height: 100px;
    resize: vertical;
}

.sidebar-widget form .order-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.sidebar-widget form .order-btn:hover {
    background: var(--primary-dark);
}

.sidebar-menu {
    margin-top: 24px;
    list-style: none;
}

.sidebar-menu > li {
    margin-bottom: 8px;
}

.toggle-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}

.toggle-list:after {
    content: '▼';
    font-size: 10px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.sidebar-menu > li.active .toggle-list:after {
    transform: rotate(180deg);
}

.sub-menu {
    display: none;
    list-style: none;
    padding: 8px 0 8px 20px;
}

.sub-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.2s;
}

.sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-contacts {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.sidebar-contacts p {
    margin: 8px 0;
}

.sidebar-contacts a {
    color: var(--primary);
    font-weight: 500;
}

/* ===== ТЕКСТОВЫЕ БЛОКИ ===== */
.main .text-block {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.main .text-block h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--bg-dark);
}

.main .text-block h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: var(--bg-dark);
}

.main .text-block h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: var(--bg-dark);
}

.main .text-block p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.main .text-block .text-list {
    list-style: none;
    margin: 20px 0;
}

.main .text-block .text-list li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    color: var(--text-dark);
}

.main .text-block .text-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* ===== HERO БЛОК ===== */
.hero-block {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 48px 40px;
    margin-bottom: 48px;
    color: var(--white);
}

.hero-block h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-block h1 span {
    font-weight: 400;
    opacity: 0.9;
}

.hero-block p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== КАРТОЧКИ УСЛУГ ===== */
.services-section h2,
.advantages-section h2,
.cases-section h2,
.faq-section h2,
.forwhom-section h2,
.importance-section h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--bg-dark);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.more-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.advantage-item {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.advantage-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

/* ===== ПРИМЕРЫ РАБОТ ===== */
.cases-list {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.case-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.case-item:last-child {
    border-bottom: none;
}

.case-price {
    font-weight: 700;
    color: var(--primary);
    min-width: 120px;
    font-size: 16px;
}

.case-item p {
    margin: 0;
    font-size: 15px;
}

.cases-cta {
    text-align: center;
    margin-top: 20px;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-question {
    font-weight: 600;
    font-size: 18px;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-answer {
    display: none;
    padding-top: 12px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== ФОРМА ЗАКАЗА ===== */
.order-form {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 40px;
    margin-top: 48px;
}

.order-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
    text-align: center;
}

.order-form .block {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.order-form .input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.order-form .input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.order-form .input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.order-form .order-btn {
    background: var(--accent-orange);
    color: var(--bg-dark);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.order-form .order-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.form-note {
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ПОДВАЛ ===== */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo img {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.5;
}

.footer-menu h4,
.footer-contacts h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-contacts p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.footer-contacts a {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.5;
}

/* ===== ВСПОМОГАТЕЛЬНЫЕ БЛОКИ ===== */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 16px;
    margin: 24px 0;
}

.info-box p {
    margin: 0;
    color: var(--bg-dark);
}

.info-box.yellow {
    background: #fef3c7;
    border-left-color: var(--accent-orange);
}

.services-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.subservice {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 16px;
}

.subservice strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--bg-dark);
}

.subservice span {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.step {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 16px;
}

.step strong {
    display: block;
    margin-bottom: 8px;
    color: var(--bg-dark);
}

.forwhom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.forwhom-item {
    background: var(--white);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.forwhom-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--bg-dark);
}

.forwhom-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== КАРТОЧКИ ЦЕН ===== */
.service-price-block {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.price-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.price-badge.discount {
    background: var(--accent-orange);
    color: var(--bg-dark);
}

/* ===== ТАБЛИЦЫ ===== */
.price-table {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

.price-row:last-child {
    border-bottom: none;
}

.price-name {
    font-size: 15px;
    color: var(--text-dark);
}

.price-value {
    font-weight: 700;
    color: var(--primary);
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-message,
.contact-payment,
.contact-response {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.response-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

/* ===== АДАПТИВ ===== */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .forwhom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .response-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .main-wrapper .container {
        flex-direction: column;
    }
    
    aside {
        width: 100%;
    }
    
    .hero-block {
        padding: 32px 24px;
    }
    
    .hero-block h1 {
        font-size: 28px;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .order-form {
        padding: 24px;
    }
    
    .order-form .block {
        flex-direction: column;
    }
    
    .order-form .input,
    .order-form .order-btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-contacts {
        display: none;
    }
    
    .services-subgrid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero-block h1 {
        font-size: 24px;
    }
    
    .hero-block p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
    }
    
    .case-item {
        flex-direction: column;
        text-align: center;
    }
    
    .case-price {
        margin-bottom: 8px;
    }
    
    .forwhom-grid,
    .contact-info-grid,
    .response-steps {
        grid-template-columns: 1fr;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-value {
        margin-top: 5px;
    }
}