*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================
   PUBLIC HEADER
========================= */

.header {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  width: 100%;
  min-height: 300px;

  background-image: url("../assets/слоистые торты.png");
  background-size: cover;
  background-position: center;

  z-index: 2;
}

/* =========================
   PUBLIC NAVIGATION
========================= */

.navigation,
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  width: 100%;
  min-height: 50px;
  gap: clamp(20px, 8vw, 200px);
  padding: 8px 80px;

  background-color: #e7c69e;
  border-top: 1px solid #682b08;
  border-bottom: 1px solid #682b08;
}

.navigation a,
nav a {
  color: #682b08;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 30px;
  font-weight: 700;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

.navigation a:hover,
nav a:hover {
  display: inline-block;
  transform: scale(1.2);
  text-shadow: 2px 2px 10px white;
}

@media (max-width: 768px) {
  .header {
    min-height: 150px;
    background-image: url("../assets/name-footer.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e7c69e;
  }

  .navigation,
  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;

    min-height: auto;
    padding: 12px 16px;
  }

  .navigation a,
  nav a {
    font-size: 18px;
    white-space: nowrap;
  }

  .navigation a:hover,
  nav a:hover {
    transform: scale(1.05);
  }
}

@media (min-width: 769px) and (max-width: 1368px) and (min-height: 601px) {
  .header {
    min-height: 220px;
    background-size: cover;
    background-position: center;
  }

  .navigation,
  nav {
    justify-content: center;
    gap: clamp(32px, 6vw, 120px);
    padding: 10px 32px;
  }

  .navigation a,
  nav a {
    font-size: 24px;
  }

  .navigation a:hover,
  nav a:hover {
    transform: scale(1.1);
  }
}
/* =========================
   PUBLIC FOOTER
========================= */

.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;

  width: 100%;
  min-height: 160px;
  padding: 30px 20px;

  background-color: #e7c69e;
  border-top: 1px solid #682b08;

  color: #682b08;
  font-size: 20px;
}

.footer-logo,
#foto-name {
  display: flex;

  width: 200px;
  height: 80px;
  margin: 20px;

  background-image: url("../assets/name-footer.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer-container p {
  margin: 0 0 6px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;

    min-height: auto;
    padding: 24px 16px;

    font-size: 18px;
  }

  .footer-logo,
  #foto-name {
    width: 180px;
    height: 72px;
    margin: 10px auto;
  }
}

@media (min-width: 769px) and (max-width: 1368px) and (min-height: 601px) {
  .footer-container {
    padding: 24px 32px;
    gap: 16px;
  }
}