:root {
  --primary: #1C2430;
  --secondary: #2E3A4D;
  --beige: #E7E1D8;
  --gold: #BFA06A;
  --white: #F6F4F1;
  --spacing-unit: 1.5rem;
  --max-width: 1200px;
  --text-width: 65ch;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.8;
  color: var(--primary);
  background-color: var(--white);
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
  max-width: var(--text-width);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

header {
  background-color: var(--white);
  border-bottom: 1px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.burger span {
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem var(--spacing-unit) 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: var(--beige);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--secondary);
  text-align: center;
  color: var(--beige);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  font-size: 1.5rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--gold);
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4rem var(--spacing-unit);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--beige);
  background-color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

button[type="submit"] {
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2.5rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
  letter-spacing: 0.05em;
}

button[type="submit"]:hover {
  background-color: var(--gold);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--beige);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .burger {
    display: flex;
  }

  .hero {
    min-height: 50vh;
    padding: 2rem var(--spacing-unit);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 320px) {
  :root {
    --spacing-unit: 1rem;
  }

  body {
    font-size: 0.9rem;
  }

  header {
    padding: 1rem 0;
  }

  nav {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    top: 60px;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

  footer {
    padding: 2rem 1rem 1.5rem;
    margin-top: 3rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 1.2rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  button[type="submit"] {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
}

