* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #25272c;
    font: 16px/1.55 system-ui,-apple-system,Segoe UI,Arial,sans-serif;
}

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

.wrap {
    max-width: 1140px;
    margin: auto;
    padding: 0 22px;
}

.top {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.2;
}

.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #888;
    margin-top: 5px;
}

.brand-icon {
    background: #c91520;
    color: #fff;
    border-radius: 9px;
    padding: 13px 9px;
    font-size: 16px;
}

.btn {
    border: 0;
    border-radius: 9px;
    background: #c91520;
    color: white;
    display: inline-block;
    padding: 15px 22px;
    font-weight: 750;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background: #a90e17;
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.btn.small {
    padding: 11px 17px;
}

.hero {
    background: #fff7f7;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 45px;
    min-height: 435px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: #c91520;
    font-weight: 850;
}

.hero h1 {
    font-size: clamp(36px,4.5vw,61px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 18px 0;
}

.hero em {
    color: #c91520;
    font-style: normal;
}

.hero p {
    color: #62666e;
    max-width: 500px;
    font-size: 18px;
    margin-bottom: 28px;
}

.hero-graphic {
    min-height: 280px;
    background: linear-gradient(135deg,#c91520,#9c101b);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    box-shadow: 0 18px 40px #bd132329;
}

.hero-graphic strong {
    font-size: 85px;
    letter-spacing: 8px;
    line-height: 1;
}

.hero-graphic span {
    font-size: 13px;
    margin-top: 18px;
}

.graphic-circle {
    width: 57px;
    height: 57px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.perks {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    padding-top: 33px;
    padding-bottom: 33px;
}

.perks>div {
    display: grid;
    grid-template-columns: 45px 1fr;
    align-items: center;
}

.perks b {
    grid-row: span 2;
    font-size: 30px;
    color: #c91520;
}

.perks strong {
    font-size: 16px;
}

.perks span {
    font-size: 13px;
    color: #737780;
}

.booking-section {
    padding-top: 65px;
    padding-bottom: 85px;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 38px;
}

.section-head h2,.contact h2 {
    font-size: clamp(29px,4vw,40px);
    margin: 8px 0;
}

.section-head p,.muted {
    color: #747780;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 25px;
}

.panel {
    padding: 30px;
    border: 1px solid #e7e7e9;
    border-radius: 16px;
    box-shadow: 0 8px 30px #1b1d2608;
}

.monthbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.monthbar h3 {
    margin: 0;
    text-transform: capitalize;
}

.arrow {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    cursor: pointer;
}

.weekdays,.calendar {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 7px;
    text-align: center;
}

.weekdays {
    color: #8b8d94;
    font-size: 12px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.calendar button {
    aspect-ratio: 1;
    border: 0;
    border-radius: 9px;
    background: #f4f5f6;
    font-weight: 650;
    cursor: pointer;
    color: #25272c;
}

.calendar button:hover:not(:disabled) {
    outline: 2px solid #c91520;
}

.calendar button:disabled {
    color: #bbb;
    background: #f8f8f8;
    cursor: not-allowed;
}

.calendar button.full {
    background: #fbe7e8;
    color: #b34c52;
}

.calendar button.selected {
    background: #c91520;
    color: #fff;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin: 18px 0;
    color: #737780;
    font-size: 12px;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.available {
    background: #dceedd;
}

.dot.full {
    background: #f5c7cb;
}

.dot.closed {
    background: #dedee0;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 22px 0;
}

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

.slots button {
    padding: 12px 5px;
    background: #fff;
    border: 1px solid #dfe1e4;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.slots button.active {
    background: #c91520;
    color: white;
    border-color: #c91520;
}

.slots button:disabled {
    background: #f6f6f6;
    color: #b4b4b4;
    cursor: not-allowed;
}

.formpanel h3 {
    margin-top: 0;
}

.formpanel label:not(.consent) {
    display: block;
    font-weight: 700;
    margin: 17px 0 7px;
    font-size: 14px;
}

.formpanel label small {
    font-weight: 400;
    color: #858585;
}

.formpanel input:not([type=checkbox]),.formpanel select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dfe1e4;
    border-radius: 8px;
    background: white;
    font: inherit;
}

.formpanel input:focus,.formpanel select:focus {
    outline: 2px solid #ed9ba0;
}

.selection {
    background: #fff3f3;
    border-left: 4px solid #c91520;
    padding: 13px;
    border-radius: 5px;
    margin: 18px 0;
}

.required {
    color: #c91520;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin: 20px 0;
}

.consent input {
    margin-top: 4px;
}

.submit {
    width: 100%;
}

.trap {
    position: absolute;
    left: -9999px;
}

#message {
    margin-top: 14px;
    font-weight: 600;
}

.contact {
    background: #f7f7f8;
    padding: 65px 0;
}

.contact p {
    color: #565a61;
}

.contact a {
    color: #c91520;
    font-weight: 750;
}

footer {
    background: #24262b;
    color: #c3c5c9;
    padding: 25px 0;
    font-size: 13px;
}

.footerline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,.admin-table td {
    padding: 11px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.admin-table form {
    display: inline;
}

.admin-table button {
    cursor: pointer;
    margin: 2px;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.admin-content {
    padding-bottom: 70px;
}

.status-pending {
    color: #a46d00;
}

.status-approved {
    color: #127d46;
}

.status-rejected {
    color: #b51922;
}

@media (max-width:760px) {
    .nav {
        min-height: 72px;
    }

    .brand {
        font-size: 14px;
    }

    .brand small {
        font-size: 8px;
    }

    .brand-icon {
        font-size: 12px;
    }

    .hero-inner,.booking-layout {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero-graphic {
        min-height: 175px;
    }

    .hero-graphic strong {
        font-size: 54px;
    }

    .hero-graphic .graphic-circle {
        display: none;
    }

    .perks {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .booking-section {
        padding-top: 42px;
    }

    .panel {
        padding: 17px;
    }

    .calendar,.weekdays {
        gap: 4px;
    }

    .calendar button {
        font-size: 13px;
    }

    .footerline {
        flex-direction: column;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}

.header-contact {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}

.header-contact a {
    color: inherit;
    text-decoration: none;
}

@media (max-width:760px) {
    .header-contact {
        font-size: 11px;
        gap: 5px;
        flex-direction: column;
        align-items: flex-start;
    }

}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.service-link {
    background: #fff !important;
    color: #bd1420 !important;
    border: 1px solid #bd1420 !important;
}

.service-link:hover {
    background: #fff3f4 !important;
}

@media (max-width:600px) {
    .nav-actions {
        justify-content: center;
        gap: 7px;
    }

    .nav-actions .btn {
        font-size: 12px;
        padding: 10px 12px;
    }

}

.site-logo {
    max-width: 150px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width:600px) {
    .site-logo {
        max-width: 105px;
        max-height: 48px;
    }

}

/* Administration navigation */
.admin-top-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-top-links .btn {
    font-size: 14px;
    padding: 9px 12px;
    text-decoration: none;
}

.admin-nav {
    gap: 14px;
    flex-wrap: wrap;
}

/* Google Maps location card */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr);
    gap: 36px;
    align-items: center;
}

.contact-details .map-link {
    color: #fff;
    margin-top: 12px;
}

.contact-details .map-link:hover {
    color: #fff;
}

.map-panel {
    overflow: hidden;
    border: 1px solid #e3e4e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px #1b1d2608;
}

.map-panel iframe {
    display: block;
    width: 100%;
    height: 350px;
}

.map-caption {
    margin: 0 !important;
    padding: 12px 16px;
    font-size: 13px;
}

.map-caption a {
    color: #c91520;
}

@media (max-width:760px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .map-panel iframe {
        height: 300px;
    }

}

/* Цветове на часовете и управление на резервации */
.slots button.slot-free {
    background: #e0f5e6;
    border: 2px solid #23934c;
    color: #12652d;
}

.slots button.slot-busy,.slots button.slot-busy:disabled {
    background: #ffe1e1;
    border: 2px solid #d53038;
    color: #a01d25;
    opacity: 1;
    cursor: not-allowed;
}

.slots button.slot-free.active {
    background: #146c35;
    color: #fff;
    border-color: #146c35;
}

.delete-booking {
    background: #a21c25;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

.admin-table td form {
    display: inline-block;
    margin: 2px;
}

/* Dates with at least one free appointment */
.calendar button.day-free:not(.selected) {
    background: #e0f5e6;
    color: #12652d;
}


/* Administration: reservation pagination and calendar availability */
.booking-count {
    margin: 14px 0 8px;
    color: #555;
}

.booking-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
    align-items: center;
}

.booking-pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 7px;
    text-decoration: none;
    background: #fff;
    color: #303030;
}

.booking-pagination a.current {
    background: #b81d2a;
    border-color: #b81d2a;
    color: #fff;
    font-weight: 700;
}

.admin-table td.calendar-state {
    white-space: nowrap;
    font-weight: 600;
}

.admin-table td.calendar-free {
    background: #e1f5e5;
    color: #14632c;
}

.admin-table td.calendar-busy {
    background: #ffe2e2;
    color: #9c1b23;
}

.admin-table td.calendar-blocked {
    background: #f8b9bd;
    color: #7d0d16;
}

.admin-table td.calendar-closed {
    background: #d95760;
    color: #fff;
}
