:root {
  --black: #0b0b0c;
  --black-soft: #161617;
  --red: #9e0300;
  --orange: #f7941d;
  --white: #f2f0ee;
  --gray: #9a9a9a;
  --gray-light: #e2dfdc;
  --sidebar-width: 280px;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.layout {
  display: flex;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 2rem;
  background: linear-gradient(to bottom, #4c0000 0%, #9e0300 100%);
  border-right: 2px solid var(--orange);
}

.banner {
  display: block;
  width: 100%;
  height: auto;
}

.banner-bar {
  height: 3px;
  background: var(--orange);
}

.sidebar .contact-toggle {
  margin-top: 2rem;
  padding: 0 1.5rem;
}

.sidebar .contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-summary {
  display: none;
}

.main {
  flex: 1;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.about {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.about p {
  margin: 0 0 1.1rem 0;
  color: var(--black-soft);
}

.about p:last-child {
  margin-bottom: 0;
}

.footer {
  background: var(--gray-light);
  padding: 1.25rem 2.5rem;
  color: var(--red);
  font-size: 0.85rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.button {
  display: block;
  width: 100%;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

.button--secondary {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.button--secondary:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

@media (max-width: 700px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--orange);
  }

  .banner {
    max-width: 320px;
    margin: 0 auto;
  }

  .contact-toggle {
    text-align: center;
  }

  .contact-summary {
    display: inline-block;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--orange);
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
  }

  .contact-summary::-webkit-details-marker {
    display: none;
  }

  .contact-summary::after {
    content: " \25BE";
  }

  .contact-toggle[open] .contact-summary::after {
    content: " \25B4";
  }

  .contact-toggle[open] .contact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .contact-toggle .contact .button {
    width: auto;
    flex: 1 1 auto;
  }
}
