:root {
  --bg: #f6f8fc;
  --bg-strong: #e7eef7;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: #ffffff;
  --text: #152033;
  --muted: #66758a;
  --line: rgba(23, 32, 47, 0.12);
  --accent: #168b84;
  --accent-dark: #0f686d;
  --accent-warm: #df725f;
  --accent-gold: #d5a03e;
  --accent-blue: #315fce;
  --ink: #17202f;
  --shadow: 0 20px 60px rgba(23, 32, 47, 0.12);
  --shadow-soft: 0 10px 30px rgba(23, 32, 47, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(rgba(31, 143, 138, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 143, 138, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fbfcff 0%, #edf4fb 48%, #fff8f1 100%);
  background-size: 36px 36px, 36px 36px, auto;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text {
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #ffffff;
  font-family: "Prata", serif;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  padding: 9px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.header-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.header-session {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-session-name {
  color: var(--muted);
  font-weight: 700;
}

.profile-toggle {
  min-height: 46px;
  gap: 10px;
  padding: 0 16px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2d6cdf);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-toggle[aria-expanded="true"] {
  border-color: rgba(31, 143, 138, 0.35);
  background: rgba(31, 143, 138, 0.1);
}

.profile-toggle-caret {
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.profile-toggle[aria-expanded="true"] .profile-toggle-caret {
  transform: rotate(180deg);
  color: var(--accent-dark);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.profile-menu-divider {
  display: block;
  height: 1px;
  margin: 4px 6px;
  background: rgba(48, 29, 24, 0.08);
}

.profile-menu-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
}

.profile-menu-link:hover {
  background: rgba(31, 143, 138, 0.08);
}

.profile-menu-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.header-auth-open {
  min-height: 46px;
  padding: 0 16px;
}

.auth-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.auth-inline-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 60px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Prata", serif;
  line-height: 1.14;
}

h1 {
  font-size: 4rem;
  max-width: 13.5ch;
  letter-spacing: 0;
}

h2 {
  font-size: 2.35rem;
  max-width: 760px;
  letter-spacing: 0;
}

h3 {
  line-height: 1.28;
  font-size: 1.12rem;
}

.hero-text,
.section-heading p:last-child,
.service-card p,
.process-grid p,
.portfolio-card p,
.review-card p,
.faq-answer p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-text {
  max-width: 590px;
  font-size: 1.02rem;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 143, 138, 0.24);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.service-card,
.portfolio-card,
.review-card,
.contact-panel,
.faq-item {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(21, 32, 51, 0.97), rgba(18, 78, 88, 0.94)),
    var(--ink);
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(23, 32, 47, 0.24);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(145deg, black 0%, transparent 72%);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, var(--accent-warm), var(--accent-gold));
  transform: rotate(8deg);
  opacity: 0.9;
}

.paper-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
  width: min(100%, 374px);
  margin-left: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.92));
  color: var(--ink);
  transform: rotate(1.2deg);
  box-shadow: 0 24px 54px rgba(4, 10, 20, 0.22);
}

.paper-preview-head {
  display: flex;
  gap: 8px;
}

.paper-preview-head span {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.paper-preview-head span:nth-child(2) {
  background: var(--accent-blue);
}

.paper-preview-head span:nth-child(3) {
  background: var(--accent-warm);
}

.paper-preview-lines {
  display: grid;
  gap: 10px;
}

.paper-preview-lines i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 32, 47, 0.12);
}

.paper-preview-lines i:nth-child(1) {
  width: 88%;
}

.paper-preview-lines i:nth-child(2) {
  width: 72%;
}

.paper-preview-lines i:nth-child(3) {
  width: 94%;
}

.paper-preview-lines i:nth-child(4) {
  width: 58%;
}

.paper-preview-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.paper-preview-footer b {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(31, 143, 138, 0.12);
  color: var(--accent-dark);
  font-size: 0.78rem;
}

.stat-card,
.quote-card,
.stat-grid article {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  font-family: "Prata", serif;
  font-size: 2.75rem;
}

.stat-label,
.stat-grid p,
.quote-card p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
  margin: 0;
}

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

.stat-grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.section {
  padding: 58px 0;
}

.section-heading {
  display: block;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  max-width: 680px;
  margin: 0;
  font-size: 0.98rem;
}

.section-heading h2 {
  max-width: 680px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.service-grid,
.process-grid,
.portfolio-grid,
.review-grid,
.why-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.portfolio-card,
.review-card,
.why-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 198px;
}

.review-card {
  min-height: auto;
}

.service-card,
.portfolio-card,
.review-card,
.faq-item,
.contact-panel,
.account-auth,
.user-chat,
.chat-admin-main,
.chat-user-list,
.admin-sidebar-intro,
.admin-login,
.admin-session,
.admin-panel,
.admin-filters,
.request-card,
.review-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.86)),
    var(--paper);
}

.service-card,
.portfolio-card,
.review-card,
.why-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.portfolio-card:hover,
.review-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 143, 138, 0.26);
  box-shadow: var(--shadow);
}

.service-card::before,
.portfolio-card::before {
  content: "";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(22, 139, 132, 0.1);
  color: var(--accent-dark);
  font-weight: 800;
}

.service-card:nth-child(1)::before {
  content: "ВКР";
}

.service-card:nth-child(2)::before {
  content: "КР";
}

.service-card:nth-child(3)::before {
  content: "Р";
}

.service-card:nth-child(4)::before {
  content: "П";
}

.service-card:nth-child(5)::before {
  content: "З";
}

.service-card:nth-child(6)::before {
  content: "%";
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

.why-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.why-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(31, 143, 138, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
}

.why-card p,
.work-meta {
  color: var(--muted);
  line-height: 1.58;
}

.service-card h3,
.process-grid h3,
.portfolio-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.service-card p,
.process-grid p,
.portfolio-card p,
.review-card p,
.why-card p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 34rem;
}

.accent-card {
  background: linear-gradient(145deg, rgba(31, 143, 138, 0.96), rgba(45, 108, 223, 0.92));
  color: #ffffff;
}

.accent-card p {
  color: rgba(255, 255, 255, 0.82);
}

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

.process-grid article {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(23, 32, 47, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 253, 0.78));
  box-shadow: 0 12px 30px rgba(23, 32, 47, 0.06);
  min-height: 198px;
}

.process-grid span {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Prata", serif;
  font-size: 1.9rem;
  color: var(--accent);
}

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

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.work-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(48, 29, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 22px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-soft);
}

.reviews-layout > * {
  min-width: 0;
}

.reviews-layout .review-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account-layout,
.chat-admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-auth,
.user-chat,
.chat-admin-main,
.chat-user-list {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.account-auth,
.user-chat,
.chat-admin-main {
  padding: 22px;
}

.account-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.account-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.account-tab.is-active {
  background: var(--accent);
  color: #ffffff;
}

.account-form,
.chat-form {
  display: grid;
  gap: 14px;
}

.account-form label,
.chat-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.account-form input,
.chat-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

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

.user-chat-head,
.chat-admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.user-chat-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.chat-messages {
  display: grid;
  gap: 12px;
  max-height: 420px;
  min-height: 260px;
  margin-bottom: 16px;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(48, 29, 24, 0.08);
  border-radius: 18px;
  background: rgba(247, 250, 253, 0.88);
}

.chat-empty {
  color: var(--muted);
  align-self: center;
}

.chat-message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(48, 29, 24, 0.08);
}

.chat-message p {
  margin: 0;
  line-height: 1.52;
}

.chat-message-user {
  margin-left: auto;
  background: rgba(31, 143, 138, 0.12);
}

.chat-message-admin {
  margin-right: auto;
}

.chat-message-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-admin-sidebar {
  display: grid;
  gap: 16px;
}

.chat-user-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.chat-user-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(48, 29, 24, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
}

.chat-user-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-user-item span,
.chat-user-item small {
  color: var(--muted);
}

.chat-user-item.is-active {
  border-color: rgba(31, 143, 138, 0.35);
  background: rgba(31, 143, 138, 0.08);
}

.chat-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.chat-page-main {
  padding-top: 38px;
}

.user-chat-page {
  max-width: 880px;
  margin: 0 auto 56px;
}

.chat-compose-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.chat-compose-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.attachment-button {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.attachment-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 143, 138, 0.32);
  background: rgba(239, 247, 248, 0.95);
}

.attachment-button input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.attachment-button svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-dark);
}

.attachment-name {
  color: var(--muted);
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-attachment {
  display: inline-grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(48, 29, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.chat-attachment span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-type {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-card::before {
  content: "PDF";
  background: rgba(49, 95, 206, 0.1);
  color: var(--accent-blue);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-question span:first-child {
  font-weight: 700;
  line-height: 1.35;
}

.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 240px;
  padding-bottom: 18px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 248, 0.88)),
    var(--paper);
}

.contact-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 4px 0;
}

.contact-copy h2 {
  font-size: 2rem;
  max-width: 420px;
}

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

.request-auth-box {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) repeat(2, minmax(160px, 0.7fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(31, 143, 138, 0.18);
  border-radius: 18px;
  background: rgba(239, 247, 248, 0.72);
}

.request-auth-box h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.request-auth-box p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.86rem;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.account-form input::placeholder,
.chat-form textarea::placeholder,
.review-form input::placeholder,
.review-form textarea::placeholder {
  color: rgba(102, 117, 138, 0.72);
}

.contact-form textarea {
  resize: vertical;
  min-height: 118px;
}

.request-details-field {
  grid-column: span 2;
}

.request-file-field {
  align-content: start;
  min-height: 118px;
  padding: 12px;
  border: 1px dashed rgba(31, 143, 138, 0.28);
  border-radius: 14px;
  background: rgba(239, 247, 248, 0.62);
}

.file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  border-radius: 14px;
  overflow: hidden;
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(31, 143, 138, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(23, 32, 47, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.file-picker:hover .file-picker-button {
  transform: translateY(-1px);
  border-color: rgba(31, 143, 138, 0.45);
  background: #ffffff;
}

.request-file-field .attachment-name {
  display: block;
  font-size: 0.82rem;
}

.review-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.review-form h3 {
  font-size: 1.2rem;
}

.review-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.review-form textarea {
  resize: vertical;
  min-height: 132px;
}

.site-footer {
  padding-top: 24px;
}

.footer-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(48, 29, 24, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 246, 248, 0.78)),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.footer-copy h2 {
  max-width: none;
  margin-bottom: 12px;
  font-size: 2rem;
}

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

.footer-contact-item {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(48, 29, 24, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.footer-contact-label,
.footer-social-title {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
  width: 100%;
  min-width: 0;
}

.footer-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-copy-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.footer-copy-button:hover {
  text-decoration: underline;
}

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

.footer-copy-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--accent-dark);
}

.full-width {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
}

.form-status.is-error {
  color: #8b1e16;
}

.admin-body {
  min-height: 100vh;
}

.admin-shell {
  padding-bottom: 32px;
}

.admin-main {
  padding: 38px 0 0;
}

.admin-hero {
  margin-bottom: 32px;
  padding: 10px 4px 0;
}

.admin-hero h1 {
  max-width: none;
  font-size: 3.2rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-sidebar-intro,
.admin-login,
.admin-session,
.admin-panel,
.admin-filters,
.request-card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-sidebar-intro,
.admin-login,
.admin-session,
.admin-panel,
.admin-filters {
  border-radius: 28px;
  padding: 24px;
}

.admin-sidebar-intro {
  position: sticky;
  top: 102px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.88)),
    var(--paper);
}

.admin-sidebar-intro h2 {
  max-width: none;
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.admin-sidebar-text,
.admin-panel-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.admin-login,
.admin-session,
.admin-filters {
  display: grid;
  gap: 14px;
  position: sticky;
  width: 100%;
}

.admin-login {
  top: 322px;
}

.admin-session {
  top: 322px;
}

.admin-filters {
  top: 616px;
}

.admin-panel {
  min-width: 0;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.9)),
    var(--paper);
}

.admin-login h2,
.admin-session h2,
.admin-filters h2 {
  max-width: none;
  font-size: 1.35rem;
}

.admin-login label,
.admin-filters label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.admin-login input,
.admin-filters input,
.admin-filters select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-login input:focus,
.admin-filters input:focus,
.admin-filters select:focus {
  outline: none;
  border-color: rgba(31, 143, 138, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 143, 138, 0.1);
  background: #ffffff;
}

.admin-panel-head,
.request-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-empty {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed rgba(48, 29, 24, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-panel-head-wrap {
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(48, 29, 24, 0.08);
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions .button {
  min-height: 44px;
}

.admin-login,
.admin-session {
  visibility: visible;
}

.admin-authenticated .admin-login {
  display: none;
}

.admin-authenticated .admin-session {
  display: grid;
}

html:not(.admin-authenticated) .admin-session {
  display: none;
}

.is-hidden {
  display: none;
}

.admin-counter {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.admin-select {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.request-list {
  display: grid;
  gap: 18px;
}

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

.work-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(48, 29, 24, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.work-admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.work-admin-form input,
.work-admin-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.work-file-field {
  align-content: start;
  padding: 14px;
  border: 1px dashed rgba(31, 143, 138, 0.28);
  border-radius: 16px;
  background: rgba(239, 247, 248, 0.62);
}

.work-file-field .attachment-name {
  display: block;
  font-size: 0.86rem;
}

.work-download-link {
  margin-top: 14px;
}

.work-admin-form textarea {
  min-height: 130px;
  resize: vertical;
}

.work-published-toggle {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: center;
  gap: 10px;
}

.work-published-toggle input {
  width: 18px;
  height: 18px;
}

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

.reviews-admin-head {
  margin-top: 32px;
}

.request-card {
  border-radius: 26px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.88)),
    var(--paper);
}

.request-card-head {
  margin-bottom: 18px;
}

.request-card-head > div {
  display: grid;
  gap: 4px;
}

.request-card-head strong {
  font-size: 1rem;
}

.request-card-head span,
.request-grid p span,
.request-details span {
  color: var(--muted);
}

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

.request-grid p {
  padding: 12px 14px;
  border: 1px solid rgba(48, 29, 24, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.request-grid p,
.request-details p {
  margin: 0;
  line-height: 1.7;
}

.request-details {
  padding: 14px 16px;
  border: 1px solid rgba(48, 29, 24, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.request-grid p span,
.request-details span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-actions {
  margin-top: 16px;
}

.review-edit-field {
  display: grid;
  gap: 8px;
}

.review-edit-input,
.review-edit-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(48, 29, 24, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.review-edit-textarea {
  min-height: 130px;
  resize: vertical;
}

.review-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-status-pending {
  background: #efe0bc;
  color: #7e5810;
}

.review-status-approved {
  background: #d9edd8;
  color: #2f6a33;
}

.review-status-rejected {
  background: #f1d8d4;
  color: #8c3428;
}

.button-danger {
  background: #8e2f24;
  color: #ffffff;
}

.button-danger:hover {
  background: #6f2219;
}

/* Visual refresh overrides for shared admin and data surfaces. */
.admin-sidebar-intro,
.admin-login,
.admin-session,
.admin-panel,
.admin-filters,
.request-card {
  box-shadow: var(--shadow-soft);
}

.admin-sidebar-intro,
.admin-login,
.admin-session,
.admin-panel,
.admin-filters,
.request-card,
.work-admin-form {
  border-radius: 22px;
}

.admin-sidebar-intro {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.88)),
    var(--paper);
}

.admin-panel,
.request-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 253, 0.9)),
    var(--paper);
}

.admin-login input,
.admin-filters input,
.admin-filters select,
.work-admin-form input,
.work-admin-form textarea,
.review-edit-input,
.review-edit-textarea {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-login input:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.work-admin-form input:focus,
.work-admin-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.review-form input:focus,
.review-form textarea:focus,
.account-form input:focus,
.chat-form textarea:focus {
  outline: none;
  border-color: rgba(31, 143, 138, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 143, 138, 0.1);
  background: #ffffff;
}

.admin-empty,
.request-grid p,
.request-details,
.work-admin-form {
  background: rgba(255, 255, 255, 0.74);
}

.admin-empty,
.request-grid p,
.request-details {
  border-radius: 16px;
}

.admin-counter,
.admin-select {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.review-status {
  border-radius: 12px;
}

.review-status-pending {
  background: #fff3ce;
  color: #806019;
}

.review-status-approved {
  background: #d9f1ee;
  color: #176861;
}

.review-status-rejected {
  background: #f8ded9;
  color: #8a352b;
}

.button-danger {
  background: #b34235;
  color: #ffffff;
}

.button-danger:hover {
  background: #8a3027;
}

@media (max-width: 980px) {
  .hero,
  .contact-panel,
  .admin-layout,
  .reviews-layout,
  .account-layout,
  .chat-admin-layout,
  .service-grid,
  .process-grid,
  .portfolio-grid,
  .review-grid,
  .why-grid,
  .request-auth-box,
  .work-admin-form {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading p:last-child {
    max-width: 640px;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .admin-hero h1 {
    font-size: 2.7rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .request-details-field {
    grid-column: auto;
  }

  .footer-contacts {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .admin-sidebar-intro,
  .admin-login,
  .admin-session {
    position: static;
  }

  .admin-filters {
    position: static;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
  }

  .site-header {
    flex-wrap: wrap;
  }

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

  .header-session {
    justify-content: flex-start;
  }

  .profile-menu {
    left: 0;
    right: auto;
    width: min(100%, 240px);
  }

  .auth-popover {
    left: 0;
    right: auto;
    width: min(100%, 360px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .chat-compose-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.25rem;
    max-width: none;
  }

  h2 {
    font-size: 1.72rem;
  }

  .admin-hero h1 {
    font-size: 2rem;
  }

  .hero-text,
  .section-heading p:last-child,
  .service-card p,
  .process-grid p,
  .portfolio-card p,
  .review-card p,
  .faq-answer p,
  .contact-copy p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .file-picker {
    width: 100%;
  }

  .file-picker-button {
    width: 100%;
  }

  .header-auth .button,
  .admin-actions .button,
  .chat-compose-meta .button {
    width: auto;
  }

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

  .hero-card,
  .contact-panel {
    padding: 18px;
  }

  .contact-copy h2 {
    font-size: 1.62rem;
  }

  .admin-panel,
  .admin-login,
  .admin-session,
  .admin-filters,
  .admin-sidebar-intro,
  .request-card {
    padding: 18px;
  }

  .service-card,
  .portfolio-card,
  .review-card,
  .why-card,
  .process-grid article {
    padding: 18px;
  }

  .paper-preview {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

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

  .request-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
