html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #d9dedb;
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page {
  width: min(100%, 1180px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 12px;
  overflow: hidden;
}

/* Top bar */
.topbar {
  background: #1a7a3c;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  position: absolute;
  top: -130px;
  left: 0;
  display: inline-flex;
  background: #2b2b2b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  z-index: 1;
}

.back-btn:hover {
  background: #5f5f5f;
}

.back-btn:active {
  transform: scale(0.98);
}

.logo-achs {
  display: block;
  height: 44px;
  width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.topbar-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  letter-spacing: 1px;
}

/* Main layout */
.main {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: clamp(24px, 4vw, 56px);
}

/* Left column */
.left-col {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-right: 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
}

.tagline {
  font-size: 17px;
  font-weight: 400;
  color: #4d4d4d;
  line-height: 1.5;
  max-width: 430px;
}

/* Buttons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
}

.btn-menu {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid #bbb;
  border-radius: 40px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.8px;
  transition: all 0.15s;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
}

.btn-menu--image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 142px;
  padding: 12px 16px;
  text-align: center;
}

a.btn-menu {
  color: #1a1a1a;
}

a.btn-menu:hover {
  text-decoration: none;
}

.btn-menu-image {
  display: block;
  width: min(96px, 100%);
  height: auto;
  object-fit: contain;
}

.btn-menu:hover {
  background: #e6f4ec;
  border-color: #1a7a3c;
  color: #1a7a3c;
}

.btn-menu:active {
  transform: scale(0.98);
}

/* Right column */
.right-col {
  flex: 0 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.extintor-page .buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.extintor-svg {
  width: min(100%, 260px);
  filter: drop-shadow(2px 4px 12px rgba(0, 0, 0, 0.1));
}

/* Video page */
.right-col--video {
  flex: 1 1 520px;
  max-width: 720px;
}

.video-player {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(26, 122, 60, 0.25);
  background: #000;
  display: block;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.video-title {
  max-width: 520px;
}

@media (max-width: 820px) {
  body {
    padding: 0;
  }

  .page {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .topbar {
    padding: 12px 18px;
    gap: 12px;
  }

  .back-btn {
    position: static;
    top: auto;
    left: auto;
    align-self: flex-start;
    width: fit-content;
    padding: 9px 14px;
    font-size: 12px;
    margin: 0 0 4px;
  }

  .logo-achs {
    height: 36px;
  }

  .topbar-title {
    font-size: 12px;
    letter-spacing: 0.6px;
  }

  .main {
    align-items: flex-start;
    gap: 28px;
  }

  .left-col {
    flex-basis: 100%;
    gap: 22px;
    position: static;
  }

  .brand-logo {
    width: min(260px, 100%);
  }

  .buttons {
    width: 100%;
    max-width: none;
  }

  .btn-menu {
    width: 100%;
  }

  .btn-menu--image {
    min-height: 132px;
  }

  .btn-menu-image {
    width: min(88px, 30vw);
  }

  .extintor-page .buttons {
    grid-template-columns: 1fr;
  }

  .right-col {
    flex-basis: 100%;
  }

  .extintor-page .right-col {
    display: none;
  }

  .extintor-svg {
    width: min(220px, 70vw);
  }
}