/* Base styles */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #f5f5f5;
    --border-color: #e5e5e5;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Raleway', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --transition: all 0.3s ease;
    --phone-number: "+1234567890";
    --address: "123 Main St, City, Country";
}

.error-section {
    padding: 6rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.error-icon {
    font-size: 5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1A1F2C;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.error-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-suggestions {
    margin-bottom: 2.5rem;
    background-color: #F1F0FB;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.suggestions-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1A1F2C;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.suggestions-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    list-style-type: none;
}

.suggestions-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.suggestions-list li:before {
    content: "•";
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.error-contact {
    margin-bottom: 2.5rem;
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1A1F2C;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.contact-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}


.home-button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #F1F0FB;
    color: #1A1F2C;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #E6E4F6;
}

/* Responsive styles for error pages */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-icon {
        font-size: 4rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-text {
        font-size: 1rem;
    }

    .suggestions-title,
    .contact-subtitle {
        font-size: 1.25rem;
    }

    .home-button-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 5rem;
    }

    .error-icon {
        font-size: 3.5rem;
    }

    .error-title {
        font-size: 1.75rem;
    }
}

.phone::after {
    content: var(--phone-number);
}

.address::after {
    content: var(--address);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    flex-grow: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Text animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 2rem;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 1.125rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link.active {
    font-weight: 500;
}

.mobile-menu-button {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.menu-icon {
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hero section */
.hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
    background: linear-gradient(to bottom, #f5f5f5, #fff);
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 36rem;
    margin: 0 auto 2rem;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.button-primary {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.button-primary:hover {
    background-color: #222;
    box-shadow: var(--shadow-sm);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.button-secondary:hover {
    background-color: #f9f9f9;
    box-shadow: var(--shadow-sm);
}

.button-secondary svg {
    margin-right: 0.5rem;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 10rem;
        padding-bottom: 5rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Services preview section */
.services-preview {
    padding: 4rem 0;
    background-color: #fff;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: #666;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 1rem; /* Отступ слева */
    padding-right: 1rem; /* Отступ справа */
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card-image {
    height: 14rem;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-in-out;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.service-card-description {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
}

.service-card-link svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-card-link:hover svg {
    transform: translateX(4px);
}

.link-with-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 1.125rem;
    transition: var(--transition);
}

.link-with-arrow svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.link-with-arrow:hover svg {
    transform: translateX(4px);
}

.about-preview {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    color: #666;
}

.about-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA section */
.cta-section {
    padding: 4rem 0;
    background-color: #333;
    color: #fff;
    text-align: center;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.cta-text {
    color: #ddd;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #f0f0f0;
    box-shadow: var(--shadow-sm);
}

.cta-button svg {
    margin-right: 0.5rem;
}

/* Contact information section */
.contact-info {
    padding: 3rem 0;
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-text {
    color: #333;
    transition: var(--transition);
}

a.contact-text:hover {
    color: #000;
}

.contact-subtext {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Contact form */
.contact-form-container {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #555;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(153, 153, 153, 0.2);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.form-submit:hover {
    background-color: #222;
    box-shadow: var(--shadow-sm);
}

.send-icon {
    margin-right: 0.5rem;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #777;
    margin-top: 1rem;
    text-align: center;
}

/* Map section */
.map-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.section-description {
    text-align: center;
    color: #666;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.map-container {
    max-width: 50rem;
    height: 24rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

/* Footer styles */
.footer {
    background-color: #f5f5f5;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-text {
    color: #666;
    max-width: 20rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #fff;
    border-radius: 50%;
    transition: var(--transition);
    color: #333;
    box-shadow: var(--shadow-sm);
}

.footer-social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #666;
    transition: var(--transition);
}

.footer-link:hover {
    color: #333;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    color: #666;
}

.footer-contact-text {
    transition: var(--transition);
}

a.footer-contact-text:hover {
    color: #333;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    font-size: 0.875rem;
    color: #777;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    font-size: 0.875rem;
    color: #777;
    transition: var(--transition);
}

.footer-bottom-link:hover {
    color: #333;
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.4s ease-out;
}

/* About page styles */
.about-section {
    padding: 4rem 0;
    background-color: #fff;
}

.values-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 4rem;
    height: 4rem;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.value-description {
    color: #666;
}

.advantages-section {
    padding: 4rem 0;
    background-color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.advantage-card {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.advantage-card:hover {
    box-shadow: var(--shadow-sm);
    background-color: #f0f0f0;
}

.advantage-icon {
    background-color: #fff;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow-sm);
    color: #333;
}

.advantage-content {
    flex-grow: 1;
}

.advantage-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.advantage-description {
    color: #666;
    font-size: 0.9375rem;
}

/* Services page styles */
.services-detailed {
    padding: 4rem 0;
    background-color: #fff;
}

.service-detailed-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.service-detailed-card:hover {
    box-shadow: var(--shadow-md);
}

.service-detailed-grid {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .service-detailed-grid {
        flex-direction: row;
    }
}

.service-detailed-image {
    width: 100%;
    height: 15rem;
}

@media (min-width: 768px) {
    .service-detailed-image {
        width: 33.333%;
        height: auto;
    }
}

.service-detailed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detailed-content {
    padding: 2rem;
    flex: 1;
}

.service-detailed-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-detailed-description {
    color: #666;
    margin-bottom: 1rem;
}

.service-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.service-list li {
    margin-bottom: 0.5rem;
}

.service-contact {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
}

.service-phone {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    transition: var(--transition);
}

.service-phone:hover {
    color: #000;
}

.service-phone svg {
    margin-right: 0.5rem;
}

/* Services catalog styles */
.catalog-section {
    padding: 5rem 0 4rem;
    background-color: #fff;
}

.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catalog-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.catalog-description {
    color: #666;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.catalog-item {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.catalog-item-image {
    height: 12rem;
    overflow: hidden;
}

.catalog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.catalog-item:hover .catalog-item-image img {
    transform: scale(1.05);
}

.catalog-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-item-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.catalog-item-price {
    color: #222;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.catalog-item-description {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.catalog-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.catalog-button {
    background-color: #333;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.catalog-button:hover {
    background-color: #222;
    box-shadow: var(--shadow-sm);
}

.catalog-button svg {
    margin-right: 0.5rem;
}

.catalog-button-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #333;
    font-weight: 500;
    transition: var(--transition);
}

.catalog-button-secondary svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.catalog-button-secondary:hover svg {
    transform: translateX(4px);
}

.catalog-filters {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.catalog-filter-button {
    background-color: #f5f5f5;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.catalog-filter-button:hover {
    background-color: #eee;
    color: #333;
}

.catalog-filter-button.active {
    background-color: #333;
    color: #fff;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.catalog-page-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.catalog-page-button:hover {
    background-color: #eee;
    color: #333;
}

.catalog-page-button.active {
    background-color: #333;
    color: #fff;
}

/* Monument catalog specific styles */
.monument-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.monument-item {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.monument-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.monument-item-image {
    height: 18rem;
    overflow: hidden;
}

.monument-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.monument-item:hover .monument-item-image img {
    transform: scale(1.05);
}

.monument-item-content {
    padding: 1.5rem;
}

.monument-item-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.monument-item-subtitle {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.monument-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.monument-feature {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    color: #666;
}

.monument-feature svg {
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

/* Services navigation buttons */
.services-navigation {
    padding: 1.5rem 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    margin-top: 0;
}

.services-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.services-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 160px;
    text-align: center;
}

.services-nav-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.services-nav-button.active {
    background-color: #333;
    color: #fff;
}

.services-nav-button i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-nav-button span {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-nav-button {
        min-width: 120px;
        padding: 0.75rem;
    }

    .services-nav-button i {
        font-size: 1.25rem;
    }

    .services-nav-button span {
        font-size: 0.8rem;
    }
}

/* New Funeral Organization Page Styles */
.funeral-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
    background: linear-gradient(to bottom, #333, #555);
    text-align: center;
    color: #fff;
}

.funeral-hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out forwards;
}

.funeral-hero-subtitle {
    font-size: 1.25rem;
    color: #eee;
    max-width: 36rem;
    margin: 0 auto 2rem;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.funeral-details-section {
    padding: 4rem 0;
    background-color: #fff;
}

.funeral-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .funeral-info-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.funeral-info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.funeral-section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1.5rem;
}

.funeral-services-title {
    text-align: center;
    margin-bottom: 3rem;
}

.funeral-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.funeral-info-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.funeral-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.funeral-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .funeral-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.funeral-service-item {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.funeral-services-grid::after {
   justify-content: center
}



.funeral-service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: #f5f5f5;
}

.funeral-service-icon {
    background-color: #fff;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    color: #444;
}

.funeral-service-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.funeral-service-text {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.funeral-pricing-box {
    background-color: #f9f9f9;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
}

.pricing-title {
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-description {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3rem;
}

.funeral-packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .funeral-packages {
        grid-template-columns: repeat(3, 1fr);
    }
}

.funeral-package {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.funeral-package.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
    z-index: 1;
}

.funeral-package:hover {
    box-shadow: var(--shadow-md);
}

.package-header {
    background-color: #f5f5f5;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.funeral-package.featured .package-header {
    background-color: #333;
    color: #fff;
}

.package-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
}

.package-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.package-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-check {
    color: #4CAF50;
    margin-right: 0.75rem;
    font-weight: bold;
}

.package-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-top: auto;
}

.funeral-cta-section {
    padding: 5rem 0;
    background: linear-gradient(to right, #2d3436, #4a4a4a);
    color: #fff;
    text-align: center;
}

.funeral-cta-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.funeral-cta-text {
    color: #ddd;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.funeral-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #333;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.125rem;
}

.funeral-cta-button:hover {
    background-color: #f0f0f0;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.funeral-cta-button svg {
    margin-right: 0.75rem;
}

.catalog-page-button {
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.catalog-page-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.catalog-page-button:hover {
    background-color: #f0f0f0;
}

.sorting-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.sort-button:hover {
    background-color: #f0f0f0;
}

.sort-button.active {
    background-color: #007bff; /* Синий цвет для активной кнопки */
    color: #fff; /* Белый текст */
    border-color: #007bff;
}

.sort-button:hover {
    background-color: #f0f0f0;
}

.construction-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 75vh;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
}

.construction-content {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.construction-icon {
    width: 6rem;
    height: 6rem;
    background-color: #f5f5f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
}

.construction-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #333;
}

.construction-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.construction-contact {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.contact-subtitle {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
}

.contact-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-button:hover {
    background-color: #222;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.contact-button svg,
.contact-button i {
    margin-right: 0.75rem;
}

.home-button-container {
    margin-top: 2rem;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.home-button:hover {
    background-color: #eee;
    box-shadow: var(--shadow-sm);
}

.home-button svg,
.home-button i {
    margin-right: 0.75rem;
}
