*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0B1220;
  --surface: #121B2E;
  --text: #EAF0FF;
  --muted: #B6C2E2;
  --primary: #3B82F6;
  --secondary: #22C55E;
  --accent: #A78BFA;
  --border: rgba(255, 255, 255, 0.12);
  --bauhaus-red: #E53935;
  --bauhaus-yellow: #F5C518;
  --bauhaus-blue: #1E88E5;
  --bauhaus-black: #000000;
  --style-bauhaus: bauhaus;
  --style-geometric: geometric;
  --style-primary-colors: primary colors;
  --style-abstract: abstract;
  --style-design-theory: design theory;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    linear-gradient(340deg, rgba(167, 139, 250, 0.08) 0%, transparent 40%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.bauhaus.geometric.primary-colors.abstract.design-theory::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.07) 0%, transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(34, 197, 94, 0.05) 0%, transparent 32%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.offer-logo-wrap img {
  max-width: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.disclosure-banner {
  display: flex;
  width: 100%;
  min-height: auto;
  border-bottom: 3px solid var(--bauhaus-black);
}

.disclosure-banner__icon {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bauhaus-yellow);
  color: var(--bauhaus-black);
  font-size: 18px;
  font-weight: 700;
}

.disclosure-banner__text {
  flex: 1;
  background: rgba(234, 240, 255, 0.92);
  color: #0B1220;
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 14px;
  text-align: left;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.navbar-links a:hover {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.burger-btn {
  display: none;
  background: none;
  border: 2px solid var(--bauhaus-black);
  background-color: var(--bauhaus-yellow);
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bauhaus-black);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 24px;
}

.mobile-overlay.is-open {
  display: flex;
}

.mobile-overlay a {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--bauhaus-red);
  color: var(--text);
  border: 3px solid var(--bauhaus-black);
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  background: var(--surface);
  border-top: 4px solid var(--bauhaus-black);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 640px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-transform: lowercase;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-badges img {
  width: auto;
  height: 40px;
  max-width: 100px;
}

.footer-requisites {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-bottom {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 4px solid var(--bauhaus-black);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-box::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 28px;
  height: 28px;
  background: var(--bauhaus-red);
  border: 3px solid var(--bauhaus-black);
}

.modal-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
  text-transform: lowercase;
}

.modal-box p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  border: 3px solid var(--bauhaus-black);
  cursor: pointer;
  text-transform: lowercase;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 4px solid var(--bauhaus-black);
  padding: 20px 24px;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 20px;
  text-transform: lowercase;
  border-left: 8px solid var(--bauhaus-blue);
  padding-left: 16px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  text-transform: lowercase;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  border: 4px solid var(--bauhaus-black);
  padding: 24px;
  background: var(--surface);
}

.contact-form label {
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.error-msg {
  color: var(--bauhaus-red);
  font-size: 13px;
  display: none;
}

.error-msg.is-visible {
  display: block;
}

.form-success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 4px solid var(--bauhaus-black);
  background: rgba(34, 197, 94, 0.12);
  color: var(--text);
}

.form-success.is-visible {
  display: block;
}

.shape-circle,
.shape-square,
.shape-triangle {
  display: inline-block;
  flex-shrink: 0;
}

.shape-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bauhaus-red);
  border: 2px solid var(--bauhaus-black);
}

.shape-square {
  width: 16px;
  height: 16px;
  background: var(--bauhaus-blue);
  border: 2px solid var(--bauhaus-black);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--bauhaus-yellow);
  filter: drop-shadow(0 0 0 var(--bauhaus-black));
}

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: cover;
  border: 3px solid var(--bauhaus-black);
}

.decor-wrap {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .decor-img {
    max-width: 100%;
    max-height: 240px;
  }

  .decor-wrap {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 400px) {
  .decor-img {
    max-width: 100%;
    max-height: 180px;
  }

  .topic-bg-band {
    min-height: 120px;
    max-width: 100%;
    background-size: cover;
  }

  .topic-hero::before,
  .topic-hero::after,
  .layout-mobiili .topic-hero::after {
    width: 48px;
    height: 48px;
    left: auto;
    right: 16px;
  }
}
