/*
Theme Name: Песок Солигорск
Theme URI: https://pesok-soligorsk.by/
Author: Your Name
Author URI: https://example.com/
Description: Тема для pesok-soligorsk.by — продажа и доставка песка, щебня, гравия в Солигорске. Glassmorphism, ширина 1300px, адаптивный хедер.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pesok-soligorsk
*/

/* Reset & base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: radial-gradient(circle at top, #f9fafb 0, #e5e7eb 35%, #d1d5db 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Layout container (1300px max) */
.container {
  width: 100%;
  margin: 0 auto;
}

/* Glassmorphism card wrapper */
.glass-wrapper {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s ease, box-shadow 0.25s ease, background 0.25s ease;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.site-header.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  border: 1px dashed #9ca3af;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-description {
  font-size: 0.8rem;
  color: #6b7280;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.primary-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #111827;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.primary-menu > li > a::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  opacity: 0;
  transform: scaleX(0.8);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
  background: rgba(209, 250, 229, 0.7);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Above / below menu widget areas */
.header-widgets-above,
.header-widgets-below {
  padding: 4px 20px;
}

.header-widgets-above-inner,
.header-widgets-below-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.header-widgets-above-inner,
.header-widgets-below-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.82rem;
  color: #4b5563;
}

.header-widgets-above-inner .widget,
.header-widgets-below-inner .widget {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Mobile header */
.mobile-header {
  display: none;
  padding: 10px 20px 14px;
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  border: 1px dashed #9ca3af;
}

.mobile-site-title {
  font-size: 1rem;
  font-weight: 600;
}

.mobile-menu-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 10% 0, #e5e7eb 0, #f9fafb 60%, #e5e7eb 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.mobile-menu-toggle:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

.mobile-menu-toggle span {
  position: absolute;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 16px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 22px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 28px;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  z-index: 999;
}

.mobile-menu-panel.is-open {
  display: block;
}

.mobile-menu-panel-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(80%, 320px);
  height: 100%;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: -14px 0 34px rgba(15, 23, 42, 0.45);
  padding: 80px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  text-decoration: none;
}

.mobile-menu > li > a:hover {
  background: rgba(209, 250, 229, 0.95);
}

/* Content layouts */
.content-area {
  padding: 0px 0 0px;
}

.content-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.2fr);
  gap: 26px;
}

.no-sidebar .content-inner {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: relative;
}

.sidebar-inner {
  padding: 18px 18px 20px;
}

.sidebar .widget {
  margin-bottom: 18px;
}

.sidebar .widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 8px;
}

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

.sidebar .widget ul li {
  padding: 4px 0;
  font-size: 0.9rem;
}

.entry {

}

.entry-header {
  margin-bottom: 18px;
}

.entry-title {
  margin: 0 0 4px;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.entry-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.entry-content {
  font-size: 0.98rem;
  line-height: 1.72;
}

.entry-content p {
  margin-bottom: 1em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

/* Footer / basement sidebar */
.site-footer {
  background: radial-gradient(circle at top, #020617 0, #020617 25%, #020617 100%);
  color: #e5e7eb;
  padding: 32px 0 22px;
}

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

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer-widgets .widget {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.footer-widgets .widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #9ca3af;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  padding-top: 10px;
}

.footer-bottom a {
  color: #d1d5db;
}

/* Responsive */
@media (max-width: 960px) {
  .primary-navigation {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .content-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 16px;
  }

  .container {
    padding-inline: 14px;
  }

  .entry {
    padding-inline: 18px;
  }

  .sidebar-inner {
    padding-inline: 16px;
  }

  .footer-widgets .widget {
    padding-inline: 14px;
  }
}

/* 1. Убираем горизонтальный скролл у сайта (важно для полноширинных блоков) */
html, body {
    overflow-x: hidden;
}

/* 2. Магия "Прорыва" контейнера */
.full-width-breakout {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* 3. Обновленная шапка */
.contacts-header-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1590333746438-d81ff161030c?q=80&w=2070&auto=format&fit=crop'); /* Замени на фото блоков */
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.contacts-header-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 10px 0;
    text-transform: uppercase;
    font-weight: 800;
}

/* Хлебные крошки */
.contacts-breadcrumbs {
    font-size: 0.85rem;
    opacity: 0.8;
}
.contacts-breadcrumbs a { color: #22c55e; } /* Цвет из твоей темы */

/* 4. Секция с контентом */
.contacts-main-bg {
    background: #f3f4f6; /* Светлый фон из твоей темы */
    background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    padding: 60px 0 100px;
}

/* 5. Карточки (Glassmorphism) */
.glass-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px; /* Ограничиваем только сами карточки по центру */
    margin: 0 auto;
    padding: 0 20px;
}

.glass-card-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.glass-card-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    border-color: #22c55e;
}

/* Кнопка Viber */
.viber-button {
    display: inline-flex;
    align-items: center;
    background: #7360f2;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 15px;
    text-decoration: none !important;
}

.viber-button img {
    width: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    display: inline;
}

/* Реквизиты */
.requisites-box {
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.requisites-box div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 5px 0;
}

@media (max-width: 768px) {
    .glass-card-grid { grid-template-columns: 1fr; }
}
.ps-footer-full-width {
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #0f172a; /* Глубокий темный цвет */
    color: #e2e8f0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    padding-top: 80px;
    margin-top: 100px;
    box-sizing: border-box;
    border-top: 4px solid #22c55e;
}

.ps-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* 2. Брендинг и информация */
.ps-footer-about h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ps-footer-about p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 25px;
}

.ps-footer-unp {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 3. Заголовки колонок */
.ps-footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.ps-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #22c55e;
    border-radius: 3px;
}

/* 4. Списки ссылок с анимацией */
.ps-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-footer-menu li {
    margin-bottom: 12px;
}

.ps-footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.ps-footer-menu a:hover {
    color: #22c55e;
    transform: translateX(8px);
}

/* 5. Контакты в футере */
.ps-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ps-footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 1.2rem;
}

.ps-footer-contact-text a {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

/* Кнопка Viber в футере */
.ps-footer-viber {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #7360f2;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(115, 96, 242, 0.3);
}

.ps-footer-viber:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(115, 96, 242, 0.5);
}

/* 6. Нижняя панель (Copyright) */
.ps-footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0a0f1d;
}

.ps-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.ps-footer-legal a {
    color: #64748b;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.ps-footer-legal a:hover {
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ps-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ps-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .ps-footer-contact-item {
        justify-content: center;
    }
    .ps-footer-bottom-inner {
        flex-direction: column;
    }
    .ps-footer-legal a {
        margin: 0 10px;
    }
}
/* Закрепление хедера для ПК и мобилки */
.site-header {
    position: fixed; /* Изменил на fixed для 100% надежности */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Чтобы контент не заезжал под закрепленный хедер */
body {
    padding-top: 55px; /* Высота хедера */
}

/* Ограничение ширины 1300px */
.container-header {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ПК Хедер: выравнивание в ОДИН ряд */
.header-main-row {
    padding: 10px 0;
}

.site-branding {
    flex-shrink: 0; /* Чтобы логотип не сжимался */
}

.custom-logo {
    height: 55px; /* Немного уменьшил, чтобы влезло меню */
    width: auto;
    display: block;
}

/* Меню в один ряд */
.primary-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* ЗАПРЕТ ПЕРЕНОСА */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px; /* Расстояние между кнопками */
}

.primary-menu li {
    white-space: nowrap; /* Текст внутри кнопок в одну строку */
}

.primary-menu li a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.primary-menu li a:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Телефон */
.header-contact-info {
    flex-shrink: 0;
}

.header-phone {
    background: #22c55e;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 1rem;
    display: block;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
.mobile-header {
    display: none;
    padding: 10px 0;
}

.mobile-logo {
    height: 45px;
    width: auto;
}

/* Панель меню (Гамбургер) */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Скрыто за экраном */
    width: 100%;
    height: 100vh;
    background: #1e293b; /* ТЕМНЫЙ ФОН для читаемости */
    z-index: 10000;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 80px 20px 20px;
}

.mobile-menu-panel.is-open {
    right: 0; /* Показываем */
}

.mobile-menu-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.mobile-menu li a {
    display: block;
    color:#2b2b2b;
    padding: 15px;
    font-size: 1.2rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-panel-phone {
    background: #22c55e;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 20px;
    text-decoration: none;
}

/* Адаптивность хедера */
@media (max-width: 1100px) {
    .header-main-row { display: none; }
    .mobile-header { display: block; }
    body { padding-top: 65px; } /* На мобилке хедер ниже */
}