:root {
  --bg: #edf4f7;
  --bg-soft: #dfecef;
  --surface: #fbfdfe;
  --text: #517c8c;
  --muted: #627883;
  --primary: #2f7f88;
  --primary-strong: #225e65;
  --danger: #c25b4b;
  --success: #2f7d62;
  --border: #c8d9df;
  --footer: #1f2d33;
  --footer-text: #e6f0f3;
}

@font-face {
  font-family: "Noto Sans";
  src: url("/static/fonts/NotoSans-VariableFont_wdth,wght.ttf") format("woff2");
}

@font-face {
  font-family: "Noto Sans Armenian";
  src: url("/static/fonts/NotoSansArmenian-VariableFont_wdth,wght.ttf") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans Armenian", "Noto Sans", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-inline: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(237, 244, 247, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

.header-search-form {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-search-input {
  min-width: 0;
  width: 100%;
  padding-right: 3rem;
}

.header-search-button {
  appearance: none;
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted) !important;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 0;
}

.header-search-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-search-button:hover {
  transform: translateY(-50%);
  background: transparent;
  color: var(--primary) !important;
}

.main-nav {
  display: none;
  position: absolute;
  right: 1rem;
  top: 64px;
  flex-direction: column;
  align-items: stretch;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: 0 12px 30px rgba(9, 30, 66, 0.12);
  gap: 0.35rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
}

.main-nav a svg,
.main-nav .auth-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.main-nav a:hover {
  background: var(--bg);
}

.main-nav .auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

h1 {
  font-size: 1.2rem;
}

h2 {
  font-size: 1.1rem;
}

.burger-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.burger-btn-user {
  flex-direction: row;
  gap: 0.55rem;
  width: auto;
  max-width: 176px;
  height: 40px;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
}

.burger-user-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px;
  flex: 0 0 auto;
  object-fit: cover;
}

.burger-user-avatar-placeholder {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
}

.burger-user-name {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.burger-btn:hover {
  transform: none !important;
}

.inline-form {
  margin: 0;
}

.inline-form .auth-btn {
  width: 100%;
}

.page-content {
  min-height: calc(100svh - 64px);
  padding: 1rem 0 3rem;
}

.auth-layout {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(9, 30, 66, 0.05);
}

.auth-card {
  width: min(460px, 100%);
  padding: 1.5rem;
}

.auth-card h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-google-btn {
  width: 100%;
}

.auth-google-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  margin-top: 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  overflow: hidden;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 1.25rem;
  box-shadow: 0 12px 30px rgba(9, 30, 66, 0.05);
}

.landing-hero-copy {
  display: grid;
  gap: 0.75rem;
}

.landing-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2rem);
  line-height: 1.02;
}

.landing-hero-copy p {
  margin: 0;
}

.landing-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: rgba(242, 239, 232, 0.7);
}

.category-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  justify-content: space-between;
}

.category-hero-copy {
  display: grid;
  gap: 0.7rem;
}

.category-hero-copy h1,
.category-hero-copy p {
  margin: 0;
}

.category-hero-copy h1 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1.04;
}

.category-hero-image {
  max-width: min(320px, 100%);
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: rgba(242, 239, 232, 0.7);
  margin: auto;
}

.landing-head {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.landing-head h1 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  /*margin-bottom: 1.5rem;*/
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  min-width: 0;
}

.page-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-breadcrumbs a:hover {
  color: var(--primary);
}

.service-detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
}

.service-detail-breadcrumb-current {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-category-card {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.landing-category-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: rgba(242, 239, 232, 0.7);
}

.landing-category-copy {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1rem 1.1rem;
}

.legal-document {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2.2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  line-height: 1.75;
}

.legal-document h1,
.legal-document p,
.legal-document ul {
  margin: 0;
}

.legal-document section + section {
  margin-top: 1.6rem;
}

.legal-document h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.legal-document h2 {
  margin: 0.75rem 0;
  font-size: 1.15rem;
}

.legal-document p + p,
.legal-document p + ul,
.legal-document ul + p {
  margin-top: 0.75rem;
}

.legal-document ul {
  padding-left: 1.25rem;
}

.landing-category-copy h2 {
  margin: 0;
  font-size: 1.1rem;
}

.btn,
.auth-btn,
button {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--text);
  transition: background 140ms ease, transform 140ms ease;
}

.btn:hover,
.auth-btn:hover,
button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-danger {
  background: var(--danger);
}

.btn-success {
  background: var(--success);
}

.service-bookmark-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  min-width: 32px;
  margin: 0;
  padding: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.service-bookmark-button:hover {
  transform: none;
}

.service-bookmark-button svg {
  display: block;
  height: 22px;
  width: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
}

.service-bookmark-button.is-active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-right: 0.35rem;
}

.form-stack {
  display: grid;
  gap: 0.55rem;
  max-width: 460px;
}

.service-select-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(100%, 1fr));
  gap: 0.9rem;
}

input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
}

textarea,
select,
fieldset input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
  width: 100%;
  background: #fff;
}

label,
legend {
  font-weight: 600;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.profile-hero {
  display: flex;
  align-items: center;
  /*gap: 1.25rem;*/
}

.profile-hero,
.profile-links-grid {
  margin-bottom: 1.5rem;
}

.profile-shell {
  display: grid;
  gap: 1rem;
}

.profile-shell .profile-hero {
  margin-bottom: 0;
}

.profile-description-card {
  display: grid;
  gap: 0.9rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.profile-description-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-description-head h2,
.profile-description-text {
  margin: 0;
}

.profile-description-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.profile-description-edit-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
}

.profile-description-edit-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-description-form {
  max-width: none;
}

.profile-description-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-avatar-form {
  margin-right: 10px;
  flex: 0 0 auto;
}

.profile-avatar-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(47, 127, 136, 0.12);
  color: var(--primary-strong) !important;
}

.profile-avatar-button:hover {
  transform: none;
}

.profile-avatar-static {
  cursor: default;
  pointer-events: none;
}

.profile-avatar-image,
.profile-avatar-placeholder {
  /*width: 100%;*/
  max-width: 100px;
  height: 100%;
  display: block;
}

.profile-avatar-image {
  object-fit: cover;
}

.profile-summary-card {
  cursor: default;
}

.profile-summary-card:hover {
  transform: none;
}

.profile-summary-card-link {
  cursor: pointer;
}

.profile-summary-stats {
  display: grid;
  gap: 0.75rem;
}

.profile-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 800;
}

.profile-avatar-edit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 45, 51, 0.28);
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.profile-avatar-button:hover .profile-avatar-edit,
.profile-avatar-button:focus-visible .profile-avatar-edit {
  opacity: 1;
}

.profile-avatar-edit svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.profile-hero-copy {
  overflow-wrap: anywhere;
}

.profile-hero-copy h1 {
  margin: 0;
  font-size: 1.2rem;
}

.profile-hero-copy p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.profile-nav-label {
  flex: 1;
  text-align: left;
}

.profile-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 127, 136, 0.12);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.profile-review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-review-summary-item {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(47, 127, 136, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 127, 136, 0.06), rgba(255, 255, 255, 0.96));
}

.profile-review-summary-item p {
  margin: 0;
}

.profile-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  background:
    radial-gradient(circle at top right, rgba(47, 127, 136, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
}

.profile-link-card:hover {
  background:
    radial-gradient(circle at top right, rgba(47, 127, 136, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
}

.profile-link-copy {
  display: grid;
  gap: 0.55rem;
}

.profile-link-copy h2,
.profile-link-copy p {
  margin: 0;
}

.profile-link-copy h2 {
  font-size: 1.2rem;
}

.profile-link-copy p {
  color: var(--muted);
}

.profile-card-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(47, 127, 136, 0.12);
  color: var(--primary-strong);
}

.profile-card-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-link-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 16px;
  background: rgba(47, 127, 136, 0.12);
  color: var(--primary-strong);
  font-size: 1.2rem;
  font-weight: 800;
}

.activity-chart-head h2 {
  margin: 0;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.activity-chart-card {
  display: grid;
  gap: 1rem;
}

.activity-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.activity-chart-head p {
  margin: 0.35rem 0 0;
}

.activity-chart-board {
  width: 100%;
  min-height: 320px;
}

.error {
  margin: 0;
  color: var(--danger);
}

.success {
  color: var(--success);
}

.settings-shell {
  display: grid;
  gap: 1rem;
}

.settings-hero {
  display: flex;
  align-items: center;
  /*gap: 1rem;*/
}

.settings-hero-copy {
  display: grid;
  gap: 0.35rem;
  overflow-wrap: anywhere;
}

.settings-hero-copy h1,
.settings-hero-copy p {
  margin: 0;
}

.settings-feedback {
  padding: 0.85rem 1rem;
}

.settings-master {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1rem;
}

.settings-sidebar {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  height: fit-content;
  padding: 0.65rem;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text) !important;
  box-shadow: none;
  font-weight: 600;
}

.settings-nav-item:hover,
.settings-nav-item:focus-visible {
  transform: none;
  border-color: rgba(47, 127, 136, 0.18);
  background: rgba(47, 127, 136, 0.08);
  outline: none;
  max-width: 98%;
}

.settings-nav-item.is-active {
  border-color: rgba(47, 127, 136, 0.24);
  background: linear-gradient(135deg, rgba(47, 127, 136, 0.14), rgba(255, 255, 255, 0.98));
  color: var(--primary-strong) !important;
  max-width: 98%;
}

.settings-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(47, 127, 136, 0.1);
  color: inherit;
  flex-shrink: 0;
}

.settings-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.settings-detail {
  min-width: 0;
}

#admin-panel-ip form,
#admin-panel-services form,
#admin-panel-users form {
  display: flex;
  align-items: center;
}

.admin-shell {
  font-size: small;
}

.admin-shell .settings-master {
  grid-template-columns: 1fr;
}

.admin-shell .settings-sidebar {
  display: flex;
  width: fit-content;
  justify-items: stretch;
}

.admin-shell .settings-nav-item {
  justify-content: center;
}

.admin-shell .profile-nav-label,
.admin-shell .profile-nav-count {
  display: none;
}

.settings-panel-stack {
  display: grid;
  gap: 1rem;
}

.settings-account-section {
  display: grid;
  gap: 1rem;
}

.settings-panel:not(.hidden),
.settings-panel-stack:not(.hidden) {
  animation: settings-panel-in 180ms ease;
}

.contact-page {
  display: grid;
  gap: 1rem;
}

.contact-hero {
  display: grid;
  gap: 0.75rem;
}

.contact-hero-copy {
  display: grid;
  gap: 0.45rem;
}

.contact-hero-copy h1,
.contact-hero-copy p {
  margin: 0;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-form {
  max-width: 720px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-actions {
  display: flex;
  justify-content: flex-start;
}

.settings-card {
  display: grid;
  gap: 1rem;
}

.settings-card-head {
  display: grid;
  gap: 0.3rem;
}

.settings-card-head h2,
.settings-card-head p {
  margin: 0;
}

.settings-form {
  max-width: none;
}

.settings-inline-message {
  margin: 0;
}

.settings-danger-card {
  border-color: rgba(194, 91, 75, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 243, 241, 0.93));
}

.settings-danger-form {
  max-width: 420px;
}

@keyframes settings-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-bookmarks-page {
  display: grid;
  gap: 1rem;
}

.search-bookmarks-list {
  display: grid;
  gap: 0.85rem;
}

.search-bookmark-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.search-bookmark-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.search-bookmark-title:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.search-bookmark-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
}

.auth-switch {
  margin: 1rem 0 0;
  color: var(--muted);
}

.auth-helper {
  margin: 0.2rem 0 0;
}

.auth-helper a,
.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.services-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-builder,
.services-browser {
  display: grid;
  gap: 1.25rem;
}

.service-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.dynamic-service-form {
  display: grid;
  gap: 1rem;
  align-content: start;
}

[data-form-fields] {
  display: grid;
  gap: 1rem;
}

.field-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin: 0;
  min-width: 0;
  min-inline-size: 0;
}

.field-card {
  display: grid;
  gap: 0.5rem;
}

.required-marker {
  color: var(--danger);
  margin-left: 0.2rem;
  font-weight: 700;
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

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

.checkbox-card-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.checkbox-card input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.choice-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.choice-inline-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.choice-inline-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.nested-fieldset {
  min-width: 0;
  min-inline-size: 0;
}

.nested-fieldset legend {
  padding: 0 0.3rem;
}

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

.schedule-grid,
.repeater-grid {
  display: grid;
  gap: 0.9rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 110px 88px 1fr 1fr;
  gap: 0.65rem;
  align-items: center;
}

.schedule-row label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.schedule-row input[type="checkbox"] {
  width: auto;
}

.repeater-item {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.repeater-item label {
  display: grid;
  gap: 0.35rem;
}

.repeater-remove {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.repeater-remove:hover {
  background: #fff;
}

.repeater-remove svg,
.gallery-picker-tile svg,
.repeater-remove svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.error-banner,
.success-banner {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.error-banner {
  background: rgba(180, 71, 55, 0.12);
  color: var(--danger);
  border: 1px solid rgba(180, 71, 55, 0.24);
}

.success-banner {
  background: rgba(47, 106, 76, 0.12);
  color: var(--success);
  border: 1px solid rgba(47, 106, 76, 0.24);
}

.hidden {
  display: none !important;
}

.empty-state {
  /*border: 1px dashed var(--border);*/
  /*border-radius: 14px;*/
  padding: 1rem;
  /*background: rgba(255, 255, 255, 0.5);*/
  color: var(--muted);
  text-align: center;
}

.empty-state-message {
  margin: 0;
}

.services-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-services-browser .services-toolbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.service-results {
  display: grid;
  gap: 1rem;
}

.services-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.services-pagination-status {
  color: var(--muted);
  font-weight: 600;
}

.service-result-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.service-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.service-card-meta {
  display: flex;
  gap: 0.5rem;
  justify-self: end;
  flex-wrap: wrap;
}

.service-result-head h2 {
  margin: 0.15rem 0 0;
  min-width: 0;
}

.service-result-link {
  color: var(--text);
  text-decoration: none;
  margin: auto;
}

.service-result-link:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.empty-state-illustration,
.service-gallery-image,
.service-result-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: min(180px, 100%);
  height: 150px;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  /*border-radius: 12px;*/
  /*background: rgba(255, 255, 255, 0.72);*/
  margin: auto;
}

.empty-state .empty-state-illustration {
  max-width: 100%;
  max-height: 15rem;
  height: 15rem;
}

.service-result-image-placeholder {
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  border: 1px dashed var(--border);
}

.service-result-body {
  display: grid;
  /*gap: inherit;*/
  min-width: 0;
}

.service-meta-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-meta-actions p {
  margin: 0;
}

.service-meta-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.service-edit-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg);
  color: var(--primary-strong);
  border: 1px solid var(--border);
  transition: background 140ms ease, transform 140ms ease;
}

.service-edit-icon:hover {
  background: #fff;
  transform: translateY(-1px);
}

.service-edit-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.service-chip,
.rating-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-weight: 700;
  font-size: small;
}

.service-chip {
  margin: 0;
  background: var(--bg-soft);
  color: var(--primary-strong);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.rating-badge {
  width: max-content;
}

.rating-badge {
  background: #1f1d1a;
  color: #fff;
}

.rating-badge.rating-badge-red {
  background: #b44737;
}

.rating-badge.rating-badge-yellow {
  background: #c6901c;
}

.rating-badge.rating-badge-light-green {
  background: #74a84f;
}

.rating-badge.rating-badge-dark-green {
  background: #2f6a4c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-with-addon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.input-addon {
  min-width: 64px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn-secondary {
  background: var(--primary-strong);
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(180px, 200px) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.service-detail-copy h1 {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.service-detail-copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.service-meta-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.service-meta-row h1 {
  margin: 0;
  flex: 1 1 0;
}

.service-meta-row .rating-badge {
  margin-left: auto;
  flex: 0 0 auto;
}

.service-hero-badges {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.service-hero-highlight-badges {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.service-currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(194, 75, 60, 0.12);
  color: var(--danger);
  font-weight: 700;
}

.service-currency-badge-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.service-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}

.service-hero-location svg {
  width: 1rem;
  height: 1rem;
  fill: var(--danger);
  flex: 0 0 auto;
}

.service-hero-location a {
  color: inherit;
  text-decoration: none;
}

.service-hero-location a:hover {
  color: var(--primary);
}

.user-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.user-inline-link:hover {
  color: var(--primary);
}

.user-inline-avatar {
  /*width: 28px;*/
  max-width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.user-inline-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 127, 136, 0.12);
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 700;
  width: 100%;
}

.service-owner-link {
  margin-top: 0.85rem;
}

.service-boolean-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.service-boolean-badge.is-true {
  background: rgba(47, 106, 76, 0.12);
  color: var(--success);
}

.service-boolean-badge.service-boolean-badge-emergency {
  background: rgba(194, 75, 60, 0.14);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(194, 75, 60, 0.18);
}

.service-boolean-badge.is-false {
  background: rgba(111, 100, 87, 0.12);
  color: var(--muted);
}

.service-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: .5rem 0;
  justify-content: flex-end;
}

.service-detail-grid {
  display: grid;
  margin-bottom: 1.25rem;
  /*gap: 1rem;*/
}

.detail-card {
  padding: 0 0 1rem 0;
}

.detail-card h2 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
}
.detail-card-head h2 {
  font-size: 1.3rem;
  margin: 0;
}

.detail-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.detail-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.5rem 0.75rem;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  text-transform: capitalize;
}

.detail-list dd {
  margin: 0;
}

.detail-text-block {
  margin: 0;
  white-space: pre-line;
}

.detail-bullets {
  margin: 0;
  padding-left: 1.1rem;
}

.detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 150px));
  gap: 0.75rem;
}

.service-gallery-carousel-shell {
  position: relative;
}

.service-hero-gallery-shell {
  width: 100%;
  max-width: 360px;
  padding-inline: 2.1rem;
}

.service-detail-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.service-gallery-carousel {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.25rem) / 4);
  grid-template-columns: none;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.service-hero-gallery {
  grid-auto-columns: 100%;
}

.service-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  background: rgba(31, 29, 26, 0.22);
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
  z-index: 1;
}

.service-gallery-arrow svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.service-gallery-arrow-left {
  left: 0.1rem;
}

.service-gallery-arrow-right {
  right: 0.1rem;
}

.service-gallery-arrow:hover {
  background: rgba(31, 29, 26, 0.34);
  transform: translateY(-50%);
}

.landing-section {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-gallery-card {
  position: relative;
  min-width: 0;
  display: grid;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: var(--text);
  gap: 0.65rem;
  padding: 0.7rem;
}

.service-gallery-card .rating-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.service-gallery-card:hover {
  color: var(--primary-strong);
}

.service-gallery-card-detail {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.service-gallery-card-detail-name {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.service-gallery-card-detail-type {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-lightbox-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.gallery-input-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.gallery-picker-tile {
  width: 100%;
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--primary-strong);
  display: grid;
  place-items: center;
  padding: 0;
}

.gallery-picker-tile:hover {
  background: #fff;
}

.gallery-preview-card {
  margin: 0;
  display: grid;
  gap: 0.4rem;
  position: relative;
  cursor: grab;
}

.gallery-preview-card:active {
  cursor: grabbing;
}

.gallery-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.gallery-preview-card figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-word;
}

.gallery-remove-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(31, 29, 26, 0.82);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.gallery-remove-btn:hover {
  background: var(--danger);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 26, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  z-index: 40;
}

.modal-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(9, 30, 66, 0.16);
}

.modal-card-wide {
  width: min(640px, 100%);
}

.modal-card-scrollable {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.modal-card h2 {
  margin-top: 0;
}

.gallery-lightbox-card {
  width: min(920px, 96vw);
  padding: 0.75rem;
  position: relative;
  background: rgba(251, 248, 241, 0.98);
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(31, 29, 26, 0.82);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  z-index: 1;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(31, 29, 26, 0.82);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0;
}

.gallery-lightbox-nav.prev {
  left: 0.75rem;
}

.gallery-lightbox-nav.next {
  right: 0.75rem;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-modal-content {
  display: grid;
  gap: 1rem;
}

.contact-modal-group {
  display: grid;
  gap: 0.75rem;
}

.contact-modal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-modal-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(191, 167, 106, 0.14);
  color: var(--primary-strong);
  flex-shrink: 0;
}

.contact-modal-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.review-form {
  display: grid;
  gap: 0.9rem;
}

.rating-stars-fieldset {
  gap: 0.6rem;
}

.rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
}

.rating-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-stars label {
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: var(--border);
  transition: color 140ms ease, transform 140ms ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
  color: #d19a28;
}

.rating-stars label:hover {
  transform: translateY(-1px);
}

.service-reviews-section {
  margin-top: 1.25rem;
}

.review-summary {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.review-summary-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  color: inherit !important;
  padding: 0.2rem 0.1rem;
  border-radius: 10px;
  justify-content: stretch;
}

.review-summary-row:hover {
  background: rgba(47, 42, 35, 0.05);
}

.review-summary-row.is-active {
  background: rgba(124, 103, 80, 0.12);
}

.review-summary-label,
.review-summary-count {
  font-weight: 700;
  color: var(--muted);
}

.review-summary-track {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(47, 42, 35, 0.08);
  overflow: hidden;
}

.review-summary-fill {
  height: 100%;
  border-radius: inherit;
  background: #1f1d1a;
  min-width: 0;
}

.review-summary-fill.rating-badge-red {
  background: #b44737;
}

.review-summary-fill.rating-badge-yellow {
  background: #c6901c;
}

.review-summary-fill.rating-badge-light-green {
  background: #74a84f;
}

.review-summary-fill.rating-badge-dark-green {
  background: #2f6a4c;
}

.service-reviews-list {
  display: grid;
  gap: 1rem;
}

.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.reviews-pagination-status {
  color: var(--muted);
  font-weight: 600;
}

.reviews-pagination-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text) !important;
}

.reviews-pagination-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.reviews-pagination-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.review-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.review-card-layout {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.review-card-content {
  display: grid;
  gap: 0.85rem;
  height: 100%;
}

.review-card .service-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(110px, 140px));
}

.review-card .review-gallery-carousel {
  grid-template-columns: none;
  grid-auto-columns: 100%;
}

.review-gallery-shell {
  width: 100%;
  max-width: 220px;
  padding-inline: 2rem;
}

.review-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.review-comment {
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.review-comment-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary) !important;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline;
  vertical-align: baseline;
}

.review-comment-toggle:hover {
  color: var(--primary-strong) !important;
}

.review-date-corner {
  margin: 0;
  text-align: right;
}

.review-card-main {
  min-width: 0;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.review-author-link strong {
  font-weight: 700;
}

.review-vote-actions {
  display: flex;
  gap: 0.6rem;
}

.review-vote-actions-inline {
  margin-left: auto;
  align-self: center;
}

.review-reply-btn {
  margin-right: auto;
}

.review-edit-btn {
  margin-right: auto;
}

.review-reply-card {
  display: grid;
  gap: 0.6rem;
  margin-left: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(47, 127, 136, 0.08);
  border: 1px solid rgba(47, 127, 136, 0.16);
}

.review-edit-current-message {
  margin: 0;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.review-vote-btn {
  background: var(--surface);
  color: var(--text) !important;
  gap: 0.15rem;
}

.review-vote-btn.is-active {
  background: var(--bg);
  color: var(--text);
  gap: 0.15rem;
}

.review-vote-btn:hover {
  transform: none;
}

.schedule-detail-grid {
  display: grid;
  gap: 0.75rem;
}

.schedule-detail-board {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.schedule-detail-carousel-shell .service-gallery-arrow {
  display: none;
}

.schedule-detail-row {
  box-sizing: border-box;
  background: rgba(242, 239, 232, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
}

.schedule-detail-row {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
}

.schedule-detail-row.is-open {
  background: linear-gradient(180deg, rgba(47, 106, 76, 0.08), rgba(255, 255, 255, 0.85));
  border-color: rgba(47, 106, 76, 0.2);
}

.schedule-detail-row.is-closed {
  background: linear-gradient(180deg, rgba(111, 100, 87, 0.08), rgba(255, 255, 255, 0.85));
}

.schedule-detail-row.is-today {
  border-color: rgba(47, 106, 76, 0.34);
  box-shadow: 0 10px 24px rgba(47, 106, 76, 0.12);
}

.schedule-day {
  font-weight: 800;
  font-size: 1rem;
}

.schedule-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-detail-row.is-open .schedule-status {
  background: rgba(47, 106, 76, 0.12);
  color: var(--success);
}

.schedule-detail-row.is-closed .schedule-status {
  background: rgba(111, 100, 87, 0.12);
  color: var(--muted);
}

.schedule-slots {
  color: var(--muted);
  line-height: 1.4;
}

.detail-table-wrap {
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.detail-table th,
.detail-table td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid rgba(191, 167, 106, 0.18);
  vertical-align: top;
}

.detail-table th {
  background: rgba(242, 239, 232, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.detail-table tbody {
  overflow-wrap: anywhere;
}

.detail-table tbody tr:last-child td {
  border-bottom: 0;
}

.detail-table tbody tr:nth-child(even) td {
  background: rgba(242, 239, 232, 0.32);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--footer-text);
}

.footer-language-trigger {
  appearance: none;
  border: 1px solid rgba(239, 230, 216, 0.2);
  background: rgba(251, 248, 241, 0.08);
  color: var(--footer-text);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.footer-language-trigger:hover {
  background: rgba(251, 248, 241, 0.14);
  border-color: rgba(239, 230, 216, 0.32);
  transform: none;
}

.footer-language-flag {
  font-size: 1rem;
  line-height: 1;
}

.language-modal-card {
  width: min(360px, calc(100vw - 2rem));
}

.language-modal-options {
  display: grid;
  gap: 0.75rem;
}

.language-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
}

.language-option.is-active {
  border-color: var(--primary);
  background: rgba(124, 103, 80, 0.08);
}

.language-option:hover {
  background: var(--bg);
}

.main-nav.open {
  display: flex;
}

.notification-menu {
  position: relative;
}

.notification-bell-button {
  position: relative;
}

.notification-bell-button svg {
  width: 21px;
  height: 21px;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: -0.15rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  padding: 0 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(360px, calc(100vw - 1.5rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(9, 30, 66, 0.16);
  overflow: hidden;
  z-index: 20;
}

.notification-dropdown-head,
.notification-dropdown-footer {
  padding: 0.85rem 1rem;
  background: rgba(47, 127, 136, 0.05);
}

.notification-dropdown-head h2 {
  margin: 0;
  font-size: 1rem;
}

.notification-dropdown-list {
  display: grid;
  gap: 0;
  max-height: min(420px, calc(100vh - 140px));
  overflow-y: auto;
}

.notification-empty-state {
  padding: 1rem;
  margin: 0;
}

.notification-item {
  display: block;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(200, 217, 223, 0.7);
}

.notification-item:first-child {
  border-top: 0;
}

.notification-item-link {
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.notification-item-link {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  color: var(--text) !important;
  text-align: left;
  cursor: pointer;
}

.notification-item-link:hover .notification-item-message,
.notification-item-link:focus-visible .notification-item-message {
  color: var(--primary);
}

.notification-item-message {
  font-weight: 600;
  line-height: 1.4;
}

.notification-item-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.notification-clear-all {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  body {
    font-size: 0.9rem;
  }

  .burger-user-name {
    display: none !important;
  }

  .burger-btn-user {
    padding-inline: 0.35rem;
    min-width: 40px;
  }

  .container {
    padding-inline: 0.75rem;
  }

  .landing-section,
  .service-gallery-carousel-shell {
    min-width: 0;
    /*margin-bottom: 1.5rem;*/
  }

  .profile-hero {
    flex-direction: row;
    align-items: center;
  }

  .profile-links-grid {
    grid-template-columns: 1fr;
  }

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

  .header-inner {
    gap: 0.75rem;
  }

  .header-search-form {
    max-width: none;
  }

  .notification-dropdown {
    position: fixed !important;
    top: 4.5rem !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto !important;
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 5rem);
  }

  .header-search-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .services-hero,
  .service-builder-layout,
  .service-detail-hero,
  .services-toolbar,
  .category-services-browser .services-toolbar,
  .service-select-row,
  .grid-2,
  .repeater-item,
  .schedule-row {
    grid-template-columns: 1fr;
  }

  .service-result-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  .service-result-link {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .service-result-image {
    max-width: 88px;
    max-height: 88px;
  }

  .service-result-body {
    display: contents;
  }

  .service-result-head {
    display: flex;
    flex-direction: column;
    /*grid-column: 2;
    grid-row: 1;*/
    gap: 0.5rem;
  }

  .service-result-body > p,
  .service-meta-actions {
    grid-column: 1 / -1;
    margin: auto;
  }

  .service-gallery-carousel {
    grid-auto-columns: 100%;
  }

  .schedule-detail-carousel-shell {
    position: relative;
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    min-width: 0;
    overflow: hidden;
  }

  .schedule-detail-carousel-shell .service-gallery-arrow {
    display: grid;
  }

  .schedule-detail-carousel {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding-bottom: 0.25rem;
  }

  .schedule-detail-carousel .schedule-detail-row {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
  }

  .service-hero-gallery-shell {
    margin-inline: auto;
  }

  .review-card-layout {
    grid-template-columns: 1fr;
  }

  .review-gallery-shell {
    margin-inline: auto;
    max-width: 280px;
  }

  .review-card .review-gallery-carousel {
    grid-auto-columns: 100%;
  }

  .landing-hero {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .category-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settings-hero {
    /*flex-direction: column;*/
    align-items: center;
  }

  .settings-master {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-shell .settings-master {
    gap: 0.75rem;
  }

  .profile-shell .settings-sidebar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0.75rem 0.5rem;
    scrollbar-width: none;
  }

  .profile-shell .settings-sidebar::-webkit-scrollbar {
    display: none;
  }

  .profile-shell .settings-nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    padding: 0.75rem 0.5rem;
    gap: 0.55rem;
    border-radius: 12px;
  }

  .profile-shell .settings-nav-icon {
    width: 30px;
    height: 30px;
  }

  .profile-shell .settings-nav-icon svg {
    width: 16px;
    height: 16px;
  }

  .profile-shell .profile-nav-count {
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.78rem;
  }

  .profile-shell .profile-nav-label,
  .profile-shell .profile-nav-count {
    display: none;
  }

  .settings-page-shell .profile-nav-label {
    display: none;
  }

  .admin-shell .settings-master {
    grid-template-columns: 1fr;
  }

  .admin-shell .settings-sidebar {
    display: flex;
    width: fit-content;
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }

  .admin-shell .settings-nav-item {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0.7rem;
  }

  .profile-review-summary {
    grid-template-columns: 1fr;
  }

  .profile-avatar-button {
    width: 95px;
    height: 95px;
  }

  .main-nav {
    min-width: 190px;
  }

  .main-nav.open {
    display: flex;
  }

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

  .landing-category-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    min-height: auto;
    place-items: stretch;
  }

  .footer-inner,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-inner p {
    margin: 0;
  }

  .services-hero {
    align-items: center;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-card-head,
  .schedule-detail-row {
    grid-template-columns: 1fr;
  }

  .empty-state-illustration,
  .service-gallery-image,
  .service-result-image {
    height: 150px;
  }

  h1 {
    font-size: 1.1rem !important;
    font-weight: 700;
  }

  h2 {
    font-size: 1rem !important;
    font-weight: 700;
  }
}
