/* ==========================================================================
   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: 1280px;
    --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; }
[hidden] { display: none !important; } /* lai `hidden` darbotos arī elementiem ar display noteikumu */

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 16px;
}

.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 ------------------------------------------------------------- */
/* Datorā: logo | 4 galvenie punkti + „Par mums” (Par klīniku, Ceļveži) | valoda · pieraksts · zvans.
   Mobilajā (≤1099px): logo, zvana poga, izvēlnes poga; atvērtā izvēlne — panelis (galvenie punkti,
   pieraksts, „Par mums” grupa, valoda, zvans). */

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.logo { flex-shrink: 0; }
.logo img { height: 46px; width: auto; }

.site-nav { display: flex; flex: 1; align-items: center; gap: 22px; min-width: 0; }

.nav-main,
.nav-more-list { margin: 0; padding: 0; list-style: none; }
.nav-main { display: flex; gap: 22px; }

.nav-main a,
.nav-more-list a,
.nav-more-btn {
    font: inherit;
    font-weight: 600;
    color: var(--plum);
    text-decoration: none;
    white-space: nowrap;
}
.nav-main a:hover,
.nav-more-list a:hover,
.nav-more-btn:hover,
.nav-main a.active,
.nav-more-list a.active,
.nav-more-btn.active { color: var(--sage); }
.nav-main a.active,
.nav-more-btn.active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.nav-more { position: relative; }
.nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-more-btn::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}
.nav-more.open .nav-more-btn::after { transform: rotate(-135deg); margin-top: 4px; }
.nav-more-title { display: none; }
.nav-more-list {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    min-width: 210px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--stone-light);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.nav-more.open .nav-more-list { display: block; }
.nav-more-list a { display: block; padding: 10px 12px; border-radius: 8px; }
.nav-more-list a:hover { background: var(--cream); }

.nav-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid var(--stone-light);
}

.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
    display: grid;
    place-items: center;
    min-width: 40px;
    padding: 4px 10px;
    border: 1px solid var(--stone-light);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--plum);
}
.lang-switch a:hover { border-color: var(--plum); }
.lang-switch a.active { background: var(--plum); border-color: var(--plum); color: var(--white); }

.nav-book { white-space: nowrap; }

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--plum);
    text-decoration: none;
    white-space: nowrap;
}
.header-phone:hover { color: var(--sage); }

.header-call { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    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;
}

/* Redzams fokuss tastatūrai */
.site-header a:focus-visible,
.site-header button:focus-visible,
.card-row:focus-visible,
.carousel-btn:focus-visible {
    outline: 3px solid var(--sage);
    outline-offset: 3px;
    border-radius: 8px;
}

@media (max-width: 1279px) and (min-width: 1100px) {
    .nav-main, .site-nav { gap: 18px; }
    .nav-tools { gap: 12px; padding-left: 16px; }
    /* Šaurākā datorā — zvans tikai ar ikonu (numurs paliek aria-label) */
    .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 1099px) {
    .header-inner { gap: 8px; }
    .header-call {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 2px solid var(--plum);
        border-radius: 50%;
        color: var(--plum);
    }
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 32px;
        background: var(--white);
        border-top: 1px solid var(--stone-light);
    }
    .site-nav.open { display: flex; }
    .nav-main { order: 1; flex-direction: column; gap: 0; }
    .nav-main a { display: block; padding: 13px 0; font-size: 1.15rem; border-bottom: 1px solid var(--stone-light); }
    .nav-main a.active { text-decoration: none; }
    .nav-tools { display: contents; }
    .nav-book { order: 2; justify-content: center; margin: 20px 0 8px; }
    .nav-more { order: 3; margin-top: 16px; }
    .nav-more-btn { display: none; }
    .nav-more-title { display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
    .nav-more-list { display: block; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; }
    .nav-more-list a { padding: 10px 0; font-size: 1.05rem; }
    .lang-switch { order: 4; margin-top: 20px; }
    .header-phone { order: 5; margin-top: 18px; }
    body.nav-open { overflow: hidden; }

    .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: 32px; padding-bottom: 16px; }

.hero-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    padding: 40px;
    overflow: hidden;
    border-radius: 24px;
    background: #d1d3ca;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 46%;
}
.hero-text h1 { font-size: 3rem; line-height: 1.02; color: var(--white); margin-top: 12px; }
.hero-text p { color: var(--white); font-size: 1.15rem; font-weight: 500; }
.hero-logo { width: 600px; max-width: 100%; margin-bottom: 24px; }

/* Suns nedaudz izlien virs kartītes augšmalas, kā oriģinālajā lapā */
.hero-image {
    position: absolute;
    right: -8%;
    bottom: 0;
    z-index: 0;
    height: calc(100% + 3rem);
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom;
    transform: translateY(.75rem);
    filter: drop-shadow(0 24px 34px rgba(22, 17, 20, .28));
    pointer-events: none;
}

@media (max-width: 1023px) {
    .hero-card { min-height: 360px; }
    .hero-text h1 { font-size: 2.6rem; }
    .hero-logo { width: 240px; }
    .hero-image { right: -22%; height: calc(100% + 2.2rem); }
}

@media (max-width: 639px) {
    .hero { padding-top: 16px; }
    .hero-card { min-height: 334px; padding: 28px 16px; }
    .hero-text { max-width: 56%; }
    .hero-text h1 { font-size: 1.28rem; max-width: 9.5ch; margin-top: 4px; }
    .hero-text p { font-size: .9rem; }
    .hero-text .btn-lg { padding: .7em 1.3em; font-size: .9rem; }
    .hero-logo { width: 140px; margin-bottom: 16px; }
    .hero-image { right: -24%; height: calc(100% + 1.35rem); transform: translateY(.5rem); opacity: .95; }
}

/* --- 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; }
/* Atsauksmes teksts — vienāds augstums (~9 rindas), garākiem poga "Parādīt vairāk" */
.review-text {
    position: relative;
    height: 16em; /* 10 rindas × 1.6 */
    margin: 0 0 10px;
    overflow: hidden;
    font-size: .9rem;
    color: var(--muted);
}
.review-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2em;
    background: linear-gradient(rgba(240, 237, 230, 0), var(--cream));
    pointer-events: none;
}
.review-text p { margin-bottom: .6em; }
.review-text.expanded { height: auto; }
.review-text.expanded::after,
.review-text.fits::after { display: none; }

.review-more {
    align-self: flex-start;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    color: var(--plum);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.review-more:hover { color: var(--plum-dark); }
/* Īsām atsauksmēm pogu nerāda, bet vieta paliek — kartītes paliek vienā augstumā */
.review-more[data-fits] { visibility: hidden; }
.review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .6);
    border-radius: 12px;
}
.avatar {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--plum);
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
}
.review-author { display: block; font-size: .9rem; font-weight: 600; line-height: 1.2; color: var(--plum); }
.stars-sm { display: block; margin: 2px 0 0; font-size: .75rem; letter-spacing: 1px; }

.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(min(320px, 100%), 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,
.service-body h3 { font-size: 1.3rem; }
.service-body h3 a { color: inherit; text-decoration: none; }
.service-body h3 a:hover { text-decoration: underline; }
.service-body p { color: var(--muted); }
.service-body > p:first-of-type { flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-price { font-weight: 700; color: var(--plum); }

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

/* Flex, lai kartītes (arī pēdējā nepilnā rinda) vienmēr ir centrā */
.doctors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.doctor { flex: 0 1 340px; min-width: 260px; text-align: center; display: flex; flex-direction: column; }
/* Poga "Pieteikt vizīti" visās kartītēs vienā līmenī — vienmēr kartītes apakšā */
.doctor > .btn { margin-top: auto; align-self: center; }
.doctor > :nth-last-child(2) { margin-bottom: 16px; } /* atstarpe virs pogas */
.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); }
@media (max-width: 600px) {
    .price-group td { padding: 10px 14px; overflow-wrap: anywhere; }
    .price-group .amount { white-space: normal; overflow-wrap: normal; width: 6.5em; }
}

.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; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

@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; }
}

/* --- E-pasts + Instagram ikona ----------------------------------------- */

.email-ig { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ig-link {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--stone-light);
    border-radius: 50%;
    background: var(--white);
    color: var(--plum);
    text-decoration: none !important;
    transition: background .2s, color .2s, border-color .2s;
}
.ig-link:hover { background: var(--plum); border-color: var(--plum); color: var(--white); }

/* Kājenē (tumšs fons) */
.site-footer .ig-link { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--white); }
.site-footer .ig-link:hover { background: var(--white); border-color: var(--white); color: var(--plum); }

/* --- Soctīklu ikonas kājenē -------------------------------------------- */

.social a { display: inline-flex; align-items: center; gap: 8px; }
.social-icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; }
.social-icon svg { display: block; width: 100%; height: 100%; }
.social a:hover .social-icon { transform: scale(1.08); }
.social-icon { transition: transform .2s; }

/* Kontaktu lapā — soctīklu ikonas zem e-pasta */
.contact-social { display: flex; gap: 10px; margin-top: 4px; }
.contact-social a { display: block; border-radius: 8px; transition: transform .2s, box-shadow .2s; }
.contact-social a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-social .social-icon { width: 36px; height: 36px; }

/* --- Pieraksta forma ---------------------------------------------------- */

.booking { max-width: 900px; }
.booking-form { gap: 24px; }
.booking-form fieldset {
    margin: 0;
    padding: 24px;
    border: 0;
    background: var(--cream);
    border-radius: var(--radius);
}
.booking-form legend {
    float: left;
    width: 100%;
    margin-bottom: 16px;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--plum);
}
.booking-form legend small {
    margin-left: 6px;
    font-size: .8rem;
    font-weight: 500;
    text-transform: none;
    color: var(--muted);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; clear: both; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form label small { font-weight: 400; color: var(--muted); }
.form select {
    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 select:focus { outline: none; border-color: var(--plum); }
.form option:disabled { color: #bbb; }
.field-hint { font-size: .78rem; font-weight: 400; color: var(--muted); }
.booking-notice { margin: 0; font-size: .9rem; color: var(--muted); }
.booking-form button[type="submit"] { justify-self: start; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .booking-form fieldset { padding: 18px; }
}
.form-grid label { align-content: start; }

/* =========================================================================
   2026-11 struktūra: pakalpojumu lapas, katalogs, komanda, mobilā josla
   ========================================================================= */

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--plum);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.arrow-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.arrow-link:hover { text-decoration: underline; }
.btn-light { background: var(--white); color: var(--plum); }
.btn-light:hover { background: var(--cream); color: var(--plum); }

.section-head,
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head .section-title,
.catalog-head .section-title { margin: 0; }

.hero-place { font-size: .95rem !important; opacity: .95; }
.hero-text .btn-row { margin-top: 8px; }

/* Ceļa norāde */
.breadcrumbs { padding-top: 20px; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '→'; margin-left: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--plum); font-weight: 600; }

/* Pakalpojuma lapa */
.svc-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}
.svc-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.svc-hero .lead p { margin-bottom: .6em; }
.svc-hero-img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.svc-place { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.svc-body { padding-bottom: 40px; }
.svc-body > * { max-width: 900px; }
.svc-block { padding: 28px 0; border-top: 1px solid var(--stone-light); }
.svc-block h2 { font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.svc-price-amount { font-size: 1.6rem; font-weight: 800; color: var(--plum); margin-bottom: .4em; }
.svc-doctors { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-doctor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    background: var(--cream);
    border-radius: var(--radius);
    text-decoration: none;
}
.svc-doctor img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.svc-doctor span { display: flex; flex-direction: column; }
.svc-doctor small { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--stone-light); }
.faq summary { padding: 14px 0; font-weight: 700; color: var(--plum); cursor: pointer; }
.faq .prose { padding-bottom: 12px; }
.svc-related { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.svc-related a,
.tag-list a {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--stone-light);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}
.svc-related a:hover,
.tag-list a:hover { border-color: var(--plum); }
.svc-cta { padding: 28px; margin-top: 12px; background: var(--cream); border: 0; border-radius: var(--radius); }

.preview-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 8px 16px;
    background: #8a5a17;
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
}
.preview-bar a { color: var(--white); }

@media (max-width: 860px) {
    .svc-hero { grid-template-columns: 1fr; gap: 20px; }
    .svc-hero-img { order: -1; }
}

/* Katalogs */
.catalog-group { padding-bottom: 8px; }
.service-price { font-weight: 700; color: var(--plum) !important; margin-bottom: 12px; }
.service-foot .arrow-link { margin-right: auto; }

/* Komanda sākumlapā */
.team { display: flex; flex-wrap: wrap; gap: 16px; }
.team-card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 280px;
    max-width: 420px;
    padding: 14px;
    background: var(--cream);
    border-radius: var(--radius);
    text-decoration: none;
}
.team-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.team-card span { display: flex; flex-direction: column; }
.team-card strong { color: var(--plum); font-size: 1.05rem; }
.team-card small { color: var(--muted); }

.review-source { display: block; margin-top: 2px; font-size: .72rem; font-weight: 500; color: var(--muted); }
.contact-cta .btn-row { justify-content: center; margin-top: 16px; }

/* Ārsti */
.doctor-extra { margin: 12px 0; text-align: left; font-size: .9rem; }
.doctor-extra h3 { font-size: .85rem; text-transform: uppercase; margin-bottom: .4em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list a { padding: 4px 12px; font-size: .85rem; }
.tag-list-lg a { padding: 8px 18px; font-size: 1rem; }

/* Cenrādis */
.price-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.price-jump a {
    padding: 4px 12px;
    border: 1px solid var(--stone-light);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}
.price-jump a:hover { border-color: var(--plum); }
.price-group { scroll-margin-top: 150px; }
.price-service { margin: 0; padding: 10px 20px 14px; border-top: 1px solid var(--stone-light); }

/* Kontakti */
.contact-list .span-2 { grid-column: 1 / -1; }

.privacy-note { margin: 0; font-size: .8rem; color: var(--muted); }

/* Mobilā zvana un pieteikuma josla — nepārklāj saturu (body atkāpe) */
.mobile-cta { display: none; }
@media (max-width: 768px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: var(--white);
        border-top: 1px solid var(--stone-light);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    }
    .mobile-cta .btn { justify-content: center; padding: .7em 1em; }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .cookie-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* --- Importētais saturs (includes/content.php) ----------------------------- */
.svc-hero-text-only { grid-template-columns: 1fr; }
.svc-hero-text-only .svc-hero-text { max-width: 900px; }
.content-section > p { max-width: 900px; }
.content-section > h2 { margin-bottom: .6em; }
.content-section .services-grid { margin-top: 8px; }
.content-cards .service-body h3 { font-size: 1.15rem; }
.content-links { margin-top: 16px; }
.content-links + .content-links { margin-top: 10px; }
.content-sub, .faq-item { margin-top: 18px; }
.content-sub h3, .faq-item h3 { margin-bottom: .35em; color: var(--plum); }
.faq-item { padding-bottom: 14px; border-bottom: 1px solid var(--stone-light); }
.faq-item p { margin-bottom: .4em; }
.content-citations ul { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.content-citations li { margin-bottom: .3em; }
.content-citations h2 { font-size: 1.1rem; }
.section-tight { padding-top: 0; }
.page-head-cta .btn-row { justify-content: center; margin-top: 16px; }
.content-doctor p { margin-bottom: .5em; }
.content-doctor .content-links { justify-content: center; }



/* Bez JS: „Par mums” apakšizvēlne atveras ar peli/fokusu */
html:not(.js) .nav-more:hover .nav-more-list,
html:not(.js) .nav-more:focus-within .nav-more-list { display: block; }

/* --- Kartīte kā viena saite (katalogs, sākumlapa, ceļveži) ------------------- */
.card-link { color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.card-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.card-link .service-body h3 { color: var(--plum); overflow-wrap: anywhere; hyphens: auto; }
.card-link .service-body p { flex: 1; margin-bottom: 14px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--plum); }
.card-link:hover .card-more { text-decoration: underline; }
.content-actions { margin-top: 18px; }

/* --- Sākumlapas pakalpojumu rinda (karuselis) ------------------------------- */
.carousel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.carousel-head h2 { margin: 0; }
.carousel-controls { display: flex; align-items: center; gap: 8px; }
.carousel-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--plum);
    border-radius: 50%;
    background: var(--white);
    color: var(--plum);
    font: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}
.carousel-btn:hover:not(:disabled) { background: var(--plum); color: var(--white); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn[hidden] { display: none; }
.card-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 20px) / 4);
    grid-template-columns: none;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
}
.card-row > .card-link { scroll-snap-align: start; }
.card-row .service img { aspect-ratio: 4 / 3; }
@media (max-width: 1279px) { .card-row { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 900px)  { .card-row { grid-auto-columns: calc((100% - 20px) / 2.15); } }
@media (max-width: 600px)  { .card-row { grid-auto-columns: 82%; gap: 14px; } }

/* --- Sākumlapa: kompaktāks pirmais ekrāns telefonā --------------------------- */
@media (max-width: 639px) {
    .hero { padding-top: 10px; padding-bottom: 0; }
    .hero-card { min-height: 0; padding: 18px 16px 20px; }
    .hero-logo { width: 84px; margin-bottom: 6px; }
    .hero-text h1 { margin-bottom: .35em; }
    .hero-text p { margin-bottom: .5em; }
    .hero-text .btn-row { gap: 8px; }
    .hero-text .btn-lg { padding: .6em 1.1em; }
    .services-carousel { padding-top: 20px; }
}

.reasons-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .reasons-2 { grid-template-columns: 1fr; } }

.home-team .team { margin: 8px 0 4px; }
.home-team .content-actions { margin-top: 16px; }

.visit-cta .visit-facts { margin: 12px 0 18px; padding: 0; list-style: none; font-weight: 600; }
.visit-cta .visit-facts li { margin: .3em 0; }
.visit-cta .btn-row { justify-content: center; }
.visit-cta .content-links { justify-content: center; }
.visit-cta > p { max-width: 720px; margin-left: auto; margin-right: auto; }

/* --- Google atsauksmes ------------------------------------------------------ */
.google-reviews { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
.google-reviews-widget { width: 100%; }
.google-reviews-widget gmp-place-details { width: 100%; }

/* --- Ceļveža autors / recenzents / datumi ---------------------------------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.article-meta strong { color: var(--plum); font-weight: 600; }

/* --- Komanda: vienāda formāta kartītes ------------------------------------- */
.doctor-photo img { aspect-ratio: 1; height: auto; object-fit: cover; object-position: 50% 25%; }
.doctor h2 { margin: 0 0 .25em; }
.doctor-role { min-height: 2.9em; display: flex; align-items: flex-start; justify-content: center; margin-bottom: .4em; }
.doctor-extra { text-align: left; }
.doctor > .btn { margin-top: auto; }
@media (max-width: 700px) {
    .doctor { flex-basis: 100%; }
    .doctor-role { min-height: 0; }
}

/* Gari vārdi virsrakstos šauros ekrānos (piem. „VETERINĀRĀRSTS” pie 320 px) */
h1, h2 { overflow-wrap: break-word; }
@media (max-width: 400px) {
    .page-head h1, .svc-hero h1 { font-size: 1.45rem; }
}
@media (max-width: 639px) {
    .hero-text { max-width: 66%; }
    .hero-text h1 { max-width: none; overflow-wrap: normal; font-size: 1.2rem; }
}
@media (max-width: 359px) {
    .hero-text h1 { font-size: 1.05rem; }
}
