/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
}
.site-header {
    position: fixed; /* закрепляем сверху */
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    z-index: 100; /* поверх всех блоков */
    display: flex;
    align-items: center;
}
.logo {
    height: 170px; /* регулируем размер логотипа */
    width: auto;
}
/* Hero Section */
/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* немного снизу */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('img/background2.jpg'); /* путь относительно CSS файла */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    font-size: 4rem;
    margin-bottom: 20px;
    color: #e6a835;
}
.hero h2 {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero p {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s; /* задержка */
    font-size: 1.6rem;
    color: #a1a1a1;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 20px; /* расстояние между кнопками */
    justify-content: center;
    flex-wrap: wrap; /* если экран маленький — кнопки перейдут на новую строку */
}

.hero-buttons .button {
    min-width: 180px; /* можно задать одинаковую ширину для обеих кнопок */
}
/* Стрелка вниз */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: translateX(-50%) rotate(-45deg);
    animation: bounce 1.5s infinite;
}

/* Анимация "прыжка" */
@keyframes bounce {
    0% {
        transform: translate(-50%, 0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, 10px) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px) rotate(-45deg);
        opacity: 0;
    }
}
/* Кнопки */
.button {
    background-color: #fff;          /* начальный фон */
    color: #000000;                  /* текст */
    border: 2px solid #b38e16;       /* обводка кнопки */
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;       /* плавный переход */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}


/* Медный градиент при наведении */
.button:hover {
    background: linear-gradient(45deg, #b87333, #caa179); /* медный градиент */
    color: #fff; /* текст меняем на белый для контраста */
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* About Section */
.about {
    padding: 100px 20px;
    background-image: url('img/background4.jpeg'); /* светлый фон */
    background-size: cover;
    background-position: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Заголовок */
.about-title {
    font-size: 2.6rem; /* было ~2.2 */
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Золотая линия */
.gold-line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b8962e);
    border-radius: 2px;
}

/* Основной текст */
.about-text {
    font-size: 1.25rem; /* было ~1.1 */
    line-height: 1.9;
    color: #444;
    margin-bottom: 35px;
    font-weight: 700;
    
}

/* Маленькая сдержанная заметка */
.about-note {
    font-size: 20px; /* было 13px */
    color: #8b6d09;
    opacity: 0.7;
}

/* Services Section */
.services {
    padding: 100px 20px;
    background-image: url('img/background1.jpg'); /* тёмный фон */
    background-size: cover;
    background-position: center;
    color: #fff;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Заголовок */
.services-title {
    font-size: 2.6rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Сетка */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Карточка */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    overflow: hidden; /* чтобы картинка не выходила за рамки */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Hover */
.service-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Картинка */
.service-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.service-card:hover .service-img {
    transform: scale(1.05);
}
/* Текстовая часть */
.service-card h3 {
    font-size: 1.4rem;
    margin: 20px 20px 10px;
}

.service-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ddd;
    margin: 0 20px 20px;
}

/* Why Section */
.why {
    padding: 100px 20px;
    background-image: url('img/background5.jpeg'); /* светлый фон */
    background-size: cover;
    background-position: center;
}

.why-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Заголовок */
.why-title {
    font-size: 2.6rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Сетка */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Карточка */
.why-item {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.5); /* золотая обводка */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
}

/* Hover */
.why-item:hover {
    transform: translateY(-6px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* Иконка */
.why-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* Заголовок */
.why-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Текст */
.why-item p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

/* Control Section */
.control {
    padding: 100px 20px;
    background-image: url('img/background9.jpeg'); /* тёмный фон */
    background-size: cover;
    background-position: center;
    color: #fff;
}

.control-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Заголовок */
.control-title {
    font-size: 2.4rem;
    margin-bottom: 60px;
}

/* Сетка */
.control-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Карточка */
.control-item {
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    overflow: hidden; /* важно для картинки */
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Hover */
.control-item:hover {
    transform: translateY(-6px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* Картинка */
.control-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Текстовая часть */
.control-item h3 {
    font-size: 1.4rem;
    margin: 20px 20px 10px;
}

.control-item p {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.7;
    margin: 0 20px 20px;
}
/* Галерея */
.gallery {
    padding: 100px 20px;
    background-image: url('img/background6.jpeg'); /* тёмный фон */
    background-size: cover;
    background-position: center;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок */
.gallery-title {
    font-size: 2.6rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Карусель */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 10px;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

.carousel-item img:hover {
    border-color: #d4af37;
}

/* Кнопки */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}
/* Catalog Section */
.catalog {
    padding: 100px 20px;
    background-image: url('img/background7.jpeg'); /* светлый фон */
    background-size: cover;
    background-position: center;
    text-align: center;
}

.catalog-container {
    max-width: 900px;
    margin: 0 auto;
}

.catalog-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
}

.catalog-text {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 40px;
}

/* Кнопка */
.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

.catalog-btn:hover {
    background: linear-gradient(90deg, #b8860b, #d4af37);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Иконка PDF */
.catalog-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}
/* Отступ перед карточками */
.catalog-items {
    margin-top: 60px;
}

/* Сетка */
.catalog-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Карточка */

.catalog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

/* Hover всей карточки */
.catalog-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212,175,55,0.3);
}

/* Эффект увеличения картинки */
.catalog-card:hover .catalog-img {
    transform: scale(1.05);
}

.catalog-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Заголовок */
.catalog-card h3 {
    margin: 15px;
    color: #fff;
    font-size: 1.2rem;
}
@media(max-width: 1000px) {
    .catalog-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .catalog-items {
        grid-template-columns: 1fr;
    }
}

/* Форма */
.form-section {
    padding: 100px 20px;
    background-image: url('img/background8.jpeg'); /* тёмный фон */
    background-size: cover;
    background-position: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Заголовок */
.form-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Подзаголовок */
.form-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #000;
}

/* Поля формы */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #000000;
}

.contact-form input,
.contact-form select {
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.5);
    background: rgba(255,255,255,0.05);
    font-size: 1rem;
    outline: none;
    color: #000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.contact-form input::placeholder,
.contact-form select {
    color: #a1a1a1;
}

.contact-form input:focus,
.contact-form select:focus {
    border-color: #d4af37;
    box-shadow: 0 4px 10px rgba(212,175,55,0.3);
}

/* Кнопка */
.form-btn {
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #d4af37;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    background: linear-gradient(90deg, #b8860b, #d4af37);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}
/* Контакты */
.contacts {
    padding: 100px 20px;
    background-image: url('img/background2.jpg'); /* тёмный фон */
    background-size: cover;
    background-position: center;
    color: #fff;
}

.contacts-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Заголовок */
.contacts-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Контактная информация */
.contact-card {
    border: 2px solid #d4af37; /* золотая рамка */
    border-radius: 12px;
    padding: 20px 25px;
    max-width: 100%;
    background: rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between; /* равномерно распределяем элементы по ширине */
    align-items: center; /* выравнивание по вертикали */
    gap: 30px; /* расстояние между контактами */
    overflow-x: auto; /* если экран узкий — появляется горизонтальный скролл */
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    white-space: nowrap; /* предотвращаем перенос текста */
}

.contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* если хочешь золотые иконки */
.contact-icon {
    filter: brightness(0) saturate(100%) invert(70%) sepia(30%) saturate(500%) hue-rotate(10deg);
}

.contact-text a {
    color: #d4af37;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Карта */
.contact-map {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

/* Примечание */
.contact-note {
    font-size: 16px;
    color: #999;
}
/* Примечание */
.form-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}
/* Footer */
footer {
    background-color: #000;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px 20px;
}

/* Контейнер */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    font-family: Arial, Helvetica, sans-serif;
    flex-wrap: wrap;
}

/* Блок */
.footer-block {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Ссылки */
.footer-block a {
    color: #d4af37;
    text-decoration: none;
}

.footer-block a:hover {
    text-decoration: underline;
}
/* ==========================
   Адаптив для планшетов
========================== */
@media (max-width: 1000px) {
    .services-grid,
    .why-grid,
    .control-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.3rem;
    }

    .catalog-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================
   Адаптив для смартфонов
========================== */
@media (max-width: 600px) {
    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 1.7rem;
    }
    .hero p {
        font-size: 1rem;
    }

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

    /* Сетки */
    .services-grid,
    .why-grid,
    .control-grid,
    .catalog-items {
        grid-template-columns: 1fr;
    }

    /* Контакты */
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        overflow-x: visible; /* скролл не нужен */
    }

    /* Кнопки и формы */
    .button,
    .catalog-btn,
    .form-btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-form {
        gap: 15px;
    }

    /* Продукт/Карточки */
    .product-container {
        flex-direction: column;
        gap: 20px;
    }

    .carousel-item img {
        height: auto;
    }
}

/* ==========================
   Общие улучшения для мобильных
========================== */
img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden; /* предотвращаем горизонтальный скролл */
}