/* Пифагор Маршруты — лендинг */

.marshruty-landing {
    --mr-accent: #0085fc;
    --mr-accent-dark: #0056a4;
    --mr-text: #1a1a2e;
    --mr-muted: #5a6270;
    --mr-bg-alt: #f4f8fc;
    --mr-radius: 12px;
    --mr-shadow: 0 4px 24px rgba(0, 53, 128, 0.08);
    color: var(--mr-text);
    font-size: 16px;
    line-height: 1.6;
}

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

.mr-section {
    padding: 72px 0;
}

.mr-section--alt {
    background: var(--mr-bg-alt);
}

.mr-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px;
    color: var(--mr-text);
}

/* Hero */
.mr-hero {
    padding: 48px 0 72px;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 50%, #e8f4fd 100%);
}

.mr-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.mr-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
}

.mr-hero__subtitle {
    font-size: 1.05rem;
    color: var(--mr-muted);
    margin: 0 0 28px;
}

.mr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.mr-hero__note {
    font-size: 0.875rem;
    color: var(--mr-muted);
    margin: 0 0 12px;
}

.mr-link {
    color: var(--mr-accent);
    text-decoration: none;
    font-weight: 500;
}

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

/* Buttons */
.mr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.mr-btn--primary {
    background: var(--mr-accent);
    color: #fff;
    border-color: var(--mr-accent);
}

.mr-btn--primary:hover {
    background: #0070d4;
    border-color: #0070d4;
    color: #fff;
}

.mr-btn--outline {
    background: transparent;
    color: var(--mr-accent);
    border-color: var(--mr-accent);
}

.mr-btn--outline:hover {
    background: rgba(0, 133, 252, 0.08);
    color: var(--mr-accent);
}

.mr-btn--light.mr-btn--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.mr-btn--light.mr-btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.mr-btn--light.mr-btn--primary {
    background: #fff;
    color: var(--mr-accent-dark);
    border-color: #fff;
}

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

/* Screenshot mock */
.mr-screenshot {
    border-radius: var(--mr-radius);
    box-shadow: var(--mr-shadow);
    overflow: hidden;
    background: #fff;
}

.mr-screenshot__bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #e8ecf0;
}

.mr-screenshot__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5cdd6;
}

.mr-screenshot__bar span:first-child { background: #ff6b6b; }
.mr-screenshot__bar span:nth-child(2) { background: #ffd93d; }
.mr-screenshot__bar span:nth-child(3) { background: #6bcb77; }

.mr-screenshot__body img,
.mr-screenshot__zoom img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.mr-screenshot--zoomable .mr-screenshot__zoom {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: #fff;
    cursor: zoom-in;
    position: relative;
    font-family: inherit;
}

.mr-screenshot__hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 40, 80, 0.75);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.mr-screenshot--zoomable:hover .mr-screenshot__hint,
.mr-screenshot--zoomable:focus-within .mr-screenshot__hint {
    opacity: 1;
}

.mr-screenshot--zoomable:hover img,
.mr-screenshot--zoomable:focus-within img {
    filter: brightness(0.92);
}

/* Lightbox */
.mr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mr-lightbox[hidden] {
    display: none !important;
}

.mr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.mr-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 94vh;
    width: 100%;
}

.mr-lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mr-lightbox__img {
    max-width: 100%;
    max-height: calc(94vh - 48px);
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.mr-lightbox__caption {
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 640px;
}

.mr-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}

.mr-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mr-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}

.mr-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mr-lightbox__nav--prev {
    left: -56px;
}

.mr-lightbox__nav--next {
    right: -56px;
}

@media (max-width: 900px) {
    .mr-lightbox__nav--prev {
        left: 4px;
        top: auto;
        bottom: -52px;
        transform: none;
    }

    .mr-lightbox__nav--next {
        right: 4px;
        top: auto;
        bottom: -52px;
        transform: none;
    }

    .mr-lightbox__close {
        top: 8px;
        right: 8px;
        position: fixed;
    }

    .mr-lightbox__dialog {
        padding-bottom: 56px;
    }
}

body.mr-lightbox-open {
    overflow: hidden;
}

/* Gallery under "How it works" */
.mr-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.mr-gallery__item {
    margin: 0;
}

.mr-gallery__item figcaption {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--mr-muted);
}

/* Cards */
.mr-cards {
    display: grid;
    gap: 24px;
}

.mr-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.mr-card {
    background: #fff;
    border-radius: var(--mr-radius);
    padding: 28px;
    box-shadow: var(--mr-shadow);
    border: 1px solid rgba(0, 133, 252, 0.1);
}

.mr-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.mr-card__icon svg {
    width: 100%;
    height: 100%;
}

.mr-card h3 {
    font-size: 1.125rem;
    margin: 0 0 8px;
}

.mr-card p {
    margin: 0;
    color: var(--mr-muted);
    font-size: 0.95rem;
}

/* Problem / Solution */
.mr-compare--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mr-compare__col {
    border-radius: var(--mr-radius);
    padding: 28px;
}

.mr-compare__col--bad {
    background: #fff5f5;
    border: 1px solid #ffc9c9;
}

.mr-compare__col--good {
    background: #f0faf4;
    border: 1px solid #b2f0c8;
}

.mr-compare__col h3 {
    margin: 0 0 16px;
    font-size: 1.125rem;
}

.mr-compare__col ul {
    margin: 0;
    padding-left: 20px;
}

.mr-compare__col li {
    margin-bottom: 8px;
}

/* Features grid */
.mr-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mr-feature {
    padding: 24px;
    background: #fff;
    border-radius: var(--mr-radius);
    box-shadow: var(--mr-shadow);
}

.mr-feature__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    background: rgba(0, 133, 252, 0.12);
    border-radius: 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.mr-feature__icon--route { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Cpath d='M3 17l4-8 4 4 4-6 6 10'/%3E%3C/svg%3E"); }
.mr-feature__icon--calendar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.mr-feature__icon--template { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3C/svg%3E"); }
.mr-feature__icon--table { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M3 15h18M9 3v18'/%3E%3C/svg%3E"); }
.mr-feature__icon--truck { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Crect x='1' y='6' width='15' height='10' rx='1'/%3E%3Cpath d='M16 10h4l2 3v3h-6'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
.mr-feature__icon--marker { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Cpath d='M12 21s-6-5.4-6-10a6 6 0 1112 0c0 4.6-6 10-6 10z'/%3E%3Ccircle cx='12' cy='11' r='2'/%3E%3C/svg%3E"); }
.mr-feature__icon--phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E"); }
.mr-feature__icon--check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.mr-feature__icon--shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230085fc' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }

.mr-feature h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.mr-feature p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mr-muted);
}

/* Steps */
.mr-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}

.mr-step {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: var(--mr-radius);
    box-shadow: var(--mr-shadow);
    position: relative;
}

.mr-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--mr-accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.mr-step h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.mr-step p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--mr-muted);
}

/* Pilot metrics */
.mr-pilot__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--mr-muted);
}

.mr-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mr-metric {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--mr-radius);
    box-shadow: var(--mr-shadow);
    border-top: 4px solid var(--mr-accent);
}

.mr-metric__value {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--mr-accent);
    line-height: 1.2;
}

.mr-metric__label {
    display: block;
    font-size: 0.875rem;
    color: var(--mr-muted);
    margin-top: 8px;
}

/* Comparison table */
.mr-table-wrap {
    overflow-x: auto;
}

.mr-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--mr-radius);
    overflow: hidden;
    box-shadow: var(--mr-shadow);
}

.mr-table th,
.mr-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e8ecf0;
}

.mr-table th {
    background: var(--mr-accent-dark);
    color: #fff;
    font-weight: 600;
}

.mr-table tbody tr:last-child td {
    border-bottom: none;
}

.mr-table__good {
    color: #0d7a3e;
    font-weight: 500;
}

/* Pricing tabs */
.mr-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.mr-tab {
    padding: 12px 24px;
    border: 2px solid var(--mr-accent);
    background: transparent;
    color: var(--mr-accent);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.mr-tab--active,
.mr-tab:hover {
    background: var(--mr-accent);
    color: #fff;
}

.mr-tab-panel[hidden] {
    display: none;
}

.mr-pricing {
    display: grid;
    gap: 24px;
}

.mr-pricing--3 {
    grid-template-columns: repeat(3, 1fr);
}

.mr-price-card {
    background: #fff;
    border-radius: var(--mr-radius);
    padding: 28px;
    box-shadow: var(--mr-shadow);
    border: 1px solid #e8ecf0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mr-price-card--featured {
    border-color: var(--mr-accent);
    box-shadow: 0 8px 32px rgba(0, 133, 252, 0.15);
    transform: scale(1.02);
}

.mr-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mr-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.mr-price-card h3 {
    margin: 8px 0 12px;
    font-size: 1.25rem;
}

.mr-price-card__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mr-accent-dark);
    margin: 0 0 16px;
}

.mr-price-card__price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--mr-muted);
}

.mr-price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.mr-price-card li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.mr-pricing__note {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--mr-muted);
}

.mr-pricing__note a {
    color: var(--mr-accent);
}

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

.mr-faq__item {
    background: #fff;
    border-radius: var(--mr-radius);
    margin-bottom: 8px;
    box-shadow: var(--mr-shadow);
    overflow: hidden;
}

.mr-faq__item summary {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mr-faq__item summary::-webkit-details-marker {
    display: none;
}

.mr-faq__item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--mr-accent);
    flex-shrink: 0;
    margin-left: 12px;
}

.mr-faq__item[open] summary::after {
    content: '−';
}

.mr-faq__item p {
    padding: 0 24px 18px;
    margin: 0;
    color: var(--mr-muted);
    font-size: 0.95rem;
}

/* Form */
.mr-form-section {
    max-width: 720px;
}

.mr-form-wrap {
    background: #fff;
    border-radius: var(--mr-radius);
    padding: 32px;
    box-shadow: var(--mr-shadow);
}

.mr-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mr-form__field {
    position: relative;
}

.mr-form__field--full {
    grid-column: 1 / -1;
}

.mr-form .form-group {
    margin-bottom: 0;
}

.mr-form input[type="text"],
.mr-form input[type="email"],
.mr-form input[type="tel"],
.mr-form select,
.mr-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.mr-form input:focus,
.mr-form select:focus,
.mr-form textarea:focus {
    outline: none;
    border-color: var(--mr-accent);
    box-shadow: 0 0 0 3px rgba(0, 133, 252, 0.15);
}

.mr-form .note {
    position: absolute;
    top: 12px;
    right: 10px;
    color: #e53935;
    z-index: 1;
}

.mr-form .help-block {
    color: #e53935;
    font-size: 0.8rem;
    margin-top: 4px;
}

.mr-form__consent {
    margin-top: 4px;
}

.mr-form__consent .pd-consent-group {
    width: 100%;
}

.mr-form__consent .pd-consent-group .help-block {
    padding-left: 1.75em;
}

/* Final CTA */
.mr-cta-final {
    background: linear-gradient(135deg, var(--mr-accent-dark) 0%, var(--mr-accent) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.mr-cta-final h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 12px;
    color: #fff;
}

.mr-cta-final p {
    margin: 0 0 28px;
    color: #fff;
    opacity: 0.92;
}

.mr-cta-final .mr-hero__actions {
    justify-content: center;
}

/* Sticky mobile login */
.mr-sticky-login {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--mr-accent);
    color: #fff;
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 133, 252, 0.4);
}

/* Tablet */
@media (max-width: 1199px) {
    .mr-hero__inner {
        grid-template-columns: 1fr;
    }

    .mr-hero__visual {
        order: -1;
    }

    .mr-cards--3,
    .mr-features,
    .mr-pricing--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mr-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .mr-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .mr-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .mr-compare--cols {
        grid-template-columns: 1fr;
    }

    .mr-gallery {
        grid-template-columns: 1fr;
    }

    .mr-price-card--featured {
        transform: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .mr-section {
        padding: 48px 0;
    }

    .mr-screenshot__hint {
        opacity: 0.92;
        top: auto;
        bottom: 10px;
        transform: translateX(-50%);
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .mr-cards--3,
    .mr-features,
    .mr-pricing--3,
    .mr-steps,
    .mr-metrics,
    .mr-form__grid {
        grid-template-columns: 1fr;
    }

    .mr-hero__actions {
        flex-direction: column;
    }

    .mr-btn {
        width: 100%;
    }

    .mr-sticky-login {
        display: block;
    }

    .mr-tabs {
        flex-direction: column;
    }

    .mr-tab {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .mr-sticky-login {
        display: none !important;
    }
}
