/* ===== BASE ===== */
body {
    background: linear-gradient(135deg,#eef2f3,#cfd9df);
    font-family:"Segoe UI",Roboto,sans-serif;
    min-height:100vh;
    margin:0;
}

header {
    height:60px;
    background:#1f2937;
    color:#fff;
    display:flex;
    align-items:center;
    padding:0 25px;
    font-size:1.25rem;
    font-weight:600;
    box-shadow:0 3px 8px rgba(0,0,0,0.2);
}

main {
    padding:10px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    min-height:100vh;
    background:#111827;
    color:#fff;
    padding:20px;
    font-weight:500;
}

.sidebar a {
    color:#fff;
    text-decoration:none;
    display:block;
    padding:10px 0;
    transition:.2s;
}

.sidebar a:hover {
    color:#0ea5e9;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display:flex;
    justify-content:space-around;
    position:sticky;
    top:0;
    z-index:1000;
    background:#111827;
    padding:10px;
    box-shadow:0 4px 10px rgba(0,0,0,.25);
}

.mobile-menu a {
    color:#fff;
    font-weight:600;
    text-decoration:none;
    padding:8px 10px;
    border-radius:8px;
    transition:.2s;
}

.mobile-menu a:hover {
    background:#0ea5e9;
}

/* ===== FORM ===== */
form {
    background:rgba(255,255,255,.95);
    padding:28px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    margin-bottom:40px;
}

.form-control,
textarea {
    border-radius:14px;
    padding:14px 16px;
    border:2px solid #e5e7eb;
    font-size:15px;
    transition:.2s;
}

.form-control:focus,
textarea:focus {
    border-color:#0ea5e9;
    box-shadow:0 0 0 4px rgba(14,165,233,.25);
    outline:none;
}

textarea {
    min-height:120px;
}

/* ===== BUTTON ===== */
button {
    width:100%;
    padding:16px;
    border-radius:16px;
    border:none;
    font-size:17px;
    font-weight:600;
    background:linear-gradient(135deg,#22c55e,#16a34a);
    color:#fff;
    box-shadow:0 12px 30px rgba(34,197,94,.35);
    transition:.25s;
}

button:hover {
    transform:translateY(-2px);
    box-shadow:0 18px 40px rgba(34,197,94,.45);
}

button:active {
    transform:scale(.98);
}

/* ===== ALERTS ===== */
.alert {
    border-radius:12px;
    padding:14px 18px;
}

/* ===== CAPTCHA ===== */
.captcha-img {
    height:46px;
    border-radius:8px;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

/* ===== SERVICES ===== */
.service-card {
    position:relative;
    cursor:pointer;
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#f9fafb);
    border:2px solid #e5e7eb;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
    user-select:none;
}

.service-card:hover {
    transform:translateY(-6px) scale(1.03);
    box-shadow:0 18px 45px rgba(0,0,0,.2);
}

.service-card.active {
    border-color:#22c55e;
    background:linear-gradient(180deg,#ecfdf5,#ffffff);
    box-shadow:0 18px 40px rgba(34,197,94,.3);
}

.service-card.active::after {
    content:"✓ выбрано";
    position:absolute;
    top:12px;
    right:12px;
    background:#22c55e;
    color:#fff;
    font-size:12px;
    padding:4px 8px;
    border-radius:999px;
}

.service-card input {
    display:none;
}

.service-card h5 {
    font-weight:700;
    margin:0;
}

/* ===== ONLINE STATUS ===== */
.online-bar {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    justify-content:center;
}

.online-badge {
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 18px;
    background:#fff;
    border-radius:999px;
    font-size:.95rem;
    font-weight:600;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.dot {
    width:10px;
    height:10px;
    background:#22c55e;
    border-radius:50%;
    animation:blink 1.4s infinite;
}

@keyframes blink {
    0%,100% {opacity:1}
    50% {opacity:.35}
}

.live-status {
    margin-top:12px;
    font-size:14px;
    color:#16a34a;
    display:flex;
    gap:8px;
    align-items:center;
}

/* ===== INFO BLOCK ===== */
.info-block,
.online-side {
    background:rgba(255,255,255,.95);
    padding:22px;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(0,0,0,.15);
}

/* ===== ADAPTIVE ===== */
@media(max-width:767px){
    .sidebar{display:none}
    main{padding:20px}
}
/* ===== FLOATING INPUTS ===== */
.field {
    position: relative;
    margin-bottom: 18px;
}

.field input,
.field textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 16px 14px;
    font-size: 15px;
    background: #ffffff;
    transition: .25s;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

/* Label */
.field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 6px;
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
    transition: .25s ease;
}

/* Focus */
.field input:focus,
.field textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.15);
    outline: none;
}

/* Floating */
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #22c55e;
}

/* Hover */
.field input:hover,
.field textarea:hover {
    border-color: #94a3b8;
}

/* Subtle glow when filled */
.field input:not(:placeholder-shown),
.field textarea:not(:placeholder-shown) {
    background: linear-gradient(180deg,#ffffff,#f9fafb);
}
/* === Ссылки-карточки услуг === */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
}

/* Hover */
.service-link:hover .service-card {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

.service-link:hover img {
    transform: scale(1.05);
}
/* === Кнопка оформления заявки === */
.order-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 38px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6a00, #ff9500);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.35);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255, 106, 0, 0.55);
    background: linear-gradient(135deg, #ff7a1a, #ffae00);
    color: #fff;
}

.order-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}
.online-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 20px 0;
    color: #fff;
    font-size: 14px;
}

.online-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.online-sub {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.9;
}

/* Пульсирующая точка */
.online-dot {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    position: relative;
}

.online-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(46, 204, 113, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}
.map-placeholder {
    position: relative;
    height: 300px;
    cursor: pointer;
    overflow: hidden;

    /* картинка карты */
    background-image: url('/img/map-preview.jpg'); /* СКРИН КАРТЫ */
    background-size: cover;
    background-position: center;

    /* блюр */
    filter: blur(6px);
}

/* светлый слой поверх */
.map-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
}

/* текст */
.map-overlay-text {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    background: rgba(255,255,255,0.9);
    padding: 10px 18px;
    border-radius: 8px;
    pointer-events: none;
}

/* после клика */
.map-placeholder.loaded {
    background: none;
    filter: none;
}

.map-placeholder.loaded::after,
.map-placeholder.loaded .map-overlay-text {
    display: none;
}
mark {
  background-color: #d9d9d9;      /* светло-серый фон */
  color: #FFF;                    /* читаемый текст */
  padding: 0.2em 0.55em;          /* «воздух» вокруг текста */
  border-radius: 0.5em;           /* округлый квадрат */
  box-decoration-break: clone;    /* красиво при переносе строк */
  -webkit-box-decoration-break: clone;
}