/*
Theme Name: Точка Безопасности — Корпоративная тема
Theme URI: https://sec-point.giize.com
Description: Корпоративная тема для Точка Безопасности — онлайн-школы информационной безопасности
Author: Точка Безопасности
Version: 3.0
Template: astra
*/

/* ====== ПЕРЕМЕННЫЕ ====== */
:root {
  --ast-global-color-0: #1565C0 !important;
  --ast-global-color-1: #0D47A1 !important;
  --ast-global-color-2: #1a1a2e !important;
  --ast-global-color-3: #1a1a2e !important;
  --ast-global-color-4: #ffffff !important;
  --ast-global-color-5: #f5f7fa !important;
  --ast-global-color-6: #0a0a1a !important;
  --ast-global-color-7: #e0e0e0 !important;
  --ast-global-color-8: #0a0a1a !important;
  --ast-global-color-9: #1565C0 !important;
  --ast-global-color-10: #0D47A1 !important;
  --ast-global-color-11: #1a1a2e !important;
  --ast-global-color-12: #1a1a2e !important;
  --ast-global-color-13: #ffffff !important;
  --ast-global-color-14: #f5f7fa !important;
  --ast-global-color-15: #0a0a1a !important;
  --ast-global-color-16: #e0e0e0 !important;
  --ast-global-color-17: #0a0a1a !important;
  --ast-body-bg: #ffffff;
  --ast-body-color: #1a1a2e;
  --ast-link-color: #1565C0;
  --ast-link-hover-color: #0D47A1;
  --ast-header-bg-color: #ffffff;
  --ast-footer-bg-color: #0d1b3e;
  --ast-footer-color: #b0bec5;
  --ast-h1-color: #0d1b3e;
}

/* ====== ГЛОБАЛЬНЫЕ ====== */
body {
  background-color: var(--ast-body-bg);
  color: var(--ast-body-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--ast-link-color); transition: color 0.2s; }
a:hover { color: var(--ast-link-hover-color); }

h1, h2, h3, h4, h5, h6 { color: #0d1b3e; font-weight: 700; }

/* ====== ШАПКА (стиль Астры) ====== */
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-main-header-wrap {
  background: #0d1b3e !important;
  border-bottom: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.site-header .site-branding {
  display: flex !important;
  align-items: center !important;
}

.site-header .site-branding::before {
  content: '' !important;
  display: none !important;
}

.main-header-menu > li > a,
.main-header-menu > li > .menu-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  padding: 0.5rem 0.9rem !important;
  transition: all 0.2s !important;
}

.main-header-menu > li > a:hover,
.main-header-menu > li > .menu-link:hover,
.main-header-menu > li.current-menu-item > a {
  color: #ffffff !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
}

.main-header-menu > li.current-menu-item > a {
  border-bottom: 2px solid #42a5f5 !important;
}

/* ====== КНОПКИ ====== */
.ast-custom-button,
.wp-block-button .wp-block-button__link,
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button {
  background: #1565C0 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 0.7rem 1.8rem !important;
  border: none !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
}
.ast-custom-button:hover,
.wp-block-button .wp-block-button__link:hover,
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #0D47A1 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}

/* ====== КОНТЕНТ ====== */
.ast-container { max-width: 1240px; }

.site-content { padding: 2rem 0; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #0d1b3e;
  font-weight: 700;
}

.entry-content p,
.entry-content li {
  color: #263238;
  line-height: 1.7;
}

.entry-content a { color: #1565C0; font-weight: 500; }
.entry-content a:hover { color: #0D47A1; text-decoration: underline; }

/* ====== WOOCOMMERCE: МАГАЗИН ====== */
.woocommerce ul.products { margin-bottom: 2rem; }

.woocommerce ul.products li.product {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.woocommerce ul.products li.product:hover {
  border-color: #1565C0;
  box-shadow: 0 8px 30px rgba(21,101,192,0.12);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product a img {
  border-radius: 12px 12px 0 0;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  color: #0d1b3e !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 0.8rem 1rem 0.2rem !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price ins {
  color: #1565C0 !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  padding: 0 1rem;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .price del {
  color: #90a4ae !important;
  font-size: 0.9rem !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  margin: 0.5rem 1rem 1rem !important;
  padding: 0.6rem 1.2rem !important;
  background: #1565C0 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: #0D47A1 !important;
}

/* ====== WOOCOMMERCE: СТРАНИЦА ТОВАРА ====== */
.woocommerce div.product {
  padding: 2rem 0;
}

.woocommerce div.product div.images {
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce div.product div.summary h1,
.woocommerce div.product div.summary h2 {
  color: #0d1b3e !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
}

.woocommerce div.product p.price {
  color: #1565C0 !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: #37474f !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* ====== WOOCOMMERCE: КАТЕГОРИИ ====== */
.woocommerce .woocommerce-ordering {
  margin-bottom: 1.5rem;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  color: #1565C0;
  background: #ffffff;
  border: 1px solid #e3e8ef;
  font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #1565C0;
  color: #ffffff;
  border-color: #1565C0;
}

/* ====== WOOCOMMERCE: КОРЗИНА ====== */
.woocommerce table.shop_table {
  border-collapse: collapse;
}

.woocommerce table.shop_table th {
  background: #f5f7fa;
  color: #0d1b3e;
  font-weight: 700;
  border-bottom: 2px solid #e3e8ef;
  padding: 1rem;
}

.woocommerce table.shop_table td {
  color: #263238;
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem;
}

.woocommerce table.shop_table .product-name a {
  color: #0d1b3e;
  font-weight: 600;
}

.woocommerce .cart-collaterals .cart_totals h2 {
  color: #0d1b3e;
  font-weight: 700;
}

/* ====== WOOCOMMERCE: ФОРМЫ ====== */
.woocommerce form .form-row label {
  color: #37474f;
  font-weight: 600;
  font-size: 0.9rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #263238;
  background: #ffffff;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: #1565C0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
  outline: none;
}

/* ====== WOOCOMMERCE: СООБЩЕНИЯ ====== */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border-top-color: #1565C0 !important;
  background: #e3f2fd !important;
  color: #0d1b3e !important;
}

.woocommerce .woocommerce-info::before {
  color: #1565C0 !important;
}

.woocommerce .woocommerce-error {
  background: #ffebee !important;
  color: #b71c1c !important;
  border-top-color: #b71c1c !important;
}

/* ====== WOOCOMMERCE: АККАУНТ ====== */
.woocommerce .woocommerce-MyAccount-navigation ul li a {
  color: #37474f;
  font-weight: 500;
}

.woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #1565C0 !important;
  font-weight: 700;
}

.woocommerce .woocommerce-MyAccount-content h2 {
  color: #0d1b3e;
  font-weight: 700;
}

/* ====== WOOCOMMERCE: ОФОРМЛЕНИЕ ЗАКАЗА ====== */
.woocommerce-checkout #payment {
  background: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e3e8ef;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #e3e8ef;
}

.woocommerce-checkout #payment div.payment_box {
  background: #ffffff;
  border: 1px solid #e3e8ef;
}

#order_review_heading {
  color: #0d1b3e !important;
  font-weight: 700 !important;
}

/* ====== WOOCOMMERCE: ФИЛЬТРЫ ====== */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background: #1565C0;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: #0D47A1;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ====== WOOCOMMERCE: СТАРЫЕ ЦЕНЫ ====== */
.woocommerce .price del {
  color: #90a4ae !important;
}

/* ====== WOOCOMMERCE: ОПОВЕЩЕНИЯ О ДОБАВЛЕНИИ ====== */
.woocommerce .woocommerce-message a.button {
  background: #1565C0 !important;
  color: #ffffff !important;
}

/* ====== ПОДВАЛ ====== */
.site-footer {
  background: #0d1b3e !important;
  border-top: none !important;
}

.site-footer .ast-footer-copyright {
  color: #b0bec5 !important;
}

.site-footer a { color: #90caf9 !important; }
.site-footer a:hover { color: #ffffff !important; }

/* ====== ФОРМЫ (Контакт-7, Elementor) ====== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  color: #263238;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  background: #ffffff;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: #1565C0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

/* ====== ТАБЛИЦЫ ====== */
th { color: #0d1b3e; font-weight: 700; }
td { color: #37474f; }

/* ====== СКРОЛЛ ВВЕРХ ====== */
#ast-scroll-top {
  background: #1565C0 !important;
  color: #ffffff !important;
}

/* ====== ШАПКА: ТИТУЛ ====== */
.site-title-wrap,
.site-title {
  display: block !important;
}

.site-title {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.ast-site-title-wrap {
  display: flex !important;
  align-items: center !important;
  margin-left: 8px !important;
}

/* Уменьшаем логотип в шапке */
.site-logo-img .custom-logo {
  max-height: 42px !important;
  width: auto !important;
}

/* ====== ШАПКА: МОБИЛЬНАЯ ====== */
.ast-mobile-header-wrap .main-header-bar {
  background: #0d1b3e !important;
  border-bottom: none !important;
}

.ast-mobile-header-wrap .menu-toggle {
  color: #ffffff !important;
}

.ast-mobile-header-wrap .ast-mobile-menu-content {
  background: #0d1b3e !important;
}

.ast-mobile-header-wrap .main-header-menu .menu-link {
  color: rgba(255,255,255,0.85) !important;
}

/* ====== ШАПКА: DROPDOWN ====== */
.main-header-menu .sub-menu {
  background: #ffffff !important;
  border-top: 3px solid #1565C0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.main-header-menu .sub-menu .menu-link {
  color: #37474f !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
}

.main-header-menu .sub-menu .menu-link:hover {
  background: #e3f2fd !important;
  color: #0d1b3e !important;
}

/* ====== ШАПКА: ТЕНЬ И ЛОГОТИП ====== */
#ast-desktop-header {
  position: relative;
  z-index: 100;
}

.site-branding::after {
  content: '' !important;
  display: none !important;
}

/* ====== АДАПТИВНОСТЬ ====== */
@media (max-width: 768px) {
  .woocommerce ul.products li.product {
    margin-bottom: 1rem;
  }
}
