@import url("https://fonts.cdnfonts.com/css/lack");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #000000;
  --accent: #345b3c;
  --shadow: 0 0 6px rgba(52, 91, 60, 0.5);
  --font-ui: "Lack", "Segoe UI", Arial, sans-serif;
  --font-serif: "Garamond", "Times New Roman", serif;
  --font-num: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}

.header-container {
  min-height: 80px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 207px;
  height: auto;
  max-height: 40px;
  display: block;
}

.menu-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.6vw, 64px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}

.nav a {
  color: #000;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  white-space: nowrap;
}

.telegram {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.telegram img {
  width: 30px;
  height: 30px;
  display: block;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(52, 91, 60, 0.25);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span + span {
  margin-top: 6px;
}

.site-header.menu-open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.gallery-hero {
  padding: 36px 18px 38px;
}

.gallery-container {
  width: min(1680px, 100%);
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 50px;
  padding: 12px 32px;
  gap: 10px;
  border-radius: 20px;
  border: 1px solid #345b3c;
  text-decoration: none;
  color: var(--accent);
  font-family: var(--font-ui);
  margin: 0 auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-back-icon {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-5px);
}

.gallery-back-label {
  width: 152px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 18px;
}

.gallery-back:hover,
.gallery-back:focus-visible {
  background: var(--accent);
  color: #fff;
}

.gallery-title {
  margin: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: clamp(52px, 4.2vw, 74px);
  font-weight: 700;
  line-height: 1.06;
}

.gallery-title-icon {
  width: clamp(34px, 2.4vw, 52px);
  height: auto;
  display: inline-block;
  transform: translateY(2px);
}

.gallery-subtitle {
  margin: 0 0 28px;
  text-align: center;
  color: #252525;
  font-family: var(--font-serif);
  font-size: clamp(34px, 2.5vw, 50px);
  font-weight: 600;
  line-height: 1.24;
}

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

.gallery-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #dfe5e1;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.gallery-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-card img {
  width: 100%;
  height: clamp(240px, 32vw, 560px);
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.site-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #d8dfdb;
  background: #fff;
}

.footer-container {
  padding: 18px 30px 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(210px, 1fr) minmax(210px, 1fr) minmax(260px, 1.2fr);
  align-items: center;
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  width: 244px;
  height: auto;
  display: block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col p {
  margin: 0;
}

.footer-label {
  color: #000;
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.footer-value,
.footer-contacts a {
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.footer-contacts a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit-wrap {
  border-top: 0;
}

.footer-credit {
  margin: 0;
  padding: 12px 30px 18px;
  text-align: right;
  color: #1e1e1e;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.footer-credit a {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease;
}

.footer-credit a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left center;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  transform: translateY(-1px);
}

.footer-credit a:hover::after,
.footer-credit a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

@media (min-width: 1920px) {
  .gallery-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .gallery-grid {
    gap: 16px;
  }

  .gallery-card {
    border-radius: 20px;
  }

  .gallery-card img {
    height: clamp(320px, 31vw, 620px);
  }
}

@media (min-width: 2560px) {
  .gallery-container {
    width: min(1840px, 100%);
  }

  .gallery-title {
    font-size: 86px;
  }

  .gallery-subtitle {
    font-size: 54px;
  }

}

@media (max-width: 1200px) {
  .burger {
    display: inline-block;
  }

  .menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid rgba(52, 91, 60, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 25;
  }

  .site-header.menu-open .menu-panel {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 10px 20px;
  }

  .nav a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(52, 91, 60, 0.18);
  }

  .header-contacts {
    width: 100%;
    justify-content: space-between;
    padding: 14px 20px 16px;
  }

  .gallery-title {
    margin-top: 20px;
  }

  .footer-container {
    padding: 18px 20px 22px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    align-items: start;
    row-gap: 20px;
  }

  .footer-label,
  .footer-value,
  .footer-contacts a {
    font-size: clamp(20px, 2vw, 24px);
  }
}

@media (max-width: 840px) {
  .header-container {
    min-height: 72px;
    padding: 14px;
  }

  .logo img {
    width: 150px;
    max-height: 30px;
  }

  .gallery-hero {
    padding: 18px 10px 24px;
  }

  .gallery-back {
    width: 170px;
    height: 42px;
    padding: 8px 20px;
    border-radius: 14px;
    gap: 8px;
    justify-content: center;
  }

  .gallery-back-icon {
    width: 12px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
  }

  .gallery-back-label {
    width: auto;
    height: 20px;
    justify-content: center;
    line-height: 20px;
    font-size: 12px;
  }

  .gallery-title {
    margin: 16px 0 6px;
    justify-content: flex-start;
    text-align: left;
    font-size: clamp(36px, 11vw, 50px);
    gap: 8px;
  }

  .gallery-subtitle {
    margin-bottom: 14px;
    text-align: left;
    font-size: clamp(22px, 6.2vw, 30px);
  }

  .gallery-title-icon {
    width: clamp(28px, 8vw, 40px);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-card {
    border-radius: 14px;
  }

  .gallery-card img {
    height: clamp(220px, 62vw, 420px);
  }

  .site-footer {
    margin-top: 18px;
    padding-top: 20px;
  }

  .footer-container {
    padding: 12px 14px 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-logo img {
    width: 196px;
  }

  .footer-col {
    gap: 4px;
  }

  .footer-label,
  .footer-value,
  .footer-contacts a {
    font-size: clamp(18px, 5.6vw, 22px);
    line-height: 1.14;
  }

  .footer-credit {
    font-size: 12px;
    padding: 10px 14px 16px;
  }
}
