@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-weight: 300;
  src: url('../fonts/poppins-v23-latin-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-weight: 400;
  src: url('../fonts/poppins-v23-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-weight: 600;
  src: url('../fonts/poppins-v23-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-weight: 900;
  src: url('../fonts/poppins-v23-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --color-primary-dark: #31261a;
  --color-primary-light: #faf4ea;
  --color-secondary-dark: #a28268;
  --color-brand-normal: #819b57;
  --color-brand-dark: #465929;
  --color-brand-light: #cfcfbc;
}

/*Base*/
* {
  box-sizing: border-box;
}

body {
  color: var(--color-primary-dark);
  background-color: var(--color-primary-light);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

address {
  font-style: normal;
}

.section {
  padding: 48px 0;
}

.container {
  width: 100%;
  max-width: 1288px;
  margin: 0 auto;
  padding: 0 24px;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.visually-hidden {
  position: absolute;
  left: -1000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/*Button*/
.button {
  padding: 16px 32px;
  color: var(--color-primary-light);
  font-weight: 600;
  border: 2px solid var(--color-brand-normal);
  background-color: var(--color-brand-normal);
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.5;
}

.button:hover {
  color: var(--color-brand-dark);
  background-color: transparent;
}

/* .button:focus {
  background-color: hotpink;
}

.button:active {
  background-color: hotpink;
} */

/*Link*/
.link {
  color: var(--color-primary-light);
  /* line-height: 1.5; */
  text-decoration: none;
}

.link:hover {
  color: var(--color-brand-normal);
  /* font-weight: 600; */
}

/* Header */
.header {
  background-color: var(--color-brand-normal); /* Remove*/
}
.header-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 40px;
}

.header-menu {
  display: flex;
  gap: 64px;
  flex-grow: 1;
  justify-content: center;
}

/*Hero section*/

.hero-section {
  padding: 272px 0;
  background-image: url('../images/Cover_Bila_Hata\ -\ Ann\ Klymenko.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  /* background-attachment: fixed; */
  /* background: url('../images/hero-section-background.jpg') no-repeat center/top cover; */
}
.hero-title {
  margin-bottom: 0;
  color: var(--color-primary-light);
  text-align: center;
  font-size: 128px;
  font-weight: 900;
  text-shadow: 2px 2px #31261a;
  /* font-style: italic; */
  /* text-transform: uppercase; */
}
.hero-title .accent {
  color: var(--color-brand-normal); /*HEX value */
  font-family: 'Poppins', sans-serif;
}

/*Advantages section*/
.advantages-section {
  padding: 16px 0;
  background-color: var(--color-brand-normal);
}
.advantages-list {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  /* color: var(--color-primary-light); */
  /* background-color: var(--color-brand-normal); */
}

.advantages-item {
  color: var(--color-primary-light);
  text-align: center;
  font-size: 20px;
  font-weight: 300;
}

.section-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.3;
}

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

.section-title .accent {
  color: var(--color-brand-dark);
}
/* Traditions section */
.traditions-section {
  padding-top: 96px;
}

.traditions-container {
  display: flex;
  /* gap: 100px; */
  justify-content: space-between;
  gap: 40px;
}

.traditions-content {
  max-width: 710px;
}

.traditions-title {
  margin-bottom: 42px;
}

.traditions-text .brand {
  color: var(--color-brand-normal);
  font-weight: 600;
}

.traditions-text .uppercase {
  /* color: var(--color-brand-normal); */
  text-transform: uppercase;
}

.traditions-text.limited {
  max-width: 340px;
}

/* Chefs section */

.chefs-title {
  max-width: 532px;
  margin: 0 auto 80px;
}

.chefs-title::before,
.chefs-title::after {
  display: block;
  width: 352px;
  /* height: 2px; */
  /* background-color: #cfcfbc; */
  border: 2px solid var(--color-brand-light);
  content: '';
}

.chef-photo {
  width: 350px;
  height: auto;
  border-radius: 4px 4px 4px 200px;
  box-shadow: -16px 16px 0 0 var(--color-primary-light),
    -16px 16px 0 2px var(--color-secondary-dark);
}

.chef-title {
  margin-bottom: 16px;
  font-size: 40px;
  font-weight: 600;
}

/* Formats section */
/* .formats-list {
  padding: 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
} */

.formats-item {
  /* flex: 1; */
  flex-basis: calc((100% - 40px) / 3);
  display: flex;
}
.format-card {
  display: flex;              /* текст ліворуч, картинка праворуч */
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  gap: 24px;                  /* відстань між текстом і картинкою */
  border: 1px solid lightgray;
  border-radius: 16px;
  margin-bottom: 24px;
}

.formats-title {
  margin-bottom: 80px;
}
.format-title {
  font-size: 24px;
  font-weight: 600;
}

.format-text {
  flex: 1;                    /* текст займає доступний простір */
}

.format-img img {
  width: 400px;               /* фіксована ширина */
  height: 300px;              /* фіксована висота */
  object-fit: cover;          /* обрізає або масштабує картинку, щоб заповнити блок */
  border-radius: 8px;
}

/* Contact section */
.contact-title {
  margin-bottom: 16px;
}

/* Footer*/

.address-link {
  color: var(--color-primary-light);
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
}

.address-link:hover {
  color: var(--color-brand-normal);
}

.address-copyright {
  font-size: 14px;
}

.footer {
  background-image: url('../images/Cover_Bila_Hata\ -\ Ann\ Klymenko.jpg');
  background-color: var(--color-primary-dark);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.back {
  color: white;
}
.bio-article {
  display: flex;
  align-items: center;
  gap: 10px;
}
.format-img {
  max-width: auto;
  height: auto;
  border-radius: 8px;
}

.format-img img {
  width: 1000px;      /* фіксована ширина для всіх картин */
  height: 950px;     /* фіксована висота для всіх картин */
  object-fit: cover; /* обрізає або масштабує картинку, зберігаючи пропорції */
  border-radius: 8px;
  cursor: pointer;   /* якщо хочеш додати ефект click */
}

.center {
  justify-content: center;
}