@font-face {
  font-family: "TT Norms Pro";
  src:
    url("fonts/TT-Norms-Pro-Normal.woff2") format("woff2"),
    url("fonts/TT-Norms-Pro-Normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro";
  src: url("fonts/TT-Norms-Pro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro";
  src: url("fonts/TT-Norms-Pro-DemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro";
  src:
    url("fonts/TT-Norms-Pro-Bold.woff2") format("woff2"),
    url("fonts/TT-Norms-Pro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #ffffff;
  --surface: #ffffff;
  --text: #0f0f0d;
  --accent: #d6df00;
  --shadow: 0 18px 50px rgba(15, 15, 13, 0.08);
  --radius-xl: 34px;
  --footer-bg: #efefef;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: "TT Norms Pro", "Segoe UI", sans-serif;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 42px 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #000000;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

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

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  background: rgba(15, 15, 13, 0.06);
  transform: translateY(-2px);
}

.header-link svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #181817;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding: 0 0 28px;
}

.hero-media {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.catalog-section {
  padding: 54px 40px 96px;
}

.catalog-copy {
  max-width: 1180px;
}

.catalog-copy h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.04em;
}

.catalog-copy p {
  max-width: 930px;
  margin: 28px 0 0;
  font-size: 42px;
  line-height: 48px;
  letter-spacing: -0.03em;
}

.catalog-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: min(1170px, 100%);
  margin: 86px auto 0;
  border: 8px solid var(--accent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-tabs::-webkit-scrollbar {
  display: none;
}

.catalog-tab {
  flex: 0 0 auto;
  min-height: 74px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.catalog-tab:hover,
.catalog-tab:focus-visible {
  background-color: rgba(214, 223, 0, 0.2);
}

.catalog-tab.is-active {
  background: var(--accent);
  font-weight: 800;
}

.catalog-panel {
  display: grid;
  justify-items: center;
  gap: 40px;
  margin-top: 64px;
}

.catalog-figure {
  width: min(940px, 100%);
  margin: 0;
}

.catalog-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.catalog-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 4px solid currentColor;
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.04em;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.catalog-link:hover,
.catalog-link:focus-visible {
  opacity: 0.72;
  transform: translateY(-2px);
}

.fencing-section {
  padding: 18px 0 100px;
}

.fencing-copy {
  max-width: 1180px;
  padding: 0 40px;
}

.fencing-copy h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.04em;
}

.fencing-copy p {
  max-width: 1040px;
  margin: 28px 0 0;
  font-size: 42px;
  line-height: 48px;
  letter-spacing: -0.03em;
}

.fencing-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 0;
  margin-top: 56px;
  overflow: hidden;
  height: 70vh;
  background: var(--surface);
}

.fencing-shot {
  margin: 0;
}

.fencing-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fencing-shot-wide {
  min-height: 620px;
}

.fencing-shot-narrow {
  min-height: 620px;
}

.fencing-link {
  display: table;
  margin: 70px auto 0;
  padding-bottom: 6px;
  border-bottom: 4px solid currentColor;
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.04em;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.fencing-link:hover,
.fencing-link:focus-visible {
  opacity: 0.72;
  transform: translateY(-2px);
}

.projects-section {
  padding: 10px 0 110px;
}

.projects-copy {
  max-width: 1180px;
  padding: 0 40px;
}

.projects-copy h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.04em;
}

.projects-copy p {
  max-width: 1060px;
  margin: 30px 0 0;
  font-size: 42px;
  line-height: 48px;
  letter-spacing: -0.03em;
}

.projects-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 0;
  margin-top: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #a5a5a5;
  outline: none;
}

.project-card:nth-child(5n + 1) {
  min-width: 29vw;
}

.project-card:nth-child(5n + 2) {
  min-width: 40vw;
}

.project-card:nth-child(5n + 3) {
  min-width: 24vw;
}

.project-card:nth-child(5n + 4) {
  min-width: 30vw;
}

.project-card:nth-child(5n + 5) {
  min-width: 36vw;
}

.project-media,
.project-overlay {
  position: absolute;
  inset: 0;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding: 28px 22px 24px;
  background: rgba(214, 223, 0, 0.94);
  color: #111111;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.project-card:hover .project-overlay,
.project-card:focus-visible .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(15, 15, 13, 0.18);
}

.project-overlay h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.04em;
}

.project-meta,
.project-overlay p {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.02em;
}

.project-meta {
  margin-top: -8px;
}

.team-section {
  padding: 8px 0 110px;
}

.team-copy {
  max-width: 1220px;
  padding: 0 30px;
}

.team-copy h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.04em;
}

.team-copy p {
  max-width: 1210px;
  margin: 28px 0 0;
  font-size: 42px;
  line-height: 48px;
  letter-spacing: -0.03em;
}

.team-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 1fr);
  gap: 0;
  margin-top: 52px;
}

.team-shot {
  margin: 0;
  overflow: hidden;
}

.team-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-shot-wide {
  min-height: 700px;
  height: 700px;
}

.team-shot-narrow {
  min-height: 700px;
  height: 700px;
}

.contact-section {
  padding: 28px 42px 86px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: start;
  gap: 48px;
}

.contact-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -0.04em;
}

.contact-phone {
  align-self: start;
  font-size: clamp(2.7rem, 5.8vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 54px 42px 48px;
  background: var(--footer-bg);
}

.footer-contacts,
.footer-meta {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.footer-contacts a,
.footer-meta a,
.footer-meta p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.03em;
}

.footer-contacts a {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.footer-contacts a:not(:first-child),
.footer-meta a {
  text-decoration: none;
}

.footer-meta {
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 20px 16px;
  }

  .brand-mark {
    min-height: 50px;
    padding: 10px 22px;
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .header-link {
    width: 38px;
    height: 38px;
  }

  .header-link svg {
    width: 26px;
    height: 26px;
  }

  .catalog-section {
    padding: 42px 20px 72px;
  }

  .catalog-copy p {
    margin-top: 20px;
  }

  .catalog-tabs {
    margin-top: 48px;
    padding: 6px;
    border-width: 6px;
  }

  .catalog-tab {
    min-height: 62px;
    padding: 12px 18px;
  }

  .catalog-panel {
    margin-top: 40px;
    gap: 28px;
  }

  .fencing-section {
    padding: 10px 0 76px;
  }

  .fencing-copy p {
    margin-top: 20px;
  }

  .fencing-copy {
    padding: 0 20px;
  }

  .fencing-gallery {
    margin-top: 40px;
    grid-template-columns: 1fr;
  }

  .fencing-shot-wide,
  .fencing-shot-narrow {
    min-height: auto;
  }

  .fencing-link {
    margin-top: 34px;
  }

  .projects-section {
    padding: 0 0 84px;
  }

  .projects-copy {
    padding: 0 20px;
  }

  .projects-copy p {
    margin-top: 20px;
  }

  .projects-grid {
    grid-auto-columns: auto;
    gap: 0;
    margin-top: 40px;
  }

  .project-card {
    min-height: 620px;
  }

  .project-card:nth-child(5n + 1),
  .project-card:nth-child(5n + 2),
  .project-card:nth-child(5n + 3),
  .project-card:nth-child(5n + 4),
  .project-card:nth-child(5n + 5) {
    min-width: 62vw;
  }

  .project-overlay {
    padding-top: 24px;
  }

  .team-section {
    padding: 0 0 84px;
  }

  .team-copy {
    padding: 0 20px;
  }

  .team-copy p {
    margin-top: 20px;
  }

  .team-gallery {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .team-shot-wide,
  .team-shot-narrow {
    min-height: auto;
  }

  .contact-section {
    padding: 12px 20px 68px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 20px;
  }

  .footer-contacts {
    flex-wrap: wrap;
    gap: 22px 34px;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 16px;
    padding: 12px 16px 14px;
  }

  .brand-mark {
    min-height: 46px;
    padding: 10px 18px;
    letter-spacing: -0.03em;
  }

  .hero {
    padding-bottom: 20px;
  }

  .hero-media img {
    aspect-ratio: 4 / 5;
  }

  .catalog-section {
    padding: 28px 16px 54px;
  }

  .catalog-copy h2 {
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
  }

  .catalog-copy p {
    font-size: 18px;
    line-height: 24px;
  }

  .catalog-tabs {
    margin-top: 36px;
    padding: 8px;
    border-radius: 28px;
  }

  .catalog-tab {
    min-height: 56px;
    font-size: 1.2rem;
  }

  .catalog-panel {
    gap: 20px;
  }

  .catalog-link {
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
  }

  .fencing-section {
    padding: 0 0 56px;
  }

  .fencing-copy h2 {
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
  }

  .fencing-copy p {
    font-size: 18px;
    line-height: 24px;
  }

  .fencing-copy {
    padding: 0 16px;
  }

  .fencing-gallery {
    margin-top: 32px;
  }

  .fencing-shot-narrow {
    display: none;
  }

  .fencing-link {
    margin-top: 24px;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
  }

  .projects-section {
    padding: 0 0 60px;
  }

  .projects-copy {
    padding: 0 16px;
  }

  .projects-copy h2 {
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
  }

  .projects-copy p {
    font-size: 18px;
    line-height: 24px;
  }

  .projects-grid {
    grid-auto-columns: auto;
    gap: 0;
    margin-top: 32px;
  }

  .project-card {
    min-height: 560px;
  }

  .project-card:nth-child(5n + 1),
  .project-card:nth-child(5n + 2),
  .project-card:nth-child(5n + 3),
  .project-card:nth-child(5n + 4),
  .project-card:nth-child(5n + 5) {
    min-width: 86vw;
  }

  .project-media {
    position: absolute;
  }

  .project-overlay {
    position: absolute;
    gap: 18px;
    padding: 24px 18px 24px;
    opacity: 0;
    transform: none;
    pointer-events: none;
  }

  .project-card.is-open .project-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .project-card.is-open .project-media {
    opacity: 0;
  }

  .project-overlay h3 {
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
  }

  .project-meta,
  .project-overlay p {
    font-size: 18px;
    line-height: 24px;
  }

  .team-section {
    padding-bottom: 60px;
  }

  .team-copy {
    padding: 0 16px;
  }

  .team-copy h2 {
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
  }

  .team-copy p {
    font-size: 18px;
    line-height: 24px;
  }

  .team-gallery {
    margin-top: 32px;
  }

  .team-shot-narrow {
    display: none;
  }

  .contact-section {
    padding: 0 16px 54px;
  }

  .contact-copy h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .contact-phone {
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
  }

  .footer-contacts a,
  .footer-meta a,
  .footer-meta p {
    font-size: 16px;
    line-height: 22px;
  }

  .site-footer {
    gap: 24px;
    padding: 28px 16px 32px;
  }

  .footer-contacts,
  .footer-meta {
    gap: 16px;
  }

  .footer-contacts {
    flex-direction: column;
    align-items: flex-start;
  }

}
