:root {
  --bg-light: #fff;
  --bg-warm: #FCF7F0;
  --text-color: #423023;
  --acc-green: #62BB46;
  --acc-orange: #E08B31;
  --acc-brown: #7E5232;
  --fs-h1: 3rem;     /* заголовок */
  --fs-h2: 2.5rem;   /* подзаголовок */
  --fs-body: 1.2rem;   /* основной текст */
}
@font-face {
  font-family: "Butler Light";
  src: url("font/Butler_Light.otf");
}
@font-face {
  font-family: "Butler Regular";
  src: url("font/YRDZST Medium.ttf");
}
@font-face {
  font-family: "Butler Medium";
  src: url("font/Butler_Medium.otf");
}
@font-face {
  font-family: "Butler Bold";
  src: url("font/Butler_Bold.otf");
}
html {
  scroll-behavior: smooth;
}
header {
	width: 100vw;
	display: flex;
	justify-content: center;
	padding: 1vh 0;
	/* border-bottom: 1px solid #7E5232; */
	background-color: #ffffffe0;
	position: fixed;
	z-index: 1000;
}
body {
	margin: 0;
	background-color: var(--bg-light);
}
section {
	width: 100vw;
	padding: 4vh 0;
}
h1 {
	font-size: var(--fs-h1);
	font-family: "Butler Medium";
}
h2 {
	font-size: var(--fs-h2);
	font-family: "Butler Medium";
}
p, span, a, button {
	font-size: var(--fs-body);
}
h1, h2, p, span, a {
	text-decoration: none;
	color: var(--text-color);
}
button {
	padding: 1.4vh 4vw;
	background-color: transparent;
	color: var(--bg-warm);
	border: none;
	transition: background-color 0.3s ease;
}
button:hover {
	background-color: #42302394;
}
#logo {
	max-height: 44px;
	width: auto;
	margin-top: 3px;
}
.hero-block {
	background-image: url("images/banner6.png");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	text-align: center;
	padding: 30vh 0 0;
	display: flex;
	flex-direction: column;
	justify-content: end;
}
.hero-block h2 {
	padding-bottom: 15vh;
	color: var(--bg-warm);
}
.hero-block h1 {
	color: var(--bg-warm);
	font-weight: 700;  
	text-transform: uppercase;
}
.button-cont {
	display: flex;
	justify-content: center;
	gap: 0;
	padding-bottom: 2vh;
}
#prod-button {
	border-left: 1px solid var(--bg-warm);
	border-right: 1px solid var(--bg-warm);
}
.about {
	text-align: center;
}
.about p {
	padding: 0 15vw;
}
.products {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2vw;
	justify-content: center;
}
.product-card {
	height: 50vh;
	width: 40vw;
	display: flex;
	justify-content: center;
	background-color: #F7F5F4;
	border-radius: 8px;
	transition: 
    	transform 0.35s ease,
    	box-shadow 0.35s ease;
    overflow: hidden;
}
.product-card-left {
	width: 80%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
}
.product-card-left h2 {
	font-size: var(--fs-body);
	margin-top: 1vh;
}
.product-price {
	margin-top: 1vh;
}
.primary-image {
	width: 80%;
	padding: 0 10%;
	transition: transform 0.5s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(66, 48, 35, 0.25);
}
.primary-image:hover {
  transform: scale(1.03);
}
@media screen and (max-width: 768px) {
	.products {
		flex-direction: column;
		gap: 2vh;
	}
	.product-card {
		height: 60vh;
		width: 80vw;
		margin: 0 5vw;
		padding: 0 5vw;
	}
	.product-card-left {
		width: 100%;
	}
	.primary-image {
		width: 100%;
		padding: 0;
	}
}
.contacts {
	text-align: center;
	background-image: url("images/contact_bg.svg");
	padding: 4vh 0 0;
}
#horses_bg {
	height: 25vh;
	background-image: url("images/horses.svg");
	background-repeat: no-repeat;
	background-position: center;
	padding-top: 2vh;
}
@media screen and (max-width: 768px) {
	#horses_bg {
		background-image: url("images/mob_horses.svg");
	}
}
footer {
	width: 100vw;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-between;
	background-color: var(--text-color);
	color: var(--bg-warm);
	padding: 10vh 0;
}
footer p, .contact-link {
	color: var(--bg-warm);
	margin: 0 0 0 2vw;
}
.contact-link {
	display: flex;
	align-items: center;
	gap: 1vw;
}
footer a {
	color: var(--bg-warm);
}
@media screen and (max-width: 768px) {
	.footer-left, .footer-center {
		width: 47vw;
		flex-direction: column;
		padding-left: 3vw;
	}
	.footer-right {
		width: 100vw;
		display: flex;
		flex-direction: row;
		justify-content: center;
		gap: 2vw;
	}
}
/* POPUP BACKDROP */
.product-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.product-popup.active {
  display: flex;
}

/* INNER LAYOUT */
.popup-inner {
  background: #fff;
  max-width: 1000px;
  width: 100%;
  display: flex;
  gap: 30px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
}

/* CLOSE BUTTON */
.popup-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #444;
}

/* GALLERY */
.popup-gallery {
  flex: 1;
  min-width: 300px;
}

.main-image img {
  width: 100%;
  border-radius: 6px;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbs img.active-thumb {
  border-color: #333;
}

.popup-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.popup-details h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #222;
}

.popup-price {
  font-size: 22px;
  font-weight: bold;
  margin: 10px 0;
  color: #000;
}

.popup-details p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* MOBILE */
@media (max-width: 768px) {
  .popup-inner {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .thumbs {
    justify-content: center;
  }
}


@media (min-width: 1440px) {
	.hero-block {
		background-image: url("images/banner6.jpg");
	}
}
@media (min-width: 1024px) and (max-width: 1439px) {
	.hero-block {
		background-image: url("images/midres_banner6.jpg");
	}
}
@media (min-width: 768px) and (max-width: 1023px) {
	.hero-block {
		background-image: url("images/lowres_banner6.jpg");
	}
}
@media (min-width: 430px) and (max-width: 767px) {
	.hero-block {
		background-image: url("images/mob_highres_banner6.jpg");
	}
}
@media (min-width: 360px) and (max-width: 429px) {
	.hero-block {
		background-image: url("images/mob_midres_banner6.jpg");
	}
}
@media (max-width: 359px) {
	.hero-block {
		background-image: url("images/mob_lowres_banner6.jpg");
	}
}
