:root {
  --velvet: #B79C88;
  --velvet-deep: #8A6C58;
  --ink: #3A2D27;
  --mute: #7A6A61;
  --bg: #FFFEFC;
  --soft: #F8F3EE;
  --line: #EADFD6;
  --ok: #4C7A5A;
  --err: #A6463D;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--velvet-deep); }
:focus-visible { outline: 2px solid var(--velvet-deep); outline-offset: 2px; }

.top {
  background: #DCCBBD; color: var(--ink); border-bottom: 3px solid var(--velvet);
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between;
  padding: 10px max(20px, 4vw);
}
.top a { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 16px; font: 600 26px/1 var(--serif); }
.logo { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: contain; border: 2px solid #fff; background: #32231F; }
@media (max-width: 600px) { .logo { width: 72px; height: 72px; } .brand { font-size: 22px; } }
.soc { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.soc a:hover { text-decoration: underline; }
.tel { font-weight: 500; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 48px max(20px, 4vw) 72px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.lead { max-width: 60ch; color: var(--mute); margin: 0 0 40px; }
.empty { background: var(--soft); padding: 22px; border-radius: 10px; max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; }
.card { text-align: center; }
.ph { position: relative; aspect-ratio: 1; background: var(--soft); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 12px; top: 12px; padding: 3px 12px; border-radius: 20px; font-size: 14px; background: var(--bg); color: var(--ink); }
.badge.reserved { background: var(--velvet-deep); color: #fff; }
.card h2 { font-size: 27px; margin-bottom: 4px; }
.meta { color: var(--mute); font-size: 15px; margin: 0 0 6px; }
.price { font: 600 24px/1.2 var(--serif); color: var(--velvet-deep); margin: 6px 0 14px; }

.btn {
  display: inline-block; font: 500 15px/1 var(--sans); cursor: pointer; text-decoration: none;
  padding: 13px 22px; border-radius: 28px; border: 1.5px solid var(--velvet-deep);
  background: transparent; color: var(--ink);
}
.btn:hover { background: var(--soft); }
.btn.solid { background: var(--velvet-deep); color: #fff; }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }

.foot { border-top: 1px solid var(--line); padding: 26px max(20px, 4vw); color: var(--mute); text-align: center; font-size: 15px; }
.foot p { margin: 0 0 8px; }
.foot p a { color: var(--velvet-deep); text-decoration: none; }
.foot p a:hover { text-decoration: underline; }

.modal { position: fixed; inset: 0; background: rgba(40, 28, 22, .55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 16px; z-index: 50; }
.modal[hidden] { display: none; }
.box { position: relative; background: var(--bg); border-radius: 10px; width: min(960px, 100%); display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 28px; animation: pop .18s ease-out; }
.box.narrow { grid-template-columns: 1fr; width: min(560px, 100%); gap: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .box { animation: none; } }
.x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--mute); cursor: pointer; }
.gal #big { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; background: var(--soft); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.thumb { padding: 0; border: 0; background: none; cursor: pointer; }
.thumb img, .rm img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.info h2 { font-size: 34px; }
.info .price { margin-top: 10px; }
@media (max-width: 760px) { .box { grid-template-columns: 1fr; padding: 20px; } }

label { display: block; font-size: 15px; color: var(--mute); margin: 14px 0 0; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 16px var(--sans);
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px;
}
input:focus, select:focus, textarea:focus { border-color: var(--velvet-deep); outline: none; }
input[type=checkbox] { display: inline; width: auto; margin: 0 4px 0 0; }
form .btn { margin-top: 20px; }
.hp { position: absolute; left: -9999px; }
.msg { margin: 14px 0 0; min-height: 1.4em; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--err); }

.adm .wrap h1 { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 34px; margin-top: 36px; }
.login { max-width: 420px; }
.aform { max-width: 620px; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td select { margin: 0; padding: 8px; }
.inl { display: inline; }
.link { border: 0; background: none; color: var(--velvet-deep); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; margin-left: 12px; }
.inq { background: var(--soft); border-radius: 8px; padding: 14px 18px; margin: 12px 0; }
.inq p { margin: 4px 0; } .inq.done { opacity: .55; }
.rm { display: inline-block; margin: 0 10px 10px 0; font-size: 13px; }

.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 16px; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--velvet-deep); }
.home { min-height: 60vh; }
.foot .soc { justify-content: center; margin-bottom: 10px; }
.foot .soc a { color: var(--velvet-deep); text-decoration: none; }
.foot p { margin: 0; }

.thumb { opacity: .55; border-radius: 4px; }
.thumb.active { opacity: 1; }
.thumb.active img { outline: 3px solid var(--velvet-deep); outline-offset: 2px; }
.count { color: var(--mute); font-size: 14px; margin: 6px 0 0; }

.contact { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cbtn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--velvet-deep); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(58, 45, 39, .3); }
.cbtn:hover { background: var(--ink); }
.cpanel { background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: 0 6px 20px rgba(58, 45, 39, .18); display: flex; flex-direction: column; gap: 2px; }
.cpanel[hidden] { display: none; }
.cpanel b { font: 600 22px/1.2 var(--serif); }
.cpanel a { color: var(--ink); font-weight: 500; text-decoration: none; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .top { position: relative; flex-wrap: nowrap; }
  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0;
    background: #DCCBBD; border-bottom: 3px solid var(--velvet);
    flex-direction: column; gap: 0; padding: 8px 0;
    display: none; z-index: 30;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px max(20px, 4vw); border-bottom: 0; border-left: 3px solid transparent; }
  .nav a:hover, .nav a[aria-current] { border-bottom: 0; border-left-color: var(--velvet-deep); background: rgba(255,255,255,.35); }
  .brand span { font-size: 20px; }
}

/* main page */
.hero { text-align: center; padding: 90px max(20px, 4vw) 40px; }
@media (max-width: 600px) { .hero { padding: 60px max(20px, 4vw) 30px; } }
.hero-title { font: 600 clamp(44px, 8vw, 88px)/1.05 var(--serif); margin: 0 0 14px; color: var(--ink); letter-spacing: .01em; }
.hero-sub { font: 400 13px/1.5 var(--sans); color: var(--mute); margin: 0; letter-spacing: .18em; text-transform: uppercase; }

.more { text-align: center; padding-top: 10px; }
.more-title { font: 600 clamp(26px, 3.4vw, 38px)/1.2 var(--serif); margin: 0 0 12px; }
.more-text { max-width: 60ch; margin: 0 auto 28px; color: var(--mute); }
.soc-big { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.section-title { font: 600 clamp(30px, 4vw, 44px)/1.15 var(--serif); text-align: center; margin: 0 0 34px; position: relative; padding-bottom: 18px; }
.section-title::after { content: ""; display: block; width: 60px; height: 2px; background: var(--velvet); position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; }

.adv { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px 30px; }
.adv li { background: var(--soft); border-radius: 12px; padding: 26px 24px; }
.adv b { font: 600 21px/1.2 var(--serif); display: block; margin-bottom: 8px; }
.adv p { margin: 0; font-size: 15px; color: var(--mute); }

.cta { text-align: center; background: var(--soft); border-radius: 12px; padding: 56px 30px; margin: 70px auto; max-width: 900px; }
.cta .lead { margin-left: auto; margin-right: auto; margin-bottom: 22px; }

.tiles { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.tile { flex: 0 1 calc(25% - 15px); min-width: 200px; display: block; text-decoration: none; color: var(--ink); background: var(--soft); border-radius: 12px; padding: 32px 24px; text-align: center; transition: background .2s; }
.tile:hover { background: #EFE5DB; }
.tile b { font: 600 22px/1.2 var(--serif); display: block; margin-bottom: 6px; }
.tile span { font-size: 15px; color: var(--mute); }
@media (max-width: 900px) { .tile { flex-basis: calc(50% - 10px); } }
@media (max-width: 520px) { .tile { flex-basis: 100%; } }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 8px; }
.rev { background: var(--soft); border-radius: 12px; padding: 24px; }
.rev p { margin: 0 0 12px; font-style: italic; }
.rev b { font: 600 18px/1.2 var(--serif); display: block; }
.rev span { font-size: 14px; color: var(--mute); }
.rev-more { text-align: center; margin-top: 48px; }

/* about page */
.about-quote {
  margin: 0 0 40px;
  padding: 24px 28px;
  background: var(--soft);
  border-left: 4px solid var(--velvet);
  border-radius: 0 12px 12px 0;
  font: 500 clamp(20px, 2.6vw, 26px)/1.4 var(--serif);
  font-style: italic;
  color: var(--velvet-deep);
}

.about-text p {
  margin: 0 0 18px;
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify; /* ВЫРАВНИВАНИЕ ПО ШИРИНЕ */
  hyphens: auto;      /* ПЕРЕНОСЫ СЛОВ */
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-soc {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  .about-quote {
    padding: 18px 20px;
    font-size: 19px;
    margin-bottom: 28px;
  }
  .about-text p {
    font-size: 16px;
    margin-bottom: 14px;
    text-align: left; /* На мобильных лучше оставить по левому краю, иначе будут дыры */
  }
  .about-soc {
    margin-top: 28px;
    flex-direction: column;
  }
  .about-soc .btn {
    text-align: center;
  }
}

/* contacts page */
.crumbs { font-size: 15px; color: var(--mute); margin: 0 0 30px; }
.crumbs a { color: var(--velvet-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.contact-card { background: var(--soft); border-radius: 12px; padding: 40px; margin-bottom: 40px; }
.contact-card h2 { font: 600 28px/1.2 var(--serif); margin: 0 0 20px; }
.contact-card p { margin: 0 0 12px; font-size: 17px; }
.contact-card a { color: var(--velvet-deep); }
.contact-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.contact-person { text-align: center; padding: 20px 0 10px; }
.contact-person h2 { font: 600 32px/1.2 var(--serif); margin: 0 0 10px; }
.contact-person a { font-size: 20px; color: var(--velvet-deep); text-decoration: none; }

@media (max-width: 600px) {
  .crumbs { margin-bottom: 20px; }
  .contact-card { padding: 24px 20px; margin-bottom: 24px; border-radius: 10px; }
  .contact-card h2 { font-size: 22px; margin-bottom: 14px; }
  .contact-card p { font-size: 16px; margin-bottom: 10px; }
  .contact-actions { margin-top: 18px; gap: 10px; }
  .contact-actions .btn { flex: 1 1 100%; text-align: center; }
  .contact-person { padding: 10px 0 0; }
  .contact-person h2 { font-size: 26px; }
  .contact-person a { font-size: 18px; }
}
/* breed page */
.breed-intro {
  margin-bottom: 40px;
  max-width: 80ch;
}
.breed-intro p {
  font-size: 18px;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}

.breed-card {
  background: var(--soft);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 32px;
}
.breed-card h2 {
  font-size: 32px;
  margin-bottom: 4px;
}
.breed-card .meta {
  font-size: 16px;
  color: var(--velvet-deep);
  margin-bottom: 24px;
  font-weight: 500;
}

.breed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.breed-grid h3 {
  font: 600 20px/1.2 var(--serif);
  margin: 0 0 8px;
  color: var(--ink);
}
.breed-grid p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--mute);
  text-align: justify; /* Выравнивание по ширине */
  hyphens: auto;
}
.breed-grid p:last-child {
  margin-bottom: 0;
}

.breed-footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.breed-footer p {
  max-width: 60ch;
  margin: 0 auto 20px;
  font-size: 17px;
  color: var(--mute);
  text-align: justify;
  hyphens: auto;
}

@media (max-width: 760px) {
  .breed-card {
    padding: 24px;
  }
  .breed-card h2 {
    font-size: 26px;
  }
  .breed-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .breed-grid > div {
    margin-bottom: 20px;
  }
  .breed-grid > div:last-child {
    margin-bottom: 0;
  }
  .breed-intro p,
  .breed-grid p,
  .breed-footer p {
    text-align: left; /* На мобилках по левому краю */
  }
}