﻿:root {
  --bg: #f7f9f3;
  --surface: #ffffff;
  --surface-soft: #edf3e3;
  --text: #182021;
  --muted: #5f6c71;
  --accent: #0b6e4f;
  --accent-2: #eb5e28;
  --line: #d5dfd8;
  --shadow: 0 16px 45px rgba(20, 30, 24, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, #e7f2dc 0%, transparent 35%),
    radial-gradient(circle at 90% 10%, #ffe3cf 0%, transparent 30%),
    linear-gradient(140deg, #f8fbf4 0%, #f4f7f0 45%, #eef2ea 100%);
  min-height: 100vh;
  padding: 16px 10px 26px;
  overflow-y: auto;
  overflow-x: auto;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 80%, rgba(235, 94, 40, 0.08) 0%, transparent 30%);
  z-index: -1;
}

.hamburger {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: none;
  z-index: 70;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(280px, 86vw);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 70px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 80;
  overflow-y: auto;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(10, 16, 14, 0.3);
  z-index: 60;
}

.mobile-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-weight: 700;
}

main,
.hero {
  width: min(1920px, calc(100vw - 20px));
  max-width: none;
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  animation: fadeInUp 500ms ease both;
}

.logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #129267);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1 {
  margin: 4px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
  animation: fadeInUp 650ms ease both;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.category-list .tab {
  width: 100%;
  border-radius: 14px;
  text-align: left;
  padding: 14px;
  min-height: 58px;
  white-space: normal;
}

.tab {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 180ms ease;
}

.tab:hover {
  transform: translateY(-1px);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fcfdfb;
}

.service-card h3 {
  margin: 0 0 8px;
}

.service-card p {
  margin: 0 0 10px;
  color: #354147;
  line-height: 1.45;
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f3ef;
  border: 1px solid #c8dfd4;
  color: #0f5f46;
}

.hint {
  color: var(--muted);
  margin-top: 10px;
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.form-block,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

label,
legend {
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 4px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.check input {
  width: auto;
  margin: 0;
}

.btn {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #15966b);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  position: relative;
}

.btn.ghost {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn:hover {
  filter: brightness(1.03);
}

.contact-card {
  margin-top: 8px;
}

.hidden {
  display: none;
}

.admin-only.hidden-by-view {
  display: none;
}

.client-mobile-category .hero,
.client-mobile-category .view-switch,
.client-mobile-category #adminPanel,
.client-mobile-category .contact-card {
  display: none;
}

.client-mobile-category #categorySection {
  position: fixed;
  inset: 0;
  margin: 0;
  border-radius: 0;
  max-width: 100%;
  z-index: 40;
  overflow-y: auto;
}

.client-mobile-category #categoryTabs,
.client-mobile-category #categoryHint {
  display: none;
}

.is-loading {
  cursor: wait;
}

.is-loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 800ms linear infinite;
}

.btn.ghost.is-loading::after {
  border-color: rgba(24, 32, 33, 0.65);
  border-right-color: transparent;
}

.card,
.service-card,
.tab,
input,
textarea,
.btn,
.logo-wrap,
.sync-panel,
fieldset,
.mobile-menu,
.mobile-link,
.contact-card {
  outline: 1px solid rgba(24, 32, 33, 0.12);
  outline-offset: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #9db1a6 #e9efe8;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #9db1a6;
  border-radius: 999px;
}

*::-webkit-scrollbar-track {
  background: #e9efe8;
  border-radius: 999px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  body {
    padding: 18px 12px 34px;
  }

  main,
  .hero {
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 46px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .category-list {
    grid-template-columns: 1fr;
    max-height: none;
  }
}
