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

:root {
    --white: #FFFFFF;
    --bg-block: #F5F7FA;
    --dark-blue: #1A3D7C;
    --brand-blue: #2C5F9E;
    --light-blue: #E8F1FA;
    --green: #2E8B57;
    --light-green: #E6F4EA;
    --cta-orange: #FF7A30;
    --cta-hover: #FFD166;
    --text: #333333;
    --muted: #6B7280;
    --card-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    --radius: 12px;
    --container: 1100px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.5;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
}

ul,
ol {
    list-style: none;
}

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

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

header {
    background: var(--dark-blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 4px 14px rgba(26,61,124,0.06);
}

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

.header-block_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    width: 55px;
    height: 55px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    opacity: 0.95;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
}

.btn-cta {
    background: var(--cta-orange);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 6px 18px rgba(255,122,48,0.16);
    display: inline-block;
}

.btn-cta:hover {
    background: var(--cta-hover);
    color: var(--dark-blue);
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 70;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

.desktop-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-cta-btn {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 64;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.content_section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-block_wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}

h1 {
    color: var(--dark-blue);
    font-size: 34px;
    line-height: 1.2;
    margin: 0;
    font-weight: 800;
}

h2 {
    color: var(--dark-blue);
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
}

h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 20px 0;
}

.lead {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.benefits {
    display: flex;
    gap: 16px;
    flex-direction: column;
    margin: 24px 0 0;
}

.benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text);
    font-weight: 600;
}

.benefit .ico {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.benefit p {
    margin: 0;
    padding-top: 6px;
}

.form_block {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact_form input[type="text"],
.contact_form input[type="tel"] {
    padding: 12px 16px;
    border: 2px solid rgba(44,95,158,0.12);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--white);
}

.contact_form input[type="text"]:focus,
.contact_form input[type="tel"]:focus {
    border-color: var(--brand-blue);
    outline: none;
}

.checkbox-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(44,95,158,0.12);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-wrapper label {
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.4;
}

.contact_form button {
    background: var(--cta-orange);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 6px 18px rgba(255,122,48,0.16);
    font-size: 15px;
}

.contact_form button:hover {
    background: var(--cta-hover);
    color: var(--dark-blue);
}

.blue_fon {
    background: var(--light-blue);
}

.profile_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.card h3 {
    margin: 0 0 10px 0;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.margin_large {
    margin-bottom: 40px;
}

.margin_medium {
    margin-bottom: 24px;
}

.margin_small {
    margin-bottom: 12px;
}

.compare {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

thead th {
    text-align: left;
    padding: 12px 10px;
    color: var(--dark-blue);
    font-weight: 700;
    border-bottom: 2px solid rgba(15,23,42,0.08);
    font-size: 13px;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
}

.sort-arrow {
    display: inline-block;
    margin-left: 6px;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
    cursor: pointer;
    user-select: none;
}

.sortable-header:hover .sort-arrow {
    color: var(--brand-blue);
}

.sortable-header.sorted-asc .sort-arrow,
.sortable-header.sorted-desc .sort-arrow {
    color: var(--brand-blue);
    font-weight: 900;
}

tbody td {
    padding: 16px 10px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(15,23,42,0.04);
    color: var(--text);
}

.delivery-name_wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.name_delivery {
    font-weight: 800;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 100px;
    white-space: nowrap;
}

.logo_delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.img_delivery {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img_delivery.larger {
    object-fit: cover;
    transform: scale(1.15);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat .big {
    font-weight: 800;
    color: var(--brand-blue);
    font-size: 16px;
}

.stat .muted {
    color: var(--muted);
    font-size: 13px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.btn-apply {
    background: var(--brand-blue);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
    width: 100%;
}

.btn-apply:hover {
    background: var(--dark-blue);
}

.details-link {
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.details-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.faq .q {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq .q:hover {
    background-color: rgba(44,95,158,0.02);
}

.faq .q strong {
    color: var(--dark-blue);
}

.toggle-icon {
    font-size: 24px;
    color: var(--muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
    user-select: none;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq .a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--muted);
    line-height: 1.6;
    padding: 0 20px;
}

.faq-item.active .a {
    max-height: 500px;
    padding: 0 20px 18px 20px;
}

.faq .a p {
    margin: 0;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--green);
}

.review .who {
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 12px 0;
}

.review div:last-child {
    color: var(--muted);
    line-height: 1.6;
}

.cta_wrapper {
    background: linear-gradient(135deg, var(--brand-blue), var(--dark-blue));
    color: var(--white);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
    box-shadow: 0 12px 28px rgba(26,61,124,0.12);
    padding: 40px;
}

.text_white {
    color: #ffffff;
}

.text_wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text_wrapper p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

footer {
    background: var(--dark-blue);
    color: var(--white);
}

.footer-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}

.col {
    display: flex;
    flex-direction: column;
}

.logo-footer_wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.logo-footer_wrapper .logo {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

.footer_headline {
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer_paragraph {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer_paragraph a {
    transition: opacity 0.2s;
}

.footer_paragraph a:hover {
    opacity: 0.8;
}

.decor_line {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.text_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-block_wrapper {
        flex-wrap: nowrap;
        padding: 14px 0;
        justify-content: space-between;
    }

    .burger-menu {
        display: flex;
    }

    .desktop-cta {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-blue);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        z-index: 65;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 16px;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-cta-btn {
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }

    .hero-block_wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .content_section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .profile_wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reviews {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cta_wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .text_footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .content_wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    .form_block {
        padding: 20px;
    }

    .card {
        padding: 20px;
    }
}

/* ============================================
   SERVICE DETAIL PAGE STYLES
   ============================================ */

.detail-hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding-top: 60px;
    padding-bottom: 60px;
}

.detail-hero_content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--container);
    margin: 0;
}

.service-logo_wrapper {
    flex-shrink: 0;
}

.service-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.detail-hero_text {
    flex: 1;
}

.detail-content {
    max-width: var(--container);
    margin: 0 auto;
}

.info-block {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.info-block p {
    margin: 0 0 15px 0;
    line-height: 1.8;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block.highlight {
    background: var(--light-green);
    border-left: 4px solid var(--green);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: var(--brand-blue);
}

.info-card p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.work-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--brand-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.step-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.compensation-table {
    background: rgba(44,95,158,0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.compensation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(44,95,158,0.1);
}

.compensation-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.compensation-amount {
    color: var(--text);
}

.compensation-value .big {
    font-weight: 800;
    color: var(--green);
    font-size: 20px;
}

.faq .a ul {
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

.faq .a ul li {
    padding: 5px 0;
    line-height: 1.6;
}

/* Mobile styles for detail page */
@media (max-width: 768px) {
    .detail-hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .detail-hero_content {
        flex-direction: row;
        align-items: center;
    }

    .service-logo {
        width: 50px;
        height: 50px;
    }

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

    .work-steps {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .compensation-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================
   ERROR PAGE (404) STYLES
   ============================================ */

.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.error-page_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.error-page_content {
    text-align: left;
}

.error-page_code {
    font-size: 120px;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 var(--light-blue);
}

.error-page_title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.error-page_text {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-page_actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.error-page_illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-page_illustration svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* ============================================
   LEGAL PAGES (Privacy Policy, Terms) STYLES
   ============================================ */

.legal-page {
    padding: 60px 0;
    background: var(--white);
}

.legal-page_wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page_title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
    text-align: center;
}

.legal-page_updated {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-page_content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.legal-page_content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
}

.legal-page_content h2:first-child {
    margin-top: 0;
}

.legal-page_content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-blue);
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-page_content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 15px;
}

.legal-page_content ul,
.legal-page_content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-page_content ul {
    list-style: disc;
}

.legal-page_content ol {
    list-style: decimal;
}

.legal-page_content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 10px;
    padding-left: 10px;
}

.legal-page_content a {
    color: var(--brand-blue);
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-page_content a:hover {
    color: var(--dark-blue);
}

.legal-page_content strong {
    font-weight: 600;
    color: var(--dark-blue);
}

.legal-page_footer {
    margin-top: 40px;
    text-align: center;
}

/* ============================================
   BUTTON STYLES FOR NEW PAGES
   ============================================ */

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--cta-orange);
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 122, 48, 0.3);
}

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 122, 48, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--brand-blue);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE STYLES FOR NEW PAGES
   ============================================ */

@media (max-width: 768px) {
    .error-page_wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .error-page_content {
        text-align: center;
    }

    .error-page_code {
        font-size: 80px;
    }

    .error-page_title {
        font-size: 28px;
    }

    .error-page_text {
        font-size: 16px;
    }

    .error-page_actions {
        justify-content: center;
    }

    .error-page_illustration {
        order: -1;
    }

    .legal-page_title {
        font-size: 32px;
    }

    .legal-page_content {
        padding: 25px;
    }

    .legal-page_content h2 {
        font-size: 24px;
    }

    .legal-page_content h3 {
        font-size: 18px;
    }

    .legal-page_content p,
    .legal-page_content li {
        font-size: 15px;
    }
}
