*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --black:#000;
  --white:#fff;
  --muted:#f5f5f5;
  --border:#e0e0e0;
  --accent:rgb(107, 0, 221);
  --accent-weak:rgba(110, 18, 229, 0.353);
  --rounded:12px;
  --max-width:1000px;
  --text:#222;
}


body{
  font-family:Arial, Helvetica, sans-serif;
  justify-self: center;
  color:var(--text);
  background:var(--white);
  display:flex;
  flex-direction:column;
  min-height:100vh;
  text-align:left;
  overflow-y:auto;
}

body::-webkit-scrollbar{
  display:none;
}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:18px;
  width:100%;
  box-sizing:border-box;
}

.header{
  width: 1200px;
  padding:12px 0;
  background:transparent;
}

.header__bar{
  background:var(--black);
  color:var(--white);
  border-radius:var(--rounded);
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.header__logo{
  color:var(--white);
  text-decoration:none;
  font-weight:600;
  font-size:1.1rem;
}

.nav__list{
  list-style:none;
  display:flex;
  gap:10px;
  align-items:center;
  margin:0;
  padding:0;
}

.nav__link:hover {
  background: var(--accent-weak);
}

.nav__link{
  display:inline-block;
  color:var(--white);
  text-decoration:none;
  padding:8px 14px;
  border-radius:var(--rounded);
  white-space:nowrap;
}

.nav__link--active{
  background:var(--accent);
  color:var(--white);
}

.hero{
  padding:28px 0;
}

.hero__inner{
  background-image:url('./images/bg-image.webp');
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  border-radius:var(--rounded);
  padding:36px;
  color:var(--white);
  position:relative;
  overflow:hidden;
  box-shadow:0 2px 20px rgba(0,0,0,0.06);
}

.hero__inner::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.18));
  pointer-events:none;
}

.hero__title,
.hero__lead{
  position:relative;
  z-index:1;
}

.hero__title{
  font-size:1.75rem;
  margin-bottom:8px;
}

.hero__lead{
  margin-bottom:8px;
  opacity:.95;
}

.section{
  padding:28px 0;
}

.section > .container{
  background:var(--white);
  border-radius:var(--rounded);
  padding:24px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  width:100%;
  box-sizing:border-box;
}

.section__title{
  font-size:1.25rem;
  margin-bottom:10px;
}

.section__title-form {
  text-align: center;
}

p{
  margin-bottom:12px;
  max-width:80ch;
}

.image-container{
  margin:16px 0;
}

.responsive-image{
  width:100%;
  height:auto;
  display:block;
  border-radius:var(--rounded);
  object-fit:cover;
}

.actions{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:12px;
  flex-wrap:wrap;
}

.button,
button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:var(--rounded);
  border:none;
  background:var(--accent);
  color:var(--white);
  cursor:pointer;
  text-decoration:none;
  font-size:0.95rem;
  box-sizing:border-box;
}

.button:hover,
button:hover{
  filter:brightness(.95);
}

.form{
  margin-top:8px;
  text-align:left;
}

.form__group{
  margin-bottom:12px;
}

.form__label{
  display:block;
  margin-bottom:6px;
  font-weight:600;
}

.form__input,
.form__textarea{
  width:100%;
  padding:10px;
  border:1px solid var(--border);
  border-radius:var(--rounded);
  font:inherit;
  box-sizing:border-box;
}

.form__textarea{
  min-height:100px;
  resize:vertical;
}

.form__actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:14px;
  flex-wrap:wrap;
}

.form__error{
  color:#b71c1c;
  font-size:0.9rem;
  min-height:1.2em;
}

dialog {
  display: none;
}

dialog[open] {
  display: flex;
  align-self: center;
  justify-self: center;
  border-radius:var(--rounded);
  align-items: center;
  border: none;
  justify-content: center;
}

dialog::backdrop {
  pointer-events: none;
}

.modal__wrap{
  background:var(--white);
  border-radius:var(--rounded);
  width:100%;
  max-width:520px;
  padding:20px;
  margin:0 auto;
  position:relative;
  box-sizing:border-box;
  pointer-events: auto;
}

.modal__close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:var(--rounded);
  border:none;
  background:#eee;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.modal__close:hover{
  background:var(--accent);
  color:var(--white);
}

.media-container{
  margin:16px 0 3px;
}

.media-video{
  width:100%;
  height:auto;
  border-radius:var(--rounded);
  display:block;
}

.footer{
  padding:18px 0;
  background:transparent;
  margin-top:auto;
}

.footer .container{
  text-align:left;
}
