/* Montaj OSB — редизайн с сохранением «узнаваемого» тона */

:root {
  --ink: #0f1114;
  --ink-soft: #2a2e35;
  --paper: #f2efe8;
  --paper2: #e8e4db;
  --gold: #c9a227;
  --gold-dim: #a88620;
  --line: rgba(15, 17, 20, 0.1);
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Barlow Condensed", var(--font);
  --pad: clamp(18px, 4vw, 40px);
  --max: 1100px;
  --mast-offset: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-bg__layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease;
}

.site-bg__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(242, 239, 232, 0.88);
}

.site-bg__layer--next {
  opacity: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dim);
  font-weight: 600;
}

a:hover {
  color: var(--ink);
}

/* ——— Masthead ——— */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem var(--pad);
  background: rgba(242, 239, 232, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mast__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  text-decoration: none;
  background: transparent;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.mast__brand img {
  width: clamp(72px, 9vw, 108px);
  height: auto;
  display: block;
  border-radius: 0;
}

.mast__brand:hover {
  transform: scale(1.015);
  border-color: rgba(201, 162, 39, 0.5);
}

.mast__brand:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.mast__cluster {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.8vw, 1.45rem);
  margin-left: auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.mast__nav {
  display: none;
  margin-left: 0;
  gap: 1.45rem;
}

.mast__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(88px, 8.3vw, 118px);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mast__nav a:hover {
  color: var(--gold);
}

.mast__lang {
  position: relative;
  flex: 0 0 auto;
}

.mast__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transform: translateY(4px);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mast__lang-current-flag {
  width: 1rem;
  height: 0.72rem;
}

.mast__lang-flag {
  display: inline-block;
  width: 1rem;
  height: 0.72rem;
  border-radius: 2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(15, 17, 20, 0.14);
}

.mast__lang-flag--uz {
  background-image: url("https://flagcdn.com/w40/uz.png");
}

.mast__lang-flag--ru {
  background-image: url("https://flagcdn.com/w40/ru.png");
}

.mast__lang-flag--en {
  background-image: url("https://flagcdn.com/w40/gb.png");
}

.mast__lang-toggle:hover {
  color: var(--gold);
}

.mast__lang-globe {
  position: relative;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  opacity: 0.95;
}

.mast__lang-globe::before,
.mast__lang-globe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.mast__lang-globe::before {
  width: 44%;
  height: 100%;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.mast__lang-globe::after {
  width: 100%;
  height: 42%;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.mast__lang-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 170px;
  border-radius: 10px;
  border: 1px solid rgba(15, 17, 20, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 28px rgba(15, 17, 20, 0.16);
  padding: 0.35rem;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.24s ease;
}

.mast__lang.is-open .mast__lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mast__lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.mast__lang-item:hover {
  background: rgba(201, 162, 39, 0.14);
  color: var(--ink);
}

.mast__tel {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 0.46rem 0.9rem 0.4rem;
  border-radius: 8px;
  border: 2px solid rgba(201, 162, 39, 0.95);
  background: linear-gradient(180deg, rgba(15, 17, 20, 0.98) 0%, rgba(23, 26, 31, 0.98) 100%);
  box-shadow: 0 2px 0 rgba(168, 134, 32, 0.95), 0 8px 18px rgba(15, 17, 20, 0.2);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0d050;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mast__tel span {
  background-image: linear-gradient(110deg, #ffef9d 8%, #f0d050 30%, #e7ad1a 48%, #f7df86 68%, #f0d050 92%);
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.mast__tel::after {
  content: "";
  position: absolute;
  inset: -35% -55%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 235, 170, 0.15) 46%,
    rgba(255, 214, 110, 0.7) 50%,
    rgba(255, 235, 170, 0.15) 54%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-145%) rotate(8deg);
  pointer-events: none;
  animation: mastTelShine 8s ease-in-out 0.6s infinite;
}

.mast__tel:hover {
  transform: translateY(-1px);
  border-color: #e0c44a;
  box-shadow: 0 2px 0 #c9a227, 0 10px 20px rgba(15, 17, 20, 0.26);
}

@keyframes mastTelShine {
  0%,
  46% {
    transform: translateX(-145%) rotate(8deg);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  94% {
    transform: translateX(140%) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: translateX(140%) rotate(8deg);
    opacity: 0;
  }
}

.mast__burger {
  margin-left: 0;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mast__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.mast__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mast__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mast__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.panel {
  padding: 0.5rem var(--pad) 1rem;
  background: var(--paper2);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.panel[hidden] {
  display: none !important;
}

@media (max-width: 1079px) {
  .panel:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mast-offset);
    width: 100%;
    max-width: 100vw;
    z-index: 45;
    height: auto;
    max-height: min(420px, calc(100dvh - var(--mast-offset) - 12px));
    max-height: min(420px, calc(100vh - var(--mast-offset) - 12px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    isolation: isolate;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 28px rgba(15, 17, 20, 0.14);
  }
}

.panel a {
  padding: 0.6rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.panel .panel__tel {
  display: inline-flex !important;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.15rem;
  padding: 0.65rem 1rem !important;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
}

.panel a:last-child {
  border-bottom: none;
}

@media (max-width: 1079px) {
  .mast__lang-menu {
    left: auto;
    right: 0;
  }
}

@media (min-width: 1080px) {
  .mast__nav,
  .mast__tel {
    display: flex;
  }

  .mast__burger {
    display: none;
  }

  .mast__nav {
    align-items: center;
  }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .mast {
    gap: 0.8rem;
  }

  .mast__nav {
    gap: 0.9rem;
  }

  .mast__nav a {
    min-width: 92px;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
  }

  .mast__tel {
    font-size: 0.88rem;
    padding: 0.42rem 0.7rem 0.36rem;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(96vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(160deg, rgba(15, 17, 20, 0.15), rgba(15, 17, 20, 0.78)),
    var(--img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease;
}

.hero__bg--next {
  opacity: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 20, 0.92) 0%, transparent 55%);
  pointer-events: none;
}

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hero__nav--prev {
  left: 0;
  margin-left: 0;
}

.hero__nav--next {
  right: 0;
  margin-right: 0;
}

.hero:hover .hero__nav {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .hero:hover .hero__nav--prev {
    margin-left: 50px;
  }

  .hero:hover .hero__nav--next {
    margin-right: 50px;
  }
}

.hero__nav:focus-visible {
  opacity: 1;
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.hero__nav:hover {
  color: #fff;
}

.hero__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.hero__body {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100% - var(--pad) * 2);
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
}

.hero__logo-link {
  display: inline-block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-72px);
  animation: heroLogoIntro 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
  transition: transform 0.35s ease;
}

.hero__logo-link:hover,
.hero__logo-link:focus-visible {
  transform: translateY(0) scale(1.08);
}

.hero__logo-link:hover .hero__logo,
.hero__logo-link:focus-visible .hero__logo {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 26px rgba(201, 162, 39, 0.4);
}

.hero__logo-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 8px;
  border-radius: 12px;
}

.hero__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(0.65rem, 1.8vw, 1rem) clamp(1.2rem, 3vw, 2rem);
  font-family: var(--display);
  font-size: clamp(2.8rem, 8.2vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  border: 3px solid var(--gold);
  border-radius: 12px;
  background: rgba(15, 17, 20, 0.62);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation:
    heroLogoGlow 3.8s ease-in-out 1.2s infinite,
    heroLogoFloat 5.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1.75s infinite;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero__logo strong {
  color: #f0d050;
  font-weight: 800;
}

.hero__logo::before {
  content: "";
  position: absolute;
  inset: -35% -55%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 246, 176, 0.2) 45%,
    rgba(255, 220, 120, 0.75) 50%,
    rgba(255, 246, 176, 0.2) 55%,
    rgba(255, 255, 255, 0) 64%
  );
  transform: translate3d(-140%, 0, 0) rotate(8deg);
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: heroLogoShine 8s ease-in-out 0.6s infinite;
}

.hero__logo:hover {
  border-color: #e0c44a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 22px rgba(201, 162, 39, 0.35);
}

@keyframes heroLogoGlow {
  0%,
  100% {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 0 rgba(201, 162, 39, 0);
  }
  50% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(201, 162, 39, 0.3);
  }
}

@keyframes heroLogoIntro {
  0% {
    opacity: 0;
    transform: translateY(-72px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLogoFloat {
  0%,
  18% {
    transform: translate3d(0, 0, 0);
  }
  59% {
    transform: translate3d(0, -7px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroLogoShine {
  0%,
  42% {
    transform: translate3d(-140%, 0, 0) rotate(8deg);
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
  92% {
    transform: translate3d(140%, 0, 0) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(140%, 0, 0) rotate(8deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mast__burger span {
    transition: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: #ddb82e;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ——— Mottos (как на старом сайте, но типографика) ——— */
.mottos {
  background: var(--ink);
  color: #fff;
  padding: 0;
}

.mottos__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .mottos__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.motto {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 720px) {
  .motto {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .motto:last-child {
    border-right: none;
  }
}

.motto__pic {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.motto__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motto__text {
  margin: 0;
  padding: 1.75rem var(--pad);
  flex: 1;
}

.motto em {
  font-style: normal;
  color: var(--gold);
}

.motto--accent .motto__text {
  background: rgba(201, 162, 39, 0.12);
}

.motto--accent span {
  color: var(--gold);
}

.motto strong {
  color: var(--gold);
  font-weight: 700;
}

/* ——— Photo strip ——— */
.shots {
  padding: 0;
  background: var(--ink);
}

.shots__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

@media (min-width: 600px) {
  .shots__row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shots figure {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shots figure:hover img {
  transform: scale(1.04);
}

/* ——— Blocks ——— */
.block {
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
}

.block--paper {
  background: var(--paper2);
}

.block--dark {
  background: var(--ink);
  color: #e8e4db;
}

.block__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.block__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.block__title--on-dark {
  color: #fff;
}

.block__deck {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.block__deck--on-dark {
  color: rgba(232, 228, 219, 0.75);
}

.svc {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .svc {
    grid-template-columns: repeat(3, 1fr);
  }
}

.svc__card {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  border: 1px solid rgba(15, 17, 20, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 17, 20, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.svc__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(15, 17, 20, 0.12);
  border-color: rgba(201, 162, 39, 0.5);
}

.svc__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.svc__icon::before {
  font-size: 1.9rem;
  color: var(--ink);
}

.svc__card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.svc__card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.vals {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .vals {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vals__item {
  padding: 1.2rem 1.1rem;
  background: #ececec;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-height: 178px;
  border-radius: 10px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.vals__item:nth-child(2) {
  background: #f3bf38;
  color: #1a1a1a;
}

.vals__item:nth-child(3) {
  background: #02045a;
  color: #fff;
}

.vals__item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 28px rgba(15, 17, 20, 0.2);
}

.vals__icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(15, 17, 20, 0.34);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.vals__icon::before {
  font-size: 2rem;
  color: var(--ink);
}

.vals__item:first-child .vals__icon {
  border: 1px dashed rgba(15, 17, 20, 0.28);
  background-color: rgba(255, 255, 255, 0.3);
  background-image: url("assets/worker-color.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 92%;
}

.vals__item:first-child .vals__icon::before {
  content: "";
}

.vals__item:nth-child(3) .vals__icon {
  border-color: rgba(240, 208, 80, 0.78);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(240, 208, 80, 0.18);
}

.vals__item:nth-child(3) .vals__icon::before {
  color: #f0d050;
  font-size: 2.1rem;
}

.vals__item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vals__item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.vals__item:nth-child(2) p {
  color: rgba(15, 17, 20, 0.82);
}

.vals__item:nth-child(3) p {
  color: rgba(255, 255, 255, 0.84);
}

/* ——— About ——— */
.about {
  display: grid;
  row-gap: 0.7rem;
  column-gap: 2rem;
}

@media (min-width: 860px) {
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.about__copy {
  max-width: 60ch;
}

.about__badge {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0.1rem 0 0.05rem;
  width: clamp(72px, 9vw, 96px);
}

.about__badge img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.94;
}

.about__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.about__h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.about__pic {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  width: 100%;
}

.about__pic img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ——— Gallery ——— */
.gal {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  margin: 1.6rem 0 0;
}

@media (min-width: 720px) {
  .gal {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .gal__big {
    grid-row: span 2;
  }
}

.gal figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  aspect-ratio: 4/3;
}

.gal__big img {
  min-height: 0;
}

@media (min-width: 720px) {
  .gal__big img {
    min-height: 100%;
  }
}

/* ——— Logos ——— */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.logos a {
  display: flex;
  align-items: center;
  height: 66px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.22s ease;
}

.logos a:hover {
  opacity: 1;
  transform: scale(1.06);
}

.logos img {
  max-height: 58px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ——— Certs ——— */
.certs {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .certs {
    grid-template-columns: 1fr 1fr;
  }
}

.cert {
  margin: 0;
}

.cert__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.cert__btn:hover {
  box-shadow: 0 12px 32px rgba(15, 17, 20, 0.12);
}

.cert__btn img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  transition: transform 0.26s ease;
}

.cert:nth-child(2) .cert__btn img {
  clip-path: inset(1px 0 1px 0);
}

.cert__btn:hover img {
  transform: scale(1.03);
}

/* ——— Contact ——— */
.contact {
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--ink);
}

.contact__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.contact__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.contact__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.contact__grid a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact__grid a:hover {
  text-decoration: underline;
}

.foot {
  padding: 1.25rem var(--pad) 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper);
}

.foot__main {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot__logo {
  width: clamp(24px, 2.2vw, 32px);
  height: auto;
  display: block;
  object-fit: contain;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 17, 20, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(880px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__nav--prev {
  left: 1.2rem;
}

.lightbox__nav--next {
  right: 1.2rem;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ——— Responsive tuning ——— */
@media (max-width: 1079px) {
  .mast {
    gap: 0.65rem;
    padding: 0.58rem var(--pad);
  }

  .mast__brand img {
    width: clamp(64px, 10vw, 88px);
  }
}

@media (max-width: 879px) {
  section[id] {
    scroll-margin-top: 82px;
  }

  .hero {
    min-height: min(82vh, 700px);
  }

  .hero__body {
    padding: 1.35rem 0;
  }

  .hero__logo {
    font-size: clamp(2.05rem, 12vw, 3.25rem);
    letter-spacing: 0.05em;
    border-width: 2px;
  }

  .block,
  .contact {
    padding: clamp(2rem, 7vw, 3.1rem) var(--pad);
  }

  .motto__text {
    padding: 1.3rem var(--pad);
  }

  .logos {
    justify-content: center;
    gap: 1.1rem 1.35rem;
  }

  .logos a {
    height: 56px;
  }

  .logos img {
    max-height: 48px;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .lightbox__nav--prev {
    left: 0.45rem;
  }

  .lightbox__nav--next {
    right: 0.45rem;
  }

  .lightbox__x {
    width: 42px;
    height: 42px;
    top: 0.55rem;
    right: 0.55rem;
  }
}

@media (max-width: 599px) {
  body {
    font-size: 1rem;
  }

  .mast {
    padding: 0.52rem var(--pad);
  }

  .panel a {
    padding: 0.72rem 0;
  }

  .hero {
    min-height: min(78vh, 620px);
  }

  .hero__nav {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .vals__item {
    min-height: 0;
    padding: 1rem;
  }

  .vals__icon {
    width: 56px;
    height: 56px;
  }

  .about {
    row-gap: 1rem;
  }

  .about__h3 {
    margin-bottom: 0.55rem;
  }

  .gal {
    gap: 12px;
    margin-top: 1.2rem;
  }

  .certs {
    gap: 1rem;
  }

  .contact__grid {
    gap: 1.1rem;
  }

  .foot {
    padding: 1.05rem var(--pad) 1.45rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero__nav {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.88);
  }

  .hero__nav--prev {
    left: 8px;
    margin-left: 0;
  }

  .hero__nav--next {
    right: 8px;
    margin-right: 0;
  }
}

/* ——— Device-targeted refinement ——— */
@media (max-width: 390px) {
  :root {
    --pad: 14px;
  }

  .mast__brand img {
    width: 62px;
  }

  .mast__burger {
    width: 40px;
    height: 40px;
  }

  .hero__logo {
    font-size: clamp(1.8rem, 11.8vw, 2.5rem);
    padding: 0.56rem 0.9rem;
    border-radius: 10px;
  }

  .hero__nav--prev {
    margin-left: 8px;
  }

  .hero__nav--next {
    margin-right: 8px;
  }

  .block__title,
  .contact__title {
    letter-spacing: 0.03em;
  }
}

@media (min-width: 744px) and (max-width: 899px) {
  .mast {
    padding: 0.6rem var(--pad);
  }

  .mast__brand img {
    width: 84px;
  }

  .hero {
    min-height: min(80vh, 680px);
  }

  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about__copy {
    max-width: 100%;
  }
}

@media (min-width: 1280px) and (max-width: 1440px) {
  .mast {
    gap: 0.9rem;
  }

  .mast__nav {
    gap: 1rem;
  }

  .mast__nav a {
    min-width: 98px;
    font-size: 0.9rem;
  }

  .mast__tel {
    font-size: 0.92rem;
    padding: 0.44rem 0.76rem 0.38rem;
  }
}
