/* Treat Your Paws – stilius pagal Canva dizainą */

@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 600 900;
  src: url(../fonts/fraunces-800.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/lexend-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/lexend-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --blue: #5a7bd2;
  --blue-dark: #4768c2;
  --blue-deep: #3551a3;
  --blue-light: #7495eb;
  --blue-soft: #bcc8e8;
  --blue-wash: #eef2fc;
  --yellow: #f8f5b4;
  --star: #ffce38;
  --ink: #2b3a67;
  --muted: #6b77a0;
  --line: #d6def5;
  --white: #fff;
  --ok: #2f8f5b;
  --ok-bg: #e5f5ec;
  --warn: #9a6a00;
  --warn-bg: #fff4d6;
  --err: #b4364a;
  --err-bg: #fde8ec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(71, 104, 194, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 350; color: var(--ink); background: var(--white); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; color: var(--blue); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; color: var(--blue-dark); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.paw { color: var(--yellow); pointer-events: none; }
.i { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; display: inline-block; }


/* Mygtukai */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 1.5px solid var(--blue-dark); background: var(--blue-dark); color: #fff; font: 500 .95rem/1 var(--sans); padding: .72em 1.35em; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-wash); color: var(--blue-deep); }
.btn-white { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-white:hover { background: var(--yellow); border-color: var(--yellow); color: var(--blue-deep); }
.btn-sm { font-size: .82rem; padding: .5em 1em; }
.btn-lg { font-size: 1.05rem; padding: .9em 1.8em; }
.btn-danger { background: #fff; color: var(--err); border-color: #e7b3bd; }
.btn-danger:hover { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Antraštė */
.topbar { background: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span { font: 800 clamp(1.25rem, 3.2vw, 2rem)/1 var(--serif); color: var(--blue); letter-spacing: .01em; text-transform: uppercase; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-actions form { margin: 0; }
.mainnav { background: var(--blue); }
.mainnav ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.mainnav a { display: block; text-align: center; color: #fff; text-decoration: none; padding: 9px 8px; font-weight: 400; }
.mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--blue-dark); }

/* Pranešimai */
.flashes { margin: 18px auto 0; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cd; }
.flash-error { background: var(--err-bg); color: var(--err); border-color: #f2c2cb; }
.flash-info { background: var(--blue-wash); color: var(--blue-deep); border-color: var(--line); }

/* Pradinis – hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 90px) 0 clamp(64px, 9vw, 110px); text-align: center; }
.hero .paw { position: absolute; width: min(330px, 46vw); right: max(4vw, calc(50% - 420px)); top: 30px; opacity: .95; }
.hero h1 { position: relative; color: var(--blue); max-width: 15ch; margin: 0 auto .35em; }
.hero .lead { position: relative; color: var(--blue); font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 38ch; margin: 0 auto 2em; }
.searchbar { position: relative; display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; background: var(--blue-dark); padding: 12px 24px; border-radius: 22px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); }
.searchbar .field { position: relative; }
.searchbar .field svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #fff; opacity: .9; pointer-events: none; }
.searchbar input, .searchbar select { width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.75); background: rgba(255,255,255,.45); color: #fff; font: 400 1rem var(--sans); padding: 0 16px 0 40px; appearance: none; -webkit-appearance: none; }
.searchbar input::placeholder { color: #fff; opacity: .95; }
.searchbar select option { color: var(--ink); }
.searchbar input:focus, .searchbar select:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.searchbar .btn { height: 44px; min-width: 150px; background: #fff; color: var(--blue-dark); border-color: #fff; font-weight: 600; }
.searchbar .btn:hover { background: var(--yellow); border-color: var(--yellow); }
.band { height: 48px; background: var(--blue); }

/* Privalumai */
.features { position: relative; padding: 64px 0 40px; text-align: center; }
.features .paw { position: absolute; width: 170px; left: max(2vw, calc(50% - 470px)); top: 18px; }
.features h2 { position: relative; font: 500 1.2rem var(--sans); color: var(--blue-dark); margin-bottom: 32px; }
.feature-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center; gap: clamp(20px, 7vw, 74px); }
.feature { display: grid; justify-items: center; gap: 14px; color: var(--blue-dark); font-weight: 500; }
.feature .ico { width: 96px; height: 82px; border-radius: 18px; background: var(--blue-dark); display: grid; place-items: center; color: #fff; }
.feature .ico svg { width: 48px; height: 48px; }

/* Kvietimas specialistams */
.cta { position: relative; margin: 48px auto 72px; background: var(--blue); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 48px) 24px; text-align: center; }
.cta h2 { color: #fff; text-transform: uppercase; max-width: 22ch; margin: 0 auto .4em; }
.cta p { font-size: 1.1rem; font-weight: 500; }
.cta .paw { position: absolute; width: 120px; right: -10px; top: -56px; }

/* Specialistų kortelės */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.cards > * { min-width: 0; }
.card { background: #fff; border: 1.5px solid var(--blue); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .photo { aspect-ratio: 16 / 9.4; object-fit: cover; width: 100%; background: var(--blue-wash); }
.card .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 600; color: var(--blue-dark); font-size: 1.05rem; text-decoration: none; }
.card .addr { color: var(--blue-dark); font-size: .92rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card .actions { margin-top: auto; padding-top: 12px; display: flex; justify-content: center; }
.card .actions .btn { min-width: 62%; }
.rating { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--blue-dark); }
.stars { display: inline-flex; gap: 2px; }
.star { width: 17px; height: 17px; }
.star.on { fill: var(--star); }
.star.half { fill: var(--star); opacity: .55; }
.star.off { fill: #dde3f3; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-dark); font-weight: 500; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-err { background: var(--err-bg); color: var(--err); }
.tag svg { width: 13px; height: 13px; }

/* Kategorijos antraštė */
.cat-hero { position: relative; overflow: hidden; background: var(--blue-light); color: #fff; padding: 34px 0 30px; }
.cat-hero h1 { color: #fff; margin-bottom: .35em; }
.cat-hero .paw { position: absolute; width: 230px; right: max(2vw, calc(50% - 560px)); top: 18px; }
.cat-hero p { margin: 0 0 10px; font-size: 1.1rem; }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-block; background: #fff; color: var(--blue-dark); border: 1.5px solid #fff; border-radius: 999px; padding: 4px 26px; text-decoration: none; font-size: .95rem; }
.chip:hover, .chip.active { background: var(--yellow); border-color: var(--yellow); color: var(--blue-deep); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; position: relative; }
.cat-tabs a { color: #fff; text-decoration: none; font-size: .9rem; padding: 3px 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; }
.cat-tabs a.active, .cat-tabs a:hover { background: rgba(255,255,255,.2); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 18px 0 26px; }
.toolbar .left, .toolbar .right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill-input { height: 32px; border: 1.5px solid var(--blue); border-radius: 999px; padding: 0 16px; font: 400 .95rem var(--sans); color: var(--blue-dark); background: #fff; min-width: 140px; }
.pill-input.wide { min-width: 250px; }
details.filters { position: relative; }
details.filters summary { list-style: none; cursor: pointer; }
details.filters summary::-webkit-details-marker { display: none; }
details.filters .panel { position: absolute; right: 0; top: 42px; z-index: 20; width: 270px; background: #fff; border: 1.5px solid var(--blue); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.results-count { color: var(--muted); font-size: .9rem; margin: -12px 0 18px; }
.empty { text-align: center; padding: 48px 16px 64px; color: var(--muted); }
.empty .paw { width: 120px; margin: 0 auto 12px; }

/* Formos */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 6px; font-weight: 500; color: var(--blue-deep); font-size: .92rem; }
label .hint { font-weight: 300; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(90,123,210,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue-dark); flex: none; }
.hp { position: absolute; left: -9999px; }

.panel-box { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.auth { padding: 48px 0 72px; position: relative; }
.auth .panel-box { max-width: 480px; margin: 0 auto; position: relative; }
.auth h1 { font-size: 2rem; text-align: center; }
.auth .switch { text-align: center; margin-top: 18px; font-size: .95rem; }
.auth .paw { position: absolute; width: 180px; left: max(0px, calc(50% - 420px)); top: 20px; }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.role-tabs a { text-align: center; padding: 10px; border-radius: 999px; border: 1.5px solid var(--blue); text-decoration: none; font-weight: 500; }
.role-tabs a.active { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }

/* Puslapių antraštės */
.page { padding: 44px 0 72px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: .25em; }

/* Kaip veikia */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 34px 48px; margin: 28px 0 8px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
.step .num { width: 54px; height: 42px; border-radius: 50% / 52%; background: var(--blue-dark); color: #fff; font: 900 1.5rem/42px var(--serif); text-align: center; }
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { color: var(--blue-dark); font-size: .92rem; margin: 0; }
.how-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.how-side { position: relative; background: var(--blue-wash); border-radius: var(--radius); padding: 26px; }
.how-side .paw { position: absolute; width: 110px; right: -16px; top: -40px; }

/* Specialisto profilis */
.profile-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.profile-hero .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1.5px solid var(--blue); }
.profile-hero h1 { text-transform: none; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.facts { display: grid; gap: 8px; margin: 14px 0 18px; }
.facts div { display: flex; gap: 8px; align-items: center; }
.facts svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.section { margin-top: 44px; }
.service-list { display: grid; gap: 12px; }
.service { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.service:hover { border-color: var(--blue); }
.service .name { font-weight: 600; color: var(--blue-dark); }
.service .price { font-weight: 600; color: var(--blue-deep); white-space: nowrap; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 360px; font-size: .92rem; }
.hours-table td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review .who { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.review .reply { margin: 10px 0 0 16px; padding: 10px 14px; background: var(--blue-wash); border-radius: var(--radius-sm); font-size: .92rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }

/* Rezervacija */
.book-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.summary { position: sticky; top: 16px; background: var(--blue-wash); border-radius: var(--radius); padding: 22px; }
.summary h3 { margin-top: 0; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.summary .total { font-weight: 600; font-size: 1.1rem; color: var(--blue-deep); border-bottom: 0; padding-top: 12px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.day { scroll-snap-align: start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 4px; text-align: center; cursor: pointer; background: #fff; font: inherit; color: var(--ink); }
.day small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.day b { font-size: 1.2rem; color: var(--blue-dark); }
.day.active { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.day.active small, .day.active b { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; min-height: 48px; }
.slot { border: 1.5px solid var(--blue); border-radius: 999px; padding: 8px 0; text-align: center; background: #fff; color: var(--blue-dark); cursor: pointer; font: 500 .95rem var(--sans); }
.slot:hover { background: var(--blue-wash); }
.slot.active { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.paychoice { display: grid; gap: 10px; }
.payopt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; color: var(--ink); }
.payopt:has(input:checked) { border-color: var(--blue-dark); background: var(--blue-wash); }
.payopt input { margin-top: 4px; accent-color: var(--blue-dark); width: 18px; height: 18px; }
.payopt b { color: var(--blue-deep); }
.payopt.disabled { opacity: .55; cursor: not-allowed; }
.step-title { font: 600 1.05rem var(--sans); color: var(--blue-deep); margin: 26px 0 12px; display: flex; gap: 10px; align-items: center; }
.step-title span { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-dark); color: #fff; display: grid; place-items: center; font-size: .85rem; }

/* Lentelės ir skydeliai */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 36px 0 72px; }
.side-nav { display: grid; gap: 4px; align-content: start; }
.side-nav a { padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; color: var(--blue-deep); font-weight: 500; }
.side-nav a:hover { background: var(--blue-wash); }
.side-nav a.active { background: var(--blue-dark); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--blue-wash); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 800 1.7rem var(--serif); color: var(--blue-dark); }
.stat span { font-size: .85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font-weight: 600; color: var(--blue-deep); background: var(--blue-wash); padding: 10px 12px; white-space: nowrap; }
table.data td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.data .actions { display: flex; gap: 6px; flex-wrap: wrap; }
table.data form { margin: 0; }
.booking-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: start; }
.booking-card + .booking-card { margin-top: 12px; }
.booking-card.urgent { border-color: var(--star); background: #fffcef; }
.booking-card .when { font-weight: 600; color: var(--blue-deep); }
.booking-card .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.booking-card form { margin: 0; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); margin-bottom: 18px; font-size: .95rem; }
.notice.info { background: var(--blue-wash); color: var(--blue-deep); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.hours-edit { display: grid; gap: 10px; }
.hours-edit .day-row { display: grid; grid-template-columns: 170px 110px 20px 110px; gap: 10px; align-items: center; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { cursor: pointer; }
.rating-input label svg { width: 36px; height: 36px; fill: #dde3f3; transition: fill .1s; }
.rating-input input:checked ~ label svg, .rating-input label:hover svg, .rating-input label:hover ~ label svg { fill: var(--star); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-draft { background: var(--warn-bg); color: var(--warn); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 24px; }

/* Poraštė */
.footer { background: var(--blue); color: #fff; padding: 36px 0 24px; margin-top: auto; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer .fbrand { display: flex; align-items: center; gap: 8px; font: 800 1.3rem var(--serif); text-transform: uppercase; margin-bottom: 18px; }
.footer .fbrand img { width: 44px; height: 44px; }
.footer h4 { margin: 4px 0 16px; font-weight: 500; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 300; }
.footer .contact { font-weight: 300; font-size: .9rem; display: grid; gap: 6px; }
.footer .social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social a { width: 38px; height: 38px; border: 2px solid #fff; border-radius: 10px; display: grid; place-items: center; }
.footer .social svg { width: 22px; height: 22px; }
.footer .bottom { margin-top: 28px; font-size: .82rem; font-weight: 300; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; opacity: .95; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* Prisitaikymas */
@media (max-width: 900px) {
  .profile-hero, .two-col, .book-layout, .how-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .dash { grid-template-columns: 1fr; }
  .side-nav { grid-auto-flow: column; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
}
@media (max-width: 680px) {
  .brand img { width: 40px; height: 40px; }
  .top-actions .btn { font-size: .8rem; padding: .55em .9em; }
  .searchbar { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .searchbar .btn { width: 100%; }
  .hero .paw { width: 220px; right: -40px; top: 120px; opacity: .8; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: .85rem; }
  .feature .ico { width: 72px; height: 62px; }
  .feature .ico svg { width: 36px; height: 36px; }
  .features .paw { width: 120px; left: -20px; }
  .cta .paw { width: 90px; right: -8px; top: -44px; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .service { grid-template-columns: 1fr auto; }
  .service .btn { grid-column: 1 / -1; }
  .booking-card { grid-template-columns: 1fr; }
  .booking-card .actions { justify-content: flex-start; }
  .hours-edit .day-row { grid-template-columns: 1fr 90px 12px 90px; }
  .pill-input.wide { min-width: 0; width: 100%; }
  .toolbar .left { width: 100%; }
  .cat-hero .paw { width: 150px; right: -30px; }
}
@media (max-width: 400px) {
  .brand span { font-size: 1.05rem; }
  .top-actions { gap: 6px; }
}

/* Įrankių juostos laukai neturi išsitempti per visą plotį */
.toolbar input.pill-input, .toolbar select.pill-input, .toolbar summary.pill-input { width: auto; height: 34px; padding: 0 16px; border: 1.5px solid var(--blue); border-radius: 999px; color: var(--blue-dark); font-size: .95rem; }
.toolbar select.pill-input { padding-right: 30px; }
@media (max-width: 680px) {
  .toolbar .left > *, .toolbar .right select { flex: 1 1 140px; }
}
main { overflow-x: clip; }
@media (max-width: 480px) {
  .brand span { font-size: 1.02rem; white-space: nowrap; }
  .brand img { width: 34px; height: 34px; }
  .brand { gap: 6px; }
}
.book-layout > *, .two-col > *, .dash > *, .profile-hero > * { min-width: 0; }

/* Kategorijos pradiniame puslapyje */
.categories { padding: 56px 0 8px; text-align: center; }
.categories h2 { text-transform: uppercase; margin-bottom: 28px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 22px 26px; border: 1.5px solid var(--blue); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s, background .2s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); background: var(--blue-wash); color: var(--ink); }
.cat-card .ico { width: 84px; height: 72px; border-radius: 18px; background: var(--blue-dark); color: #fff; display: grid; place-items: center; }
.cat-card .ico svg { width: 42px; height: 42px; }
.cat-card .t { font: 800 1.55rem/1.1 var(--serif); color: var(--blue); text-transform: uppercase; margin-top: 6px; }
.cat-card .d { color: var(--blue-dark); font-size: .95rem; max-width: 30ch; }
.cat-card .go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--blue-dark); }
@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr; } }

/* Kalendorius */
.cal { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font: 800 1.2rem var(--serif); color: var(--blue); }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--blue); color: var(--blue-dark); text-decoration: none; font-size: 1.3rem; line-height: 1; }
.cal-nav:hover { background: var(--blue-wash); }
.cal-nav.disabled { opacity: .25; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-wd { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1 / .82; border-radius: 10px; border: 1.5px solid transparent; display: grid; place-items: center; font: 600 .95rem var(--sans); color: var(--ink); text-decoration: none; background: #f4f6fb; cursor: pointer; padding: 0; position: relative; }
.cal-day.st-free { background: #e4f4ea; color: #1f6b40; }
.cal-day.st-partial { background: #fff3cf; color: #7a5600; }
.cal-day.st-full { background: #e9ecf3; color: #8a93ad; text-decoration: line-through; }
.cal-day.st-off, .cal-day.st-closed { background: #f6f7fa; color: #b4bbcf; }
.cal-day.st-past { background: transparent; color: #c6cbda; cursor: default; }
.cal-day.today::after { content: ''; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-dark); }
.cal-day.sel { border-color: var(--blue-dark); box-shadow: 0 0 0 2px rgba(71,104,194,.2); }
button.cal-day:hover, a.cal-day:hover { border-color: var(--blue); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cal-legend .st-free { background: #cdeed8; } .cal-legend .st-partial { background: #ffe8a3; } .cal-legend .st-full { background: #d9deea; } .cal-legend .st-closed { background: #eef0f5; }
.cal-panel { margin-top: 14px; border-top: 1.5px dashed var(--line); padding-top: 12px; }
.cal-panel-head { display: flex; justify-content: space-between; align-items: center; color: var(--blue-deep); }
.cal-close { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.cal-segs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; }
.seg { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 8px; font-size: .9rem; }
.seg.free { background: #e4f4ea; color: #1f6b40; }
.seg.busy { background: #eceff5; color: #6b7590; }
.seg.off { background: #f6f7fa; color: var(--muted); }
.seg .t { font-weight: 600; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-cal { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .dash-cal { grid-template-columns: 1fr; } }

/* Galerija ir socialiniai tinklai */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a, .gallery figure { display: block; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--blue-wash); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figure form { position: absolute; top: 6px; right: 6px; margin: 0; }
.gallery figure button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--err); font-size: 1.1rem; cursor: pointer; }
.socials { display: flex; gap: 8px; margin: 4px 0 14px; }
.socials a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--blue); text-decoration: none; font-size: .88rem; color: var(--blue-dark); }
.socials a:hover { background: var(--blue-wash); }
.socials svg { width: 18px; height: 18px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 28, 55, .85); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; display: block; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; }
.danger-zone { border-color: #f2c2cb; }
.danger-zone h3 { color: var(--err); }

/* Veterinarijų žemėlapis */
.vet-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.vet-map { height: 480px; border-radius: var(--radius); border: 1.5px solid var(--line); z-index: 0; }
.vet-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.vet-list li a:first-child { font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .vet-layout { grid-template-columns: 1fr; } .vet-map { height: 340px; } #vet-search { grid-template-columns: 1fr !important; } }

/* ---------- Tekstų lygiavimas ir laužymas ---------- */
h1, h2, h3, .cat-card .t, .faq-item summary { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
p, li, .faq-answer, .promo-desc { text-wrap: pretty; }
/* Ilgesni tekstai lygiuojami per visą plotį, kad eilutės baigtųsi vienoje linijoje */
.legal p, .legal li, .faq-answer, .about-text p, .profile-about p, .legal-draft {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}

/* ---------- Mygtukai ---------- */
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--blue-deep); font-weight: 600; }
.btn-yellow:hover { background: #fff; border-color: #fff; color: var(--blue-deep); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; border-color: #fff; }
.btn.copied { background: #2f8a55; border-color: #2f8a55; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue-dark); text-decoration: underline; font: inherit; cursor: pointer; }
.dash-title { text-transform: none; font-size: 2rem; }
.badge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0566b; vertical-align: middle; margin-left: 4px; }
.hint-box { font-size: .875rem; color: var(--muted); background: var(--blue-wash); border-radius: var(--radius-sm); padding: 10px 14px; margin: 4px 0 0; }
.code-input { font-size: 1.6rem !important; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.row-muted td { opacity: .55; }
.form-title { font-size: 1.25rem; margin: 0 0 6px; }
.admin-form { max-width: 720px; margin-bottom: 28px; }

/* ---------- DUK ---------- */
.faq-group { margin: 34px 0 0; scroll-margin-top: 20px; }
.faq-group h2 { font-size: 1.45rem; margin-bottom: 14px; }
.faq-item { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; transition: border-color .15s; }
.faq-item[open] { border-color: var(--blue); }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; position: relative; font-weight: 500; color: var(--blue-dark); line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--blue); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-answer { padding: 0 18px 16px; color: var(--ink); }
.faq-more { margin-top: 40px; text-align: center; padding: 26px 20px; border-radius: var(--radius); background: var(--blue-wash); }
.faq-more p { margin: 0 0 12px; font-weight: 500; color: var(--blue-dark); }

/* ---------- Nuolaidos ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.promo { display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--blue); border-radius: var(--radius); background: #fff; padding: 18px 20px; min-width: 0; }
.promo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.promo h2 { font-size: 1.3rem; margin: 0; overflow-wrap: anywhere; }
.promo-discount { flex: none; background: var(--yellow); color: var(--blue-deep); font-weight: 700; border-radius: 999px; padding: 5px 12px; font-size: .95rem; white-space: nowrap; }
.promo-desc { margin: 0; color: var(--blue-dark); font-size: .95rem; }
.promo-code { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--blue); border-radius: 12px; padding: 8px 8px 8px 14px; background: var(--blue-wash); }
.promo-code code { flex: 1; min-width: 0; font: 700 1.1rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--blue-deep); overflow-wrap: anywhere; }
.promo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* ---------- Veterinarijų žemėlapis ---------- */
.cat-hero-slim { padding-bottom: 26px; }
.cat-hero-slim .paw { opacity: .55; }
.vet-search { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; max-width: 820px; }
.vet-search input { height: 46px; border-radius: 999px; border: 0; padding: 0 18px; font: 400 1rem var(--sans); min-width: 0; width: 100%; color: var(--ink); }
.vet-search input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.vet-search .btn { height: 46px; }
.vet-page { padding-top: 22px; }
.vet-status { font-weight: 500; color: var(--blue-dark); margin: 0 0 14px; }
.vet-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.vet-map { height: 560px; }
.vet-side { min-width: 0; }
.vet-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.vet-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #4768c2; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #4768c2; }
.dot-book { width: 15px; height: 15px; background: #f6d85c; border: 2px solid #2b3a67; box-shadow: none; }
.vet-list { list-style: none; padding: 0; gap: 10px; max-height: 520px; overflow-y: auto; }
.vet-list li { cursor: pointer; }
.vet-card { display: grid; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.vet-list li:hover .vet-card { border-color: var(--blue); }
.vet-name { font-weight: 600; color: var(--blue-dark); text-decoration: none; overflow-wrap: anywhere; }
.vet-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.leaflet-popup-content .vet-card { border: 0; padding: 0; min-width: 210px; }
.vet-note { margin-top: 14px; }

/* ---------- Specialisto registracijos žingsniai ---------- */
.onboard-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; counter-reset: st; }
.onboard-steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--muted); }
.onboard-steps li::before { content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--blue-dark); font-weight: 700; font-size: .9rem; }
.onboard-steps li b { font-weight: 500; }
.onboard-steps li.done { color: var(--ink); }
.onboard-steps li.done::before { content: "✓"; background: #2f8a55; color: #fff; }
.onboard-steps li.current { border-color: var(--blue); color: var(--ink); }
.onboard-steps li.current::before { background: var(--blue-dark); color: #fff; }

/* ---------- Telefonai ---------- */
@media (max-width: 900px) {
  .vet-layout { grid-template-columns: 1fr; }
  .vet-map { height: 380px; }
  .vet-list { max-height: none; overflow: visible; }
}
@media (max-width: 680px) {
  /* Viršus: logotipas centre, mygtukai po juo per visą plotį */
  .topbar .wrap { flex-direction: column; gap: 10px; padding: 12px 0; }
  .brand { justify-content: center; }
  .top-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .top-actions > *, .top-actions form .btn { width: 100%; }
  .top-actions .btn { font-size: .88rem; padding: .62em .8em; }
  .mainnav a { padding: 11px 4px; font-size: .92rem; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .page { padding: 30px 0 56px; }
  .page-head { text-align: left; }
  .cat-hero { padding: 24px 0 22px; }
  .cat-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-tabs a { text-align: center; }
  .cat-hero .paw { opacity: .35; }
  .vet-search { grid-template-columns: 1fr 1fr; }
  .vet-search input { grid-column: 1 / -1; }
  .vet-search .btn { width: 100%; padding-inline: .6em; font-size: .9rem; }
  .vet-map { height: 320px; }
  .faq-item summary { padding: 14px 44px 14px 14px; }
  .faq-answer { padding: 0 14px 14px; }
  .promo { padding: 16px; }
  .footer .bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { gap: 26px 18px; }
  .table-wrap { margin-inline: -16px; padding-inline: 16px; }
  .actions { flex-wrap: wrap; }
  .side-nav { margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .dash-title { font-size: 1.6rem; }
}
@media (max-width: 400px) {
  .top-actions .btn { font-size: .82rem; }
  .mainnav a { font-size: .85rem; }
}
@media (max-width: 680px) {
  .role-tabs a { display: flex; align-items: center; justify-content: center; font-size: .9rem; padding: 10px 8px; line-height: 1.2; }
  .profile-hero .btn-lg { width: 100%; }
  .profile-hero .photo { aspect-ratio: 4 / 3.2; }
  .toolbar select.pill-input { text-overflow: ellipsis; }
  .panel-box { padding-inline: 18px; }
}
.form > *, .form-row > *, .form label { min-width: 0; }
.photo-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; }
.photo-row-img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
input[type="file"] { max-width: 100%; font-size: .9rem; }
@media (max-width: 680px) {
  .photo-row { grid-template-columns: 1fr; }
  .photo-row-img { width: 100%; max-width: 260px; }
  /* Skydelio ir administravimo meniu – tvarkingas 2 stulpelių tinklelis vietoje slenkančios juostos */
  .side-nav { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 6px; }
  .side-nav a { white-space: normal; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 6px; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
  /* Lentelės telefone virsta kortelėmis */
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr:has(th) { display: none; }
  table.data tr { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 10px; background: #fff; }
  table.data td { border: 0 !important; padding: 4px 0 !important; }
  table.data td:empty { display: none; }
  .table-wrap { margin-inline: 0; padding-inline: 0; overflow: visible; border: 0; }
}
@media (max-width: 680px) {
  .hours-edit .day-row { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); gap: 6px 8px; }
  .hours-edit .day-row label.check { grid-column: 1 / -1; }
  .hours-edit .day-row input[type="time"] { min-width: 0; width: 100%; }
  .hours-edit .day-row span { text-align: center; }
}
