:root {
  --green: #183f2d;
  --gold: #b89454;
  --cream: #f1ead9;
  --paper: #faf8f1;
  --ink: #26362b;
  --muted: #72796c;
  --line: #dcd5c4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.8 var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.header {
  min-height: 96px;
  padding: 14px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 185px;
}
.logo img {
  max-height: 70px;
  width: 100%;
  object-fit: contain;
}
.header nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 12px;
}
.header nav a:hover,
footer a:hover,
.link:hover {
  color: var(--gold);
}
.welcome {
  padding: 60px 9% 75px;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7%;
}
.kicker,
.section-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: bold;
}
.welcome h1 {
  font: 600 clamp(54px, 7vw, 86px) / 0.98 var(--serif);
  letter-spacing: -0.06em;
  color: var(--green);
  margin: 22px 0;
}
.welcome h1 em,
h2 em {
  color: var(--gold);
  font-weight: normal;
}
.lead {
  max-width: 460px;
  color: #60695c;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.link {
  font-size: 12px;
  font-weight: bold;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 5px;
}
.welcome-image {
  position: relative;
  max-width: 530px;
  justify-self: end;
}
.welcome-image > img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}
.round-note {
  position: absolute;
  right: -18px;
  bottom: 20px;
  background: var(--green);
  color: #f8f0dc;
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  transform: rotate(8deg);
}
.section {
  padding: 78px 10%;
}
.about,
.history,
.contact {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 8%;
  align-items: start;
}
.about h2,
.about-text h2,
.history h2,
.section-title h2,
.contact h2 {
  font: 600 clamp(34px, 4.3vw, 52px) / 1.17 var(--serif);
  letter-spacing: -0.04em;
  color: var(--green);
  margin: 0 0 24px;
}
.about p,
.history p,
.contact p {
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.history {
  background: #e9e2d0;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 9%;
}
.history > img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}
.history h2 {
  margin-top: 18px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 20px 0 35px;
}
.section-title h2 {
  margin: 0;
}
.section-title > p {
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.beer-list {
  border-top: 1px solid var(--line);
}
.beer {
  display: grid;
  grid-template-columns: 35px 1fr 45px;
  gap: 18px;
  align-items: start;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.beer > span,
.beer time {
  font-size: 11px;
  color: var(--gold);
  padding-top: 5px;
}
.beer time {
  text-align: right;
}
.beer h3 {
  font: 600 23px var(--serif);
  color: var(--green);
  margin: 0 0 6px;
}
.beer p {
  margin: 0;
  max-width: 670px;
  font-size: 13px;
  color: var(--muted);
}
.note {
  font-size: 10px !important;
  color: #8b8b7d !important;
  margin-top: 20px;
}
.gallery {
  padding: 70px 7% 90px;
  background: #e9e2d0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
}
.gallery figure img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
}
.gallery figcaption {
  font: italic 16px var(--serif);
  color: var(--green);
  padding-top: 10px;
}
.contact {
  background: var(--green);
  color: #f7f0df;
}
.contact .section-label {
  color: #d4b776;
}
.contact h2 {
  color: #fff8e9;
}
.contact p {
  color: #d0d8ce;
}
.contact .link {
  color: #f5e6c6;
}
.contact .note {
  color: #aeb9ab !important;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 7%;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer > a:first-child {
  font: 600 17px var(--serif);
  color: var(--green);
}

.photo-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   grid-template-rows: repeat(2, minmax(0, 1fr));
   aspect-ratio: 1 / 1;
   gap: 8px;
   position: relative;
   overflow: hidden;
   border-radius: 18px;
}

.ingredient {
   position: relative;
   min-width: 0;
   min-height: 0;
   overflow: hidden;
   border-radius: 10px;
}

.ingredient img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.ingredient span {
   position: absolute;
   left: 8px;
   bottom: 8px;
   padding: 5px 9px;
   border-radius: 5px;
   background: rgba(20, 30, 20, 0.75);
   color: #fff;
   font-size: 0.75rem;
   font-weight: 700;
   letter-spacing: 0.08em;
}

.about-section {
   padding: 70px 7% 90px;
   background: var(--paper);
}

.about-inner {
   max-width: 1280px;
   margin: 0 auto;
}

.about-inner .section-label {
   margin-bottom: 48px;
}

.about-content {
   display: grid;
   grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
   gap: 48px;
   align-items: center;
   width: 100%;
   margin: 0;
}

.about-image {
   width: 100%;
   min-width: 0;
}

.about-image img {
   display: block;
   width: 100%;
   height: auto;
   object-fit: contain;
   border-radius: 18px;
}

.about-text {
   min-width: 0;
}

.history-section {
  padding: 70px 7% 90px;
  background: #e9e2d0;
}

.history-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.history-inner .section-label {
  margin-bottom: 48px;
}

.history-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: start;
}

.history-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.history-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.history-text {
  grid-column: 1;
  grid-row: 1;
}

.history-text h2 {
  font: 600 clamp(34px, 4.3vw, 52px) / 1.17 var(--serif);
  letter-spacing: -0.04em;
  color: var(--green);
  margin: 0 0 28px;
}

.history-text h3 {
  font: 600 23px / 1.35 var(--serif);
  color: var(--green);
  margin: 30px 0 12px;
}

.history-text h3:first-of-type {
  margin-top: 0;
}

.history-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 16px;
}

.beer-section {
  padding: 70px 7% 90px;
  background: var(--cream);
}

.beer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.beer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.3fr);
  gap: 48px;
  align-items: center;
}

.beer-info h2 {
  font: 600 clamp(28px, 3.2vw, 40px)/1.2 var(--serif);
  color: var(--green);
  margin: 0 0 24px;
}

.beer-parameters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.beer-parameter {
  background: var(--paper);
  padding: 14px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.beer-parameter span {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}

.beer-parameter strong {
  font: 600 20px var(--serif);
  color: var(--green);
}

.beer-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  max-width: 650px;
}

.beer-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.beer-item {
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}

.beer-item:first-child {
  padding-top: 0;
}

.gallery-photo {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.gallery-photo:hover {
  transform: scale(1.02);
}

.gallery-item {
  margin: 0;
}

.gallery-item figcaption {
  padding: 9px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gallery-category {
  margin-bottom: 55px;
}

.gallery-category h3 {
  font: 600 26px/1.3 var(--serif);
  color: var(--green);
  margin: 0 0 10px;
}

.gallery-description {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox button {
  position: absolute;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 38px;
  padding: 10px;
}

.lightbox-close {
  top: 15px;
  right: 25px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 15px;
  color: white;
  font-size: 14px;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  font-size: 14px;
  text-align: center;
  padding-top: 12px;
}

@media (max-width: 700px) {
  .header {
    padding: 12px 5%;
    flex-wrap: wrap;
  }
  .logo {
    width: 140px;
  }
  .header nav {
    gap: 12px;
    justify-content: flex-end;
    font-size: 11px;
  }
  .welcome {
    grid-template-columns: 1fr;
    padding: 42px 7% 55px;
    gap: 28px;
  }
  .welcome h1 {
    font-size: 62px;
  }
  .welcome-image {
    justify-self: center;
    width: 100%;
  }
  .round-note {
    right: -8px;
    width: 90px;
    height: 90px;
    font-size: 9px;
  }
  .section {
    padding: 55px 7%;
  }
  .about,
  .history,
  .contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .about h2,
  .history h2,
  .section-title h2,
  .contact h2 {
    font-size: 38px;
  }
  .section-title {
    display: block;
  }
  .section-title > p {
    margin-top: 12px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery figure:last-child {
    grid-column: 1/-1;
  }
  .beer {
    grid-template-columns: 25px 1fr 30px;
    gap: 10px;
  }
  .beer h3 {
    font-size: 21px;
  }
  footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  footer span {
    width: 100%;
    order: 3;
  }
  .about-section {
   padding: 48px 7% 60px;
  }
  .about-content {
      grid-template-columns: 1fr;
      gap: 24px;
   }
   .about-inner .section-label {
      margin-bottom: 28px;
   }
   .about-image img {
      aspect-ratio: 16 / 10;
   }
   .history-section {
    padding: 48px 7% 60px;
  }

  .history-inner .section-label {
    margin-bottom: 28px;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .history-gallery {
    gap: 10px;
  }

  .history-text h3 {
    font-size: 21px;
  }
  
  .beer-section {
    padding: 48px 7% 60px;
  }

  .beer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .beer-parameters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lightbox {
    padding: 15px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 80vh;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}