* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
  margin: 0;
  padding: 0;
}

body {
  background-color: #3d2314;
  color: var(--public-divider-color, #682b08);
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

/* Root */

#root {
  display: flex;
  flex-direction: column;
  width: min(100%, 1500px);
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--public-primary-color, #e7c69e);
  overflow: hidden;
}

/* Header */

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

  width: 100%;
  height: 300px;

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

  z-index: 2;
}

/* Navigation */

.navigation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;

  width: 100%;
  height: 50px;
  padding-top: 8px;

  background-color: var(--public-primary-color, #e7c69e);
  border-top: 1px solid var(--public-divider-color, #682b08);
  border-bottom: 1px solid var(--public-divider-color, #682b08);

  font-size: 30px;
}

.navigation a {
  justify-self: center;
  text-align: center;
  color: var(--public-divider-color, #682b08);
  text-decoration: none;
  transition: all 0.3s ease;

  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

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

/* Main */

.main {
  display: block;
  width: 100%;
  border-bottom: 2px solid #682b08;
}

/* About section */

.about {
  --about-inline-padding: clamp(20px, 4vw, 56px);
  width: 100%;
  padding: clamp(28px, 4vw, 48px) var(--about-inline-padding) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(580px, 42%);
  grid-template-areas:
    "heading photo"
    "intro photo"
    "divider divider"
    "body body";
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.about-heading {
  grid-area: heading;
  align-self: end;

  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: #682b08;
}

.about-photo {
  grid-area: photo;
  margin: 0;
}

.chef-photo {
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
  margin-left: auto;

  border: 1px solid #682b08;
  box-shadow: 5px 5px 20px 1px #682b08;
}

.about-intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.about-divider {
  grid-area: divider;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.25rem 0;
}

.about-divider__line {
  flex: 1;
  height: 1px;
  background-color: rgba(104, 43, 8, 0.35);
}

.about-divider__symbol {
  flex-shrink: 0;
  color: rgba(104, 43, 8, 0.45);
  font-size: 0.9rem;
  line-height: 1;
}

.about-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  max-width: 1150px;
  margin-inline: auto;
}

.about-intro p,
.about-body p {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.1vw, 1.3rem);
  line-height: 1.75;
  color: #682b08;
}

.about-intro p {
  max-width: 42rem;
}

/* Cake image */

.cake-image {
  display: block;
  width: calc(100% + (2 * var(--about-inline-padding)));
  max-width: none;
  height: auto;
  margin-top: clamp(32px, 5vw, 56px);
  margin-left: calc(-1 * var(--about-inline-padding));
  margin-bottom: 0;

  border-bottom: 2px solid #682b08;
}

/* Footer */

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

  height: 200px;
  padding: 20px;
  padding-top: 50px;

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

  color: #682b08;
  font-size: 25px;

  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

/* Footer logo */

.footer-logo {
  display: flex;

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

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

/* Contact section */

.contact-info {
  margin: 50px;
}

@media (max-width: 768px) {
  #root {
    min-height: 100vh;
    flex-wrap: nowrap;
  }

  .header {
    height: 150px;
    min-height: 150px;

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

  .navigation {
    display: flex;
    height: auto;
    min-height: auto;

    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;

    padding: 12px 16px;

    font-size: 18px;
    text-align: center;
  }

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

  .main {
    display: block;
    flex: none;
    width: 100%;
  }

  .about {
    --about-inline-padding: 16px;
    padding: 24px 16px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "photo"
      "intro"
      "divider"
      "body";
    row-gap: 24px;
  }

  .about-heading {
    align-self: auto;
    text-align: center;
  }

  .chef-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-intro p,
  .about-body p {
    max-width: none;
  }

  .cake-image {
    margin-top: 32px;
  }

  .footer {
    height: auto;
    min-height: auto;

    flex-direction: column;
    align-items: center;
    gap: 16px;

    padding: 24px 16px;

    font-size: 18px;
    text-align: center;
  }

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

  .contact-info {
    margin: 0;
  }
}

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

  .navigation {
    height: auto;
    min-height: 50px;
    padding: 10px 0;
    font-size: 24px;
  }

  .navigation a:hover {
    transform: scale(1.1);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) min(480px, 44%);
  }

  .chef-photo {
    max-width: 480px;
  }

  .footer {
    height: auto;
    min-height: auto;
    flex-wrap: wrap;
    padding: 32px 24px;
    font-size: 22px;
  }

  .contact-info {
    margin: 24px;
  }
}

@media (min-width: 1369px) {
  .navigation {
    height: 50px;
    padding-top: 8px;
  }

  .footer {
    height: auto;
    min-height: auto;
    flex-wrap: wrap;
    padding: 32px 24px;
  }

  .contact-info {
    margin: 24px;
  }
}

@media (max-width: 950px) and (max-height: 500px) {
  #root {
    min-height: 100vh;
    flex-wrap: nowrap;
  }

  .header {
    height: 110px;
    min-height: 110px;

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

  .navigation {
    display: flex;
    height: auto;

    justify-content: center;
    gap: 40px;

    padding: 10px 16px;

    font-size: 20px;
  }

  .about {
    --about-inline-padding: 16px;
    padding: 20px 16px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "photo"
      "intro"
      "divider"
      "body";
  }

  .chef-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .footer {
    height: auto;

    flex-direction: column;
    align-items: center;
    gap: 12px;

    padding: 20px 16px;

    font-size: 20px;
    text-align: center;
  }

  .footer-logo {
    margin: 10px auto;
  }

  .contact-info {
    margin: 0;
  }
}
