/* Общие стили сайта roses.moscow */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ============================================================
   ЛОКАЛЬНЫЕ ШРИФТЫ
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v31-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v31-cyrillic_latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v31-cyrillic_latin-800.woff2') format('woff2');
}

/* ---------- Глобальная типографика ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
    color: #555;
}

a {
    color: #d1005c;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #b0004b;
}

/* Особые элементы */
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.price {
    font-family: 'Montserrat', sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: #f8f8f8;
    border-bottom: 1px solid #e7e7e7;
    padding: 15px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.main-nav a:hover {
    color: #d1005c;
}

/* Бургер-меню скрыт на десктопе */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.burger-menu span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Адаптивная версия */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        padding: 60px 20px;
    }
    .main-nav.active {
        left: 0;
    }
    .main-nav ul {
        flex-direction: column;
    }
    .burger-menu {
        display: flex;
    }
}
/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.price {
    font-size: 1.3em;
    font-weight: bold;
    color: #d1005c;
    margin: 10px 0;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal .close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Табы */
.tabs {
    margin: 20px 0 10px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    border-bottom-color: #d1005c;
    color: #d1005c;
}

.tab-content {
    padding: 10px 0;
}
/* ========== СТРАНИЦА КОНТАКТОВ ========== */
.contacts-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.contacts-info {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contacts-map {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Заголовки секций */
.contacts-info h2,
.contacts-map h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 12px;
}
.contacts-info h2::after,
.contacts-map h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d1005c;
    border-radius: 2px;
}

/* Блок с контактными данными */
.contact-block {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}
.contact-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

/* Иконки (используем эмодзи или псевдоэлементы) */
.contact-item::before {
    font-size: 1.5em;
    min-width: 30px;
    text-align: center;
}
.contact-item:nth-child(1)::before { content: '📞'; }
.contact-item:nth-child(2)::before { content: '✉️'; }
.contact-item:nth-child(3)::before { content: '📍'; }
.contact-item:nth-child(4)::before { content: '🕐'; }

.contact-item h3 {
    margin: 0 0 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8c8d;
}
.contact-item p {
    margin: 0;
    font-size: 1.05em;
    color: #2c3e50;
}
.contact-item a {
    color: #d1005c;
    text-decoration: none;
    font-weight: 500;
}
.contact-item a:hover {
    text-decoration: underline;
}

/* Форма обратной связи */
.feedback-block {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.feedback-form .form-group {
    margin-bottom: 20px;
}
.feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}
.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
}
.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #d1005c;
    box-shadow: 0 0 0 3px rgba(209, 0, 92, 0.1);
    background: #fff;
}
.feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}
.feedback-form .btn {
    background: #d1005c;
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}
.feedback-form .btn:hover {
    background: #b0004b;
    transform: translateY(-2px);
}

/* Карта */
#yandexMap {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-layout {
        flex-direction: column;
    }
    .contacts-info,
    .contacts-map {
        padding: 20px;
    }
    .contacts-info h2,
    .contacts-map h2 {
        font-size: 1.5em;
    }
    #yandexMap {
        height: 300px;
    }
    .contact-item:hover {
        transform: none;
    }
}
/* ========== СТРАНИЦА 404 ========== */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}
.error-content h1 {
    font-size: 6em;
    color: #d1005c;
    margin: 0;
    line-height: 1;
}
.error-content h2 {
    font-size: 2em;
    margin: 10px 0;
    color: #2c3e50;
}
.error-content p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}
.error-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #d1005c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}
.error-content .btn:hover {
    background: #b0004b;
    transform: translateY(-2px);
}
/* ========== ГЛАВНАЯ СТРАНИЦА ========== */

/* --- Hero --- */
.hero {
    position: relative;
    background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: #fff;
    /* Оверлей */
    z-index: 1;
}
/* Тёмный полупрозрачный слой поверх картинки */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); /* затемнение 45% */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-btn {
    background: #d1005c;
    color: #fff;
    padding: 14px 35px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}
.hero-btn:hover {
    background: #b0004b;
    transform: translateY(-2px);
}

/* --- Advantages --- */
.advantages {
    padding: 60px 0;
    background: #fff;
}
.advantages .container {
    display: flex;
    gap: 30px;
    text-align: center;
}
.advantage-item {
    flex: 1;
}
.advantage-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.advantage-item h3 {
    margin-bottom: 8px;
}

/* --- Popular Products --- */
.section-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

/* --- CTA --- */
.cta-block {
    background: #f9f9f9;
    text-align: center;
    padding: 60px 0;
}
.cta-block h2 {
    margin-bottom: 10px;
}
.cta-block p {
    margin-bottom: 25px;
    color: #666;
}
.btn-outline {
    background: transparent;
    border: 2px solid #d1005c;
    color: #d1005c;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: #d1005c;
    color: #fff;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .advantages .container {
        flex-direction: column;
        gap: 20px;
    }
}
.cta-btn-outline {
    background: transparent;
    border: 2px solid #d1005c;
    color: #d1005c;
    margin-left: 10px;
}
.cta-btn-outline:hover {
    background: #d1005c;
    color: #fff;
}
/* Кнопка "Подробнее" в карточке товара на главной */
.detail-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #d1005c;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0 0 16px 16px;
    font-size: 1em;
}
.detail-btn:hover {
    background: #b0004b;
}
/* ========== КАТАЛОГ С САЙДБАРОМ ========== */
.catalog-page h1 {
    margin-bottom: 30px;
}

.catalog-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Основная область с товарами */
.catalog-main {
    flex: 1;
    min-width: 0;
}

/* Сайдбар */
.catalog-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-menu {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 80px;
}

.sidebar-menu h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95em;
}

.sidebar-link:hover {
    background: #fce4ec;
    color: #d1005c;
}

.sidebar-link.active {
    background: #d1005c;
    color: #fff;
    font-weight: 600;
}

/* Кнопка-триггер для мобильных */
.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
}

.sidebar-toggle .toggle-icon {
    transition: transform 0.3s;
}
.sidebar-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .catalog-layout {
        flex-direction: column;
    }

    .catalog-sidebar {
        width: 100%;
        order: -1; /* вверх */
        margin-bottom: 20px;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-menu {
        display: none;
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin-top: 10px;
    }

    .sidebar-menu.open {
        display: block;
    }
}