@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);
}

.product-section {
  padding: 26px 18px 18px;
}

.product-container {
  width: min(1750px, 100%);
}

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

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

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

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

.product-top {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 554px);
  gap: clamp(24px, 3.4vw, 60px);
}

.product-gallery,
.product-info {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.product-gallery.is-visible,
.product-info.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-main-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ecefed;
}

.product-main-media img {
  width: 100%;
  height: clamp(360px, 35vw, 620px);
  object-fit: cover;
  display: block;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 44px;
  border: 0;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.media-nav.prev {
  left: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.media-nav.next {
  right: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.product-thumbs {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb {
  width: 84px;
  height: 56px;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 0;
  background: #dce3df;
  cursor: pointer;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb.is-active {
  border-color: var(--accent);
}

.product-info h1 {
  margin: 0;
  color: #000;
  font-family: var(--font-ui);
  font-size: 36px;
  font-weight: 500;
  line-height: 46.8px;
}

.product-price {
  margin: 0;
  color: #000;
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 600;
  line-height: 41.6px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.01em;
}


.product-info {
  width: 100%;
  max-width: 554px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.product-info-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.product-text {
  margin: 0;
  color: #000;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 500;
  line-height: 31.2px;
}

.product-btn {
  margin-top: 0;
  min-height: auto;
  padding: 15px 32px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-btn img {
  width: 24px;
  height: 24px;
}

.product-btn:hover,
.product-btn:focus-visible {
  background: #294830;
  color: #fff;
}

.other-projects-section {
  padding: 14px 18px 8px;
}

.other-projects-container {
  width: min(1760px, 100%);
}

.other-projects-container h2 {
  margin: 0 0 40px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: clamp(40px, 3.2vw, 56px);
  font-weight: 600;
  line-height: 1;
}

.other-track-wrap {
  position: relative;
  display: block;
  padding: 0 36px;
  overflow: hidden;
}

.other-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}

.other-card {
  flex: 0 0 calc((100% - 32px) / 3);
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.other-card img {
  width: 100%;
  height: clamp(230px, 19vw, 300px);
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.other-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.68) 100%);
}

.other-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
}

.other-meta h3,
.other-meta p {
  margin: 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.04vw, 22px);
  font-weight: 600;
  line-height: 1.12;
}

.other-meta p {
  margin-top: 2px;
  font-family: var(--font-num);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}


.other-card:hover img {
  transform: scale(1.04);
}

.track-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(52, 91, 60, 0.4);
  background: #fff;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.track-arrow.prev {
  left: -8px;
}

.track-arrow.next {
  right: -8px;
}

.cta-section {
  padding: 24px 12px 34px;
  background: #fff;
}

.cta-container {
  width: min(1760px, calc(100% - 24px));
}

.cta-card {
  min-height: 648px;
  padding: 60px clamp(28px, 7vw, 159px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.78) 100%),
    url("../images/hero/fbbg.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.cta-title {
  margin: 0;
  color: #fff;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.3;
}

.cta-subtitle {
  width: min(1075px, 100%);
  margin: 0;
  color: #fff;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.3;
}

.cta-form {
  width: min(492px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.cta-field {
  width: 100%;
  min-height: 51px;
  padding: 12px 25px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-field-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.cta-field-icon.is-phone {
  width: 20px;
  height: 20px;
}

.cta-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  outline: none;
}

.cta-field input[type="tel"] {
  font-family: var(--font-num);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.01em;
}

.cta-field:focus-within {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.cta-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-submit {
  min-height: 51px;
  padding: 10px 32px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-submit img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transform: translateY(4px);
  transition: filter 0.2s ease;
}

.cta-submit:hover,
.cta-submit:focus-visible,
.cta-submit:active {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.cta-submit:hover img,
.cta-submit:focus-visible img,
.cta-submit:active img {
  filter: brightness(0) saturate(100%) invert(31%) sepia(14%) saturate(1060%) hue-rotate(83deg) brightness(93%) contrast(90%);
}

.cta-note {
  margin: 0;
  width: min(860px, 100%);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.cta-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.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) {
  .product-section,
  .other-projects-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .other-track {
    gap: 16px;
  }

  .cta-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}

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

@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;
  }

  .product-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-info {
    max-width: 554px;
  }

  .other-track-wrap {
    padding: 0;
  }

  .other-track {
    gap: 14px;
  }

  .other-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .track-arrow {
    display: none;
  }

  .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;
  }

  .product-section {
    padding: 18px 10px 12px;
  }

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

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

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

  .product-top {
    margin-top: 14px;
    gap: 18px;
  }

  .product-main-media {
    border-radius: 14px;
  }

  .product-main-media img {
    height: clamp(220px, 58vw, 380px);
  }

  .thumb {
    width: 72px;
    height: 50px;
  }

  .product-info {
    gap: 20px;
    max-width: 100%;
  }

  .product-info-heading {
    gap: 8px;
  }

  .product-info h1 {
    font-size: clamp(28px, 7vw, 34px);
    font-weight: 500;
    line-height: 1.2;
  }

  .product-price {
    font-size: clamp(24px, 6vw, 30px);
    font-weight: 600;
    line-height: 1.2;
  }

  .product-text {
    font-size: clamp(18px, 4.6vw, 22px);
    font-weight: 500;
    line-height: 1.34;
  }

  .product-btn {
    width: auto;
    font-size: 18px;
    min-height: auto;
    border-radius: 14px;
    padding: 13px 24px;
  }

  .other-projects-section {
    padding: 8px 10px 4px;
  }

  .other-projects-container h2 {
    margin-bottom: 26px;
    font-size: clamp(30px, 8vw, 38px);
  }

  .other-track {
    gap: 10px;
  }

  .other-card {
    flex-basis: 100%;
    border-radius: 14px;
  }

  .other-card img {
    height: clamp(200px, 56vw, 320px);
  }

  .other-meta h3,
  .other-meta p {
    font-size: clamp(14px, 4.2vw, 18px);
  }

  .cta-section {
    padding: 24px 10px 20px;
  }

  .cta-card {
    min-height: 0;
    padding: 34px 14px;
    gap: 18px;
    border-radius: 14px;
  }

  .cta-title {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.12;
  }

  .cta-subtitle {
    font-size: clamp(19px, 6.1vw, 26px);
    line-height: 1.22;
  }

  .cta-form {
    width: 100%;
    gap: 12px;
  }

  .cta-field {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .cta-field input {
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .cta-submit {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .cta-note {
    font-size: 13px;
    line-height: 1.35;
  }

  .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;
  }
}
