:root {
  --container-max-width: 1200px;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url(img/Background\ 1.png);
  backdrop-filter: blur(4px);
  background-repeat: repeat-y;
  color: #f3e3d4;
  scroll-behavior: smooth;
}
body:has(.gallery figure img:hover) nav .logo,
body:has(.gallery figure img:hover) nav .menu {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

header {
  height: 600px;
  display: flex;
  padding-top: 100px;
  flex-direction: column;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}
header h1 {
  font-size: 48px;
  margin-bottom: 20px;
}
header p {
  font-size: 20px;
  max-width: 600px;
  line-height: 1.6;
  color: #f3e3d4;
}
hr {
  margin-top: 20px;
  border: 0;
  height: 2px;
  background-color: #f3e3d4;
  width: 1200px;
  display: block;
}
.foreground {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%,0%);
  width: 100%;
  max-width: var(--container-max-width);
  width: 100%;
  height: 100%;
  background: rgb(1, 19, 73);
  backdrop-filter: blur(5px);
  z-index: -1;
  box-sizing: border-box;
  
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto; 
  padding: 0 20px;
  flex-wrap: nowrap;
  box-sizing: border-box;
}
.header-text {
  flex: 1 1 50%;
  text-align: left;
  padding-left: 5%;
  font-size: 40px;
  display: flex;
}
.header a :hover {
  color: #da9d69;
  text-decoration: none;
}
.header-image {
  flex: 1 1 50%;
  padding-right: 5%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
  .header-image img {
  width: 100%;
  max-width: 420px;   
  height: 240px;
  display: flex;
  border-radius: 6px;
}

nav {
  position: sticky;
  top: 0;
  left: 0;
  max-width: var(--container-max-width);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
   width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}


.logo {
  padding-left: 2%;
  margin-right: auto;
  position: relative;
  display: flex;
  justify-content: left;
  width:200 px;
  height:200px;
  nav-left: 20px;
}
.menu {
  position: relative;
  padding-left: 0;
  display: flex;
  gap: 20px;
}
nav a {
  color: #e3c7af;
  text-decoration: none;
  font-size: 30px;
  padding: 6px 10px;
}
nav a:hover {
  color: #c95e00;
}
section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
}
footer {
  text-align: center;
  padding: 40px;
  background: rgba(0,0,0,0.15);
}
  
section p {
  font-size: 20px;
  line-height: 1.6;
  color: #f3e3d4;
}
section ul {
  font-size: 20px;
  line-height: 1.8;
}
  
  section ul li {
  margin-bottom: 8px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card h1 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
}

.card p.lead {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 20px;
}

.card form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.card .full {
  grid-column: 1 / -1;
}

.card label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #111827;
  font-weight: 500;
}

.card .input,
.card textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: box-shadow .12s, border-color .12s;
}

.card .input:focus,
.card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(51, 102, 255, 0.08);
}

.card textarea {
  min-height: 140px;
  resize: vertical;
}

.card .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.card .row {
  display: flex;
  gap: 10px;
}

.card .error {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
}

.card .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  grid-column: 1 / -1;
}

.card button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(51, 102, 255, 0.12);
}

.card button:hover {
    
    box-shadow: 0 0 25px rgba(42, 173, 86, 0.72);
  }

.card button:disabled {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

.card .secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid #e6e9ef;
  padding: 9px 14px;
  border-radius: 10px;
}
.gallery figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 20px 1px rgba(0, 85, 85, 0.7);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: block;
}

.gallery figure img:hover {
  box-shadow: 0 0 40px 3px rgba(0, 170, 170, 0.9);
  transform: scale(1.02);
  .logo img {
    opacity: 0;
  }
}

.gallery figure {
  margin: 0;
  padding: 0;
}


@media (max-width: 1199px) {
  header {
    height: auto;
    padding-top: 80px;
  }

  .header-inner {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  .header-text {
    flex: 1;
    text-align: center;
    padding-left: 0;
  }

  .header-image {
    flex: 1;
    padding-right: 0;
    height: auto;
    width: 100%;
  }

  .header-image img {
    max-width: 100%;
    width: 100%;
  }

  header h1 {
    font-size: 36px;
  }

  header p {
    font-size: 16px;
  }

  hr {
    margin-top: 20px;
  border: 0;
  height: 2px;
  background-color: #f3e3d4;
  width: 100%;
  max-width: var(--container-max-width);
  display: block;
  }

  nav {
    flex-direction: column;
    padding: 12px 20px;
  }

  .logo img {
    width: 166px !important;
    height: 113px !important;
  }

  .menu {
    gap: 16px;
    margin-top: 10px;
  }

  section {
    padding: 40px 20px;
  }

  section h2 {
    font-size: 28px;
  }

  section h3 {
    font-size: 20px;
  }

  section p {
    font-size: 16px;
  }

  .gallery figure img {
    width: 100%;
    height: auto;
  }

  .card {
    padding: 20px;
    max-width: 100%;
    max-width: 800px !important;
  }

  .card form {
    grid-template-columns: 1fr;
  }

  .card .full {
    grid-column: 1;
  }
  .foreground{
    position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%,0%);
  width: 100%;
  max-width: device-width;
  width: 100%;
  height: 100%;
  background: rgb(1, 19, 73);
  backdrop-filter: blur(5px);
  z-index: -1;
  box-sizing: border-box;
  }
}






@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  header {
    height: auto;
    padding-top: 60px;
  }

  .header-inner {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .header-text {
    text-align: center;
    padding: 0;
    display: block;
  }

  .header-text p {
    font-size: 14px;
    line-height: 1.5;
    display: block;
  }

  .header-image {
    width: 100%;
    padding: 0;
    display: block;
  }

  .header-image img {
    max-width: 100%;
    width: 100%;
    display: block;
  }

  header h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  header p {
    font-size: 14px;
  }

  hr {
    width: 100%;
    margin: 15px 0;
  }

  nav {
    flex-direction: column;
    padding: 10px 15px;
  }

  .logo {
    position: relative !important;
    left: auto !important;
    transform: none !important;
  }

  .logo img {
    width: 120px !important;
    height: 80px !important;
  }

  .menu {
    flex-direction: column;
    gap: 10px;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    text-align: center;
  }

  nav a {
    font-size: 14px;
    padding: 8px 0;
  }

  section {
    padding: 25px 15px;
  }

  section h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  section h3 {
    font-size: 16px;
    margin-top: 12px;
  }

  section p {
    font-size: 14px;
    line-height: 1.5;
  }

  section ul {
    font-size: 14px;
    padding-left: 20px;
  }

  section ul li {
    margin-bottom: 6px;
  }

  .gallery figure img {
    width: 100%;
    height: auto;
  }

  .gallery figure figcaption {
    font-size: 14px !important;
  }

  .card {
    padding: 15px;
    max-width: 330px !important;
    margin: 0 auto;
  }

  .card h1 {
    font-size: 18px;
  }

  .card p.lead {
    font-size: 14px;
  }

  .card form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card label {
    font-size: 12px;
  }

  .card .input,
  .card textarea {
    padding: 8px 10px;
    font-size: 13px;
    width: 100% !important;
  }

  .card textarea {
    min-height: 100px;
  }

  .card .actions {
    flex-direction: column;
    gap: 8px;
  }

  .card button {
    width: 100%;
    padding: 10px;
  }

  footer {
    padding: 20px 15px;
    font-size: 12px;
    text-align: center;
  }

  footer p {
    margin: 5px 0;
  }
}