@import url("../styles.css");

.identification-hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  align-items: end;
  gap: clamp(50px, 8vw, 120px);
  padding-block: 82px 96px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: #9eaaa2;
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a { color: var(--lichen); text-underline-offset: 4px; }

.method-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(70px, 10vw, 140px);
}

.method-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.method-list li > span { color: var(--clay); font: 9px var(--mono); }
.method-list h3 { margin-bottom: 8px; font-size: 18px; }
.method-list p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }

.instruments-section { color: var(--paper); background: #26372f; }
.instruments-section .section-heading > p:last-child { color: #aeb9b2; }

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #617068;
  border-left: 1px solid #617068;
}

.instrument-card {
  min-width: 0;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
  border-right: 1px solid #617068;
  border-bottom: 1px solid #617068;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #1d2c25;
  background-size: 20px 20px;
}

.instrument-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #84938a;
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instrument-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #8c765c;
  color: #d6a66f;
  line-height: 1;
}

.instrument-symbol {
  width: 74px;
  height: 74px;
  position: relative;
  margin: 48px 0 35px;
  border: 1px solid #64756b;
  border-radius: 50%;
}

.instrument-symbol span { position: absolute; display: block; background: var(--lichen); opacity: 0.72; }
.instrument-symbol span:nth-child(1) { width: 40px; height: 1px; top: 25px; left: 16px; transform: rotate(17deg); }
.instrument-symbol span:nth-child(2) { width: 31px; height: 1px; top: 42px; left: 22px; transform: rotate(-14deg); }
.instrument-symbol span:nth-child(3) { width: 1px; height: 42px; top: 15px; left: 37px; transform: rotate(28deg); }
.instrument-symbol-crystal { border-radius: 22% 48% 28% 55%; transform: rotate(8deg); }
.instrument-symbol-fossil span:nth-child(1) { width: 38px; height: 38px; top: 17px; left: 17px; border: 1px solid var(--lichen); border-radius: 50%; background: transparent; }
.instrument-symbol-fossil span:nth-child(2) { width: 24px; height: 24px; top: 24px; left: 24px; border: 1px solid var(--lichen); border-radius: 50%; background: transparent; }
.instrument-symbol-fossil span:nth-child(3) { height: 24px; top: 25px; left: 36px; transform: rotate(42deg); }
.instrument-symbol-strata { border-radius: 0; transform: rotate(-5deg); }
.instrument-symbol-strata span:nth-child(1),
.instrument-symbol-strata span:nth-child(2),
.instrument-symbol-strata span:nth-child(3) { width: 48px; height: 1px; left: 12px; transform: rotate(0); }
.instrument-symbol-strata span:nth-child(1) { top: 23px; }
.instrument-symbol-strata span:nth-child(2) { top: 36px; }
.instrument-symbol-strata span:nth-child(3) { top: 49px; }

.instrument-card h3 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.instrument-card > p:not(.instrument-note):not(.instrument-caution) {
  max-width: 500px;
  color: #bdc7c0;
  font-size: 13px;
  line-height: 1.75;
}

.instrument-caution { margin: 2px 0 18px; color: #d6a66f; font: 10px/1.6 var(--mono); }
.instrument-note {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid #46534c;
  color: #84938a;
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.return-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-top: 72px;
  padding-top: 38px;
  border-top: 1px solid #617068;
}

.return-panel > div { max-width: 720px; }
.return-panel h2 { margin-bottom: 14px; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 400; line-height: 1.12; }
.return-panel div > p:last-child { margin: 0; color: #aeb9b2; font-size: 13px; line-height: 1.7; }

@media (max-width: 980px) {
  .identification-hero-grid,
  .method-grid { grid-template-columns: 1fr; }
  .identification-hero-grid { min-height: auto; align-items: start; padding-block: 72px 82px; }
  .identification-hero-grid,
  .method-grid { gap: 44px; }
  .identification-hero-grid .hero-note { max-width: 620px; }
}

@media (max-width: 720px) {
  .identification-hero-grid { padding-block: 56px 70px; }
  .breadcrumb { margin-bottom: 34px; }
  .instrument-grid { grid-template-columns: 1fr; border-left: 0; }
  .instrument-card { min-height: 390px; padding-inline: 20px; border-right: 0; }
  .return-panel { align-items: stretch; flex-direction: column; }
}

@media (max-width: 440px) {
  .instrument-topline { align-items: flex-start; flex-direction: column; }
  .instrument-card { min-height: 410px; }
}
