/* Мобилен изглед. Зарежда се от общия шаблон за екрани под 1024 px. */
.body {
    --mobile-ink: #182438;
    --mobile-muted: #43546a;
    --mobile-line: #d8e1eb;
    --mobile-surface: #f2f5fa;
    --mobile-accent: #b31624;
    --mobile-gutter: clamp(14px, 4vw, 32px);
    background: var(--mobile-surface);
    color: var(--mobile-ink);
    font: 1rem/1.5 Arial, sans-serif;
}

.header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    height: auto;
    padding: 8px var(--mobile-gutter) 12px;
    border-bottom-width: 4px;
    background: #fff;
    box-shadow: none;
}

.logo img {
    display: block;
    width: min(100%, 202px);
    height: auto;
    margin: 0;
}

.mobile-portal {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 3px 12px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    color: var(--mobile-ink);
    font-size: .875rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.contact, .menu {
    grid-column: 1 / -1;
    float: none;
    margin: 0;
}

.contact {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 12px;
    height: auto;
    padding: 4px 0;
    border: 0;
    border-radius: 8px;
    background: var(--mobile-surface);
}

.contact > div {
    display: flex;
    align-items: center;
    gap: 5px;
    float: none;
    width: auto;
    margin: 0;
    color: var(--mobile-ink);
    font-family: Arial, sans-serif;
}

.contact img {
    float: none;
    width: 16px;
    height: auto;
    margin: 0;
}

.contact p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.4;
    text-shadow: none;
}

.contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
}

.contact .c-home {
    cursor: auto;
    padding: 4px 0 8px;
}

.welcome, .tp-banner-container {
    display: none !important;
}

.menu ul, .sitemap ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.menu li, .sitemap li {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 5px 9px;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    font: bold .875rem/1.25 Arial, sans-serif;
    text-align: center;
}

.menu li.focus1 {
    background-color: var(--mobile-accent) !important;
}

.menu li:not(.focus1):hover, .sitemap li:hover {
    background: #e1e9f4;
    color: var(--mobile-ink);
}

.content {
    padding-top: 0;
}

.body .content > .all {
    box-sizing: border-box;
    display: flow-root;
    margin-top: 0;
    padding: 24px var(--mobile-gutter) 32px;
    border-top: 0 !important;
    background: none;
}

.center {
    width: auto;
    margin: 0 auto;
}

.body .seo-h1, .body .prices-h1 {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 20px;
    overflow: visible;
    clip: auto;
    color: var(--mobile-ink);
    font: bold clamp(1.5rem, 4.5vw, 2rem)/1.2 Arial, sans-serif;
    text-align: left;
    text-indent: 0;
    text-shadow: none;
    white-space: normal;
}

.center h2 {
    color: var(--mobile-ink);
    font-size: 1.25rem;
    line-height: 1.3;
    text-shadow: none;
}

.services, #promos, .more-p {
    box-sizing: border-box;
    float: none;
    width: 100%;
    height: auto;
    max-width: 620px;
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--mobile-line);
    border-radius: 12px;
    background: #fff;
}

.services .img-ser, .services .img-ser-p {
    width: auto;
    max-width: min(100%, 185px);
    max-height: 130px;
    margin: 0;
}

.services .disc, .services h1.disc {
    margin: 6px 0 12px;
    padding: 0;
    border: 0;
    color: var(--mobile-ink);
    background: none;
    font: bold clamp(1.25rem, 4.5vw, 1.65rem)/1.2 Arial, sans-serif;
}

.services ul, .services:hover ul {
    margin: 0 0 14px;
    padding: 0 0 0 20px;
    border: 0;
    background: none;
}

.services li {
    margin-bottom: 4px;
    font: inherit;
}

.services :is(.button1, .button2, .button3, .button4),
#promos > a,
#issues > li .button1,
#information .pop-b,
.a-form .button {
    position: static;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    float: none;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--mobile-accent);
    box-shadow: none;
    color: #fff;
    font: bold 1rem/1.3 Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
}

.mid-promo {
    box-sizing: border-box;
    height: auto !important;
    padding: 16px var(--mobile-gutter);
}

.mid-promo p {
    margin: 0 auto;
    max-width: 620px;
}

#promos h2, .more-p h2 {
    margin: 0 0 12px;
    color: var(--mobile-ink);
    font-size: 1.25rem;
    text-shadow: none;
}

#promos img {
    display: block;
    max-width: 100%;
    max-height: 175px;
    object-fit: cover;
    margin: 0 0 12px;
    border-radius: 8px;
    box-shadow: none;
}

#promos > div {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: none;
    color: var(--mobile-ink);
    text-shadow: none;
}

.more-p p {
    width: auto;
    margin: 0;
}

/* На тесен екран новините са списък. Запазваме същите записи от сайта. */
.n-sec {
    margin: 0;
    padding: 14px var(--mobile-gutter);
    background: var(--mobile-ink);
    box-shadow: none;
}

.n-sec h2 {
    margin: 0;
    padding: 0;
}

#timeline {
    height: auto;
    margin: 0 !important;
    padding: 16px var(--mobile-gutter) 24px;
    overflow: visible;
}

#timeline :is(.dati, #grad_left, #grad_right, #next, #prev) {
    display: none !important;
}

#timeline #issues {
    display: grid;
    gap: 12px;
    width: auto !important;
    height: auto;
    max-width: 760px;
    margin: 0 auto !important;
    padding: 0;
    overflow: visible;
}

#issues > li {
    display: flow-root;
    box-sizing: border-box;
    float: none;
    width: auto;
    height: auto;
    padding: 16px;
    border: 1px solid var(--mobile-line);
    border-radius: 12px;
    background: #fff;
}

#issues li img, #issues li.selected img {
    width: 72px;
    height: 72px;
    margin: 0 12px 8px 0;
    border-radius: 8px;
    object-fit: cover;
    transform: none;
    transition: none;
}

#issues li h3 {
    margin: 0 0 8px;
    color: var(--mobile-ink);
    font: bold 1.125rem/1.25 Arial, sans-serif;
}

#issues li p {
    width: auto;
    margin: 0;
    color: var(--mobile-muted);
    font: inherit;
    text-align: left;
}

#issues > li .button1 {
    margin-top: 12px !important;
}

.table-hint {
    display: block;
    margin: 0 0 12px;
    color: var(--mobile-muted);
    font-size: .9rem;
}

.price-table, #tabs > div {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.price-table {
    border: 1px solid var(--mobile-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(24 36 56 / 8%);
}

.price-table + .p-pric {
    margin-top: 16px;
}

.price-table table {
    width: 100%;
    min-width: 610px;
    border-spacing: 0;
    border-radius: 0;
    background-color: #fff;
    background-position: center -48px;
    background-repeat: repeat-y;
    box-shadow: none;
}

.price-table .dop_uslugi {
    min-width: 0;
    table-layout: fixed;
    background-size: max(100%, 610px) auto;
    overflow-wrap: anywhere;
}

.price-table .dop_uslugi td:first-child {
    width: 54%;
}

.price-table table td {
    padding: 10px;
    border: 0;
    border-right: 1px solid rgb(67 84 106 / 16%);
    border-bottom: 1px solid rgb(67 84 106 / 16%);
    border-radius: 0;
    background: rgb(255 255 255 / 62%);
    color: var(--mobile-ink);
}

.price-table table td:last-child {
    border-right: 0;
}

.price-table tbody tr:last-child td {
    border-bottom: 0;
}

.price-table table thead td,
.price-table table .first td,
.price-table table td.first {
    color: #fff;
    background: var(--mobile-ink);
    font-weight: bold;
}

.doc {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    float: none;
    width: 100%;
    height: auto;
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--mobile-line);
    background: #fff;
}

.doc img {
    width: 64px;
    height: 72px;
    margin: 0;
    object-fit: contain;
}

.doc h3 {
    margin: 0;
    color: var(--mobile-ink);
    font: bold 1rem/1.35 Arial, sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
}

.a-all {
    display: grid;
    gap: 12px;
    width: auto;
    max-width: 760px;
    margin: 0 auto;
}

.a-all .seo-h1 {
    margin-bottom: 4px;
}

.a-all :is(.a-info, .a-map, .a-form, .contacs-a) {
    box-sizing: border-box;
    float: none;
    width: 100% !important;
    height: auto !important;
    padding: 16px;
    border: 1px solid var(--mobile-line);
    border-radius: 12px;
    background: #fff;
}

.a-all :is(.a-map, .a-form) {
    padding: 0;
}

.a-info p, .contacs-a p {
    margin: 0;
}

.contacs-a {
    order: -1;
    display: grid;
    gap: 4px;
}

.contacs-a h2 {
    margin: 12px 0 2px;
}

.contacs-a h2:first-child {
    margin-top: 0;
}

.contacs-a p {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: var(--mobile-muted);
}

.contacs-a p img {
    flex: 0 0 24px;
    float: none;
    width: 24px;
    height: 24px;
    margin: 0;
}

.a-all .seo-h1 {
    order: -2;
}

.a-map iframe {
    display: block;
    width: 100%;
    height: clamp(230px, 50vw, 360px);
    border-radius: inherit;
}

.a-form .basic-grey2, #information .basic-grey {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px;
    border-radius: inherit;
    background: #fff;
    color: var(--mobile-ink);
    font: inherit;
    text-shadow: none;
}

.basic-grey2 h2 {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    text-align: left;
}

.basic-grey2 h2 > span {
    display: none;
}

:is(.basic-grey2, .basic-grey) label > span {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    color: var(--mobile-ink);
    text-align: left;
}

:is(.basic-grey2, .basic-grey) label:last-of-type > span {
    display: none;
}

:is(.basic-grey2, .basic-grey, #information) :is(input:not([hidden]):not([type=radio]), select, textarea) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px;
    margin: 4px 0 12px;
    padding: 8px;
    background: #fff;
    color: var(--mobile-ink);
    font: 1rem/1.25 Arial, sans-serif;
    text-align: left;
}

:is(.basic-grey2, .basic-grey, #information) select {
    appearance: auto;
}

.a-form .about-us-p {
    box-sizing: border-box;
    width: auto;
    padding: 16px;
}

.a-form .about-us-img {
    display: block;
    float: none;
    width: 100%;
    height: auto;
    margin: 0 !important;
}

/* Поръчки и запитвания, включително полетата от втората стъпка. */
#information {
    margin: 0;
    padding: 0;
    list-style: none;
}

#information > li[id]:not(:target) {
    display: none;
}

body:has(#information > li:target) {
    overflow: hidden;
}

#information > li[id]:target {
    position: fixed;
    z-index: 100;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 12px var(--mobile-gutter);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgb(12 20 32 / 72%);
}

#information > li[id]:target > div {
    box-sizing: border-box;
    top: 0 !important;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    padding: 16px;
    border-radius: 12px;
    animation: none;
}

#information > li[id]:target > div div {
    position: static;
    box-sizing: border-box;
    float: none !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
}

#information li[id] h3 {
    margin: -16px -16px 16px;
    padding: 14px 56px 14px 16px;
    border-radius: 12px 12px 0 0 !important;
    background: var(--mobile-ink);
    font: bold 1.125rem/1.35 Arial, sans-serif;
    letter-spacing: normal;
    text-shadow: none;
}

#information > li[id]:target div a.close {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    z-index: 60;
    inset: 4px 4px auto auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: var(--mobile-ink);
    box-shadow: none;
    line-height: 1;
}

#information .us-pic, #information .backface, #information .succ-img {
    display: none;
}

#information form, #information fieldset {
    float: none;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
}

#information h2, #information form h2, #information p {
    width: auto;
    margin: 0 0 10px;
    color: var(--mobile-ink);
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
}

#information .radio input[type=radio] {
    display: inline-block;
    accent-color: var(--mobile-accent);
}

#information .radio label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 10px 0 2px;
    padding: 0;
    color: var(--mobile-ink);
}

#information .radio label:before {
    display: none;
}

#information .dop-1 {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    height: auto;
    padding: 8px;
    line-height: 1.3;
    margin-bottom: 6px;
}

#information .pop-b {
    margin: 10px 0 0 !important;
}

#information .succ-p, #information .succ-p2 {
    float: none;
    width: auto;
    margin: 0 0 10px;
}

#tabs ul {
    display: flex;
    flex-wrap: wrap;
}

#tabs ul li a {
    white-space: normal;
}

.footer {
    display: flow-root;
    height: auto;
    padding-top: 0;
    text-align: center;
}

.footer p, .rig, .pow, .pow img, .social {
    position: static;
    float: none;
    height: auto;
    margin: 0;
}

.sitemap {
    margin: 0;
    padding: 8px var(--mobile-gutter);
    background: #e8eef6;
}

.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 4px;
}

.social :is(.facebook, .social-chat, .gp, .mail) {
    display: grid;
    place-items: center;
    float: none;
    width: 54px;
    height: 54px;
    margin: 0;
}

.social img {
    display: block;
    width: 100%;
    height: auto;
}

.social img, .social img:hover {
    margin: 0;
}

.footer .rig {
    padding: 12px var(--mobile-gutter) 6px;
}

.footer .pow {
    padding: 0 var(--mobile-gutter) 10px;
}
