:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eff6ff;
    --ink: #111827;
    --muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

.active-touch:active {
    transform: scale(0.96);
    transition: 0.1s;
}

.hero-glow {
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.14), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.shadow-soft {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.widget-frame {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    box-sizing: border-box;
    background: #fff;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
    animation: livePulse 1.8s infinite;
    flex-shrink: 0;
}

.cta-button {
    min-height: 56px;
    text-align: center;
    line-height: 1.2;
}

.quiz-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.quiz-progress__item {
    height: 6px;
    border-radius: 9999px;
    background: #e5e7eb;
    transition: background-color 0.2s ease;
}

.quiz-progress__item.is-active,
.quiz-progress__item.is-complete {
    background: #2563eb;
}

.quiz-option {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #f8fbff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
    border-color: #60a5fa;
    background: #eff6ff;
}

.quiz-option.is-selected {
    border-color: #2563eb;
    background: #dbeafe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.quiz-result {
    animation: quizFadeIn 0.2s ease;
}

.service-card {
    align-items: flex-start;
    gap: 12px;
}

.service-card-price {
    flex-shrink: 0;
    white-space: nowrap;
    padding-left: 8px;
}

.master-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0;
}

.master-image img,
.master-image picture {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.master-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.desc {
    color: #666;
    margin-bottom: 20px;
}

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

.stat {
    background: #f5f6f8;
    padding: 12px;
    border-radius: 12px;
}

.stat strong {
    display: block;
    font-size: 18px;
}

.stat span {
    font-size: 13px;
    color: #777;
}

.buttons {
    display: flex;
    gap: 10px;
}

.btn-call,
.btn-vk {
    flex: 1;
    color: #fff;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.btn-call {
    background: #111827;
}

.btn-vk {
    background: #1e73e8;
}

.repair-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.repair-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.repair-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.repair-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.repair-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.repair-desc span {
    font-weight: 600;
    color: #111;
}

.repair-images .span-2 {
    grid-column: span 2;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s;
}

.faq-item[open] {
    border-color: #93c5fd;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: #111827;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: #2563eb;
    font-weight: 300;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 20px 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

[data-online-only] {
    display: none;
}

body.is-online [data-online-only] {
    display: inline-flex;
}

body.is-online [data-offline-only] {
    display: none;
}

.field-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.field-hint {
    font-size: 12px;
    color: #6b7280;
}

.field-hint.is-error {
    color: #b91c1c;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .master-block {
        flex-direction: row;
        align-items: center;
    }

    .master-image {
        width: 45%;
    }

    .master-info {
        width: 55%;
    }

    .repair-images img {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .widget-frame.map-frame {
        height: 420px;
    }

    .widget-frame.reviews-frame {
        height: 640px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
