﻿/* ==========================================================================
   Айболит — центр ветеринарной медицины. Дизайн 2026.
   ========================================================================== */

:root {
    --ink: #102b2a;
    --ink-soft: #33504d;
    --muted: #6d827f;
    --line: #e8e0d4;

    --teal: #0f5b57;
    --teal-deep: #0a3f3c;
    --teal-soft: #e3f4ef;
    --mint: #cdefe8;
    --mint-soft: #ecf9f5;

    --cream: #fbf7f1;
    --cream-deep: #f2e9dc;
    --white: #ffffff;

    --coral: #ff6b5a;
    --coral-deep: #e95443;
    --coral-soft: #ffe9e5;

    --radius: 28px;
    --radius-sm: 18px;
    --shadow: 0 30px 70px -30px rgba(16, 43, 42, .35);
    --shadow-soft: 0 18px 40px -24px rgba(16, 43, 42, .25);

    --container: 1240px;
    --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------- кнопки -------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.01em;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--coral {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 16px 30px -14px rgba(255, 107, 90, .8);
}
.btn--coral:hover { background: var(--coral-deep); box-shadow: 0 20px 36px -14px rgba(233, 84, 67, .85); }

.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-deep); }

.btn--ghost {
    background: transparent;
    border-color: rgba(16, 43, 42, .18);
    color: var(--ink);
}
.btn--ghost:hover { background: #fff; border-color: transparent; box-shadow: var(--shadow-soft); }

.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { background: var(--mint-soft); }

.btn--lg { padding: 18px 34px; font-size: 15px; }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--block { width: 100%; }

/* --------------------------------- шапка --------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 247, 241, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled {
    background: rgba(251, 247, 241, .94);
    border-color: rgba(16, 43, 42, .08);
    box-shadow: 0 12px 30px -24px rgba(16, 43, 42, .45);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 88px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }

.logo__mark {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--teal);
    display: grid;
    place-items: center;
    color: #fff;
    flex: none;
}
.logo__paw { width: 24px; height: 24px; fill: #fff; stroke: none; }
.logo__cross {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--coral);
    display: grid;
    place-items: center;
    border: 2px solid var(--cream);
}
.logo__cross svg { width: 10px; height: 10px; fill: #fff; stroke: none; }

.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
}
.logo__text small {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 600;
}

.nav { display: flex; gap: 30px; margin-left: 18px; }
.nav a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 6px 0;
    transition: color .2s ease;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.header__phone { display: flex; align-items: center; gap: 10px; color: var(--teal); }
.header__phone .icon { width: 22px; height: 22px; }
.header__phone-text { display: flex; flex-direction: column; line-height: 1.15; }
.header__phone-text strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.header__phone-text small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(16, 43, 42, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .6);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    padding: 12px 28px 30px;
    background: var(--cream);
    border-top: 1px solid rgba(16, 43, 42, .08);
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
    padding: 14px 0;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid rgba(16, 43, 42, .08);
}
.mobile-menu__phone { display: block; margin: 18px 0 14px; font-size: 20px; font-weight: 800; color: var(--teal); }
.mobile-menu .btn { width: 100%; }

/* ---------------------------------- герой -------------------------------- */
.hero { position: relative; padding: 74px 0 96px; overflow: hidden; }
.hero__glow {
    position: absolute;
    inset: -20% -10% auto 40%;
    height: 900px;
    background: radial-gradient(closest-side, rgba(205, 239, 232, .75), transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(16, 43, 42, .08);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    box-shadow: var(--shadow-soft);
}
.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 107, 90, .18);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 90, .18); }
    50% { box-shadow: 0 0 0 8px rgba(255, 107, 90, .08); }
}

.hero__title {
    font-family: var(--display);
    font-size: clamp(40px, 4.7vw, 68px);
    line-height: 1.03;
    letter-spacing: -.045em;
    margin: 26px 0 24px;
    max-width: 620px;
}
.hero__title em { font-style: normal; color: var(--coral); }

.hero__lead {
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 520px;
}

.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__stats {
    display: flex;
    gap: 38px;
    margin: 46px 0 0;
    padding: 26px 0 0;
    list-style: none;
    border-top: 1px solid rgba(16, 43, 42, .1);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.hero__stats span { font-size: 12px; color: var(--muted); max-width: 120px; line-height: 1.35; }

.hero__media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 600px; }
.hero__circle {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: var(--mint);
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
}
.hero__ring {
    position: absolute;
    width: 590px;
    height: 590px;
    border-radius: 50%;
    border: 1.5px dashed rgba(15, 91, 87, .22);
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
}
.hero__pets {
    position: relative;
    z-index: 2;
    width: min(470px, 92%);
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(16, 43, 42, .18));
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 18px 40px -18px rgba(16, 43, 42, .45);
    animation: float 6s ease-in-out infinite;
}
.chip .icon { width: 17px; height: 17px; color: var(--coral); }
.chip--1 { top: 88px; left: -6px; animation-delay: .4s; }
.chip--2 { top: 196px; right: -14px; animation-delay: 1.2s; }
.chip--3 { bottom: 92px; left: 18px; animation-delay: 2s; }

.hero__paw {
    position: absolute;
    right: 12px;
    bottom: 40px;
    width: 64px;
    height: 64px;
    color: var(--coral);
    opacity: .9;
    transform: rotate(18deg);
    fill: currentColor;
    stroke: none;
}

/* -------------------------------- бегущая строка -------------------------- */
.marquee {
    background: var(--coral);
    color: #fff;
    overflow: hidden;
    padding: 14px 0;
}
.marquee__track {
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    animation: marquee 34s linear infinite;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.marquee__track i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ------------------------------- секции общее ----------------------------- */
.section { padding: 108px 0; }
.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 18px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }
.kicker--light { color: var(--mint); }
.kicker--light::before { background: var(--mint); }

.section__title {
    font-family: var(--display);
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.section__lead { margin-top: 20px; font-size: 16.5px; color: var(--muted); line-height: 1.65; }

/* -------------------------------- услуги ---------------------------------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service {
    position: relative;
    padding: 28px 24px 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(16, 43, 42, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(15, 91, 87, .18); }

.service__icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--mint-soft);
    color: var(--teal);
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.service p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.service--accent { background: var(--teal); border-color: var(--teal); color: #fff; }
.service--accent .service__icon { background: rgba(255, 255, 255, .14); color: var(--mint); }
.service--accent p { color: rgba(255, 255, 255, .75); }
.service__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--mint);
}
.service__link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.service__link:hover svg { transform: translateX(4px); }

/* --------------------------------- цифры ---------------------------------- */
.stats { background: var(--teal-deep); color: #fff; padding: 54px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong {
    font-family: var(--display);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--mint);
}
.stat span { font-size: 13px; color: rgba(255, 255, 255, .68); }

/* --------------------------------- о клинике ------------------------------ */
.about__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }

.about__media { position: relative; min-height: 540px; }
.about__photo { border-radius: 30px; object-fit: cover; }
.about__photo--main {
    width: 78%;
    height: 470px;
    box-shadow: var(--shadow);
}
.about__photo--small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 280px;
    border: 8px solid var(--cream);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}
.about__badge {
    position: absolute;
    left: 0;
    bottom: 44px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    box-shadow: 0 20px 40px -18px rgba(255, 107, 90, .9);
}
.about__badge strong { font-family: var(--display); font-size: 38px; font-weight: 700; }
.about__badge span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.about__content .section__title { margin-bottom: 22px; }
.about__content > p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 26px; }

.checklist { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.checklist svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--teal);
    background: var(--mint-soft);
    border-radius: 8px;
    padding: 4px;
    margin-top: 1px;
}

/* --------------------------------- команда -------------------------------- */
.team { background: #fff; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.doctor { display: flex; flex-direction: column; gap: 16px; }
.doctor__photo {
    border-radius: 26px;
    overflow: hidden;
    background: var(--mint-soft);
    aspect-ratio: 1 / 1;
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.doctor:hover .doctor__photo img { transform: scale(1.04); }
.doctor h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.doctor p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* -------------------------------- галерея --------------------------------- */
.gallery { background: #fff; padding-top: 0; }
.gallery__grid { columns: 4; column-gap: 16px; }
.gallery__item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    margin: 0 0 16px;
    border-radius: 20px;
    overflow: hidden;
    break-inside: avoid;
    background: var(--mint-soft);
}
.gallery__item img { width: 100%; height: auto; transition: transform .5s ease, filter .3s ease; }
.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 63, 60, .28));
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { opacity: 1; }

/* -------------------------------- отзывы ---------------------------------- */
.reviews { background: var(--cream); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.review {
    background: #fff;
    border-radius: 26px;
    padding: 30px 28px;
    border: 1px solid rgba(16, 43, 42, .06);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-soft);
}
.review__stars { display: flex; gap: 3px; color: var(--coral); }
.review__stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review > p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--teal-deep);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    flex: none;
}
.review__author strong { display: block; font-size: 14px; }
.review__author small { display: block; font-size: 12px; color: var(--muted); }

/* --------------------------------- запись --------------------------------- */
.booking {
    position: relative;
    background: linear-gradient(135deg, #125f5a 0%, #0c4a46 60%, #0a3f3c 100%);
    color: #fff;
    padding: 92px 0;
    overflow: hidden;
}
.booking::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    opacity: .7;
}
.booking::after {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(205, 239, 232, .18), transparent 70%);
    right: -160px;
    top: -220px;
}
.booking__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 64px;
    align-items: center;
}
.booking__title { font-family: var(--display); font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.04em; margin-bottom: 18px; }
.booking__lead { font-size: 16px; color: rgba(255, 255, 255, .78); max-width: 460px; line-height: 1.65; }
.booking__contacts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }
.booking__contacts a { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; }
.booking__contacts .icon { color: var(--mint); }
.booking__note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .85);
}
.booking__note svg { width: 16px; height: 16px; }

.booking__form {
    background: #fff;
    color: var(--ink);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
    display: grid;
    gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.field input,
.field select {
    width: 100%;
    border: 1.5px solid transparent;
    background: #f6f1e9;
    border-radius: 14px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236d827f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.field input:focus,
.field select:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15, 91, 87, .12); }
.field input::placeholder { color: #a8b3b1; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--coral); flex: none; }

.form-status { font-size: 13px; line-height: 1.5; min-height: 18px; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: #1d7a55; }

/* -------------------------------- контакты -------------------------------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.branch {
    background: #fff;
    border-radius: 26px;
    padding: 28px;
    border: 1px solid rgba(16, 43, 42, .06);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.branch__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.branch__badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--coral-soft);
    color: var(--coral-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.branch__badge--muted { background: var(--mint-soft); color: var(--teal); }
.branch__city { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.branch h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.03em; }
.branch__meta { font-size: 13px; color: var(--muted); }
.branch__phone { font-size: 19px; font-weight: 800; color: var(--teal); margin-top: 8px; letter-spacing: -.02em; }
.branch__hours { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.branch__hours .icon { width: 17px; height: 17px; color: var(--coral); }

.contacts__map {
    grid-column: span 2;
    border-radius: 28px;
    overflow: hidden;
    background: var(--mint-soft);
    height: 420px;
    box-shadow: var(--shadow-soft);
}
.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------- подвал --------------------------------- */
.footer { background: var(--teal-deep); color: #d8e8e4; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text small { color: rgba(255, 255, 255, .55); }
.logo--footer .logo__cross { border-color: var(--teal-deep); }
.footer__brand > p { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .62); max-width: 300px; margin: 18px 0 22px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
}
.footer__socials a:hover { background: var(--coral); transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; font-weight: 800; }
.footer__col a, .footer__col p { display: block; font-size: 13px; color: rgba(255, 255, 255, .68); margin: 0 0 10px; line-height: 1.6; }
.footer__col a:hover { color: #fff; }
.footer__col span { color: rgba(255, 255, 255, .45); font-size: 12px; }
.footer__col .btn { margin-top: 6px; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

/* -------------------------------- лайтбокс -------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 28, 27, .88);
    display: grid;
    place-items: center;
    padding: 30px;
    backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }

/* -------------------------------- анимации -------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ------------------------------- адаптив ---------------------------------- */
@media (max-width: 1120px) {
    .nav { display: none; }
    .burger { display: flex; }
    .header__cta { display: none; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { grid-template-columns: 1fr 1fr; gap: 20px; }
    .hero__pets { width: min(420px, 100%); }
    .hero__circle { width: 440px; height: 440px; }
    .hero__ring { width: 500px; height: 500px; }
    .chip--1 { left: -10px; top: 60px; }
    .chip--2 { right: -14px; top: 210px; }
    .chip--3 { left: 0; bottom: 60px; }
    .about__inner { grid-template-columns: 1fr; gap: 44px; }
    .about__media { max-width: 640px; }
    .booking__inner { grid-template-columns: 1fr; gap: 36px; }
    .booking__lead { max-width: none; }
    .team__grid { grid-template-columns: repeat(2, 1fr); }
    .reviews__grid { grid-template-columns: 1fr 1fr; }
    .gallery__grid { columns: 3; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .section { padding: 76px 0; }
    .hero { padding: 44px 0 66px; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { min-height: 480px; margin-top: 10px; }
    .hero__circle { width: 400px; height: 400px; bottom: 0; }
    .hero__ring { width: 460px; height: 460px; bottom: -30px; }
    .hero__pets { width: min(400px, 88%); }
    .chip { font-size: 11.5px; padding: 9px 13px; }
    .chip--1 { top: 20px; left: 0; }
    .chip--2 { top: auto; bottom: 190px; right: 0; }
    .chip--3 { display: none; }
    .hero__stats { gap: 24px; }
    .hero__stats strong { font-size: 22px; }
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .about__media { min-height: 420px; }
    .about__photo--main { height: 380px; }
    .about__photo--small { height: 220px; }
    .about__badge { width: 108px; height: 108px; bottom: 24px; }
    .about__badge strong { font-size: 30px; }
    .contacts__grid { grid-template-columns: 1fr; }
    .contacts__map { grid-column: auto; height: 360px; }
    .reviews__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 30px; }
    .footer__brand > p { max-width: none; }
}

@media (max-width: 620px) {
    .container { padding: 0 18px; }
    .header__inner { min-height: 76px; gap: 14px; }
    .logo__text strong { font-size: 19px; }
    .logo__text small { font-size: 8.5px; letter-spacing: .1em; }
    .logo__mark { width: 42px; height: 42px; border-radius: 13px; }
    .header__phone-text strong { font-size: 14px; }
    .header__phone-text small { display: none; }
    .header__phone .icon { width: 18px; height: 18px; }
    .hero { padding: 30px 0 54px; }
    .hero__title { font-size: 36px; margin: 20px 0 18px; }
    .hero__lead { font-size: 15px; }
    .hero__actions { margin-top: 26px; }
    .hero__actions .btn { flex: 1 1 auto; }
    .hero__stats { gap: 18px; padding-top: 20px; margin-top: 32px; }
    .hero__stats li:nth-child(3) { display: none; }
    .hero__stats strong { font-size: 20px; }
    .hero__media { min-height: 380px; }
    .hero__circle { width: 300px; height: 300px; }
    .hero__ring { width: 350px; height: 350px; bottom: -24px; }
    .hero__pets { width: 320px; }
    .chip--2 { bottom: 140px; }
    .chip--1 { top: 6px; }
    .hero__paw { display: none; }
    .section { padding: 62px 0; }
    .section__title { font-size: 27px; }
    .section__lead { font-size: 14.5px; }
    .services__grid { grid-template-columns: 1fr; }
    .service { padding: 22px 20px; }
    .stats { padding: 40px 0; }
    .about__media { min-height: 340px; }
    .about__photo--main { width: 82%; height: 300px; }
    .about__photo--small { width: 48%; height: 180px; border-width: 6px; }
    .about__badge { width: 88px; height: 88px; bottom: 8px; }
    .about__badge strong { font-size: 24px; }
    .about__badge span { font-size: 8px; }
    .team__grid { grid-template-columns: 1fr; gap: 22px; }
    .doctor__photo { aspect-ratio: 4 / 3; }
    .gallery__grid { columns: 2; column-gap: 10px; }
    .gallery__item { margin-bottom: 10px; border-radius: 14px; }
    .booking { padding: 56px 0; }
    .booking__form { padding: 22px; border-radius: 22px; }
    .field-row { grid-template-columns: 1fr; }
    .booking__contacts { flex-direction: column; gap: 10px; }
    .footer { padding: 46px 0 22px; }
    .footer__bottom { margin-top: 30px; }
}

/* строчные иконки в контенте */
.service__icon svg,
.service__link svg,
.checklist svg,
.booking__note svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --------------------------- правки после ревью --------------------------- */
.doctor__photo { position: relative; }
.doctor__photo img { filter: grayscale(1) contrast(1.05); }
.doctor__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 91, 87, .18), rgba(255, 107, 90, .10));
    mix-blend-mode: multiply;
    pointer-events: none;
}
.doctor:hover .doctor__photo img { filter: grayscale(0) contrast(1) saturate(1.05); }

.footer__col p a,
.footer__col p span { display: inline; margin: 0; }

.contacts__map { position: relative; }
.contacts__map iframe { position: relative; z-index: 2; opacity: 0; transition: opacity .4s ease; background: transparent; }
.contacts__map.is-loaded iframe { opacity: 1; }
.map-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 30px;
    background:
        radial-gradient(circle at 20% 20%, rgba(205, 239, 232, .9), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(255, 233, 229, .9), transparent 55%),
        var(--mint-soft);
    color: var(--ink);
}
.map-fallback__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--coral);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 4px;
}
.map-fallback__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.map-fallback strong { font-family: var(--display); font-size: 20px; letter-spacing: -.03em; }
.map-fallback > span:not(.map-fallback__icon) { font-size: 13.5px; color: var(--muted); }
.map-fallback .btn { margin-top: 10px; }
.contacts__map.is-loaded .map-fallback { opacity: 0; pointer-events: none; transition: opacity .4s ease; }

@media (max-width: 560px) {
    .header__phone { display: none; }
    .header__actions { gap: 10px; }
}

/* галерея: ровная сетка 4x2 */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; columns: auto; column-gap: 0; }
.gallery__item { margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* фото врачей: убираем старый круг, оставляем крупный кадр */
.doctor__photo img { transform: scale(1.14); }
.doctor:hover .doctor__photo img { transform: scale(1.2); }

/* мягкое затухание низа героя */
.hero__pets {
    -webkit-mask-image: linear-gradient(to bottom, #000 90%, rgba(0, 0, 0, .25) 98%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 90%, rgba(0, 0, 0, .25) 98%, transparent 100%);
}

@media (max-width: 860px) {
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* фото врачей — круглые портреты */
.doctor__photo { border-radius: 50%; background: var(--mint-soft); }
.doctor__photo img { transform: none; }
.doctor:hover .doctor__photo img { transform: scale(1.05); }

@media (max-width: 620px) {
    .logo__text small { display: none; }
}

/* ------------------- фото о клинике: ровная сетка ------------------- */
.about__media {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    min-height: 540px;
    position: relative;
}
.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    display: block;
}
.about__photo--main { grid-row: span 2; }
.about__photo--small {
    position: static;
    border: 0;
    border-radius: 26px;
    box-shadow: none;
}
.about__badge { left: 18px; bottom: 18px; }

/* карточка поддержки в контактах */
.branch--support { background: var(--mint-soft); border-color: rgba(15, 91, 87, .12); }
.branch--support .branch__phone { color: var(--teal); word-break: break-all; }

@media (max-width: 860px) {
    .about__media { min-height: 420px; gap: 10px; }
    .about__photo, .about__photo--small { border-radius: 20px; }
    .about__badge { width: 96px; height: 96px; left: 12px; bottom: 12px; }
    .about__badge strong { font-size: 26px; }
}
@media (max-width: 620px) {
    .about__media { min-height: 340px; }
    .about__badge { width: 80px; height: 80px; }
    .about__badge strong { font-size: 22px; }
}

.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* три цифры в полосе */
.stats__grid { grid-template-columns: repeat(3, 1fr); }

/* поддержка — широкая полоса под филиалами */
.branch--support {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    flex-wrap: wrap;
    padding: 24px 28px;
}
.branch--support h3 { margin: 6px 0 4px; }
.branch--support .branch__support-contact { text-align: right; }
.branch--support .branch__phone { margin: 0; }
.branch--support .branch__hours { justify-content: flex-end; }

@media (max-width: 860px) {
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .branch--support .branch__support-contact { text-align: left; }
    .branch--support .branch__hours { justify-content: flex-start; }
}

/* поддержка: горизонтальная полоса */
.branch--support { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; }
.branch--support .branch__support-text { flex: 1 1 260px; }
.branch--support .branch__support-contact { flex: 0 0 auto; }

/* ======================= команда: цветные ровные аватары ================== */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.doctor { align-items: center; text-align: center; gap: 4px; }
.doctor__photo {
    width: 190px;
    height: 190px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    background: var(--mint-soft);
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; filter: none; transform: none; }
.doctor__photo::after { display: none; }
.doctor:hover .doctor__photo img { transform: none; filter: none; }
.doctor h3 { font-size: 16.5px; line-height: 1.3; }
.doctor p { font-size: 13px; max-width: 300px; margin: 0 auto; }

/* ===================== галерея: строгая сетка 4x2 ======================== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    columns: auto;
}
.gallery__item,
.gallery__item--wide,
.gallery__item--tall {
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    grid-column: auto;
    grid-row: auto;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1120px) {
    .team__grid { grid-template-columns: repeat(3, 1fr); }
    .gallery__grid { grid-template-columns: repeat(3, 1fr); }
    .doctor__photo { width: 170px; height: 170px; }
}
@media (max-width: 860px) {
    .team__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .doctor__photo { width: 150px; height: 150px; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery__item { border-radius: 14px; }
}
@media (max-width: 620px) {
    .doctor__photo { width: 130px; height: 130px; }
    .doctor h3 { font-size: 15px; }
    .doctor p { font-size: 12.5px; }
}

/* убираем цветное кольцо старого дизайна у аватаров */
.doctor__photo img { transform: scale(1.14); }

/* белое кольцо поверх края аватара: скрывает цветную дугу старого дизайна */
.doctor__photo { position: relative; }
.doctor__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 11px #fff;
    z-index: 2;
    pointer-events: none;
}

/* без дополнительного зума: кропы уже по лицу */
.doctor__photo img { transform: none; }
.doctor__photo::before { box-shadow: inset 0 0 0 7px #fff; }

/* кольцо-маска поверх края: сплошное, без артефактов */
.doctor__photo::before {
    box-shadow: none;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0) 0 calc(100% - 10px),
        #ffffff calc(100% - 10px) 100%);
}

/* ------------------------- новый шрифт заголовков ------------------------- */
:root { --display: 'Golos Text', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.hero__title { letter-spacing: -.035em; font-weight: 800; }
.section__title, .booking__title, .logo__text strong { font-weight: 800; letter-spacing: -.03em; }

/* --------------------------- галерея-коллаж ------------------------------ */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 185px;
    gap: 14px;
    columns: auto;
}
.gallery__item {
    aspect-ratio: auto;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1120px) {
    .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 860px) {
    .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .gallery__item--big { grid-column: span 2; grid-row: span 2; }
    .gallery__item--wide { grid-column: span 2; }
}

/* о клинике: ровная сетка 2x2 из новых фото */
.about__media { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.about__photo--main { grid-row: auto; }
