.unit--accent .unit__cta { background: linear-gradient(135deg, #d28f80 0%, #b86f5f 100%); box-shadow: 0 6px 18px rgba(210,143,128,.35); }
.unit--accent .unit__cta:hover { background: linear-gradient(135deg, #e29f90 0%, #c87f6f 100%); }
/* Neutral showcase units (avoid ad-like naming) */
.unit {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: center;
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fbff 100%);
}

.unit--showcase { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.unit--accent { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.unit--primary { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }

.unit__media { width: 100%; height: 100%; display: flex; align-items: center; }
.unit__media img, .unit__media video { width: 100%; height: 100%; max-height: 280px; border-radius: 10px; display: block; object-fit: cover; }
.unit__body { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.unit__title { margin: 0 0 8px; font-size: 1.35rem; }
.unit__text { margin-bottom: 12px; color: #444; line-height: 1.45; }
.unit__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #4a90e2;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  width: auto;
  min-width: 140px;
  max-width: 100%;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 0;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}
.unit__cta:hover { 
  background: #357abd; 
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

/* Rail (carousel-like) */
.unit-rail { position: relative; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.unit-rail__track { display: flex; gap: 16px; scroll-snap-type: x mandatory; }
.unit-rail__slide { flex: 0 0 100%; scroll-snap-align: start; }

/* Full-bleed option for shop desktop */
.unit--fullbleed { grid-template-columns: 2fr 3fr; padding: 28px; }

@media (max-width: 768px) {
  .unit { grid-template-columns: 1fr; padding: 14px; }
  .unit--fullbleed { grid-template-columns: 1fr; }
  .unit__media img, .unit__media video { max-height: 200px; }
}
/* Новые компоненты хедера и футера */

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, all 0.3s ease;
}

/* Предотвращаем изменение размера логотипа при скрытии шапки */
.header[style*="translateY(-100%)"] .header__logo img {
    height: 60px !important;
}

/* Мобильные стили для шапки */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        /* Убираем анимацию скрытия на мобильных */
        transition: all 0.3s ease;
        /* Шапка всегда видна на мобильных */
        transform: translateY(0) !important;
    }
    
    .main-content {
        padding-top: 120px;
    }
}

.header__top {
    padding: 15px 0;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header__logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.header__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header__schedule {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.2;
    color: #666;
}

.header__schedule span:first-child {
    font-weight: 600;
    color: #333;
}

.header__social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.header__social p {
    font-size: 12px;
    color: #666;
    margin: 0;
    text-align: center;
}

.header__social .social-links {
    display: flex;
    gap: 10px;
}

.header__social .social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.header__social .social-links img:hover {
    transform: scale(1.1);
}

.header__cart {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cart-link:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.header__contacts p {
    font-size: 12px;
    color: #666;
    margin: 0;
    text-align: center;
}

.header__contacts a {
    font-size: 17px;
    font-weight: 600;
    color: #d2afa0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header__contacts a:hover {
    color: #007bff;
}

.call-back-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.call-back-btn:hover {
    color: #0056b3;
}

.header__mobile-contacts {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.header__mobile-contact-item {
    font-size: 12px;
    color: #666;
}

.header__mobile-phone a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.header__menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__menu-btn span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

/* Навигация */
.header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__nav.active {
    opacity: 1;
    visibility: visible;
}

.header__nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #007bff;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__section--main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer__logo-text {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.footer__description {
    font-size: 14px;
    color: #ccc;
    margin: 0;
    line-height: 1.5;
}

.footer__section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: white;
}

.footer__social .social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.footer__social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer__social .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.meta-notice {
    font-size: 10px;
    color: #999;
    font-style: italic;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: #007bff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #007bff;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #007bff;
}

.contact-text {
    color: white;
    font-weight: 500;
}

.contact-label {
    font-size: 12px;
    color: #999;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer__copyright {
    font-size: 12px;
    color: #999;
}

.footer__b17 img {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer__b17:hover img {
    opacity: 1;
}

.footer__legal {
    display: flex;
    gap: 20px;
}

.footer__legal .footer__link {
    font-size: 12px;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* ===== POPUPS ===== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup__content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup__content--large {
    max-width: 800px;
}

.popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup__close:hover {
    background: #f5f5f5;
    color: #333;
}

.popup h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.popup__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #007bff;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.privacy-policy-link {
    color: #007bff;
    text-decoration: none;
}

.privacy-policy-link:hover {
    text-decoration: underline;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--primary {
    background: #007bff;
    color: white;
}

.btn--primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Контент попапов */
.privacy-policy-popup__content,
.agreement-popup__content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Модальное окно политики конфиденциальности должно быть поверх других */
#privacy-policy-popup {
    z-index: 3000 !important;
}

.privacy-policy-popup__content h4,
.agreement-popup__content h4 {
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.privacy-policy-popup__content ul,
.agreement-popup__content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.privacy-policy-popup__content li,
.agreement-popup__content li {
    margin-bottom: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .header__content {
        gap: 15px;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer__section--main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .header__info,
    .header__social,
    .header__contacts {
        display: none;
    }
    
    .header__mobile-contacts {
        display: none;
    }
    
    .header__menu-btn {
        display: flex;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer__legal {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .header__top {
        padding: 10px 0;
    }
    
    .header__content {
        gap: 10px;
    }
    
    .header__logo img {
        height: 30px;
    }
    
    .popup__content {
        padding: 20px;
        margin: 10px;
    }
    
    .popup h3 {
        font-size: 20px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
} 