/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  color: #2d3e1f;
  background: #f0f5e8;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header_bottom {
  background: #ffffff;
  border-bottom: 2px solid #2d4a1e;
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.logo-title {
  font-size: 20px;
  font-weight: 900;
  color: #2d4a1e;
  line-height: 1.2;
}
.logo-title .uppercase { text-transform: uppercase; }

/* ===== NAV ===== */
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
nav ul li a {
  display: block;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: bold;
  color: #2d4a1e;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: #2d5a1a;
  color: #fff;
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, #1a3a0f 0%, #2d5a1a 60%, #3d7a2a 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.page-banner .container { position: relative; }
.page-banner h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li:not(:last-child)::after { content: ' /'; margin-left: 6px; }
.breadcrumb .active { color: #fff; }

/* ===== SECTION ===== */
.section { padding: 50px 0; background: #f0f5e8; }
.section-white { padding: 50px 0; background: #fff; }
.section-dark { padding: 50px 0; background: #e8f0dd; }

/* ===== HEADINGS ===== */
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 24px;
  font-weight: 800;
  color: #2d5a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #3d7a2a;
  margin: 10px auto 0;
}
.section-title p {
  color: #555;
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.card {
  background: #fff;
  border: 1px solid #c8dcb0;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(45,90,26,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45,90,26,0.13);
}
.card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #2d5a1a;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}
.card .btn-card {
  display: inline-block;
  margin-top: 16px;
  background: #2d5a1a;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.card .btn-card:hover { background: #3d7a2a; }

/* ===== BUTTONS ===== */
.btn-main {
  display: inline-block;
  background: #2d5a1a;
  color: #fff !important;
  padding: 11px 32px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-main:hover { background: #3d7a2a; transform: scale(1.02); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #2d5a1a !important;
  padding: 10px 28px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #2d5a1a;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: #2d5a1a; color: #fff !important; }

/* ===== REQUISITES BLOCK ===== */
.adress_cont {
  background: #e8f0dd;
  border: 1px solid #b0c8a0;
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(45,90,26,0.08);
}
.adress_cont .icon_bottom {
  font-size: 28px;
  color: #3d7a2a;
  margin-bottom: 10px;
}
.adress_cont h4 {
  color: #2d5a1a;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 14px;
}
.adress_cont p {
  margin-bottom: 6px;
  font-size: 14px;
  color: #2d3e1f;
  line-height: 1.7;
}

/* ===== TEXT CONTENT ===== */
.text-block {
  background: #fff;
  border-radius: 10px;
  padding: 32px 36px;
  border: 1px solid #d0dcb8;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(45,90,26,0.06);
}
.text-block h3 {
  font-size: 18px;
  font-weight: 800;
  color: #2d5a1a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.text-block p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
}
.text-block ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}
.text-block ul li {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 5px;
}

/* ===== DOC DOWNLOAD ITEM ===== */
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #c8dcb0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}
.doc-item:hover { box-shadow: 0 3px 12px rgba(45,90,26,0.1); }
.doc-icon { font-size: 28px; flex-shrink: 0; }
.doc-info { flex: 1; }
.doc-info strong { font-size: 14px; color: #2d4a1e; display: block; margin-bottom: 3px; }
.doc-info span { font-size: 12px; color: #888; }
.doc-btn {
  display: inline-block;
  background: #2d5a1a;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  transition: background 0.2s;
}
.doc-btn:hover { background: #3d7a2a; }

/* ===== ACCORDION ===== */
.accordion-item { margin-bottom: 6px; border-radius: 6px; overflow: hidden; }
.acc-header {
  background: #e8f0dd;
  border: 1px solid #b8cfa0;
  border-radius: 6px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: bold;
  color: #2d5a1a;
  transition: background 0.2s;
  user-select: none;
}
.acc-header:hover, .acc-header.open { background: #2d5a1a; color: #fff; }
.acc-header .star { color: #b00; margin-right: 8px; font-size: 15px; }
.acc-header.open .star { color: #ffcccc; }
.acc-header .arrow { transition: transform 0.3s; font-size: 16px; }
.acc-header.open .arrow { transform: rotate(180deg); }
.acc-body {
  display: none;
  border: 1px solid #b8cfa0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 16px 22px;
  background: #fff;
}
.acc-body.open { display: block; }
.acc-body ul { list-style: none; padding: 0; }
.acc-body ul li {
  padding: 3px 0 3px 14px;
  position: relative;
  font-size: 13px;
  color: #444;
  line-height: 1.55;
}
.acc-body ul li::before { content: '–'; position: absolute; left: 0; color: #888; }

/* CLOSED ORDERS */
.acc-header.closed { background: #c0392b; color: #fff; border-color: #a00; }
.acc-header.closed:hover { background: #a93226; }
.acc-header.closed .star { color: #ffaaaa; }

/* ===== IMPORTANT BOX ===== */
.info-box {
  background: #fffbe6;
  border-left: 4px solid #e6a817;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
.info-box strong { color: #b7730a; }

/* ===== HERO (index) ===== */
.hero {
  background: linear-gradient(135deg, #1a3a0f 0%, #2d5a1a 50%, #3d7a2a 100%);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(255,255,255,0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 60%, rgba(255,255,255,0.04) 0%, transparent 40%);
}
.hero-inner { position: relative; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 260px; }
.hero-text h1 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-text h1 span { color: #a8e060; }
.hero-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-text .btn-hero {
  display: inline-block;
  background: #fff;
  color: #2d5a1a !important;
  padding: 13px 36px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 12px;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.hero-text .btn-hero:hover { background: #a8e060; }
.hero-text .btn-hero-outline {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: all 0.2s;
}
.hero-text .btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero-logo {
  flex-shrink: 0;
  text-align: center;
}
.hero-logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: #2d5a1a;
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: #a8e060;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ===== PROGRAM CARD ===== */
.prog-card {
  background: #fff;
  border: 1px solid #c8dcb0;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(45,90,26,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.prog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(45,90,26,0.13); }
.prog-card .prog-num {
  font-size: 40px;
  font-weight: 900;
  color: #c8dcb0;
  line-height: 1;
  margin-bottom: 8px;
}
.prog-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #2d5a1a;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.3;
}
.prog-card p { font-size: 13px; color: #555; line-height: 1.65; flex: 1; margin-bottom: 18px; }

/* ===== FOOTER ===== */
footer {
  background: #1a3a0f;
  color: #d4e8b0;
  padding: 50px 0 0;
  border-top: 3px solid #3d6b2a;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 10px;
}
.footer-block h2 {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8ab870;
  margin-bottom: 14px;
}
.footer-block p { font-size: 13px; line-height: 1.9; color: rgba(180,210,150,0.8); }
.footer-block a { color: rgba(180,210,150,0.8); }
.footer-block a:hover { color: #d4e8b0; }
.footer-menu li { margin-bottom: 7px; }
.footer-menu li a { font-size: 13px; color: rgba(180,210,150,0.8); }
.footer-menu li a::before { content: '› '; }
.footer-menu li a:hover { color: #d4e8b0; }
.cprt {
  border-top: 1px solid rgba(180,210,150,0.12);
  margin-top: 30px;
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(180,210,150,0.5);
}

/* ===== COOKIE ===== */
.cookie-message {
  position: fixed;
  z-index: 9999;
  bottom: 20px;
  left: 20px;
  max-width: 340px;
  display: none;
}
.cookie-inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  padding: 18px 20px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.cookie-inner a { color: #2d5a1a; text-decoration: underline; }
.cookie-btn {
  margin-top: 12px;
  background: #2d5a1a;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.cookie-btn:hover { background: #3d7a2a; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 24px; }
  .hero-logo img { width: 130px; height: 130px; }
  .text-block { padding: 20px; }
  nav ul { gap: 4px; }
  nav ul li a { padding: 5px 9px; font-size: 12px; }
  .logo-title { font-size: 16px; }
  .logo-image { width: 50px; height: 50px; }
  .order-card-head { flex-wrap: wrap; }
  .admin-order-item { flex-wrap: wrap; }
}
/* Модальное окно для увеличения изображения */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

/* Кнопка закрытия */
.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.image-modal .close-modal:hover {
    color: #bbb;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Подпись к изображению в модальном окне */
.image-modal .image-caption {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* Курсор указателя для кликабельных изображений */
.clickable-image {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.clickable-image:hover {
    opacity: 0.8;
}

/* ===== ЗАЯВКИ (публичная страница) ===== */
.order-card {
  background: #fff;
  border: 1px solid #c8dcb0;
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(45,90,26,0.07);
}
.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
  margin-bottom: 10px;
}
.order-card-head h3 {
  flex: 1 1 auto;
  min-width: 0;
}
.order-card-head .order-status {
  flex: 0 0 auto;
  margin-top: 2px;
}
.order-card-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: #2d5a1a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.order-card-head h3 .order-num { font-weight: 800; }
.order-card-head h3 .order-title-inline {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #444;
}
.order-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
}
.order-status {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  white-space: nowrap;
}
.order-status.done { background: #2d7a1a; }
.order-status.pending { background: #c0392b; }

/* ===== АДМИН-ПАНЕЛЬ ===== */
.admin-login {
  max-width: 380px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid #c8dcb0;
  border-radius: 10px;
  padding: 30px 32px;
  box-shadow: 0 2px 10px rgba(45,90,26,0.08);
  text-align: center;
}
.admin-login h3 {
  color: #2d5a1a;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.admin-input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #c8dcb0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.admin-input:focus { outline: none; border-color: #3d7a2a; }

.admin-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-row .admin-input { margin-bottom: 0; }
.admin-input-number { flex: 0 0 110px; }
.admin-input-title { flex: 1; min-width: 200px; }

.rich-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #f0f5e8;
  border: 1px solid #c8dcb0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 10px;
}
.rich-toolbar button {
  width: 34px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #2d4a1e;
  transition: background 0.2s, border-color 0.2s;
}
.rich-toolbar button:hover,
.rich-toolbar button.active {
  background: #fff;
  border-color: #c8dcb0;
  color: #2d5a1a;
}
.rich-select {
  height: 32px;
  border: 1px solid #c8dcb0;
  border-radius: 5px;
  background: #fff;
  color: #2d4a1e;
  font-size: 13px;
  padding: 0 8px;
  cursor: pointer;
}
.rich-select:focus { outline: none; border-color: #3d7a2a; }
.rich-divider {
  width: 1px;
  height: 22px;
  background: #c8dcb0;
  margin: 0 2px;
}
.rich-editor {
  min-height: 130px;
  border: 1px solid #c8dcb0;
  border-radius: 0 0 6px 6px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #2d3e1f;
  background: #fff;
}
.rich-editor:focus { outline: none; border-color: #3d7a2a; }
.rich-editor h3 { color: #2d5a1a; font-size: 16px; margin: 6px 0; }
.rich-editor blockquote {
  border-left: 3px solid #3d7a2a;
  margin: 6px 0;
  padding: 4px 14px;
  color: #555;
  font-style: italic;
}
.rich-editor ul, .rich-editor ol { padding-left: 22px; margin: 6px 0; }
.rich-editor a { color: #2d5a1a; text-decoration: underline; }
.rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #999;
}

.admin-order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  background: #fff;
  border: 1px solid #c8dcb0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.admin-order-item .admin-order-text { flex: 1 1 auto; min-width: 0; }
.admin-order-item .status-select { flex: 0 0 auto; }
.admin-order-item .admin-order-text strong {
  display: block;
  color: #2d4a1e;
  font-size: 14px;
  margin-bottom: 4px;
}
.admin-order-item .admin-order-text span {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.status-select {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  border: none;
  color: #fff;
  cursor: pointer;
}
.status-select.done { background: #2d7a1a; }
.status-select.pending { background: #c0392b; }
.status-select option {
  background: #fff;
  color: #2d3e1f;
  font-weight: normal;
}

.admin-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.1s;
}
.icon-btn:hover { opacity: 0.85; transform: scale(1.05); }
.edit-btn { background: #e8f0dd; color: #2d5a1a; }
.delete-btn { background: #c0392b; color: #fff; }

.admin-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}