/* Basic Reset & Global Styles */
body {
    margin: 0;
    font-family: 'Inter', sans-serif; /* Using a common modern sans-serif font */
    color: #1a202c; /* Dark gray text */
    background-color: #ffffff; /* White background */
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    overflow-x: hidden; /* Prevent horizontal scroll on mobile menu */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0; /* Subtle border */
    position: sticky; /* Makes header stick to top */
    top: 0;
    z-index: 1000; /* Ensures header is above other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Light shadow for depth */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #000000;
    text-decoration: none;
}
@media (min-width: 768px) {
    .logo {
        font-size: 2rem; /* md:text-3xl */
    }
}

/* Navigation */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem; /* Space between desktop nav items */
}

.nav-menu a {
    text-decoration: none;
    color: #1a202c;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #4a5568; /* Slightly darker on hover */
}

/* Hamburger Menu Button */
.hamburger-button {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above mobile menu */
}

.hamburger-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a202c;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 767px) { /* For screens smaller than 768px */
    .hamburger-button {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%; /* Adjust as needed */
        height: 100%;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
    }

    .nav-menu.active {
        right: 0; /* Slide in */
    }

    .nav-menu li {
        margin-bottom: 1.5rem;
    }

    .nav-menu a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    /* Hamburger animation when active */
    .hamburger-button.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-button.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-button.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Sections */
section {
    padding: 4rem 0; /* Increased padding for more breathing room */
    text-align: center;
}

section.bg-gray-50 {
    background-color: #f9fafb; /* Light gray background */
}

/* Headings */
h1 {
    font-size: 3.5rem; /* text-5xl */
    font-weight: 700; /* font-bold */
    letter-spacing: -0.03em; /* tracking-tighter */
    margin-bottom: 2.5rem; /* mb-8 */
    line-height: 1.1;
}
@media (min-width: 640px) { /* sm */
    h1 { font-size: 4.5rem; } /* sm:text-6xl */
}
@media (min-width: 768px) { /* md */
    h1 { font-size: 5.5rem; } /* md:text-7xl */
}
@media (min-width: 1024px) { /* lg */
    h1 { font-size: 6rem; } /* lg:text-8xl */
}

h2 {
    font-size: 2.5rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    letter-spacing: -0.02em; /* tracking-tight */
    margin-bottom: 2rem; /* mb-6 */
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}
@media (min-width: 640px) { /* sm */
    h2 { font-size: 3rem; } /* sm:text-4xl */
}
@media (min-width: 768px) { /* md */
    h2 { font-size: 3.75rem; } /* md:text-5xl */
}
@media (min-width: 1024px) { /* lg */
    h2 { font-size: 4.5rem; } /* lg:text-6xl */
}

/* Paragraphs */
.text-content p {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75; /* leading-relaxed */
    margin-bottom: 1.5rem; /* space-y-4 */
}
@media (min-width: 768px) { /* md */
    .text-content p { font-size: 1.25rem; } /* md:text-xl */
}
.text-content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Align text left within its container */
}

/* Images */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* h-[300px] */
    border-radius: 0.75rem; /* Slightly more rounded corners */
    overflow: hidden;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15), 0 6px 12px -3px rgba(0, 0, 0, 0.08); /* Stronger shadow for hero */
    margin-bottom: 3rem; /* mb-12 */
}
@media (min-width: 768px) { /* md */
    .image-wrapper.hero-image {
        height: 500px; /* md:h-[500px] */
    }
}
.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* gap-8 */
}
@media (min-width: 768px) { /* md */
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
.image-gallery .image-wrapper {
    height: 250px; /* Slightly smaller for gallery */
    margin-bottom: 0; /* Override default margin */
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 3px 6px -2px rgba(0, 0, 0, 0.06); /* Medium shadow */
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.5rem; /* px-8 py-3, slightly larger */
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    border-radius: 0.5rem; /* rounded-md */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease; /* Smooth transitions */
    cursor: pointer;
    border: none;
    letter-spacing: 0.025em; /* Slight letter spacing */
}

.button.primary {
    background-color: #000000; /* bg-black */
    color: #ffffff; /* text-white */
}

.button.primary:hover {
    background-color: #2d3748; /* hover:bg-gray-800 */
    transform: translateY(-2px); /* Subtle lift effect */
}
.button.primary:active {
    transform: translateY(0);
}

/* Call to Action specific styling */
.cta-text {
    font-size: 2.5rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 2.5rem; /* mb-8 */
    line-height: 1.2;
}
@media (min-width: 768px) {
    .cta-text {
        font-size: 3rem;
    }
}

/* Footer */
footer {
    background-color: #1a202c; /* Dark background */
    color: #e2e8f0; /* Light text */
    padding: 3rem 0;
    text-align: left;
}

footer .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) { /* sm */
    footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) { /* md */
    footer .container {
        grid-template-columns: repeat(4, 1fr); /* Four columns for links */
    }
}

footer h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    text-decoration: none;
    color: #cbd5e0; /* Lighter gray for links */
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #4a5568; /* Separator line */
    font-size: 0.875rem;
    color: #a0aec0;
}

/* Services Page Specific Styles */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto;
    text-align: left; /* Align service content left */
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Two columns on larger screens */
    }
}

.service-item {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.08), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the start */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.12), 0 5px 10px -3px rgba(0, 0, 0, 0.06);
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: #000000;
}

.service-item p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.service-item .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-top: auto; /* Pushes price to the bottom */
}

.service-item .icon {
    font-size: 2.5rem; /* Larger icon size */
    margin-bottom: 0.5rem;
}
.page-title {
  font-size: 2rem; /* по умолчанию для мобильных */
  margin-bottom: 2rem;
  word-wrap: break-word;
  text-align: center; /* по желанию, чтобы не выходил за края */
  max-width: 100%; /* чтобы не лез за границы */
}

@media (min-width: 640px) {
  .page-title { font-size: 2.5rem; }
}

@media (min-width: 768px) {
  .page-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .page-title { font-size: 4rem; }
}


/* Contact Page Specific Styles */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 4rem; /* Add bottom margin */
    text-align: left;
}

@media (min-width: 640px) {
    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.contact-item {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.08), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #000000; /* Icon color */
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #000000;
}

.contact-item p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.working-hours {
    max-width: 400px;
    margin: 0 auto 4rem;
    background-color: #f0f2f5; /* Slightly darker background for hours */
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.working-hours h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #000000;
    text-align: center;
}

.working-hours p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.working-hours p strong {
    font-weight: 700;
    color: #1a202c;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    text-align: left;
}

.contact-form-container h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #000000;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 0.375rem;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000; /* Black border on focus */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1); /* Light black shadow on focus */
}

.form-group textarea {
    min-height: 120px;
    resize: vertical; /* Allow vertical resizing */
}

.form-submit-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.form-submit-button:hover {
    background-color: #2d3748;
    transform: translateY(-2px);
}

.form-submit-button:active {
    transform: translateY(0);
}