@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --text: #10211d;
  --muted: #52615c;
  --line: #dbe5e1;
  --brand: #20c863;
  --brand-strong: #0ea454;
  --brand-dark: #0e7a55;
  --shadow-sm: 0 8px 22px rgba(10, 63, 44, 0.08);
  --shadow-md: 0 18px 50px rgba(10, 63, 44, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(800px 320px at 82% 0%, rgba(32, 200, 99, 0.18), transparent 60%),
    radial-gradient(620px 240px at 5% 0%, rgba(14, 164, 84, 0.12), transparent 65%),
    var(--bg);
}

body {
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding-bottom: 56px;
}

.section {
  padding: 32px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 229, 225, 0.9);
}

.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #129257;
}

.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d3ddd9;
  background: #fff;
  color: #40514b;
  font-weight: 700;
  transition: 0.16s ease;
}

.nav-btn:hover {
  border-color: #9fe0bb;
  background: #f4fcf7;
  color: #0d8f51;
}

.nav-btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.nav-btn-primary:hover {
  color: #fff;
  filter: brightness(0.95);
}

.dfs-topline {
  background: #121a18;
  border-bottom: 1px solid #2a3632;
}

.dfs-topline-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  overflow-x: auto;
}

.dfs-topline-row a {
  color: #d7e8e2;
  font-size: 0.92rem;
  font-weight: 600;
}

.home-search-strip {
  padding: 16px 0;
}

.home-search-form {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
}

.home-search-form input,
.send-search-form input,
.filter-form input,
.filter-form select,
.inline-form input,
.client-panel-filter input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

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

.btn-ghost {
  color: #0f8b51;
  border: 1px solid #b7dac7;
  background: #f4fbf7;
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 0.88rem;
}

.home-categories {
  padding-bottom: 8px;
}

.home-categories-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 6px;
}

.home-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d2dfd8;
  background: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(14, 48, 35, 0.05);
}

.home-category-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.home-category-pill small {
  color: #6f7f78;
}

.home-directory-head {
  margin-bottom: 22px;
}

.home-directory-head h1,
h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-directory-head p,
p {
  color: var(--muted);
}

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

.home-group-card,
.card,
.price-card,
.metric-card,
.panel {
  background: var(--surface);
  border: 1px solid #d7e2de;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.home-group-card {
  overflow: hidden;
}

.home-group-card.vip {
  border-color: #8ed7b1;
  box-shadow: 0 18px 40px rgba(32, 200, 99, 0.18);
}

.home-group-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #e8f1ed;
}

.home-group-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-group-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #27ce69, #159167);
}

.home-group-body {
  padding: 14px;
}

.home-group-category {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2b6f4f;
  background: #e8f8ef;
  border: 1px solid #c4e9d2;
}

.home-group-body h3 {
  margin: 10px 0 8px;
}

.home-group-body p {
  margin: 0 0 12px;
  line-height: 1.5;
  color: #54645e;
  min-height: 70px;
}

.btn-enter-group {
  width: 100%;
}

.search-form,
.stack-form,
.filter-form,
.inline-form {
  display: grid;
  gap: 12px;
}

.filter-form {
  margin-bottom: 16px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #2d3f39;
}

.checkbox-inline input {
  width: 18px;
  height: 18px;
}

.card-grid,
.pricing-grid,
.metric-grid,
.admin-panels {
  display: grid;
  gap: 16px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.price-card,
.card,
.panel,
.metric-card {
  padding: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #12874f;
  font-weight: 800;
  font-size: 0.78rem;
}

.price-value {
  margin: 12px 0;
  font-size: 2rem;
  font-weight: 800;
}

.send-search-strip {
  padding: 12px 0;
}

.send-search-form {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  max-width: 760px;
}

.send-page {
  padding-top: 24px;
}

.send-header {
  text-align: center;
  margin-bottom: 22px;
}

.send-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
}

.send-preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.send-preview-image-wrap {
  aspect-ratio: 16 / 9;
  background: #e8efec;
}

.send-preview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.send-preview-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6c7c76;
}

.send-preview-label {
  display: inline-flex;
  margin: 10px 12px 0;
  background: #2b3c36;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.send-preview-card h3 {
  margin: 10px 12px 6px;
}

.send-preview-card p {
  margin: 0 12px 14px;
}

.send-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.send-form-card label,
.pricing-client-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
  font-size: 0.95rem;
  font-weight: 700;
}

.send-form-card input,
.send-form-card select,
.send-form-card textarea,
.pricing-client-form input,
.pricing-client-form select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}

.send-form-card textarea {
  resize: vertical;
  min-height: 110px;
}

.send-validate-btn,
.send-submit-btn,
.pricing-cta-btn {
  width: 100%;
}

.send-rules {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #d8e2de;
  background: #f7fbf9;
  padding: 12px 14px;
}

.send-rules ul {
  margin: 8px 0 0 18px;
  color: #40534c;
}

.send-tip,
.notice {
  margin-top: 12px;
  border: 1px solid #bfe6cc;
  border-radius: 10px;
  background: #e9f8ef;
  color: #206441;
  padding: 12px 14px;
}

.notice.success {
  background: #eaf9f0;
}

.pricing-page .pricing-client-panel {
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.pricing-client-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.pricing-checkout-result {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.pricing-checkout-result.success {
  border-color: #9fdab9;
  background: #eefbf3;
}

.pricing-checkout-result.error {
  border-color: #efbaba;
  background: #fff3f3;
  color: #8f2f2f;
}

.pricing-checkout-result.loading {
  background: #f6faf8;
}

.pricing-qr-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border: 1px solid #cedad5;
  border-radius: 10px;
  background: #fff;
  margin: 10px 0;
}

.pricing-copy-code {
  width: 100%;
  min-height: 84px;
  border: 1px solid #d1ddd8;
  border-radius: 10px;
  padding: 10px;
}

.pricing-result-links a {
  color: #0f8f53;
  font-weight: 700;
}

.client-panel-filter {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
}

.client-panel-metrics {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card strong {
  display: block;
  font-size: 1.5rem;
}

.metric-card span {
  color: #4e615a;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e4ece8;
}

.table th {
  color: #2e3e39;
  font-weight: 800;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.group-page {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.group-main,
.group-sidebar,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.group-main,
.group-sidebar,
.side-card {
  padding: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.stat-grid div {
  background: #f3f9f6;
  border: 1px solid #d7e9df;
  border-radius: 12px;
  padding: 12px;
}

.stat-grid strong {
  display: block;
  font-size: 1.3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 34px 0 44px;
}

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

.footer-grid strong {
  display: block;
  margin-bottom: 10px;
}

.footer-grid a,
.footer-grid p {
  color: #556560;
  line-height: 1.6;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.admin-body {
  background: #060909;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  padding: 22px;
  border-right: 1px solid #1f2624;
  background: #0f1614;
  display: grid;
  gap: 14px;
  align-content: start;
}

.brand-admin {
  font-weight: 800;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #9cb1a9;
}

.admin-nav a:hover {
  background: #1c2723;
  color: #fff;
}

.admin-content {
  padding: 26px;
}

.admin-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .home-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .send-layout,
  .group-page,
  .admin-shell,
  .admin-panels {
    grid-template-columns: 1fr;
  }

  .pricing-client-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .main-nav,
  .footer-grid {
    width: 100%;
  }

  .nav-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .home-search-form,
  .send-search-form,
  .pricing-client-form,
  .client-panel-filter,
  .home-group-grid,
  .client-panel-metrics,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
