/* ==========================================================================
   Abuvet — galvenais stils
   ========================================================================== */

:root {
    --plum: #7e5565;
    --plum-dark: #67434f;
    --sage: #8d957e;
    --sage-dark: #747a6c;
    --stone: #d5d7cf;
    --stone-light: #daded2;
    --cream: #f0ede6;
    --text: #3a3a3a;
    --muted: #6b6b6b;
    --white: #fff;
    --error: #d4183d;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(58, 58, 58, .08);
    --container: 1200px;
    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); }
a:hover { color: var(--plum-dark); }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    color: var(--plum);
    font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding-top: 32px; padding-bottom: 32px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .btn { margin-top: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; font-weight: 600; color: var(--plum); }
.rounded { border-radius: var(--radius); }

.section-title { text-transform: uppercase; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .75em 1.6em;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-dark); color: var(--white); }

.btn-outline { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-outline:hover { background: var(--plum); color: var(--white); }

.btn-sm { padding: .45em 1.1em; font-size: .9rem; }
.btn-lg { padding: .9em 2em; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--stone-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.logo img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul a {
    font-weight: 600;
    text-decoration: none;
    color: var(--plum);
}
.site-nav ul a:hover,
.site-nav ul a.active { color: var(--sage); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.header-phone {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.3;
    text-align: right;
}
.header-phone small { font-size: .7rem; color: var(--muted); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--plum);
    transition: transform .2s, opacity .2s;
}

@media (max-width: 1020px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        background: var(--white);
        border-bottom: 1px solid var(--stone-light);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav ul a { display: block; padding: 8px 0; font-size: 1.1rem; }
    .header-actions { flex-direction: column; align-items: stretch; }
    .header-actions .btn { justify-content: center; }
    .header-phone { text-align: center; }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- Hero --------------------------------------------------------------- */

.hero { padding-top: 24px; }

.hero-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--stone) 0%, #e4e5df 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 48px;
}
.hero-text h1 { color: var(--white); text-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.hero-text p { color: var(--white); font-size: 1.15rem; font-weight: 500; }
.hero-logo { width: 300px; margin-bottom: 24px; }

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 60%;
    object-fit: contain;
    object-position: right bottom;
}

@media (max-width: 760px) {
    .hero-card { flex-direction: column; align-items: stretch; min-height: 0; }
    .hero-text { padding: 32px 24px 0; }
    .hero-logo { width: 200px; }
    .hero-image { position: static; max-width: 100%; height: 280px; margin-left: auto; }
}

/* --- Home: highlights, reasons, reviews --------------------------------- */

.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.highlight {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    text-decoration: none;
}
.highlight img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.highlight:hover img { transform: scale(1.05); }
.highlight h3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px;
    color: var(--white);
    text-transform: uppercase;
    background: linear-gradient(rgba(0, 0, 0, .45), transparent);
}

.reasons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.reason {
    padding: 16px 20px;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius-sm);
}
.reason h3 { text-transform: uppercase; margin-bottom: .25em; }
.reason p { margin: 0; font-size: .9rem; color: var(--muted); }
.reason-filled { background: var(--plum); border-color: var(--plum); }
.reason-filled h3, .reason-filled p { color: var(--white); }

.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.review {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 24px;
    background: var(--cream);
    border-radius: var(--radius);
}
.stars { color: var(--plum); letter-spacing: 2px; margin-bottom: 12px; }
.review-text { margin: 0 0 20px; font-size: .9rem; color: var(--muted); }
.review-text p { margin-bottom: .6em; }
.review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: 999px;
    font-weight: 700;
    color: var(--plum);
}
.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--plum);
    color: var(--white);
}

.contact-cta {
    padding: 40px 24px;
    text-align: center;
    background: var(--stone);
    border-radius: var(--radius);
}
.contact-cta h2 { text-transform: uppercase; }
.contact-cta p { margin: .25em 0; font-weight: 600; }
.contact-cta a { text-decoration: none; }

@media (max-width: 900px) {
    .highlights, .reviews { grid-template-columns: 1fr; }
    .reasons { grid-template-columns: 1fr; }
}

/* --- Page head ---------------------------------------------------------- */

.page-head {
    padding-top: 48px;
    padding-bottom: 16px;
    text-align: center;
}
.page-head p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }

/* --- Cards / About ------------------------------------------------------ */

.cards { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    padding: 24px;
    background: var(--cream);
    border-radius: var(--radius);
}
.card p { margin: 0; color: var(--muted); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.feature-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature-list li {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-left: 4px solid var(--sage);
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.feature-list strong { color: var(--plum); }
.feature-list span { font-size: .9rem; color: var(--muted); }

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 900px) {
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 24px; }
    .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .cards-4 { grid-template-columns: 1fr; }
}

/* --- Services ----------------------------------------------------------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
}
.filters a {
    padding: .5em 1.2em;
    border: 2px solid var(--stone-light);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}
.filters a:hover { border-color: var(--plum); }
.filters a.active { background: var(--plum); border-color: var(--plum); color: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.service {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cream);
    border-radius: var(--radius);
}
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.service-body h2 { font-size: 1.3rem; }
.service-body p { color: var(--muted); flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-price { font-weight: 700; color: var(--plum); }

/* --- Doctors ------------------------------------------------------------ */

.doctors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    justify-content: center;
    gap: 32px;
}
.doctor { text-align: center; }
.doctor-photo { position: relative; margin-bottom: 16px; }
.doctor-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--cream);
}
.badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: .3em .9em;
    background: var(--plum);
    color: var(--white);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}
.doctor h2 { font-size: 1.3rem; margin-bottom: .2em; }
.doctor-role { font-weight: 600; color: var(--sage-dark); margin-bottom: .3em; }

/* --- Prices ------------------------------------------------------------- */

.prices { max-width: 900px; }

.price-search {
    position: sticky;
    top: 77px;
    z-index: 10;
    margin-bottom: 16px;
    padding: 8px 0;
    background: var(--white);
}
.price-search input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid var(--stone-light);
    border-radius: 999px;
    font: inherit;
    color: var(--text);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237e5565' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5'/%3E%3Cpath d='m13.5 13.5 5 5'/%3E%3C/svg%3E") no-repeat 18px center;
}
.price-search input:focus { outline: none; border-color: var(--plum); }
.price-search-empty { margin: 16px 0 0; text-align: center; color: var(--muted); }
.price-group tr[hidden] { display: none; }

.price-group {
    margin-bottom: 12px;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.price-group summary {
    padding: 16px 20px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--plum);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-group summary::-webkit-details-marker { display: none; }
.price-group summary::after { content: '+'; font-size: 1.4rem; line-height: 1; }
.price-group[open] summary { background: var(--cream); }
.price-group[open] summary::after { content: '−'; }

.price-note { margin: 0; padding: 10px 20px; font-size: .85rem; color: var(--muted); font-style: italic; }

.price-group table { width: 100%; border-collapse: collapse; }
.price-group td { padding: 10px 20px; border-top: 1px solid var(--stone-light); vertical-align: top; }
.price-group td small { display: block; color: var(--sage-dark); font-size: .8rem; }
.price-group .amount { text-align: right; white-space: nowrap; font-weight: 700; color: var(--plum); }

.info-box {
    margin-top: 32px;
    padding: 28px;
    background: var(--cream);
    border-radius: var(--radius);
}
.info-box ul { padding-left: 1.2em; }

/* --- Contact ------------------------------------------------------------ */

.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-list h3 { margin-bottom: .3em; }
.contact-list p { margin-bottom: .4em; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--plum); }
.form input,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--stone-light);
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--plum); }
.form button { justify-self: start; }
.field-error { color: var(--error); font-weight: 500; font-size: .85rem; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.alert-success { background: #eef1e8; color: var(--sage-dark); }
.alert-error { background: #fef2f2; color: var(--error); }

.map { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 7; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 600px) {
    .contact-list { grid-template-columns: 1fr; }
    .map { aspect-ratio: 4 / 3; }
}

/* --- Booking / prose ---------------------------------------------------- */

.big-phone { font-size: 1.8rem; font-weight: 800; margin-bottom: 0; }
.big-phone a { text-decoration: none; }

.prose h1 { margin-bottom: .8em; }
.prose h2 { font-size: 1.3rem; margin-top: 1.5em; }
.prose li { margin-bottom: .5em; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
    margin-top: 48px;
    padding-top: 48px;
    background: var(--plum);
    color: rgba(255, 255, 255, .85);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; }

.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-logo { width: 140px; margin-bottom: 16px; }
.social { display: flex; flex-wrap: wrap; gap: 12px; font-size: .9rem; font-weight: 600; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: .8rem;
}
.footer-bottom a { text-decoration: underline; }

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Cookie banner ------------------------------------------------------ */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
    width: calc(100% - 40px);
    max-width: 760px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    transform: translateX(-50%);
    font-size: .85rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-actions { justify-content: center; }
}
