/* ========== СБРОС БАЗОВЫХ СТИЛЕЙ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== ПЕРЕМЕННЫЕ ЦВЕТА ========== */
:root {
    --bg-start: #f8f1e8;
    --bg-end: #e4d0b8;
    --text-main: #3a2416;
    --text-soft: #6b4b35;
    --accent: #8b5a2b;
    --accent-dark: #5d3718;
    --card: rgba(255, 255, 255, 0.9);
}

/* ========== ОБЩИЕ СТИЛИ СТРАНИЦЫ ========== */
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(214, 169, 110, 0.28), transparent 18%),
        radial-gradient(circle at 82% 14%, rgba(178, 122, 72, 0.16), transparent 16%),
        linear-gradient(180deg, #fffaf4 0%, #f5e7d8 52%, #ead7c0 100%);
    position: relative;
    overflow-x: hidden;
    color: #2b1a10;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-40 90 C20 20, 80 20, 140 90 S260 160, 360 90' stroke='%238e5603' stroke-opacity='0.28' stroke-width='10'/%3E%3Cpath d='M-40 125 C20 55, 80 55, 140 125 S260 195, 360 125' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='8'/%3E%3Cpath d='M-40 160 C20 90, 80 90, 140 160 S260 230, 360 160' stroke='%23b97a32' stroke-opacity='0.18' stroke-width='12'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 320px 320px;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}



/* ========== ШАПКА САЙТА ========== */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-image: url("/static/img/photo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* ========== ЛОГОТИП В ШАПКЕ ========== */
.hero-logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 200px;
    height: auto;
}

/* ========== ПОДЗАГОЛОВОК ========== */
.subtitle {
    font-family: "Great Vibes", cursive;
    font-size: 48px;
    color: #000;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
    display: inline-block;
    text-shadow: none;
    transform: scaleX(1.32);
    position: relative;
    top: 240px;
}

/* ========== КАРТОЧКИ СЕКЦИЙ ========== */
.card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(87, 55, 26, 0.08);
    margin-bottom: 20px;
    border: 1px solid rgba(139, 90, 43, 0.08);
}

/* ========== ЗАГОЛОВКИ ВНУТРИ КАРТОЧЕК ========== */
.card h2 {
    color: var(--accent);
    margin-bottom: 16px;
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.5px;
}

/* ========== СПИСКИ КОНТАКТОВ И УСЛУГ ========== */
.contacts {
    list-style: none;
    padding-left: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-ico {
    font-size: 22px;
    width: 28px;
    text-align: center;
    flex: 0 0 28px;
    margin-top: 2px;
}

.contact-text {
    line-height: 1.7;
}

.contact-text span {
    display: inline-block;
    margin-bottom: 2px;
}

.map-btn,
.vk-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
}

.map-btn {
    background: #fc3f1d;
    box-shadow: 0 6px 16px rgba(252, 63, 29, 0.22);
}

.map-btn:hover {
    background: #e73715;
    transform: translateY(-1px);
}

.vk-btn {
    background: #4c75a3;
    font-weight: 600;
}

.vk-btn:hover {
    background: #5d8bc0;
    transform: translateY(-1px);
}

/* ========== ССЫЛКИ ========== */
a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

/* ========== О НАС ========== */
.about-card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(87, 55, 26, 0.08);
    margin-bottom: 20px;
    border: 1px solid rgba(139, 90, 43, 0.08);
    position: relative;
}

.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(236, 106, 55, 0.10), transparent 40%);
    pointer-events: none;
}

.about-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
    margin-bottom: 18px;
    color: #8E5603;
}

.about-icon {
    font-size: 34px;
    line-height: 1;
    display: inline-block;
    text-shadow:
        0 0 6px rgba(236, 106, 55, 0.35),
        0 0 12px rgba(236, 106, 55, 0.25),
        0 0 18px rgba(255, 170, 90, 0.18);
}

.about-card p {
    font-size: 20px;
    line-height: 1.95;
    color: #4b3621;
    margin: 0;
}

.about-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-line-icon {
    font-size: 26px;
    text-shadow:
        0 0 6px rgba(236, 106, 55, 0.45),
        0 0 14px rgba(236, 106, 55, 0.35),
        0 0 22px rgba(255, 170, 90, 0.25);
}

.about-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 19px;
    line-height: 1.5;
    color: #4b3621;
}

.about-line span:last-child {
    flex: 1;
}

/* ========== КНОПКА УСЛУГ ========== */
.services-card {
    max-width: 720px;
    margin: 0 auto 20px;
    padding: 34px 36px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.services-topline {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(142, 86, 3, 0.10);
    color: #8E5603;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.services-card h2 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.1;
    color: #1f2937;
}

.services-intro {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.7;
    color: #6b7280;
    max-width: 60ch;
}

.services {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.services li {
    position: relative;
    padding: 18px 18px 18px 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfb 0%, #fff7ef 100%);
    border: 1px solid rgba(142, 86, 3, 0.10);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    font-weight: 600;
    color: #3f342a;
}

.services li::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8E5603, #ec6a37);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(142, 86, 3, 0.20);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8E5603, #ec6a37);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(142, 86, 3, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(142, 86, 3, 0.30);
    filter: brightness(1.03);
}

.back-btn:focus-visible {
    outline: 3px solid rgba(236, 106, 55, 0.28);
    outline-offset: 4px;
}

.services-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8E5603, #ec6a37);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(142, 86, 3, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-services-btn {
    max-width: 380px;
    min-height: 64px;
    font-size: 18px;
    padding: 0 34px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    body::before {
        opacity: 0.18;
        background-size: 260px 260px;
    }

    .hero {
        min-height: 320px;
        padding: 28px 16px;
    }

    .hero-logo {
        width: 180px;
        top: 16px;
        left: 16px;
    }

    .subtitle {
        top: 20px;
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 110px !important;
    }

    .subtitle {
        position: absolute;
        left: 50%;
        top: 70%;
        transform: translateX(-50%);
        font-size: 28px;
    }

    .container {
        padding: 0 14px 28px;
    }

    .card,
    .services-card {
        padding: 22px;
        border-radius: 20px;
    }

    .services-card h2 {
        font-size: 30px;
    }

    .about-card h2 {
        font-size: 26px;
    }

    .about-card p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body::before {
        opacity: 0.10;
        background-size: 180px 180px;
    }

    .hero {
        min-height: 220px;
        padding: 16px 10px;
    }

    .hero-logo {
        width: 95px;
        top: 8px;
        left: 8px;
    }

    .subtitle {
        font-size: 18px;
        top: 14px;
        transform: scaleX(1.02);
    }

    .services {
        grid-template-columns: 1fr;
    }

    .services-btn {
        max-width: 100%;
    }
}

/* ========== СТРАНИЦА УСЛУГ: АККОРДЕОН ========== */
.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 28px;
}

.service-item {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdfb 0%, #fff7ef 100%);
    border: 1px solid rgba(142, 86, 3, 0.10);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-item[open] {
    box-shadow: 0 16px 30px rgba(87, 55, 26, 0.12);
    transform: translateY(-2px);
}

.service-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-weight: 800;
    color: #3f342a;
    user-select: none;
}

.service-summary::-webkit-details-marker {
    display: none;
}

.service-summary::after {
    content: "▾";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(142, 86, 3, 0.10);
    color: #8E5603;
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.25s ease, background 0.25s ease;
}

.service-item[open] .service-summary::after {
    transform: rotate(180deg);
    background: rgba(236, 106, 55, 0.14);
}

.service-title {
    font-size: 18px;
    line-height: 1.35;
}

.service-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 18px;
    padding: 0 20px 20px;
    align-items: start;
}

.service-text p {
    margin: 0 0 14px;
    color: #4b3621;
    line-height: 1.7;
    font-size: 16px;
}

.service-price {
    margin: 0;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(142, 86, 3, 0.08);
    color: #8E5603;
    font-weight: 800;
    font-size: 16px;
}

.service-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #f6eee5;
    border: 1px solid rgba(139, 90, 43, 0.08);
}

.service-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.service-item[open] .service-content {
    animation: serviceFadeIn 0.25s ease;
}

@keyframes serviceFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
    }

    .service-image {
        min-height: 200px;
    }

    .service-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .service-summary {
        padding: 16px;
    }

    .service-content {
        padding: 0 16px 16px;
        gap: 14px;
    }

    .service-text p,
    .service-price {
        font-size: 15px;
    }
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛКИ ========== */

@media (max-width: 768px) {
    .hero {
        min-height: 260px;
        padding: 18px 12px;
        background-position: center 10%;
        background-size: cover;
    }

    .hero-logo {
        width: 110px !important;
        top: 10px;
        left: 10px;
    }

    .subtitle {
        top: 40px;
        font-size: 26px;
        transform: scaleX(1.08);
    }

    .service-content {
        grid-template-columns: 1fr;
    }

    .service-image-wrap {
        order: -1;
        margin-bottom: 12px;
    }

    .service-text {
        order: 0;
    }

    .service-price {
        order: 1;
    }

    .service-image {
        min-height: 200px;
    }

    .service-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 210px;
        background-position: center 15%;
    }

    .hero-logo {
        width: 95px;
        top: 8px;
        left: 8px;
    }

    .subtitle {
        top: 28px;
        font-size: 19px;
        transform: scaleX(1.02);
    }

    .service-summary {
        padding: 16px;
    }

    .service-content {
        padding: 0 16px 16px;
        gap: 14px;
    }

    .service-text p,
    .service-price {
        font-size: 15px;
    }

    .service-image {
        min-height: 180px;
    }
}

/* ========== МЕНЮ НАВИГАЦИИ ========== */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0 24px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8E5603, #ec6a37);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(142, 86, 3, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(142, 86, 3, 0.24);
    filter: brightness(1.03);
    text-decoration: none;
}

.site-nav a:focus-visible {
    outline: 3px solid rgba(236, 106, 55, 0.28);
    outline-offset: 4px;
}

/* ========== МЕНЮ НАВИГАЦИИ для кнопки к питомцам ========== */

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.home-buttons .services-btn {
    margin-top: 0;
}

/* ========== СТИЛЬ СКРЫТОЙ ССЫЛКИ ВХОДА ========== */
.owner-access {
    margin-top: 40px;
    text-align: center;
}

.owner-access a {
    color: transparent; /* Делает точку невидимой для обычного взгляда */
    text-decoration: none;
    font-size: 10px;
    cursor: default;
}

.owner-access a:hover {
    color: #e4d0b8; /* Становится видимой, только если навести на неё */
    cursor: pointer;
}

/* ========== СТИЛЬ ФОРМЫ ЛОГИНА ========== */
.login-card {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(87, 55, 26, 0.08);
    text-align: center;
}

.login-card h2 {
    color: var(--accent);
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(139, 90, 43, 0.2);
    border-radius: 12px;
    background: #fffdfb;
}

.login-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.login-form button:hover {
    background: var(--accent-dark);
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.alert-danger { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }

/* Добавь это в конец style.css */
.owner-access {
    margin-top: 20px;
    text-align: center;
    opacity: 0.1; /* Сделает её почти прозрачной */
}

.owner-access a {
    color: #f8f1e8; /* Цвет фона, чтобы сливалась */
    text-decoration: none;
    font-size: 8px;
    cursor: default;
}

.owner-access a:hover {
    color: #6b4b35; /* Появится, только если навести */
    cursor: pointer;
}