/* Основные стили сайта */
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: #f4f4f4; 
    line-height: 1.5;
}

.header-two-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* h1 может быть выше */
    gap: 20px;
    padding: 20px;
}

.header-two-columns h1 {
    margin: 0;
    flex: 1; /* Занимает пространство слева */
}

.header-two-columns nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Ссылки справа */
    gap: 10px;
    margin-right: 10px;
}

.header-two-columns nav a {
    text-decoration: none;
    color: inherit;
}

#cart-count {
    position: absolute;
    top: 20px;
    right: 20px; /* Фиксируем корзину справа в header */
}




header { 
    background: #0ea5e9;
    color: white; 
    padding: 1rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
}
header h1 { margin: 0; }
nav a { 
    color: white; 
    margin: 0 1rem; 
    text-decoration: none; 
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}
nav a:hover { text-decoration: underline; }
#cart-count { 
    background: #111827; 
    padding: 0.5rem 1rem; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold;
}

/* Каталог */
.search-bar { 
    padding: 1rem; 
    background: white; 
    display: flex; 
    gap: 1rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}
#search-input, #category-filter { 
    flex: 1; 
    padding: 0.75rem; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
}
.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.catalog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 1.5rem; 
}
.catalog-menu {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
}
.catalog-search {
    background: white;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.product { 
    background: white; 
    padding: 1.5rem; 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.1); 
    text-align: center;
}
.product img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 1rem;
}
.add-to-cart { 
    background: #0ea5e9; 
    color: white; 
    border: none; 
    padding: 0.75rem; 
    width: 100%; 
    cursor: pointer; 
    border-radius: 6px; 
    font-weight: bold;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}
.add-to-cart:hover { background: #0284c7; }

/* Модалки */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 1000; 
    backdrop-filter: blur(2px);
}
.modal-content { 
    background: white; 
    margin: 5% auto; 
    padding: 2rem; 
    width: 90%; 
    max-width: 600px; 
    border-radius: 12px; 
    position: relative; 
    max-height: 80vh;
    overflow-y: auto;
}
.close { 
    position: absolute; 
    right: 1.5rem; 
    top: 1.5rem; 
    font-size: 2.5rem; 
    cursor: pointer; 
    color: #666;
    transition: color 0.2s ease;
}
.close:hover { color: #0ea5e9; }

/* Контакты */
.contacts-section { 
    max-width: 1400px; 
    margin: 2rem auto; 
    padding: 1rem 2%; 
}
.contacts-row1 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2.5rem 0;
}
.contacts-col-left { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}
.contacts-col-right iframe {
    height: 420px;
}
.contacts-row2 { 
    margin-top: 2.5rem; 
}
.contact-item { 
    background: white; 
    padding: 1.25rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    margin-bottom: 0;
}
.contact-item h3 { 
    color: #0ea5e9; 
    margin-top: 0; 
    margin-bottom: 1rem;
}
.schedule { 
    background: #f8f9fa; 
    padding: 1.25rem; 
    border-left: 4px solid #0ea5e9; 
    border-radius: 0 8px 8px 0;
}
form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}
input, textarea { 
    padding: 0.75rem; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-size: 1rem;
}
textarea { resize: vertical; min-height: 120px; }
button[type="submit"] { 
    background: #0ea5e9; 
    color: white; 
    border: none; 
    padding: 0.875rem; 
    cursor: pointer; 
    border-radius: 6px; 
    font-size: 1.1rem; 
    font-weight: bold;
    transition: background 0.2s ease;
}
iframe { 
    width: 100%; 
    height: 380px; 
    border-radius: 12px; 
}

/* Футер */
.footer {
    background: #0ea5e9;
    color: white;
    padding: 1.25rem 1rem 0.75rem;
    margin-top: 4rem;
}
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}
.footer-row1 { 
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
}
.footer-row2 { 
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: start; 
}
.footer-row3 { 
    grid-column: 1 / -1; 
    text-align: center; 
    font-size: 0.8rem; 
    line-height: 1.3;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.footer-row3 p { margin: 0.125rem 0; }
.footer-col { 
    display: flex; 
    flex-direction: column; 
    gap: 0.125rem; 
}
.footer-col h4 { 
    margin: 0 0 0.25rem 0; 
    font-size: 1rem; 
}
.footer-col p { margin: 0; line-height: 1.2; }
.contact-link { 
    color: white; 
    text-decoration: none; 
    font-size: 0.95rem; 
}
.contact-link:hover { text-decoration: underline; }
.callback-form { 
    background: rgba(255,255,255,0.08); 
    padding: 0.75rem; 
    border-radius: 6px; 
}
.callback-input { 
    width: 100%; 
    padding: 0.5rem; 
    margin-bottom: 0.5rem; 
    border: none; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 1rem;
}
.checkbox-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.25rem; 
    font-size: 0.8rem; 
    margin-bottom: 0.5rem; 
}
.checkbox-group input[type="checkbox"] { margin-right: 0.25rem; }
.checkbox-link { color: #cffafe; text-decoration: none; }
.checkbox-link:hover { text-decoration: underline; }
.callback-btn { 
    background: white; 
    color: #0ea5e9; 
    border: none; 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    width: 100%; 
    font-size: 0.95rem;
}

/* Доставка */
.delivery-section { 
    max-width: 1400px; 
    margin: 2rem auto; 
    padding: 1rem 2%; 
}
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
}
.delivery-col-left { display: flex; flex-direction: column; gap: 1.5rem; }
.delivery-col-right { display: flex; flex-direction: column; }
.address-block { 
    background: #f8f9fa; 
    padding: 1.25rem; 
    border-radius: 8px; 
    margin: 1rem 0;
    border-left: 4px solid #0ea5e9;
}
.address { 
    font-weight: 600; 
    color: #333; 
    margin: 0.5rem 0;
    line-height: 1.4;
}
.tks-container { text-align: center; margin: 1.5rem 0; }
.tks { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.75rem; 
    justify-content: center; 
    margin: 1rem 0;
}
.tks span { 
    background: rgba(14,165,233,0.2); 
    color: #0ea5e9; 
    padding: 0.5rem 1rem; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: 500;
}
.delivery-block { 
    background: white; 
    padding: 2rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

/* О компании */
.about-section { 
    max-width: 1400px; 
    margin: 2rem auto; 
    padding: 1rem 2%; 
}
.about-hero { 
    background: linear-gradient(135deg, #f8faff 0%, #e6f3ff 100%); 
    padding: 3rem 2rem; 
    border-radius: 20px; 
    margin-bottom: 4rem;
    text-align: center;
}
.about-main { max-width: 1200px; margin: 0 auto; }
.about-text p { max-width: 900px; margin: 0 auto 2rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
}
.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(14,165,233,0.15);
    text-align: center;
}
.feature-item h4 { 
    color: #0ea5e9; 
    margin-bottom: 1rem; 
    font-size: 1.3rem;
}
.requisites-section { 
    background: white; 
    padding: 3rem; 
    border-radius: 16px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.requisites-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.requisites-main h4 { 
    color: #0ea5e9; 
    font-size: 1.5rem; 
    margin-bottom: 1.5rem;
}
.requisites-stores h4 { 
    color: #0ea5e9; 
    margin-bottom: 1.5rem;
}
.store-list p {
    background: rgba(14,165,233,0.1);
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 8px;
    font-weight: 500;
}

/* Логотип */
.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

/* Адаптив */
@media (max-width: 1400px) {
    .contacts-section, .footer-grid, .catalog-container { max-width: 1200px; }
}
@media (max-width: 1024px) {
    .contacts-row1, .delivery-grid, .catalog-container { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer-row1 { grid-template-columns: repeat(2, 1fr); }
    .footer-row2 { grid-template-columns: 1fr; }
    .requisites-grid { grid-template-columns: 1fr; gap: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; text-align: center; }
    .search-bar, .contacts-row1 { flex-direction: column; }
    .catalog-grid { grid-template-columns: 1fr; padding: 1rem; }
    .footer-row1 { grid-template-columns: 1fr; }
    .footer-grid { gap: 0.5rem; }
    .footer-col { gap: 0.1rem; }
    iframe { height: 280px; }
    .about-hero, .requisites-section { padding: 2rem 1rem; }
}