:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0c0c0d;
  --ink: #f6f6f3;
  --muted: #a7a7a0;
  --muted-2: #77776f;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --soft: rgba(255, 255, 255, 0.16);
  --accent: #ffffff;
  --radius: 18px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(180deg, #050505 0%, #090909 46%, #030303 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(100%, 620px);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: 0;
}

.brand span {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.7);
}

.header-nav {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #deded8;
  font-size: 14px;
}

.header-nav a,
.header-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 8px 13px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.header-nav a:hover,
.header-nav button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.seo-top,
.hero,
.section {
  padding-inline: clamp(18px, 4vw, 58px);
}

.seo-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  min-height: 72vh;
  padding-top: clamp(62px, 8vw, 112px);
  padding-bottom: clamp(40px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.seo-top > div:first-child {
  min-width: 0;
}

.seo-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-logo {
  justify-self: end;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #f4f4ef;
  opacity: 0.88;
}

.hero-logo-mark {
  display: grid;
  place-items: center;
  width: clamp(130px, 16vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
}

.hero-logo span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.seo-grid article,
.search-panel,
.workspace,
.stack-form,
.result-card,
.management-card,
.empty-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.seo-grid article {
  min-height: 250px;
  padding: 20px;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.seo-grid article:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.seo-grid span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(54px, 7vw, 116px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.seo-grid h2,
.panel-head h2,
.modal-form h2 {
  font-size: clamp(23px, 2.5vw, 34px);
}

h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text {
  max-width: 650px;
  color: #d3d3cc;
  font-size: clamp(18px, 2vw, 23px);
}

.seo-grid p,
.section-title p,
.muted,
.state-line,
.panel-head span {
  color: var(--muted);
}

.hero {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 67px);
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.search-hero {
  grid-template-columns: 1fr;
  min-height: 100svh;
}

.search-panel,
.workspace {
  backdrop-filter: blur(18px);
}

.search-panel {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.search-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 46px);
}

.panel-head h2 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #efefea;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  background-clip: padding-box;
  color-scheme: dark;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8e8e87;
}

textarea {
  border-radius: 16px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

.primary-action,
.ghost-action,
.tab,
.chip-button,
.footer-links button,
.dialog-close,
.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 10px 16px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.primary-action {
  width: 100%;
  margin-top: 18px;
  background: #ffffff;
  color: #050505;
}

.ghost-action,
.tab,
.chip-button,
.footer-links button,
.dialog-close,
.slider-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.primary-action:hover,
.ghost-action:hover,
.chip-button:hover,
.slider-btn:hover {
  transform: translateY(-1px);
}

.ghost-action:hover,
.chip-button:hover,
.tab.active,
.slider-btn:hover {
  background: #ffffff;
  color: #050505;
}

.section {
  padding-top: clamp(52px, 8vw, 96px);
  padding-bottom: clamp(52px, 8vw, 96px);
}

.section-title {
  max-width: 720px;
  margin-bottom: 26px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.workspace {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab {
  white-space: nowrap;
}

.tab-page,
.hidden {
  display: none;
}

.tab-page.active {
  display: block;
}

.stack-form {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: none;
}

.modal-form {
  border: 0;
  background: transparent;
  padding: 0;
}

.burial-form {
  margin-top: 20px;
}

.form-actions,
.cabinet-actions,
.card-actions,
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-actions .primary-action {
  width: auto;
  margin-top: 0;
}

.results-grid {
  opacity: 1;
  transform: translateY(0);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.results-grid.results-loading {
  opacity: 0;
  transform: translateY(14px);
}

.result-card {
  position: relative;
  overflow: hidden;
  animation: cardIn 0.52s ease both;
  will-change: transform;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.result-card:hover,
.blog-card:hover,
.service-card:hover,
.memory-block:hover,
.seo-grid article:hover {
  transform: translateY(-7px) scale(1.006);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62);
}

.scroll-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.72s ease,
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.result-card.scroll-reveal.is-visible:hover,
.blog-card.scroll-reveal.is-visible:hover,
.service-card.scroll-reveal.is-visible:hover,
.memory-block.scroll-reveal.is-visible:hover,
.seo-grid article.scroll-reveal.is-visible:hover {
  transform: translateY(-7px) scale(1.006);
}

.hero-card {
  border-color: transparent;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow:
    inset 0 0 0 1.5px rgba(214, 176, 92, 0.72),
    var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border: 2px solid rgba(214, 176, 92, 0.86);
  border-radius: inherit;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  border: 1px solid rgba(214, 176, 92, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #f5d28a;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

.georgian-ribbon {
  position: absolute;
  top: 18px;
  right: 28px;
  z-index: 2;
  width: 70px;
  height: 104px;
  background: none;
  transform: none;
  filter: drop-shadow(0 0 18px rgba(240, 138, 34, 0.25));
}

.georgian-ribbon::before,
.georgian-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 18px;
  height: 102px;
  border-radius: 12px 12px 3px 3px;
  background: repeating-linear-gradient(90deg, #f28c24 0 4px, #111 4px 8px);
  border: 1px solid rgba(240, 138, 34, 0.65);
}

.georgian-ribbon::before {
  transform: rotate(29deg);
  transform-origin: 50% 20px;
}

.georgian-ribbon::after {
  transform: rotate(-29deg);
  transform-origin: 50% 20px;
}

.georgian-ribbon .ribbon-loop,
.georgian-ribbon::marker {
  display: none;
}

.photo-slider {
  position: relative;
  overflow: hidden;
  background: #050505;
  touch-action: pan-y;
  user-select: none;
}

.slide {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
}

.slide.active {
  display: block;
  animation: fadeSlide 0.35s ease both;
}

.slider-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.slider-btn {
  width: 42px;
  min-height: 38px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin-bottom: 14px;
}

.card-actions {
  align-items: stretch;
}

.card-actions .primary-action,
.card-actions .ghost-action {
  flex: 1 1 210px;
  margin-top: 0;
}

.route-action {
  gap: 9px;
}

.route-action:hover .route-icon {
  animation: pinBounce 0.58s ease-in-out both;
}

.route-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.inline-link {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.inline-link:hover {
  border-color: #ffffff;
}

.detail-page {
  min-height: calc(100svh - 69px);
  padding: clamp(36px, 6vw, 82px) clamp(18px, 4vw, 58px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 0.72fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

.detail-slider,
.detail-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-slider .slide {
  aspect-ratio: 4 / 3;
}

.detail-content {
  padding: clamp(22px, 4vw, 42px);
  overflow: visible;
}

.detail-content h1 {
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  font-size: clamp(16px, 4.8vw, 66px);
}

.memory-note {
  color: var(--muted);
  font-size: 18px;
}

.detail-content .primary-action {
  margin-top: 18px;
}

.memory-page-layout {
  display: grid;
  gap: clamp(24px, 5vw, 58px);
}

.memory-visual {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(320px, 860px) minmax(90px, 1fr);
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.memory-visual .detail-slider {
  min-width: 0;
}

.memory-ornament {
  min-height: clamp(220px, 28vw, 420px);
  opacity: 0.9;
  background:
    radial-gradient(circle at 50% 22%, rgba(214, 176, 92, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 48%, rgba(214, 176, 92, 0.65) 49%, rgba(255, 255, 255, 0.82) 50%, rgba(214, 176, 92, 0.65) 51%, transparent 52%),
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 18px, rgba(214, 176, 92, 0.22) 19px 20px, transparent 21px 36px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.wreath-ornament {
  min-height: clamp(220px, 28vw, 420px);
  opacity: 0.78;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 42%, rgba(255, 255, 255, 0.42) 43% 44%, transparent 45%),
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 17px, rgba(255, 255, 255, 0.22) 18px 19px, transparent 20px 35px);
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 0 36%, #000 37% 46%, transparent 47%);
}

.wreath-left {
  transform: rotate(-12deg);
}

.wreath-right {
  transform: scaleX(-1) rotate(-12deg);
}

.memory-ornament-left {
  transform: scaleX(-1);
}

.memory-info,
.memory-extra,
.memory-awards,
.agency-info-block,
.agency-services {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.agency-page-layout {
  display: grid;
  gap: clamp(24px, 5vw, 58px);
}

.agency-info-block .card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  align-items: stretch;
}

.agency-info-block .card-actions .primary-action,
.agency-info-block .card-actions .ghost-action {
  width: 100%;
  min-height: clamp(52px, 5vw, 64px);
  flex: initial;
  padding-inline: clamp(14px, 2vw, 22px);
  white-space: nowrap;
}

.agency-visual {
  grid-template-columns: minmax(90px, 1fr) minmax(320px, 860px) minmax(90px, 1fr);
}

.agency-services {
  display: grid;
  gap: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card div {
  padding: 18px;
}

.service-card strong {
  color: #ffffff;
  font-size: 20px;
}

.memory-awards {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  justify-items: stretch;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow:
    inset 0 0 0 1.5px rgba(214, 176, 92, 0.72),
    var(--shadow);
  padding: clamp(22px, 4vw, 38px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.memory-awards:hover {
  transform: translateY(-7px) scale(1.006);
  border-color: transparent;
  box-shadow:
    inset 0 0 0 1.5px rgba(245, 210, 138, 0.88),
    0 34px 100px rgba(0, 0, 0, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
}

.awards-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
}

.awards-head h2 {
  margin: 0;
}

.awards-ribbon {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  justify-self: end;
  margin: 0;
  width: 132px;
  height: 104px;
}

.award-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.award-list span {
  border: 1px solid rgba(214, 176, 92, 0.5);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.award-list a {
  color: #f5d28a;
  border-bottom: 1px solid rgba(245, 210, 138, 0.42);
}

.award-list a:hover {
  border-color: #f5d28a;
}

.memory-extra {
  display: grid;
  gap: 18px;
}

.memory-extra-head {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 18px;
}

.memory-add-bottom {
  justify-self: center;
  width: min(100%, 360px);
  gap: 9px;
}

.memory-suggestion-form {
  padding: clamp(18px, 3vw, 28px);
}

.memory-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.memory-block {
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  padding: clamp(18px, 3vw, 28px);
}

.memory-block .photo-slider {
  margin: calc(clamp(18px, 3vw, 28px) * -1) calc(clamp(18px, 3vw, 28px) * -1) 22px;
}

.memory-block .slide {
  aspect-ratio: 16 / 9;
}

.memory-block-photo {
  display: block;
  width: calc(100% + clamp(18px, 3vw, 28px) * 2);
  max-width: none;
  margin: calc(clamp(18px, 3vw, 28px) * -1) calc(clamp(18px, 3vw, 28px) * -1) 22px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.memory-block span {
  display: block;
  margin-bottom: 26px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
}

.memory-block h2 {
  font-size: clamp(24px, 3vw, 40px);
}

.memory-block p {
  color: var(--muted);
  white-space: pre-wrap;
}

.memory-moderation-panel {
  margin-top: 22px;
}

.data-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 8px;
  font-size: 14px;
}

.data-row span:first-child {
  color: var(--muted);
}

.management-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.management-card,
.empty-panel {
  padding: 16px;
  box-shadow: none;
}

.management-card strong {
  display: block;
  margin-bottom: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--soft);
  color: #f2f2ed;
  font-size: 12px;
  font-weight: 900;
}

.status.approved {
  background: #ffffff;
  color: #050505;
}

.status.rejected,
.status.blocked {
  background: rgba(255, 255, 255, 0.24);
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.hidden {
  display: none !important;
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(150px, 0.75fr));
  gap: clamp(22px, 4vw, 58px);
  align-items: start;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    #020202;
  color: #ffffff;
  overflow: hidden;
}

.blog-hero {
  min-height: 58svh;
  padding: clamp(62px, 8vw, 112px) clamp(18px, 4vw, 58px) clamp(38px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}

.blog-hero h1 {
  font-size: clamp(72px, 14vw, 180px);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  padding: clamp(20px, 3vw, 34px);
}

.blog-card span {
  display: block;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
}

.blog-card h2 {
  font-size: clamp(26px, 3.2vw, 46px);
}

.blog-card p {
  color: var(--muted);
  font-size: 17px;
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-brand strong {
  display: grid;
  gap: 0;
  overflow-wrap: normal;
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 0.88;
}

.footer-brand strong span {
  display: block;
}

.footer-brand small {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}

.footer-brand span,
.footer-column p {
  color: var(--muted);
}

.footer-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.footer-column > strong {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-column a,
.footer-column button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-align: left;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-column a:hover,
.footer-column button:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-about p {
  max-width: 420px;
  margin-bottom: 0;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07)),
    #080808;
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-close {
  float: right;
  min-height: 38px;
  width: 40px;
  padding: 4px 12px;
  font-size: 22px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #050505;
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.24s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pinBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-4px) scale(1.06);
  }
  70% {
    transform: translateY(1px) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
	  .seo-top,
	  .hero,
	  .split,
	  .detail-layout,
	  .admin-columns,
	  .site-footer {
    grid-template-columns: 1fr;
  }

  .seo-top {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    justify-self: start;
  }

  .memory-visual {
    grid-template-columns: 1fr;
  }

  .memory-ornament {
    display: none;
  }

  .wreath-ornament {
    display: none;
  }

  .seo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    align-items: start;
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .form-grid,
  .seo-grid,
  .results-grid,
  .blog-list,
  .memory-block-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    max-width: 100%;
  }

  .agency-info-block .card-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .seo-top {
    min-height: auto;
  }

  h1 {
    font-size: clamp(38px, 11vw, 68px);
    line-height: 0.98;
  }

  .detail-content h1 {
    font-size: clamp(23px, 7.4vw, 42px);
  }

  .form-grid,
  .results-grid,
  .seo-grid,
	  .blog-list {
    grid-template-columns: 1fr;
  }

  .memory-block-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .memory-extra-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head,
  .site-footer {
    align-items: stretch;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

	  .primary-action,
	  .ghost-action,
	  .chip-button {
	    width: 100%;
	  }

  .footer-brand strong {
    font-size: clamp(30px, 12vw, 54px);
  }

  .georgian-ribbon {
    top: 22px;
    right: 26px;
    width: 52px;
    height: 78px;
  }

  .awards-ribbon {
    top: auto;
    right: auto;
    left: auto;
    width: 118px;
    height: 92px;
  }

  .georgian-ribbon::before,
  .georgian-ribbon::after {
    left: 18px;
    width: 14px;
    height: 78px;
  }

  .card-actions .primary-action,
  .card-actions .ghost-action {
    flex-basis: 100%;
  }

  .slider-controls {
    left: 12px;
  }

  .slide {
    aspect-ratio: 4 / 3;
  }

  .form-actions .primary-action {
    width: 100%;
  }
}

.result-card:hover,
.result-card.scroll-reveal.is-visible:hover,
.blog-card:hover,
.blog-card.scroll-reveal.is-visible:hover,
.service-card:hover,
.service-card.scroll-reveal.is-visible:hover,
.memory-block:hover,
.memory-block.scroll-reveal.is-visible:hover,
.seo-grid article:hover,
.seo-grid article.scroll-reveal.is-visible:hover {
  transform: translate3d(0, -7px, 0) scale(1.006) !important;
}

.hero-card:hover,
.hero-card.scroll-reveal.is-visible:hover {
  border-color: transparent;
  box-shadow:
    inset 0 0 0 1.5px rgba(214, 176, 92, 0.72),
    0 34px 100px rgba(0, 0, 0, 0.62);
}

.hero-card:hover::after,
.hero-card.scroll-reveal.is-visible:hover::after {
  border-color: rgba(245, 210, 138, 0.95);
}
