:root {
  --bg: #f2f2f2;
  --panel: #ffffff;
  --accent: #a87427;
  --accent-strong: #8a651e;
  --text: #1f1e1b;
  --muted: #5f5b54;
  --card: #ffffff;
  --border: #e3ded6;
  --shadow: 0 20px 40px rgba(31, 30, 27, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(170, 170, 170, 0.18), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(140, 140, 140, 0.12), transparent 35%),
              var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__logo {
  display: block;
  height: 46px;
  width: auto;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(121, 17, 45, 0.12);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-flag {
  width: 22px;
  height: 14px;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(31, 30, 27, 0.15);
}

.hero {
  padding: 120px 32px 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__content h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 12px 0 16px;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__card {
  background: linear-gradient(150deg, rgba(168, 116, 39, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
}

.stat__value {
  font-size: 32px;
  font-weight: 700;
}

.stat__label {
  color: var(--muted);
  font-size: 14px;
}

.stat__sectors {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.sector {
  position: relative;
  display: inline-flex;
}

.sector img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(31, 30, 27, 0.22);
}

.sector::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--panel);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  transition-delay: 0.1s;
}

.sector:hover::after {
  opacity: 1;
}

.section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--accent {
  background: rgba(168, 116, 39, 0.06);
  border-radius: 20px;
}

.section__header {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.section__intro {
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card--minimal {
  box-shadow: none;
}

.card h3 {
  margin-top: 0;
}

.list {
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(120deg, var(--accent-strong), var(--accent));
  color: #fff6f8;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(193, 44, 85, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(193, 44, 85, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.section--contact {
  background: linear-gradient(180deg, rgba(168, 116, 39, 0.04), rgba(255, 255, 255, 0.95));
  border-radius: 20px;
  border: 1px solid var(--border);
}

.contact {
  align-items: start;
}

.contact__details {
  display: grid;
  gap: 14px;
}

.contact__item {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
}

.references-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.references-sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.references-sidebar h4 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.references-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}

.references-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.references-sidebar a.is-active {
  background: rgba(168, 116, 39, 0.12);
  border-color: rgba(168, 116, 39, 0.3);
  color: var(--accent-strong);
  font-weight: 600;
}

.references-badge {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.references-breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.references-title {
  margin: 0 0 24px;
  color: var(--accent-strong);
}

.circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.circle-card {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.circle-thumb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.circle-card.is-active .circle-thumb {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(138, 101, 30, 0.35);
}

.circle-card.is-active span {
  color: var(--accent-strong);
  font-weight: 600;
}

.references-page .circle-grid {
  margin-bottom: 36px;
}

.references-page .references-split {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.references-page .references-list {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.references-page .references-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.references-page .reference-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.references-page .reference-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.references-page .reference-row:hover,
.references-page .reference-row:focus-visible {
  background: rgba(168, 116, 39, 0.08);
  border-color: rgba(168, 116, 39, 0.4);
  transform: translateY(-1px);
  outline: none;
}

.references-page .reference-row.is-active {
  background: rgba(168, 116, 39, 0.12);
  border-color: rgba(168, 116, 39, 0.5);
}

.references-page .reference-name {
  font-weight: 600;
  color: var(--text);
}

.references-page .reference-meta {
  color: var(--muted);
  font-size: 13px;
}

.references-page .reference-detail {
  position: sticky;
  top: 110px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.references-page .reference-detail__title {
  margin: 0;
  color: var(--accent-strong);
}

.references-page .reference-detail__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.references-page .reference-detail__activity {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.references-page .reference-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 6px;
}

.references-page .reference-thumb {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
  position: relative;
}

.references-page .reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.references-page .reference-thumb img:hover {
  transform: scale(1.08);
}

.references-page .reference-thumb img:active {
  transform: scale(1.5);
}

.reference-list {
  display: grid;
  gap: 24px;
}

.reference-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.reference-item img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.reference-item h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
}

.reference-item p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.reference-link {
  color: var(--accent);
  font-weight: 600;
}

.contact__form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.form__group {
  display: grid;
  gap: 6px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fbfaf7;
  color: var(--text);
  font-size: 15px;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.error {
  color: #f87171;
  font-size: 13px;
  height: 16px;
  margin: 0;
}

.form__status {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  min-height: 18px;
}

.footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero__card {
    order: -1;
  }

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

  .reference-item {
    grid-template-columns: 1fr;
  }

  .references-page .references-split {
    grid-template-columns: 1fr;
  }

  .references-page .reference-detail {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav ul {
    display: none;
    position: absolute;
    right: 20px;
    top: 60px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 10px;
    flex-direction: column;
    width: 180px;
    box-shadow: var(--shadow);
  }

  .nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topbar {
    padding-inline: 20px;
  }
}
