@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f2ea;
  --bg-soft: #efe7dc;
  --panel: #ffffff;
  --panel-soft: #f8f3ea;
  --text: #1f2d36;
  --muted: #596875;
  --line: #d7cebf;
  --brand: #2f6b6f;
  --brand-strong: #234f53;
  --accent: #ac7c4b;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 18px 45px rgba(31, 45, 54, 0.12);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1100px 500px at 90% 0%, rgba(47, 107, 111, 0.12), transparent 55%),
    radial-gradient(900px 420px at 0% 8%, rgba(172, 124, 75, 0.1), transparent 58%),
    linear-gradient(180deg, var(--bg), #fbf8f2 35%, #f7f1e8 100%);
}

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

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

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 14px; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 10px; }
h3 { font-size: 1.05rem; margin-bottom: 8px; }

.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.lead {
  margin: 0 0 20px;
  color: #31414c;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(215, 206, 191, 0.9);
  background: rgba(252, 248, 241, 0.88);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.85), transparent 36%),
    linear-gradient(135deg, var(--brand), #4f8789 58%, var(--accent));
  box-shadow: 0 12px 28px rgba(47, 107, 111, 0.25);
}

.brand-text strong {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4a5a66;
  border: 1px solid transparent;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--brand-strong);
  background: rgba(47, 107, 111, 0.09);
  border-color: rgba(47, 107, 111, 0.18);
}

.nav-link.active {
  color: var(--brand-strong);
  background: rgba(47, 107, 111, 0.14);
  border-color: rgba(47, 107, 111, 0.34);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--brand-strong);
}

.hero {
  padding: 60px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 24px;
  align-items: start;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid rgba(35, 79, 83, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-strong);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 79, 83, 0.14);
}

.btn.primary {
  background: linear-gradient(135deg, #2f6b6f, #3e7b73);
  border-color: rgba(35, 79, 83, 0.45);
  color: #ffffff;
}

.hero-note {
  border: 1px solid rgba(172, 124, 75, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf9, #f9f2e7);
  padding: 14px;
  color: #495762;
  font-size: 14px;
}

.card,
.tile,
.specialist,
.callout,
.faq details,
.hint,
.catalog-standards {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card,
.tile,
.callout,
.hint,
.catalog-standards,
.faq details {
  padding: 16px;
}

.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
}

.bullets li { margin: 6px 0; }

.section {
  padding: 46px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35)),
    radial-gradient(800px 360px at 15% 50%, rgba(47, 107, 111, 0.09), transparent 65%),
    radial-gradient(700px 340px at 85% 40%, rgba(172, 124, 75, 0.08), transparent 65%);
  border-top: 1px solid rgba(215, 206, 191, 0.75);
  border-bottom: 1px solid rgba(215, 206, 191, 0.75);
}

.section-head p,
.tile p,
.callout p,
.faq p,
.spec-desc,
.spec-meta {
  color: #33434e;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.tile.soft {
  background: var(--panel-soft);
  box-shadow: none;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.callout {
  background: linear-gradient(180deg, #f8fbfb, #f0f8f6);
  border-color: rgba(47, 107, 111, 0.32);
}

.link {
  color: var(--brand-strong);
  text-decoration: underline;
  font-weight: 700;
}

.page-hero {
  padding: 46px 0 20px;
  border-bottom: 1px solid rgba(215, 206, 191, 0.75);
  background:
    radial-gradient(900px 340px at 18% 10%, rgba(47, 107, 111, 0.1), transparent 62%),
    radial-gradient(700px 280px at 86% 0%, rgba(172, 124, 75, 0.09), transparent 65%);
}

.catalog-standards {
  margin-bottom: 14px;
  background: linear-gradient(180deg, #f8fbfb, #f2f8f6);
}

.catalog-standards p {
  margin: 0;
  color: #2e404c;
}

.catalog-standards p + p {
  margin-top: 8px;
}

.catalog-filters h2 {
  margin-bottom: 6px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.filter-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #334650;
}

.filter-field span {
  font-weight: 700;
}

.filter-field select {
  width: 100%;
}

.filter-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-result {
  margin: 0;
}

.portal-note {
  display: grid;
  gap: 10px;
  align-items: start;
}

.hint {
  margin-top: 14px;
  border-style: dashed;
  box-shadow: none;
  background: #faf6ee;
  color: #45535f;
}

.faq details {
  margin: 10px 0;
  box-shadow: none;
  background: #fcfaf5;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.specialist {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 16px;
}

.specialist.featured {
  border-color: rgba(47, 107, 111, 0.45);
  background: linear-gradient(180deg, #f4f9f8, #ffffff);
}

.spec-avatar { position: relative; }

.spec-photo {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 24px rgba(31, 45, 54, 0.2);
}

.spec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fdfdfd;
  background: linear-gradient(135deg, #2f6b6f, #4d7f7b 55%, #ad7c4b);
  box-shadow: 0 12px 24px rgba(31, 45, 54, 0.2);
}

.avatar-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
  background: #e5f4ef;
  border: 1px solid rgba(47, 107, 111, 0.3);
  color: #24565a;
}

.spec-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-top h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 111, 0.25);
  background: rgba(47, 107, 111, 0.09);
  padding: 6px 10px;
  font-size: 12px;
  color: #265b5f;
}

.pill.muted {
  border-color: rgba(89, 104, 117, 0.25);
  background: rgba(89, 104, 117, 0.08);
  color: #4a5863;
}

.verify-badge {
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 111, 0.32);
  background: rgba(47, 107, 111, 0.14);
  color: #215357;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.verify-badge.pending {
  border-color: rgba(172, 124, 75, 0.35);
  background: rgba(172, 124, 75, 0.14);
  color: #6f4f30;
}

.spec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  margin-top: 10px;
}

.spec-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spec-meta a {
  color: #244f53;
  text-decoration: underline;
}

.spec-desc { margin: 12px 0 0; }
.spec-actions { margin-top: 12px; }

.ethics-intro {
  margin: 8px 0 14px;
  border-left: 4px solid rgba(172, 124, 75, 0.75);
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #31414c;
}

.verification-note {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f3f8f7;
  border: 1px solid rgba(47, 107, 111, 0.22);
  color: #274d51;
  font-size: 14px;
}

.contact-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

.portal-fields[hidden] {
  display: none;
}

.form-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.form-field span {
  font-weight: 700;
  color: #334650;
}

.form-field input,
.form-field select,
.form-field textarea,
.filter-field select {
  width: 100%;
  border: 1px solid rgba(63, 81, 94, 0.24);
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  color: #1f2d36;
  font: inherit;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filter-field select:focus {
  outline: 2px solid rgba(47, 107, 111, 0.3);
  outline-offset: 1px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334650;
}

.form-consent input {
  margin-top: 4px;
}

.form-consent a {
  text-decoration: underline;
  color: #204e52;
}

.form-status {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #e8f5f0;
  border: 1px solid rgba(47, 107, 111, 0.28);
  color: #25565a;
}

.form-status.is-error {
  background: #fbeeed;
  border: 1px solid rgba(168, 80, 69, 0.3);
  color: #6f2e27;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  border: 1px solid rgba(63, 81, 94, 0.26);
  border-radius: 16px;
  background: rgba(252, 248, 241, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 42px rgba(31, 45, 54, 0.18);
  padding: 14px;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-copy p {
  margin: 0;
  color: #3a4a55;
  font-size: 14px;
}

.cookie-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-settings-panel {
  margin-top: 12px;
  border-top: 1px solid rgba(63, 81, 94, 0.2);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334650;
}

.cookie-option input {
  margin-top: 4px;
}

.cookie-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-settings-actions a {
  text-decoration: underline;
  color: #204e52;
  font-size: 14px;
}

.cookie-manage {
  position: fixed;
  z-index: 110;
  right: 16px;
  bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 111, 0.34);
  background: #ffffff;
  color: #204e52;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 45, 54, 0.18);
}

.no-results {
  margin-bottom: 16px;
}

.divider {
  margin: 22px 0;
  height: 1px;
  background: rgba(215, 206, 191, 0.9);
}

.site-footer {
  margin-top: 6px;
  border-top: 1px solid rgba(215, 206, 191, 0.9);
  background: linear-gradient(180deg, #f8f3ea, #f2eadf);
  padding: 26px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
}

.footer-title {
  font-weight: 800;
  color: #3f515e;
  margin-bottom: 6px;
}

.site-footer a {
  display: block;
  padding: 4px 0;
  color: #2a3a46;
}

.site-footer a:hover {
  color: #204e52;
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 206, 191, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: #4b5a65;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

main section {
  animation: fade-up 0.6s ease both;
}

main section:nth-of-type(2) { animation-delay: 0.08s; }
main section:nth-of-type(3) { animation-delay: 0.14s; }
main section:nth-of-type(4) { animation-delay: 0.2s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: inline-block; }

  .nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid rgba(215, 206, 191, 0.95);
    border-radius: 16px;
    background: rgba(253, 249, 242, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

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

  .spec-avatar {
    display: flex;
    justify-content: flex-start;
  }

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

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

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-manage {
    right: 12px;
    bottom: 12px;
  }

  .avatar-badge {
    top: -6px;
    left: 64px;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    padding: 42px 0 18px;
  }

  .section {
    padding: 34px 0;
  }

  .page-hero {
    padding: 34px 0 14px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .card,
  .tile,
  .callout,
  .hint,
  .catalog-standards,
  .faq details,
  .specialist {
    padding: 14px;
  }

  .footer-bottom {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .kicker {
    letter-spacing: 0.1em;
  }

  .brand-text span {
    font-size: 12px;
  }

  .avatar-placeholder {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .spec-photo {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .spec-meta {
    display: grid;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main section {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
