:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #edf3fb;
  --accent: #1e40af;
  --accent-dark: #172554;
  --text: #111827;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 16px 32px rgba(15, 76, 129, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.contact-link,
[data-contact-phone],
a[href^="tel:"],
.contact-row a[href^="tel:"] {
  white-space: nowrap !important;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.55rem;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent);
}

.header-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-button,
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 12px 22px rgba(30, 64, 175, 0.2);
}

.header-button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #e2e8f0 50%, #f8fafc 100%);
  padding: 88px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.06;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
}

.hero-stats strong {
  display: block;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.hero-stats span {
  color: var(--muted);
}

.hero-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-card li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-weight: 600;
}

.hero-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.3rem;
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--surface-alt);
}

.section-heading {
  margin-bottom: 28px;
}

.info-grid,
.services-grid,
.object-grid,
.gallery-grid,
.advantages-list {
  display: grid;
  gap: 22px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.service-card,
.object-card,
.advantage,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px 24px;
}

.card p,
.service-card p,
.object-card p,
.advantage p,
.contact-row p,
.contact-row a,
.contact-link,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 24px 22px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.object-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.object-card {
  overflow: hidden;
}

.object-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.object-card-content {
  padding: 20px 18px 22px;
}

.object-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.advantages-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advantage {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
}

.advantage .check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery-item::after {
  content: '🔍 Увеличить';
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  pointer-events: none;
  transition: background 0.2s ease;
}

.gallery-item:hover::after {
  background: var(--accent);
}

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.team-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-card-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card-content h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.team-role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.team-exp {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.4;
}

.contact-strip {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
}

.contact-strip .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.contact-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-strip p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0;
}

.contact-actions {
  display: grid;
  gap: 10px;
  justify-items: flex-start;
}

.contact-link {
  color: #fff;
  font-weight: 600;
}

.map-block {
  width: min(1100px, calc(100% - 24px));
  height: 460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  background: #f8faf9;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.06);
}

.map-canvas {
  position: relative;
  height: 100%;
  min-height: 100%;
  background: #edf3ee;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.map-canvas iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  display: block;
}

.map-addresses {
  padding: 24px 18px 18px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.map-addresses h3 {
  margin: 0 0 18px;
  padding: 0 4px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.map-addresses ul {
  list-style: none;
  padding: 0 4px 4px;
  margin: 0;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  max-height: 100%;
}

.map-address-item {
  display: grid;
  gap: 10px;
  padding: 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 76, 129, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.map-address-item:hover {
  border-color: rgba(30, 64, 175, 0.45);
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.08);
  transform: translateY(-1px);
}

.map-address-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(30, 64, 175, 0.08);
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.map-address-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.map-addresses strong {
  font-size: 1rem;
  line-height: 1.35;
  color: #1d2b3a;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.map-addresses span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.06);
  border: 1px solid rgba(30, 64, 175, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.route-link:hover {
  background: rgba(30, 64, 175, 0.1);
  border-color: rgba(30, 64, 175, 0.22);
  transform: translateX(1px);
}

.route-link span {
  font-size: 0.9rem;
  color: var(--accent);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7faf7 0%, #eef3ee 100%);
}

.contact-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 72px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}

.contact-card {
  padding: 28px 24px;
}

.card-tag {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.info-card h1,
.form-card h2 {
  margin-bottom: 20px;
}

.contact-row {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.contact-row span {
  font-weight: 700;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-weight: 600;
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf7;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--text);
}

.policy-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.policy-field input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.field-group textarea {
  min-height: 130px;
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: rgba(30, 64, 175, 0.45);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.08);
}

.submit-btn {
  border: none;
  border-radius: 12px;
  min-height: 52px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 9999;
}

.modal.is-open {
  display: grid !important;
}

.modal-content {
  max-width: 960px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #dc2626;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  z-index: 10;
  transition: background 0.2s ease;
}

.modal-nav-btn:hover {
  background: var(--accent);
}

.modal-nav-prev, .prev-btn { left: 20px; }
.modal-nav-next, .next-btn { right: 20px; }

.modal-content img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #0f172a;
  border-radius: 14px;
}

.modal-caption {
  padding: 12px 6px 4px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  text-align: center;
}

/* ================= Visual Admin Panel Styles ================= */
.admin-shell {
  padding: 40px 0 80px;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover,
.admin-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.admin-section-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-cards-list {
  display: grid;
  gap: 14px;
}

.admin-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  flex-wrap: wrap;
  transition: box-shadow 0.2s ease;
}

.admin-row-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-row-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.admin-row-body {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 4px;
}

.admin-row-body h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.admin-row-subtitle {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.admin-row-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.admin-row-meta {
  display: grid;
  gap: 4px;
  max-width: 650px;
}

.admin-row-meta strong {
  font-size: 1.05rem;
  color: var(--text);
}

.admin-row-meta span {
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: all 0.2s ease;
}

.btn.btn-primary.btn-sm,
.btn-primary.btn-sm {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.btn.btn-primary.btn-sm:hover,
.btn-primary.btn-sm:hover {
  background: var(--accent-hover) !important;
  color: #ffffff !important;
}

.btn.btn-secondary.btn-sm,
.btn-secondary.btn-sm {
  background: #f1f5f9 !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

.btn.btn-secondary.btn-sm:hover,
.btn-secondary.btn-sm:hover {
  background: #e2e8f0 !important;
}

.btn-sm-edit {
  color: var(--accent);
  border-color: rgba(30, 64, 175, 0.3);
}

.btn-sm-edit:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm-del {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fff;
}

.btn-sm-del:hover {
  background: #dc2626;
  color: #fff;
}

.admin-dialog {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 120;
}

.admin-dialog-content {
  background: #fff;
  border-radius: 20px;
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.admin-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-dialog-head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.admin-form-grid {
  display: grid;
  gap: 16px;
}

.admin-form-group {
  display: grid;
  gap: 6px;
}

.admin-form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.admin-form-group input,
.admin-form-group textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  font: inherit;
  width: 100%;
}

.admin-form-group textarea {
  min-height: 90px;
  resize: vertical;
}

/* ================= Responsive Overrides ================= */
@media (max-width: 980px) {
  .hero-inner,
  .contact-page-shell { grid-template-columns: 1fr; }
  .map-block {
    grid-template-columns: 1fr;
    height: auto;
  }
  .map-canvas {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }
  .map-canvas iframe {
    min-height: 300px;
    height: 300px;
  }
  .map-addresses {
    max-height: none;
    overflow: visible;
  }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .object-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .nav-wrap {
    position: relative;
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-text strong {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .brand-text small {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(23, 34, 28, 0.12);
    z-index: 50;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    cursor: pointer;
  }

  .nav-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-button {
    display: none;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .section {
    padding: 44px 0;
  }

  h1 {
    font-size: 1.85rem !important;
    line-height: 1.16;
    word-break: break-word;
  }

  h2 {
    font-size: 1.45rem !important;
    line-height: 1.22;
    word-break: break-word;
  }

  .section-heading {
    margin-bottom: 20px;
    text-align: left;
  }

  .hero-stats,
  .services-grid,
  .object-grid,
  .gallery-grid,
  .team-grid,
  .advantages-list,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-strip-inner,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: flex-start;
    gap: 20px;
  }

  .contact-link,
  [data-contact-phone],
  a[href^="tel:"] {
    white-space: nowrap !important;
    font-size: 1.15rem;
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .btn,
  .header-button {
    width: 100%;
  }
}




/* Tablet & Mobile Header Navigation */
@media (max-width: 1080px) {
  .nav-wrap {
    position: relative;
    min-height: 68px;
    gap: 10px;
    justify-content: space-between;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(23, 34, 28, 0.12);
    z-index: 50;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    cursor: pointer;
  }

  .nav-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-button {
    display: none;
  }
}

@media (min-width: 1081px) {
  .nav-menu-toggle {
    display: none;
  }
}

/* News Section Styles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.news-badge {
  background: rgba(30, 64, 175, 0.08);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.news-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.news-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 12px;
  line-height: 1.35;
}

.news-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Instant save button feedback */
.btn-saved {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.4) !important;
}

button:active {
  transform: scale(0.97);
}
