/* Government-style CSS for crematorium website */
/* Based on Russian government web standards */

:root {
  --gov-blue: #0c4a7d;
  --gov-blue-dark: #042b4d;
  --gov-blue-light: #1a6fcf;
  --gov-gray: #5a5a5a;
  --gov-gray-light: #f0f0f0;
  --gov-gray-dark: #222222;
  --gov-border: #d7d7d7;
  --gov-accent: #d4af37;
  --white: #ffffff;
  --black: #000000;
}

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gov-gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--gov-blue-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--gov-blue); padding-bottom: 0.3em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

a {
  color: var(--gov-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gov-blue-dark);
  text-decoration: underline;
}

/* Header */
.gov-header {
  background: var(--gov-blue-dark);
  color: var(--white);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gov-header-top {
  background: var(--gov-blue);
  padding: 8px 0;
  font-size: 14px;
}

.gov-header-top a { color: var(--white); }

.gov-header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gov-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gov-logo-img {
  height: 60px;
  width: auto;
}

.gov-logo-text {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.2;
}

.gov-logo-text .org-name {
  font-size: 14px;
  font-weight: normal;
  opacity: 0.9;
  display: block;
}

.gov-phone {
  font-size: 18px;
  font-weight: bold;
}

.gov-phone a {
  color: var(--white);
  text-decoration: none;
}

.gov-phone a:hover { text-decoration: underline; }

/* Navigation */
.gov-nav {
  background: var(--gov-blue);
  border-bottom: 3px solid var(--gov-accent);
}

.gov-nav ul {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.gov-nav li {
  margin: 0;
}

.gov-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.gov-nav a:hover,
.gov-nav a.active {
  background: var(--gov-blue-light);
  color: var(--white);
}

.gov-nav .dropdown {
  position: relative;
}

.gov-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.gov-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 100;
  border: 1px solid var(--gov-border);
}

.gov-nav .dropdown-menu a {
  color: var(--gov-gray-dark);
  padding: 10px 20px;
  border-bottom: 1px solid var(--gov-border);
  font-size: 14px;
}

.gov-nav .dropdown-menu a:hover {
  background: var(--gov-gray-light);
}

/* Main content */
.gov-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.gov-breadcrumbs {
  font-size: 14px;
  color: var(--gov-gray);
  margin-bottom: 20px;
}

.gov-breadcrumbs a { color: var(--gov-blue); }
.gov-breadcrumbs span { color: var(--gov-gray-dark); }

/* Content blocks */
.gov-content {
  display: flex;
  gap: 30px;
}

.gov-main {
  flex: 1;
  min-width: 0;
}

.gov-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* Cards */
.gov-card {
  background: var(--white);
  border: 1px solid var(--gov-border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.gov-card .card-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--gov-blue-dark);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gov-border);
}

/* Tables */
.gov-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 15px;
}

.gov-table th {
  background: var(--gov-blue);
  color: var(--white);
  padding: 10px 15px;
  text-align: left;
  font-weight: bold;
}

.gov-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--gov-border);
}

.gov-table tr:nth-child(even) {
  background: var(--gov-gray-light);
}

/* Lists */
.gov-list {
  list-style: none;
  padding: 0;
}

.gov-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gov-border);
}

.gov-list li:last-child {
  border-bottom: none;
}

.gov-list li::before {
  content: "▸";
  color: var(--gov-blue);
  margin-right: 8px;
  font-weight: bold;
}

/* Info blocks */
.gov-info-block {
  background: var(--gov-gray-light);
  border-left: 4px solid var(--gov-blue);
  padding: 15px 20px;
  margin: 15px 0;
}

.gov-warning {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin: 15px 0;
}

.gov-warning::before {
  content: "⚠ ";
  font-weight: bold;
}

/* Contact block */
.gov-contacts {
  background: var(--gov-gray-light);
  padding: 20px;
  border-radius: 4px;
  margin: 20px 0;
}

.gov-contacts .contact-item {
  display: flex;
  align-items: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.gov-contacts .contact-icon {
  font-size: 18px;
  min-width: 20px;
  text-align: center;
  margin-top: 2px;
}

/* Footer */
.gov-footer {
  background: var(--gov-blue-dark);
  color: var(--white);
  padding: 40px 0 20px;
  font-size: 14px;
  margin-top: 40px;
  border-top: 3px solid var(--gov-accent);
}

.gov-footer .footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.gov-footer .footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}

.gov-footer .footer-col ul {
  list-style: none;
  padding: 0;
}

.gov-footer .footer-col ul li {
  margin-bottom: 5px;
}

.gov-footer .footer-col a {
  color: rgba(255,255,255,0.8);
}

.gov-footer .footer-col a:hover {
  color: var(--white);
}

.gov-footer .copyright {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  text-align: center;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .gov-header-main {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .gov-nav ul {
    flex-direction: column;
  }

  .gov-nav a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .gov-content {
    flex-direction: column;
  }

  .gov-sidebar {
    width: 100%;
  }

  .gov-header-top {
    text-align: center;
  }
}

/* Form styling */
.gov-form input[type="text"],
.gov-form input[type="email"],
.gov-form input[type="tel"],
.gov-form textarea,
.gov-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gov-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 15px;
}

.gov-form textarea {
  min-height: 100px;
  resize: vertical;
}

.gov-form button[type="submit"] {
  background: var(--gov-blue);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.gov-form button[type="submit"]:hover {
  background: var(--gov-blue-dark);
}

/* 152-FZ specific */
.gov-152fz {
  background: var(--gov-gray-light);
  border: 1px solid var(--gov-border);
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.gov-152fz .section-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--gov-blue-dark);
  margin-bottom: 10px;
}

/* Print styles */
@media print {
  .gov-header, .gov-nav, .gov-footer, .gov-sidebar {
    display: none;
  }

  .gov-container {
    max-width: none;
    padding: 0;
  }

  .gov-content {
    flex-direction: column;
  }

  body {
    font-size: 12pt;
  }
}

/* Badge/status */
.gov-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.gov-badge-active {
  background: #d4edda;
  color: #155724;
}

.gov-badge-archived {
  background: var(--gov-gray-light);
  color: var(--gov-gray);
}
.gov-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0}
.gov-gallery__item img,.gov-gallery img{width:100%;height:260px;object-fit:cover;border-radius:6px;display:block}
.gov-photo{display:block;width:100%;max-width:680px;height:300px;object-fit:cover;border-radius:6px;margin:18px auto}
@media(max-width:600px){.gov-gallery{grid-template-columns:1fr}.gov-gallery img,.gov-photo{height:200px}}

.gov-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:18px 0}
.gov-grid .gov-card{margin-bottom:0;display:flex;flex-direction:column;border-top:3px solid var(--gov-accent);transition:box-shadow .15s ease,transform .15s ease}
.gov-grid .gov-card:hover{box-shadow:0 8px 20px rgba(4,43,77,.13);transform:translateY(-3px)}
.gov-grid .gov-card p{flex:1 1 auto;color:var(--gov-gray);margin:0 0 12px}
.gov-grid .gov-card .gov-link{margin-top:auto;font-weight:bold}
.gov-hero-photo{display:block;width:100%;height:340px;object-fit:cover;border-radius:8px;margin:20px 0;box-shadow:0 4px 16px rgba(4,43,77,.12)}
@media(max-width:600px){.gov-hero-photo{height:200px}.gov-grid{grid-template-columns:1fr}}

.gov-breadcrumbs{display:none}
.gov-two-col{display:grid;grid-template-columns:1fr 320px;gap:26px;align-items:start;margin:18px 0}
.gov-col-side .gov-card{position:sticky;top:16px;border-top:3px solid var(--gov-accent)}
@media(max-width:850px){.gov-two-col{grid-template-columns:1fr}}

.gov-article h2{margin-top:6px}
.gov-article h3{margin-top:34px;margin-bottom:12px}
.gov-article p{line-height:1.65;margin:0 0 14px}
.gov-article ul,.gov-article ol{margin:14px 0 20px;padding-left:26px;line-height:1.6}
.gov-article li{margin:6px 0}
.gov-info-block{margin:18px 0}

.gov-article{max-width:880px;margin-left:auto;margin-right:auto}

/* ===== Enhanced price table (ceny) ===== */
.gov-price-wrap{overflow-x:auto;border-radius:12px;box-shadow:0 6px 22px rgba(4,43,77,.09);margin:20px 0}
.gov-price-table{width:100%;border-collapse:collapse;font-size:15px;background:#fff;min-width:520px}
.gov-price-table thead th{background:linear-gradient(135deg,var(--gov-blue),var(--gov-blue-dark));color:#fff;padding:14px 18px;text-align:left;font-weight:bold;letter-spacing:.02em}
.gov-price-table thead th.num{width:56px;text-align:center}
.gov-price-table thead th.price{text-align:right;white-space:nowrap}
.gov-price-table td{padding:13px 18px;border-bottom:1px solid var(--gov-border);vertical-align:middle}
.gov-price-table td.num{text-align:center;color:var(--gov-gray);font-weight:bold;width:56px}
.gov-price-table td.price{text-align:right;white-space:nowrap;font-weight:bold;color:var(--gov-blue-dark);font-size:16px}
.gov-price-table tbody tr:hover{background:#eaf3fb}
.gov-price-table tr.cat td{background:var(--gov-gray-light);color:var(--gov-blue-dark);font-weight:bold;text-transform:uppercase;font-size:12.5px;letter-spacing:.06em;padding:11px 18px;border-bottom:2px solid var(--gov-blue)}
.gov-price-table tr.cat td .ic{color:var(--gov-accent);margin-right:9px;font-size:11px;vertical-align:middle}
@media(max-width:600px){.gov-price-table td.num,.gov-price-table thead th.num{display:none}}

/* ===== Enhanced consultation form (kontakty) ===== */
.gov-consult-card{background:#fff;border:1px solid var(--gov-border);border-top:4px solid var(--gov-accent);border-radius:12px;padding:26px;margin:18px 0;box-shadow:0 6px 22px rgba(4,43,77,.09);max-width:640px}
.gov-consult-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:22px}
.gov-consult-ic{flex:0 0 auto;width:46px;height:46px;border-radius:50%;background:var(--gov-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px}
.gov-consult-title{font-size:20px;font-weight:bold;color:var(--gov-blue-dark);margin-bottom:3px}
.gov-consult-sub{color:var(--gov-gray);font-size:14px;margin:0;line-height:1.5}
.gov-cta-form .gov-form-row{display:flex;gap:16px}
.gov-cta-form .gov-field{flex:1;margin-bottom:16px;display:flex;flex-direction:column}
.gov-cta-form label{font-size:13px;font-weight:bold;color:var(--gov-blue-dark);margin-bottom:6px}
.gov-cta-form input,.gov-cta-form select{width:100%;padding:12px 14px;border:1px solid var(--gov-border);border-radius:8px;font-family:inherit;font-size:15px;background:#fff;color:var(--gov-gray-dark);transition:border-color .15s,box-shadow .15s}
.gov-cta-form input:focus,.gov-cta-form select:focus{outline:none;border-color:var(--gov-blue-light);box-shadow:0 0 0 3px rgba(26,111,207,.15)}
.gov-cta-form button[type="submit"]{width:100%;background:linear-gradient(135deg,var(--gov-blue),var(--gov-blue-dark));color:#fff;border:none;padding:14px 30px;font-size:16px;font-weight:bold;cursor:pointer;border-radius:8px;transition:filter .15s,transform .05s;margin-top:4px}
.gov-cta-form button[type="submit"]:hover{filter:brightness(1.12)}
.gov-cta-form button[type="submit"]:active{transform:translateY(1px)}
.gov-consult-note{font-size:12px;color:var(--gov-gray);margin-top:13px;text-align:center;line-height:1.5}
.gov-consult-note a{color:var(--gov-blue-light)}
@media(max-width:560px){.gov-cta-form .gov-form-row{flex-direction:column;gap:0}.gov-consult-card{padding:20px}}
