.vector img {
  display: block;
  width: 100%;
  height: 100%;
}

.grass img,
.footer_stones img {
  object-fit: cover;
  object-position: bottom;
}

.footer_roots img {
  object-fit: cover;
  object-position: top;
}

.footer_pebbles {
  position: absolute;
  bottom: 70px;
  left: 0.8%;
  width: 98.4%;
  aspect-ratio: 7154 / 1806;
  pointer-events: none;
}

:root {

  --sand: #E6CFA3;
  --green: #8CC084;
  --ice: #BFE3F2;
  --sand-dark: #B5652B;
  --green-dark: #2F6B2C;
  --ice-dark: #3F7FA6;

  --sand-light: #F3E6CC;
  --green-light: #D3E8CF;
  --ice-light: #E6F4FA;

  --ink: #1E1E1E;
  --navy: #14304D;
  --cream: #F5F3EE;
  --soil: #7A5535;
  --soil-dark: #56391F;


  --font: "Inter", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* клод сказал что это поможет мне */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

ul {
  list-style: none;
}

/* плавная переправка */
html {
  scroll-behavior: smooth;
}

section,
footer {
  scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

/* градиентик */
body {
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--soil);
}

main {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #5E9BD6 0%,
    #86BCE8 22%,
    #BFE3F2 48%,
    #E4F1F1 70%,
    #F6EBCB 86%,
    #EBD3A2 100%
  );
}

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo_icon {
  display: block;
  height: 52px;
  width: auto;
}

.logo_text {
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.8vw, 40px);
}

.nav_link {
  font-size: 16px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav_link:hover {
  opacity: 0.6;
}

.button {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 14px 28px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

/* приветсвие */
.hero {
  padding: clamp(130px, 15vw, 220px) 0 clamp(50px, 7.5vw, 110px);
  text-align: center;
}

.hero_over {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero_title {
  margin: 24px 0;
  font-weight: 700;
  font-size: clamp(40px, 6.7vw, 96px);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.hero_subtitle {
  font-size: clamp(17px, 1.7vw, 24px);
  color: var(--navy);
}

/* биомы */
.biomes {
  padding-bottom: clamp(70px, 10vw, 140px);
}

.biomes_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.biome-card {
  display: block;
}

.biome-card_window {
  position: relative;
  aspect-ratio: 2912 / 1632;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s;
}

.biome-card:hover .biome-card_window {
  transform: translateY(-8px);
}

.biome-card_window--safari { background: var(--sand); }
.biome-card_window--jungle { background: var(--green); }
.biome-card_window--winter { background: var(--ice); }

.biome-card_window--safari .biome-card_name { background: var(--sand); }
.biome-card_window--jungle .biome-card_name { background: var(--green); }
.biome-card_window--winter .biome-card_name { background: var(--ice); }

.biome-card_image {
  display: block;
  width: 100%;
  height: 100%;
}

.biome-card_name {
  position: absolute;
  left: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  padding: 6px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 30px);
  text-transform: uppercase;
}

.biome-card_animals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.4;
}

.biome-card_animals li {
  white-space: nowrap;
}

.biome-card_animals li:not(:last-child)::after {
  content: "•";
  margin: 0 10px;
  font-weight: 700;
}

.biome-card:nth-child(1) .biome-card_animals li::after { color: var(--sand-dark); }
.biome-card:nth-child(2) .biome-card_animals li::after { color: var(--green-dark); }
.biome-card:nth-child(3) .biome-card_animals li::after { color: var(--ice-dark); }



/* о зоопарке */
.about {
  padding: 60px 0 clamp(70px, 10vw, 140px);
}

.about_inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 600px);
  gap: clamp(36px, 4vw, 60px);
  align-items: center;
}

.section-title {
  font-weight: 700;
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
}

.section-title--center {
  text-align: center;
}

.tricolor {
  display: flex;
  margin: 18px 0 30px;
}

.tricolor_part {
  width: clamp(70px, 8vw, 120px);
  height: 6px;
}

.tricolor_part--safari { background: var(--sand-dark); }
.tricolor_part--jungle { background: var(--green-dark); }
.tricolor_part--winter { background: var(--ice-dark); }

.about_paragraph {
  max-width: 600px;
  margin-bottom: 18px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 30px 0;
}

.legend_item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}

.legend_dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid;
}

.legend_dot--safari { background: var(--sand);  border-color: var(--sand-dark); }
.legend_dot--jungle { background: var(--green); border-color: var(--green-dark); }
.legend_dot--winter { background: var(--ice);   border-color: var(--ice-dark); }

.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: clamp(12px, 1.5vw, 20px);
  max-width: 580px;
}

.collage_item {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 5px solid;
}

.collage_item--safari { background: var(--sand-light);  border-color: var(--sand-dark); }
.collage_item--jungle { background: var(--green-light); border-color: var(--green-dark); }
.collage_item--winter { background: var(--ice-light);   border-color: var(--ice-dark); }


.map-frame,
.panorama {
  padding: 10px;
  border: 8px solid var(--sand-dark);
  border-radius: 36px;
}

.map-frame_inner,
.panorama_inner {
  padding: 6px;
  border: 4px solid var(--green-dark);
  border-radius: 28px;
}

.map-frame_map,
.panorama_image {
  border: 2px dashed var(--ice-dark);
  border-radius: 22px;
  background: #FBF8F2;
}

.map-frame_map {
  display: block;
  width: 100%;
  height: auto;
}

/* магаз */
.shop {
  padding-bottom: clamp(120px, 14vw, 200px);
  text-align: center;
}

.shop_subtitle {
  margin-top: 10px;
  font-size: 20px;
  color: #6B6B6B;
}

.shop_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  gap: clamp(28px, 5vw, 70px);
  margin-top: clamp(34px, 4vw, 56px);
}

.product_tile {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border: 6px solid;
  border-radius: 34px;
  transition: transform 0.3s;
}

.product:hover .product_tile {
  transform: translateY(-8px);
}

.product_tile--safari { border-color: var(--sand-dark);  background: var(--sand-light); }
.product_tile--jungle { border-color: var(--green-dark); background: var(--green-light); }
.product_tile--winter { border-color: var(--ice-dark);   background: var(--ice-light); }

.product_image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.product_name {
  margin-top: 22px;
  font-size: clamp(22px, 2vw, 28px);
}

.product_desc {
  margin-top: 6px;
  font-size: 17px;
  color: #6B6B6B;
}

/* травка муравка */
.ground-line {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 200;
}

.grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
}

.tree,
.animal {
  position: absolute;
  bottom: 0;
  z-index: 1;
}

.tree--1 { left: 1.05%;  width: 6.16%; aspect-ratio: 468 / 791; }
.tree--2 { left: 6.96%;  width: 7.73%; aspect-ratio: 566 / 661; }
.tree--3 { left: 15.4%;  width: 4.77%; aspect-ratio: 339 / 789; }
.tree--4 { left: 63.12%; width: 4.7%;  aspect-ratio: 378 / 782; }
.tree--5 { right: 0;     width: 4%;    aspect-ratio: 303 / 1262; }
.tree--6 { right: 7.39%; width: 6.16%; aspect-ratio: 587 / 993; }

.animal--lion    { left: 32%;   width: 4.8%; aspect-ratio: 1 / 1; bottom: -3.1%; }
.animal--tiger   { left: 36.5%; width: 4.8%; aspect-ratio: 1 / 1; bottom: -6%; }
.animal--giraffe { left: 53%;   width: 9.3%; aspect-ratio: 1 / 1; bottom: -4.2%; }

.vector img,
.vector svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* подвалище */
.footer {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
  var(--soil)
  url("../assets/images/footer_background.svg")
  center top / cover no-repeat;
}

.footer_roots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1440 / 120;
}

.footer_inner {
  position: relative;
  padding-top: clamp(60px, 5.5vw, 80px);
  padding-bottom: 100px;
}

.panorama {
  border-color: var(--sand);
  border-radius: 28px;
}

.panorama_inner {
  border-color: var(--green);
}

.panorama_image {
  display: block;
  width: 100%;
  height: auto;
  border-color: var(--ice);
}

.footer_columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: clamp(36px, 4vw, 56px);
}

.footer_col--contacts {
  padding-left: 60px;
  border-left: 2px solid rgba(245, 243, 238, 0.3);
}

.footer_heading {
  margin-bottom: 22px;
  font-size: 18px;
  text-transform: uppercase;
}

.footer_heading--sand  { color: var(--sand); }
.footer_heading--green { color: var(--green); }

.footer_muted {
  font-size: 18px;
  color: #D9C7AE;
}

.footer_name {
  margin: 10px 0;
  font-size: 26px;
  font-weight: 700;
}

.contacts {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 14px;
  font-size: 18px;
}

.contacts dt {
  font-weight: 700;
}

.contacts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contacts a {
  border-bottom: 1px solid rgba(245, 243, 238, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.contacts a:hover {
  color: var(--sand);
  border-color: var(--sand);
}

.footer_stones {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
}



/* планшет */
@media (max-width: 1024px) {
  .about_inner {
    grid-template-columns: 1fr;
  }

  .map-frame {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* телефон */
@media (max-width: 700px) {
  section,
  footer { scroll-margin-top: 70px; }

  .header_inner { height: 68px; }
  .logo_icon { height: 40px; }
  .logo_text { font-size: 18px; }
  .button { padding: 10px 18px; font-size: 14px; }

  .hero_over { font-size: 12px; }

  .footer_columns { grid-template-columns: 1fr; }
  .footer_col--contacts { padding-left: 0; border-left: 0; }
}