/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scrollbar on body */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d4a574;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #d4a574;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #c08c5a;
}

.btn-outline {
    background: transparent;
    border: 2px solid #d4a574;
    color: #d4a574;
}

.btn-outline:hover {
    background: #d4a574;
    color: white;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Шапка */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;

    margin: 0;
    color: #d4a574;

}

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

/* h1 {
    font-size: 42px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
} */


.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #d4a574;
}

.logo span {
    font-size: 1.1rem;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #d4a574;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info a {
    margin-left: 20px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

.contact-info a i {
    margin-right: 5px;
    color: #25d366;
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)), url('images/Background1.jpg') no-repeat center center/cover;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Преимущества */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.benefit-icon {
    font-size: 2.5rem;
    color: #d4a574;
    margin-bottom: 20px;
}

/* Галерея тканей */
.gallery {
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-img {
    height: 250px;
    object-fit: cover;
}

.gallery-info {
    padding: 15px;
    background: white;
}

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Призыв к действию */
.cta {
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: white;
}

.cta h2::after {
    background: #d4a574;
    left: 50%;
    transform: translateX(-50%);
}

.cta-form {
    max-width: 600px;
    margin: 30px auto 0;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-x: auto; /* Allow horizontal scrolling for the form if needed */
}

.yandex-form-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Условия сотрудничества */
.cooperation {
    background: white;
}

.cooperation-content {
    max-width: 800px;
    margin: 0 auto;
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Увеличена минимальная ширина карточки */
    gap: 30px;
    margin-top: 30px;
}

.cooperation-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.cooperation-card h3 {
    color: #d4a574;
    margin-bottom: 15px;
}

/* О компании */
.about {
    background: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Увеличена минимальная ширина карточки */
    gap: 30px;
    margin-top: 30px;
}

.about-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.about-card h3 {
    color: #d4a574;
    margin-bottom: 15px;
}

/* Контакты */
.contacts {
    background: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-box h3 {
    color: #d4a574;
}

.contact-details {
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: #d4a574;
    width: 20px;
}

.map-container {
    height: 300px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.instagram-link img {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.instagram-link:hover img {
    opacity: 1;
}


/* Футер */
footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #d4a574;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4a574;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin: 20px 0;
    }

    nav ul li {
        margin: 0 10px;
    }

    .contact-info {
        margin-top: 10px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .cooperation-grid,
    .about-grid {
        grid-template-columns: 1fr;
        /* На мобильных устройствах карточки становятся одна под другой */
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .benefits-grid {
        gap: 20px;
    }

    .benefit-card {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item {
        max-width: 100%;
    }

    .cooperation-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-container {
        padding: 10px 15px;
    }

    .contact-info a {
        margin-left: 10px;
        font-size: 0.9rem;
    }

    .cta-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    section {
        padding: 30px 0;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-height: 44px; /* Ensure minimum touch target size */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .benefit-card,
    .gallery-info,
    .cooperation-card,
    .about-card {
        padding: 15px;
    }

    .gallery-img {
        height: 200px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .cta-form {
        padding: 15px;
        margin-top: 20px;
    }
}