:root {
  --text: #ffffff;
  --logo-brown: #493324;
  --shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--text);
  background: #1a120c;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1a120c;
  background-image: url("../img/IMG_1320.JPG");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 0 28px;
}

.logo {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 auto 8px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: var(--shadow);
}

.lead {
  max-width: 920px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  text-shadow: var(--shadow);
}

.lead p {
  margin: 0 0 0.7em;
}

.lead p:last-child {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-top: 36px;
}

.feature h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature p,
.feature li {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  text-shadow: var(--shadow);
}

.feature ul {
  margin: 8px 0;
  padding-left: 1.2em;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-top: 40px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.phone,
.tasting-link {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-shadow: var(--shadow);
}

.phone a,
.tasting-link a,
.form-back a,
.logo-link {
  color: #ffffff;
  text-decoration: none;
}

.phone a:visited,
.tasting-link a:visited,
.form-back a:visited,
.logo-link:visited {
  color: #ffffff;
}

.phone a,
.tasting-link a,
.form-back a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.place {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.place img {
  display: block;
  width: 50px;
  height: auto;
}

.place p {
  margin: 0;
  font-size: 14px;
  text-shadow: var(--shadow);
}

.copyright {
  margin: auto 0 0;
  padding-top: 28px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-shadow: var(--shadow);
}

@media (max-width: 800px) {
  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }

  .features,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .place {
    align-items: flex-start;
    text-align: left;
  }

  .phone,
  .tasting-link {
    font-size: 16px;
  }

  .tasting,
  .form-row,
  .bottles {
    grid-template-columns: 1fr;
  }
}

.page--tasting {
  background-attachment: fixed;
}

.tasting-intro {
  margin-top: 12px;
  margin-bottom: 8px;
}

.tasting {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.panel {
  background: rgba(18, 12, 8, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 22px 20px;
  backdrop-filter: blur(6px);
}

.bottles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
}

.bottle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bottle-card img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 8px;
}

.bottle-card h2 {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  text-shadow: var(--shadow);
}

.bottle-card p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.order-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-title {
  margin: 0;
  font-size: 18px;
  text-shadow: var(--shadow);
}

.form-title--sub {
  margin-top: 28px;
  font-size: 15px;
}

.form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.qty-list {
  display: grid;
  gap: 8px;
}

.order-summary {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.order-summary p {
  margin: 4px 0 0;
  font-size: 14px;
  text-shadow: var(--shadow);
}

.order-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.qty-list label {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.qty-own {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  align-items: flex-start;
}

.qty-own span:first-child {
  flex: 1;
  line-height: 1.35;
}

.qty-unit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.order-panel input,
.order-panel textarea {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 400;
  color: #30353e;
}

.qty-list input {
  width: 72px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.btn {
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: #6a3a22;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: #81482b;
}

.form-back {
  margin: 4px 0 0;
  font-size: 13px;
  text-align: center;
}

.flash {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(70, 136, 71, 0.85);
  font-size: 14px;
  font-weight: 700;
}

.flash--error {
  background: rgba(180, 60, 48, 0.88);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

@media (max-width: 800px) {
  .page--tasting {
    background-attachment: scroll;
  }
}
