/* Color Palette */
:root {
    --primary-color: #FFD700; /* Gold/Light Yellow */
    --secondary-color: #FFE066; /* Lighter Yellow */
    --dark-color: #343a40;
    --text-color: #333;
    --first-bg-color: #fffaf0;
    --second-bg-color: #fffacd; /* Lemon Chiffon for light yellow background */
    --white-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.5);
}

/* Global Styles — масштаб под устройство пользователя */
html {
    font-size: clamp(14px, 1.8vw + 10px, 16px);
}
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--first-bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

/* Containers: no horizontal overflow on any device */
.container,
.container-fluid {
    max-width: 100%;
    padding-left: max(0.75rem, 4vw);
    padding-right: max(0.75rem, 4vw);
}

.bg-light-yellow {
    background-color: var(--second-bg-color);
}

.navbar-bg {
    background-color: var(--first-bg-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: var(--dark-color);
}

.btn-outline-light {
    color: var(--white-color);
    border-color: var(--white-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

/* Typography */
.hero-title {
    margin-top: 80px;
    font-size: clamp(2rem, 5vw, 4.5rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark-color);
}

.section-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--dark-color);
}

/* Display and lead — адаптивные размеры на всех страницах */
.display-5 {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
}
.lead {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
}

.card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

.site-title {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    color: var(--dark-color);
}

.footer-site-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.site-logo, .footer-logo {
    height: 40px;
    width: auto;
}

@media (max-width: 767.98px) {
    .site-title {
        font-size: 1.25rem; /* ~20px */
    }
    .footer-site-title {
        font-size: 1.1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1.4rem;
    }
    .card-title {
        font-size: 1.2rem;
    }
}

/* Navbar */
.navbar-brand .site-logo {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.offcanvas-header {
    background-color: var(--second-bg-color);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2852, 58, 64, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 1100px) {
    .offcanvas-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .offcanvas-body {
        display: flex;
        flex-grow: 1;
        padding: 0;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: visible;
    }
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    .navbar-toggler {
        display: none;
    }
    .offcanvas {
        position: static;
        visibility: visible;
        background-color: transparent;
        border-right: none;
        transition: none;
        transform: none;
    }
    .offcanvas-header {
        display: none;
    }
}

@media (max-width: 1099.98px) {
    .navbar-nav {
        align-items: flex-start;
        padding-top: 1rem;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    .offcanvas {
        width: 280px;
    }
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    background-image: url('/assets/images/happy-pets-family-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px !important; /* Adjust for fixed header */
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 140px !important; /* Adjust for fixed navbar + mobile contact strip */
    }
}

/* Hero Home (Two-Column Layout) */
.hero-home {
    padding-top: 140px !important;
    padding-bottom: 3rem !important;
    background-color: var(--first-bg-color);
    min-height: auto;
    overflow-x: hidden;
}

.hero-home-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fa9e0a;
    line-height: 1.2;
}

.hero-home-list {
    margin-top: 1.5rem;
    padding-left: 0;
}

.hero-home-list li {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.hero-home-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6a1b9a;
}

/* Video Carousel */
.video-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.video-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #000;
    box-sizing: border-box;
}

.video-carousel-slides {
    position: relative;
    width: 100%;
}

.video-slide {
    width: 100%;
    position: relative;
    display: none;
}

.video-slide.active {
    display: block;
}

.video-carousel-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== Tablet & Mobile: below lg (992px) — columns stack here ===== */
@media (max-width: 991.98px) {
    /* Hero Home: adjust for fixed navbar + mobile contact strip */
    .hero-home {
        padding-top: 150px !important;
        padding-bottom: 2rem !important;
    }
    .hero-home .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }
    .hero-home-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 0.75rem !important;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-home-list {
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }
    .hero-home-list li {
        margin-bottom: 0.4rem;
        font-size: clamp(0.9rem, 3vw, 1.05rem);
        padding-left: 1.25rem;
    }
    .hero-home-list li::before {
        top: 0.4rem;
        width: 7px;
        height: 7px;
    }

    /* Video Carousel */
    .video-carousel {
        margin-top: 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    .video-carousel-container {
        border-radius: 0.375rem;
        max-width: 100%;
    }
    .video-carousel-video {
        aspect-ratio: 16 / 9;
        max-height: 50vh;
        object-fit: cover;
        max-width: 100%;
    }
    .video-carousel-prev,
    .video-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .video-carousel-prev {
        left: 0.5rem;
    }
    .video-carousel-next {
        right: 0.5rem;
    }
    .video-carousel-dots {
        bottom: 0.5rem;
        gap: 0.4rem;
    }
    .video-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
    }
    .video-carousel-caption {
        text-align: center;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    /* Cost Section */
    .cost-section {
        min-height: auto;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .cost-section .display-5 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 1rem !important;
    }
    .cost-section .btn-lg {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    .cost-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem !important;
    }
}

/* ===== Small phones: below 576px ===== */
@media (max-width: 575.98px) {
    .hero-home {
        padding-top: 130px !important;
        padding-bottom: 1rem !important;
    }
    .hero-home-title {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }
    .hero-home-list li {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
        margin-bottom: 0.3rem;
    }
    .video-carousel-prev,
    .video-carousel-next {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

.video-carousel-prev,
.video-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.video-carousel-prev:hover,
.video-carousel-next:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.video-carousel-prev {
    left: 1rem;
}

.video-carousel-next {
    right: 1rem;
}

.video-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.video-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 0;
}

.video-dot.active,
.video-dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
}

.video-carousel-caption {
    color: #908d8a;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 1rem;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
}

.hero-section .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* General Section Padding — меньше на мобильных */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 992px) {
    section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Image Styling — не вылезают за экран */
.img-fluid,
.card-img-top,
.video-carousel-video {
    max-width: 100%;
    height: auto;
}
.breed-card .breed-img,
.animal-card .card-img-top {
    max-width: 100%;
    width: 100%;
    object-fit: contain;
    background-color: #f8f5f0;
}

.rounded {
    border-radius: 0.5rem !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
}

.how-it-works-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Breed Cards */
.breed-card .breed-img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: #f8f5f0;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    width: 100%;
}

/* Animal Tiles */
.animal-tile {
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.animal-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2) !important;
}

.animal-tile-img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: #f8f5f0;
    transition: transform 0.4s ease;
    width: 100%;
}

.animal-tile:hover .animal-tile-img {
    transform: scale(1.05);
}

.animal-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.animal-tile .card-body {
    background-color: var(--white-color);
}

.animal-tile .btn {
    transition: all 0.3s ease;
}

.animal-tile:hover .btn {
    background-color: #e6c200;
    border-color: #e6c200;
}

@media (max-width: 767.98px) {
    .animal-tile-img {
        aspect-ratio: 4 / 3;
    }
}

#animals .row {
    justify-content: center;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item .gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: #f8f5f0;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-card .avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background-color: var(--white-color);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--dark-color);
    background-color: var(--secondary-color);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white-color);
}

/* Call to Action Section */
.cta-section {
    background-image: url('/assets/images/dog-and-cat-together.jpg');
    background-size: cover;
    background-position: center;
}

.cta-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.cta-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.custom-btn {
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

/* Cost Section */
.cost-section {
    background-color: var(--second-bg-color);
    min-height: 300px;
}

/* CTA Form Section */
.cta-form-section {
    background-image: url('/assets/images/dog-and-cat-together.jpg');
    background-size: cover;
    background-position: center;
}

.cta-form-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-logo {
    height: 30px;
}

/* Footer: адаптация под мобильные */
.footer-adaptive .container {
    max-width: 100%;
}
.footer-adaptive .footer-site-title,
.footer-adaptive .navbar-brand span {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 767.98px) {
    .footer-adaptive {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .footer-adaptive .row {
        row-gap: 1rem;
    }
    .footer-adaptive .list-inline-item {
        display: block;
        margin-bottom: 0.5rem;
    }
}
@media (max-width: 575.98px) {
    .footer-adaptive .footer-logo {
        height: 28px;
    }
}

.email-break {
    word-break: break-all;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed navbar height */
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 145px; /* Account for fixed navbar + mobile contact strip */
    }
}

/* Contact Section Buttons */
.contact-btn {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image Marquee */
.marquee-container {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    height: 100%;
    width: max-content;
}

.marquee-left {
    animation: marquee-scroll-left 60s linear infinite;
}

.marquee-right {
    animation: marquee-scroll-right 60s linear infinite;
}

.marquee-img {
    height: 100%;
    width: auto;
    min-width: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

@keyframes marquee-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 767.98px) {
    .marquee-container {
        height: 220px;
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .marquee-img {
        min-width: 220px;
    }
    
    /* Ensure sections with marquees don't overflow */
    #puppies,
    #kittens {
        overflow-x: hidden;
    }
    
    /* Ensure container and row don't allow overflow */
    #puppies .container,
    #puppies .row,
    #kittens .container,
    #kittens .row {
        overflow-x: hidden;
    }
}

/* Base styles for the rights field unit container */
.rightsFieldUnit {
    padding: 20px 25px; /* Top/bottom and left/right padding */
    margin-top: 30px; /* Top margin for separation from preceding content */
    /* You might want to add background-color, border, max-width, etc. here */
}

/* Heading styles */
.rightsFieldUnit h1 {
    font-size: 28px; /* Slightly larger than body text, but not excessively large */
    font-weight: 600; /* Semi-bold for emphasis */
    line-height: 1.2; /* Tighter line height for headings */
    margin-bottom: 15px; /* Space below the heading */
}

.rightsFieldUnit h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.rightsFieldUnit h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.rightsFieldUnit h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.rightsFieldUnit h5 {
    font-size: 16px; /* Often the same as body text, but bold */
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Paragraph styles */
.rightsFieldUnit p {
    font-size: 16px; /* Standard body text size for readability */
    line-height: 1.6; /* Good line height for comfortable reading */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.rightsFieldUnit ul {
    list-style-type: disc; /* Default bullet style */
    padding-left: 20px; /* Indentation for bullet points */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
}

/* List item styles */
.rightsFieldUnit li {
    line-height: 1.5; /* Readability for list items */
    margin-bottom: 0.5em; /* Space between individual list items */
}
#breeds .row {
    justify-content: center;
}
#services .row {
    justify-content: center;
}
section {
    overflow-x: hidden;
}

/* Contact Form Styles */
.contact-form-container {
    background-color: var(--white-color);
    border-radius: 1rem;
    border: 2px solid #000000;
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.contact-form {
    max-width: 100%;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    outline: 0;
}

.contact-form .form-check {
    margin-bottom: 0.5rem;
}

.contact-form .form-check-input {
    margin-top: 0.3rem;
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form .form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Breed Price Styles */
.breed-price {
    font-size: 1.1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* Success Modal Styles */
#successModal .modal-content {
    border-radius: 1rem;
    border: none;
}

#successModal .modal-header {
    background-color: var(--second-bg-color);
    border-radius: 1rem 1rem 0 0;
}

#successModal .modal-body {
    padding: 2rem 1.5rem;
}

#successModal .display-1 {
    font-size: 4rem;
}

@media (max-width: 767.98px) {
    .contact-form-container {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    #successModal .display-1 {
        font-size: 3rem;
    }
}

/* Mobile Header Contact Strip */
.mobile-header-contacts {
    background-color: var(--first-bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.mobile-hc-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.mobile-hc-phone i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.mobile-hc-phone:hover {
    color: var(--primary-color);
}

.mobile-hc-socials {
    display: flex;
    align-items: center;
}

.mobile-hc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-size: 1.1rem;
}

.mobile-hc-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.mobile-hc-icon[aria-label="WhatsApp"] {
    color: #25D366;
}

.mobile-hc-icon[aria-label="Instagram"] {
    color: #E1306C;
}

.mobile-hc-icon[aria-label="TikTok"] {
    color: #000;
}

.mobile-hc-icon[aria-label="Telegram"] {
    color: #0088cc;
}

.mobile-hc-icon[aria-label="Email"] {
    color: #1a73e8;
}

/* Protected Purchase Page Styles */
.protected-purchase-hero {
    background-attachment: fixed;
}

.protected-purchase-hero .overlay {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Comparison Cards */
#comparison .card-header {
    background-color: var(--primary-color) !important;
    border: none;
}

#comparison .card {
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#comparison .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

#comparison .text-success {
    color: #28a745 !important;
}

#comparison .text-danger {
    color: #dc3545 !important;
}

/* Registration Card */
#registration .card {
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

#registration .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Accordion Styles for Scams */
#scamsAccordion .accordion-button {
    background-color: var(--first-bg-color);
    color: var(--dark-color);
    font-weight: 600;
}

#scamsAccordion .accordion-button:not(.collapsed) {
    background-color: var(--second-bg-color);
    color: var(--dark-color);
}

#scamsAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    border-color: var(--primary-color);
}

#scamsAccordion .accordion-item {
    border: 1px solid var(--primary-color);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Warning Banner */
.bg-warning {
    background-color: #ffc107 !important;
}

/* Section Spacing */
section {
    scroll-margin-top: 100px;
}

/* Worldwide Delivery Page Styles */
.worldwide-delivery-hero {
    background-attachment: fixed;
}

.worldwide-delivery-hero .overlay {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Delivery Steps Cards */
#how-delivery .card {
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#how-delivery .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

#how-delivery .card-body i {
    transition: transform 0.3s ease;
}

#how-delivery .card:hover .card-body i {
    transform: scale(1.1);
}

/* ========== Education Section Styles ========== */

/* Education Hero */
.education-hero {
    background-attachment: fixed;
}

.education-hero .overlay {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Education Course Hero */
.education-course-hero {
    background-attachment: fixed;
}

.education-course-hero .overlay {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.4) 0%, rgba(0, 0, 0, 0.65) 100%);
}

/* Delivery Price Table */
.delivery-price-table {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.delivery-price-table thead {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.delivery-price-table thead th {
    font-weight: 700;
    padding: 1rem;
    border: none;
}

.delivery-price-table tbody tr {
    transition: background-color 0.2s ease;
}

.delivery-price-table tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.delivery-price-table tbody td {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== Responsive: масштаб под устройство и мобильная адаптация ========== */

/* Базовое масштабирование: контент подстраивается под ширину экрана */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Якоря: учёт высоты двухстрочного хедера на десктопе */
@media (min-width: 992px) {
    html {
        scroll-padding-top: 120px;
    }
}

@media (max-width: 991.98px) {
    .container {
        padding-left: max(1rem, 5vw);
        padding-right: max(1rem, 5vw);
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: max(0.75rem, 4vw);
        padding-right: max(0.75rem, 4vw);
    }
}

/* Navbar: две строки — адаптация под планшет и мобильный */
.navbar-row-1 {
    min-height: 56px;
}

@media (max-width: 991.98px) {
    .navbar-row-1 .navbar-brand .site-title {
        font-size: 1.1rem;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .navbar-row-1 .site-logo {
        height: 36px;
    }
}

/* Вторая строка навбара (телефон + связи): на средних экранах компактнее */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-row-2 .d-flex.gap-3 {
        gap: 0.75rem !important;
    }
    .navbar-row-2 .site-title {
        font-size: 1rem;
    }
    .navbar-row-2 .header-phone span {
        font-size: 0.9rem;
    }
    .navbar-row-2 .social-btn {
        width: 36px;
        height: 36px;
    }
}

/* Заголовок с градиентом (protection) — перенос и размер на мобильном */
.protection-title-gradient {
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 767.98px) {
    .protection-title-gradient {
        font-size: 1.5rem !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .protection-title-gradient {
        font-size: 1.35rem !important;
    }
}

/* Легальные заводчики: блоки «Что такое порода» и дисклеймер */
#what-is-breed .section-title,
#disclaimer .alert {
    word-wrap: break-word;
}

@media (max-width: 767.98px) {
    #what-is-breed .lead,
    #what-is-breed p {
        font-size: 1rem;
    }
    #disclaimer .alert {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    #what-is-breed .section-title {
        font-size: 1.5rem;
    }
    #disclaimer .alert h3 {
        font-size: 1.1rem;
    }
}

/* Карточки животных: локация и текст не вылезают */
.breed-card .card-body,
.animal-card .card-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.breed-card .card-body li,
.animal-card .card-body li {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

@media (max-width: 575.98px) {
    .breed-card .card-body .card-title,
    .animal-card .card-body .card-title {
        font-size: 1.1rem;
    }
}

/* Мобильная полоска контактов: удобные зоны нажатия */
.mobile-header-contacts {
    padding: 0.6rem max(1rem, 4vw);
    min-height: 48px;
    align-items: center;
}

.mobile-header-contacts .d-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-hc-phone {
    min-height: 44px;
    padding: 0.25rem 0;
    align-items: center;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.mobile-hc-icon {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
}

@media (max-width: 380px) {
    .mobile-header-contacts {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .mobile-hc-phone span {
        font-size: 0.8rem;
    }
}

/* ===== Секции с фиксированным padding-top (breeds, legal, animals и т.д.): адаптив ===== */
@media (max-width: 991.98px) {
    section#breeds,
    section#animals,
    section#intro,
    section#criteria {
        padding-top: 100px !important;
    }
}
@media (max-width: 767.98px) {
    section#breeds,
    section#animals,
    section#intro,
    section#criteria {
        padding-top: 90px !important;
    }
}
@media (max-width: 575.98px) {
    section#breeds,
    section#animals,
    section#intro,
    section#criteria {
        padding-top: 85px !important;
    }
}

/* Модалка карточки животного: удобно на маленьком экране */
@media (max-width: 767.98px) {
    .modal-dialog.modal-xl {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    .modal-body .row {
        flex-direction: column;
    }
    .modal-body .col-lg-5,
    .modal-body .col-lg-7 {
        max-width: 100%;
    }
}
@media (max-width: 575.98px) {
    .modal-dialog.modal-xl {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
}

/* Карточки пород: сетка на очень маленьких экранах */
@media (max-width: 380px) {
    .row-cols-2 .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========== RESPONSIVE OPTIMIZATION — all devices ========== */

/* iOS / touch devices: background-attachment: fixed не поддерживается */
@media (hover: none) and (pointer: coarse) {
    .protected-purchase-hero,
    .worldwide-delivery-hero,
    .education-hero,
    .education-course-hero {
        background-attachment: scroll;
    }
}

/* Section padding: уменьшение на мобильных */
@media (max-width: 767.98px) {
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .row.g-5 {
        --bs-gutter-y: 1.5rem;
        --bs-gutter-x: 1rem;
    }
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    section.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .row.g-5 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 0.75rem;
    }
}

/* Delivery tables: mobile-friendly */
@media (max-width: 767.98px) {
    .delivery-price-table {
        font-size: 0.85rem;
    }
    .delivery-price-table thead th {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    .delivery-price-table tbody td {
        padding: 0.5rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .delivery-price-table {
        font-size: 0.8rem;
    }
    .delivery-price-table thead th {
        padding: 0.5rem 0.35rem;
        font-size: 0.75rem;
    }
    .delivery-price-table tbody td {
        padding: 0.4rem 0.35rem;
    }
}

/* Marquee: very small phones */
@media (max-width: 380px) {
    .marquee-container {
        height: 160px;
    }
    .marquee-img {
        min-width: 160px;
    }
}

/* rightsFieldUnit: responsive headings */
@media (max-width: 767.98px) {
    .rightsFieldUnit {
        padding: 15px 16px;
        margin-top: 20px;
    }
    .rightsFieldUnit h1 {
        font-size: 22px;
    }
    .rightsFieldUnit h2 {
        font-size: 20px;
    }
    .rightsFieldUnit h3 {
        font-size: 17px;
    }
    .rightsFieldUnit h4 {
        font-size: 16px;
    }
    .rightsFieldUnit p {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .rightsFieldUnit {
        padding: 12px 12px;
        margin-top: 16px;
    }
    .rightsFieldUnit h1 {
        font-size: 20px;
    }
    .rightsFieldUnit h2 {
        font-size: 18px;
    }
    .rightsFieldUnit h3 {
        font-size: 16px;
    }
    .rightsFieldUnit p {
        font-size: 14px;
    }
}

/* Contact buttons: better touch targets on mobile */
@media (max-width: 575.98px) {
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Hero section: mobile adjustments */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
    }
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    .cta-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
}

/* Cards: reduce padding on mobile for better space usage */
@media (max-width: 575.98px) {
    .card .p-4,
    .card.p-4 {
        padding: 1rem !important;
    }
    .card .p-3,
    .card.p-3 {
        padding: 0.75rem !important;
    }
    .how-it-works-card .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Accordion: mobile-friendly */
@media (max-width: 575.98px) {
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    .accordion-body {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* Footer: ensure links don't cramp */
@media (max-width: 575.98px) {
    .footer-adaptive .list-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }
    .footer-adaptive .list-inline-item {
        margin-right: 0;
        margin-left: 0;
    }
    .footer-adaptive .list-inline-item + .list-inline-item::before {
        display: none;
    }
}

/* Gallery images: responsive */
@media (max-width: 575.98px) {
    .gallery-item .gallery-img {
        aspect-ratio: 3 / 2;
    }
}

/* Animal tile images: slightly taller ratio on small phones for better visibility */
@media (max-width: 575.98px) {
    .animal-tile-img {
        aspect-ratio: 3 / 2;
    }
}

/* Display icons: scale down on mobile */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    }
}

/* Comparison and registration cards: full-width on small tablets */
@media (max-width: 767.98px) {
    #comparison .col-md-6,
    #registration .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Cost section: mobile */
@media (max-width: 575.98px) {
    .cost-section {
        min-height: auto;
    }
    .cost-section .btn-lg {
        font-size: 0.95rem;
        padding: 0.6rem 1.25rem;
    }
}