/* GLOBAL */


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #FFFFFF;
  color: #072C48;
  overflow-x: hidden;
}

/* Сброс списков */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
  /* Убирает буллеты и номера */
}

/* Сброс ссылок */
a {
  text-decoration: none;
  /* Убирает подчеркивание */
  color: inherit;
  /* Наследует цвет от родителя */
  cursor: pointer;
  transition: color 0.3s ease;
}

/* При наведении на ссылку можно добавить легкий эффект */
a:hover,
a:focus {
  color: #2E6BB8;
  /* например, акцентный цвет */
  outline: none;
  /* если нужна, можно убрать */
}

/* Сброс отступов и полей */
body,
p {
  margin: 0;
  padding: 0;
}

/* Обнуляем box-sizing для всех элементов */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* LAYOUT HEADER & FOOTER */


.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: #f2f2f2;
}

.site-content {
  flex: 1;
  padding: 20px;
}


/* LOGO & NAV */

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.site-header {
  background-color: #2E6BB8;
  color: #FFFFFF;
  padding: 1rem;
}

.main-nav a {
  color: #FFFFFF;
  margin: 0 1rem;
  text-decoration: none;
}


.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.site-content {
  padding: 30px;
  background-color: #e7f0f5;
  background-image: url("https://www.transparenttextures.com/patterns/rocky-wall.png");
}

/* ===== SIDEBAR STYLES ===== */

.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  background-color: #A9C8E2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  color: #072C48;
  scrollbar-width: thin;
  scrollbar-color: #6b8fad #A9C8E2;
}

/* Для Webkit-браузеров (Chrome, Edge, Safari) */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #6b8fad;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: #A9C8E2;
}

/* Mobile off-canvas sidebar and toggle */
.mobile-menu-toggle {
  display: none; /* visible on small screens */
  position: fixed;
  z-index: 12002;
  left: 14px;
  top: 14px;
  background: #2E6BB8;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 12000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #072C48;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    width: 80%;
    max-width: 360px;
    z-index: 12001;
    transition: transform 0.28s ease;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open #mobileOverlay {
    display: block;
    opacity: 1;
  }

  .sidebar-close {
    display: block;
  }

  /* Global adjustments for smaller screens */
  .site-content {
    padding: 14px;
  }

  /* Breadcrumbs offset for mobile (to avoid burger menu overlap) */
  .breadcrumbs,
  .site-content > .breadcrumb_trail,
  .site-content > nav {
    margin-left: 50px !important;
    margin-top: 10px;
  }

  .logo img {
    max-width: 140px;
    height: auto;
  }

  .site-header {
    padding: 12px;
  }

  /* MODAL STYLES (base rules copied from original) */
  .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    display: flex;
    max-width: 750px;
    max-height: 560px;
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
  }

  .modal-left {
    flex: 1;
    background: #dbeeff;
  }

  .modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-right {
    flex: 1;
    padding: 30px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .modal-right h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
  }

  .modal-right p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .modal-right input,
  .modal-right textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }

  .modal-right small {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 10px;
    display: block;
  }

  /* Small-screen overrides */
  .modal-content {
    max-width: 92%;
    max-height: 90vh;
    flex-direction: column;
  }

  .modal-left { display: none; }
  .modal-right { padding: 18px 14px; }

  .order-form form { gap: 8px; }
}

/* Small phones */
@media (max-width: 420px) {
  .mobile-menu-toggle { left: 10px; top: 10px; font-size: 18px; padding: 6px 8px; }
  .site-content { padding: 10px; }
  .sidebar { width: 88%; }
}

.sidebar-header {
  padding: 20px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px;
}


/* ACCORDION STYLE */

.accordion-toggle {
  cursor: pointer;
  background-color: #A9C8E2;
  border: none;
  padding: 10px 15px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #072C48;
  width: 100%;
  text-align: left;
  outline: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 8px;
  user-select: none;
}

.accordion-toggle.active {
  background-color: #2E6BB8;
  color: white;
}

.accordion-item .item strong {
  font-size: 1.15rem;
  display: block;
  margin-bottom: 10px;
}

.accordion-item .item {
  margin: 0 0 20px 0;
  font-size: 1rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 20px;
  margin: 0;
  list-style: none;
}

.accordion-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 10px 0 15px 0;
}

.accordion-content ul li {
  margin-bottom: 8px;
}

.accordion-content ul li a {
  font-size: 1.1rem;
  color: #072C48;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  cursor: pointer;
}

.accordion-content ul li a:focus {
  color: #2E6BB8;
}

.static-links li a {
  display: block;
  background-color: #A9C8E2;
  color: #072C48;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ... rest of file continues ... */
