@font-face {
    font-family: 'Jost';
    src: local('Jost'), url('/static/fonts/Jost.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Jost';
    src: local('Jost'), url('/static/fonts/Jost.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Jost';
    src: local('Jost'), url('/static/fonts/Jost.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --color-brand: #544864;
    --color-brand-hover: #3e354a;
    --color-text: #443854;
    --color-accent: #EB826B;
    --color-accent-hover: #d46a54;
    --color-bg: #f0f0f0;
    --color-card: #fff;
    --color-muted: #8a7a94;
    --color-light: #999;
    --color-border: #eee;
    --color-sticky: #fef9e7;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 4px 12px rgba(84,72,100,0.12);
    --radius-card: 12px;
    --radius-sm: 8px;
}

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

html {
    font-size: 20px;
}

body {
    font-family: 'Jost', system-ui, -apple-system, sans-serif;
    background-color: rgba(255,255,255,0.8);
    background-image: url('/static/img/back11.png');
    background-repeat: repeat;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--color-text);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

a {
    color: var(--color-text);
    transition: color 0.15s;
}
a:hover {
    color: var(--color-accent-hover);
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

/* Main content wrapper — отступ от подвала */
main.wrapper {
    padding-bottom: 40px;
}
main.wrapper.homepage {
    padding-bottom: 0;
}

/* Header */
.page-header {
    margin: 0;
    padding: 0;
}
.header-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 0;
    padding-bottom: 0;
}
.logo-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}
.pet-logo {
    display: block;
}
.menu-items {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.menu-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.menu-link:hover {
    color: #A44330;
}

.dropdown-trigger {
    position: relative;
    cursor: pointer;
}
.dropdown-label {
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e0ddd8;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 180px;
    z-index: 100;
    margin-top: 0;
}
.dropdown-trigger:hover .dropdown-menu,
.dropdown-trigger:focus-within .dropdown-menu {
    display: block;
}
.dropdown-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 8px;
}
.dropdown-item {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s;
}
.dropdown-item:hover {
    background: #f5f2ed;
    color: var(--color-brand);
}

/* Mobile menu */
.mobile-menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    color: #8A5633;
}
.mobile-menu-icon img {
    width: 32px;
    height: 32px;
    display: block;
}
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.35);
}
.mobile-menu-overlay.open {
    display: block;
}
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 480px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
}
.mobile-menu-overlay.open .mobile-menu-panel {
    left: 0;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}
.mobile-menu-item {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}
.mobile-menu-item:hover {
    background: #f5f5f5;
}
.mobile-menu-nav hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 12px 0;
}

@media screen and (max-width: 720px) {
    .mobile-menu-icon {
        display: block;
    }
    .menu-items {
        display: none;
    }
}

/* Section title */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-brand);
}
@media (max-width: 600px) {
    .section-title {
        font-size: 1.1rem;
    }
}

/* Footer */
.pet_mainfooter{
    width: 100%;
    background-color: #544864;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;

}

.pet_mainfooter_content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.copyright{
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    width: 100%;
    line-height: 1.6;
}

.footer_bottom{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

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

.footer_column_title{
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer_link{
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
}

.footer_link:hover{
    opacity: 0.8;
    text-decoration: underline;
}

.footer_contact_line{
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
}

.footer_contact_line a{
    color: #FFFFFF;
}

.contact_icon_32{
    width: 32px;
    height: 32px;
}

@media screen and (max-width: 768px) {
    .pet_mainfooter{
        padding: 15px 0;
    }

    .pet_mainfooter_content{
        gap: 12px;
        align-items: center;
        padding: 0 10px;
    }

    .copyright{
        font-size: 12px;
        text-align: center;
    }

    .footer_bottom{
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    .footer_column{
        align-items: flex-start;
    }

    .footer_column_title{
        font-size: 13px;
    }

    .footer_link{
        font-size: 12px;
        text-align: left;
    }

    .contact_icon_32{
        width: 28px;
        height: 28px;
    }
}

@media screen and (max-width: 480px) {
    .footer_bottom{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer_column{
        align-items: center;
        text-align: center;
    }

    .footer_link{
        text-align: center;
    }
}

/* Global download app button (reusable) */
.btn-download-app {
    display: inline-block;
    padding: 10px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 18px;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-download-app:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235,130,107,0.3);
    color: white;
}

/* Name picker button (reusable) */
.name-picker-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: #E38572;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.name-picker-link:hover {
    background: #d4735e;
    color: white;
}

/* Download page */
.download-page {
    text-align: center;
    padding: 40px 0;
}
.download-subtitle {
    color: var(--color-muted);
    margin-bottom: 32px;
    font-size: 1rem;
}
.download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-brand);
    transition: box-shadow 0.2s, transform 0.2s;
}
.download-btn:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    color: var(--color-brand);
}
@media screen and (max-width: 600px) {
    .download-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Tags block */
.tags-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-chip {
  color: var(--color-brand);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.tag-chip:hover {
  color: var(--color-accent);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-light);
    margin-bottom: 16px;
}
.breadcrumbs a {
    color: var(--color-accent);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs > * + *::before {
    content: "/";
    color: var(--color-light);
    margin-right: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}
.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--color-card);
    color: var(--color-brand);
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: background 0.15s, color 0.15s;
}
.pagination a:hover {
    background: var(--color-accent);
    color: #fff;
}
.pagination .active {
    background: var(--color-brand);
    color: #fff;
}

/* Typography - spacing for headings and paragraphs */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* First heading after content should have less top margin */
.breed-text h2:first-child,
.breed-text h3:first-child,
.element-flowing-text h2:first-child,
.element-flowing-text h3:first-child,
.category-text h2:first-child,
.category-text h3:first-child {
    margin-top: 0;
}

/* RuStore award block */
.rustore-award {
    background: linear-gradient(135deg, #544864 0%, #6b5b7a 100%);
    padding: 40px 20px;
}
.rustore-award-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}
.rustore-award-cup {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}
.rustore-award-cup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.rustore-award-content {
    flex: 1;
}
.rustore-award-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 12px;
}
.rustore-award-desc {
    font-size: 16px;
    color: #e8dff0;
    margin: 0 0 8px;
    line-height: 1.5;
}
.rustore-award-text {
    font-size: 14px;
    color: #c4b8d0;
    margin: 0 0 16px;
    line-height: 1.5;
}
.rustore-award-link {
    display: inline-block;
    color: #FFD700;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    transition: border-color 0.2s;
}
.rustore-award-link:hover {
    border-bottom-color: #FFD700;
}
@media (max-width: 768px) {
    .rustore-award-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .rustore-award-title {
        font-size: 20px;
    }
}

/* Responsive */
@media (max-width: 600px) {
    html { font-size: 16px; }
    .wrapper { padding: 0 12px; }
    .header-wrapper { flex-direction: row; gap: 8px; }
    header h1 { font-size: 1.2rem; }
    h1 { font-size: 1.2rem; }
    h2 { font-size: 1.15rem; }
    h3 { font-size: 1.05rem; }
}
