* {
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #f7f3ef;
  color: #4f463f;
  margin: 0;
  padding: 40px 20px;
}

.container {
  max-width: 850px;
  margin: 25px auto;
  background: #fff;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

h1 {
  margin-top: 0;
  margin-bottom: 28px;

  padding: 22px 28px;

  background: #efe7e1;

  border-radius: 4px;

  color: #5c5148;

  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
}

h1, h2, h3 {
  color: #5c5148;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

h2 {
  margin-top: 75px;
  margin-bottom: 28px;

  padding: 0;

  background: none;
  border: none;

  color: #5c5148;

  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

h3 {
  font-size: 26px;
}

input,
textarea,
fieldset {
  background: #fffdfa;
}

p {
  line-height: 1.6;
}

.hero-image {
  max-width: 100%;
  margin: 25px 0;
  border-radius: 3px;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="file"],
textarea {
  width: 100%;
  padding: 11px 14px;
  margin-top: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

fieldset {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

legend {
  font-weight: bold;
  padding: 0 8px;
}

.radio-option {
  display: block;
  margin: 2px 0;
  font-weight: normal;
  line-height: 1.4;
}

.hidden {
  display: none;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 16px;
  background: #6f6258;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 17px;
  cursor: pointer;
}

button:hover {
  background: #5f544c;
  opacity: 1;
}

.note {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}

.site-header {
  max-width: 850px;
  margin: 25px auto;
  padding: 0;
}

.logo-wrapper {
  text-align: center;
  margin-bottom: 18px;
}

.logo {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.main-nav {
  background: #ffffff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  width: 100%;
  padding: 12px;

  background: #ffffff;

  border-radius: 6px;

  box-shadow: 0 8px 30px rgba(0,0,0,0.06);

  width: 100%;

  padding: 10px 22px;

  display: flex;

  justify-content: space-between;

  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a {
  font-family: 'Cormorant Garamond', serif;

  font-size: 22px;
  font-weight: 600;

  letter-spacing: 0.02em;

  color: #7a6d63;
  text-decoration: none;

  padding: 10px 16px;

  border-radius: 3px;

  transition: 0.2s;
}

.main-nav a:hover {
  background: #efe7e1;
  color: #5d5249;
}

.main-nav a.active {
  background: #8b7a6b;
  color: white;
}

.menu-toggle {
  display: none;
  width: auto;
  margin: 0;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 30px 0;
}

.gallery-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.envelope-slider {
  position: relative;
  width: 100%;
  margin: 35px 0;
}

.slider-image-wrapper {
  width: 100%;
}

.slider-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 54px;
  height: 54px;
  min-width: 54px;

  margin: 0;
  padding: 10px;

  background: rgba(0,0,0,0.35);
  border: none;
  border-radius: 3px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
}

.slider-arrow:hover {
  background: rgba(0,0,0,0.55);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: #d8cec6;
  margin: 50px 0;
}

strong {
  font-weight: 500;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.slider-arrow img {
  width: 24px;
  height: 24px;
  display: block;
}

ol {
  counter-reset: custom-counter;
  list-style: none;
  padding-left: 0;
  margin: 30px 0;
}

ol li {
  counter-increment: custom-counter;

  position: relative;

  padding-left: 58px;
  margin-bottom: 26px;

  line-height: 1.7;
}

ol li::before {
  content: counter(custom-counter);

  position: absolute;
  left: 0;
  top: 0;

  width: 36px;
  height: 36px;

  background: #8b7a6b;
  color: white;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 15px;
}

.text-link {
  color: #8b7a6b;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.text-link:hover {
  color: #5d5249;
  text-decoration: underline;
}


.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;

  border: 1px solid #ddd2c8;
  border-radius: 6px;

  background: #fbf8f5;

  cursor: pointer;

  font-weight: 500;
  line-height: 1.4;

  margin: 0;
}

.checkbox-grid input[type="checkbox"] {

  width: 18px;
  height: 18px;

  margin: 0;

  flex-shrink: 0;

  accent-color: #8d7663;
}

.conditional-section {
  display: none;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #ded4ca;
  border-radius: 8px;
  background: #fffaf6;
}

.conditional-section.active {
  display: block;
}

.conditional-section h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfc4ba;
  border-radius: 6px;
  font: inherit;
}

button[type="submit"] {
  margin-top: 28px;
}

button.is-loading {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.button-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.info-toggle {
  margin-top: 18px;
  width: 100%;
  padding: 14px 18px;

  background: #8b7a6b;
  color: #fff;

  border: none;
  border-radius: 3px;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
}

.info-toggle:hover {
  background: #6f6258;
}

.extra-info-box {
  display: none;

  margin-top: 18px;
  padding: 22px;

  background: #fffaf6;
  border: 1px solid #ded4ca;
  border-radius: 6px;
}

.extra-info-box.active {
  display: block;
}

.extra-info-box h3 {
  margin-top: 0;
}

.example-left-arrow {
  left: 10px;
}

.example-right-arrow {
  right: 10px;
}



@media (max-width: 768px) {

  body {
    padding: 40px 12px;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .logo-wrapper {
    grid-column: 2;
    margin-bottom: 18px;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
    align-self: start;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .container {
    padding: 24px 18px;
  }

  .slider-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 8px;
  }

}