body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.adult-hidden {
  display: none !important;
}

.adult-content {
  position: relative;
}

.adult-content img {
  filter: blur(8px) brightness(0.7);
  transition: filter 0.4s ease;
}

.adult-content:hover img {
  filter: blur(0) brightness(1);
}

:root {
  --red-color: #d32f2f;
  --red-dark: #b71c1c;
  --border-color: #424242;
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --card-bg: #1e1e1e;
  --glass-edge-border-dark: rgba(255, 255, 255, 0.1);
  --glass-edge-highlight-dark: rgba(255, 255, 255, 0.14);
  --glass-edge-shadow-dark: rgba(0, 0, 0, 0.22);
  --surface-stripe-a: rgba(211, 47, 47, 0.1);
  --surface-stripe-b: rgba(183, 28, 28, 0.1);
  --surface-stripe-a-hover: rgba(211, 47, 47, 0.15);
  --surface-stripe-b-hover: rgba(183, 28, 28, 0.15);
  --surface-button-border: rgba(255, 255, 255, 0.16);
  --surface-button-border-hover: rgba(255, 255, 255, 0.34);
  --accent-stripe-a: rgba(183, 28, 28, 0.3);
  --accent-stripe-b: rgba(0, 0, 0, 0.03);
  --accent-stripe-a-hover: rgba(183, 28, 28, 0.4);
  --accent-stripe-b-hover: rgba(0, 0, 0, 0.04);
}

.light-mode {
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #ffffff;
  --border-color: #424242;
  --glass-edge-border-dark: rgba(145, 57, 57, 0.08);
  --glass-edge-highlight-dark: rgba(255, 255, 255, 0.56);
  --glass-edge-shadow-dark: rgba(112, 70, 70, 0.12);
  --surface-button-border: rgba(24, 24, 24, 0.18);
  --surface-button-border-hover: rgba(24, 24, 24, 0.35);
}

body {
  font-family: 'TikTok', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.site-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: var(--bg-color);
}

body.light-mode::before {
  display: none;
}

.site-background__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 40%;
  opacity: 0;
  transform: scale(1.37);
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.site-background__video--dark {
  filter: saturate(1.02) contrast(1.02) brightness(0.62);
}

.site-background__video--light {
  filter: sepia(0.08) hue-rotate(-6deg) saturate(0.86) contrast(0.78) brightness(1.22);
}

body.dark-mode .site-background__video--dark {
  opacity: 1;
}

body.light-mode .site-background__video--light {
  opacity: 0.42;
}

.site-background__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10, 8, 8, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(0.92);
  backdrop-filter: blur(22px) saturate(0.92);
}

body.light-mode .site-background__grain {
  background:
    radial-gradient(circle at 18% 22%, rgba(211, 47, 47, 0.06), transparent 42%),
    radial-gradient(circle at 78% 30%, rgba(183, 28, 28, 0.04), transparent 38%),
    rgba(255, 255, 255, 0.46);
  mix-blend-mode: normal;
  -webkit-backdrop-filter: blur(26px) saturate(0.88);
  backdrop-filter: blur(26px) saturate(0.88);
}

body.dark-mode .site-background__grain {
  background: rgba(4, 4, 4, 0.22);
  mix-blend-mode: normal;
}

a {
  color: #ffffff;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

a:visited {
  color: #ffd9d6;
}

a:hover {
  color: #fff1ef;
}

body.light-mode a {
  color: var(--red-dark);
}

body.light-mode a:visited {
  color: #c44949;
}

body.light-mode a:hover {
  color: var(--red-color);
}

.navbar {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  max-width: 1376px;
  margin: 0 auto;
  padding: 16px 24px;
  background-color: var(--red-color);
  color: white;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 40;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  overflow: hidden;
}

body.dark-mode .navbar {
  background-color: rgba(211, 47, 47, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
  backdrop-filter: blur(14px) saturate(112%);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--red-dark), var(--red-dark) 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
  opacity: 0.3;
  z-index: -1;
  transition: all 0.5s ease;
}

.navbar:hover::before {
  opacity: 0.4;
  background: repeating-linear-gradient(-45deg, var(--red-dark), var(--red-dark) 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  direction: ltr;
}

.home-link {
  color: white;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  flex-shrink: 0;
  z-index: 2;
}

.home-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Huninn', sans-serif;
  font-weight: 300;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.author-name {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tagline {
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  opacity: 0.9;
  white-space: nowrap;
}

.logo {
  display: flex;
  align-items: center;
}

.toggle-group {
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}

.theme-toggle, .lang-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  padding: 6px 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  box-sizing: border-box;
}

.theme-toggle {
  width: 36px;
  padding: 0;
}

.lang-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  position: relative;
  flex-shrink: 0;
  border-radius: 18px;
}

.navbar .lang-toggle .lang-option,
.navbar .lang-toggle .lang-option:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  box-sizing: border-box;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Huninn', sans-serif;
  line-height: 1;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.navbar .lang-toggle .lang-option:hover {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

.lang-active {
  background: white;
  color: var(--red-color);
  font-weight: 500;
}

.navbar .lang-toggle .lang-option.lang-active,
.navbar .lang-toggle .lang-option.lang-active:visited,
.navbar .lang-toggle .lang-option.lang-active:hover {
  background: white;
  color: var(--red-color);
  text-decoration: none;
}

.theme-toggle:hover, .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.main-content {
  margin-top: 120px;
  padding: 0 24px;
  flex: 1 0 auto;
  position: relative;
  z-index: 30;
}

footer {
  position: relative;
  z-index: 30;
}

.about-section {
  max-width: 1280px;
  margin: -60px auto 20px;
  padding: 60px 40px 1px;
  background-color: var(--card-bg);
  border-radius: 12px;
  position: relative;
  z-index: 30;
}

body.dark-mode .about-section {
  background-color: rgba(30, 30, 30, 0.68);
  -webkit-backdrop-filter: blur(16px) saturate(108%);
  backdrop-filter: blur(16px) saturate(108%);
}

.about-section h2 {
  font-family: 'Huninn', sans-serif;
  font-weight: 300;
  margin-top: 0;
  color: var(--red-color);
}

.about-section p {
  line-height: 1.6;
  margin-bottom: 1em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 0 100px;
}

.gallery-filter-section {
  max-width: 1360px;
  margin: 0 auto 19px;
}

.gallery-filter-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gallery-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: none;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: none;
  background-color: var(--card-bg);
  background-image: repeating-linear-gradient(
    45deg,
    var(--surface-stripe-a),
    var(--surface-stripe-a) 10px,
    var(--surface-stripe-b) 10px,
    var(--surface-stripe-b) 20px
  );
  color: var(--text-color);
  border: 1px solid var(--glass-edge-border-dark);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 var(--glass-edge-highlight-dark);
  font-family: 'Huninn', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-image 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.dark-mode .gallery-filter-btn {
  background-color: rgba(30, 30, 30, 0.62);
  -webkit-backdrop-filter: blur(12px) saturate(105%);
  backdrop-filter: blur(12px) saturate(105%);
}

.gallery-filter-btn i {
  font-size: 0.9rem;
  line-height: 1;
  flex: 0 0 auto;
}

.gallery-filter-btn span {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 768px) {
  .gallery-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-filter-btn {
    gap: 8px;
    padding: 0 14px;
    font-size: 0.84rem;
  }
  .gallery-filter-btn i {
    font-size: 0.82rem;
  }
}

.gallery-filter-btn:hover {
  transform: translateY(-1px);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--surface-stripe-a-hover),
    var(--surface-stripe-a-hover) 10px,
    var(--surface-stripe-b-hover) 10px,
    var(--surface-stripe-b-hover) 20px
  );
}

.gallery-filter-btn.is-active {
  background-color: var(--red-color);
  background-image: repeating-linear-gradient(
    45deg,
    var(--accent-stripe-a),
    var(--accent-stripe-a) 10px,
    var(--accent-stripe-b) 10px,
    var(--accent-stripe-b) 20px
  );
  color: #fff;
  box-shadow:
    0 12px 22px rgba(123, 28, 28, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.dark-mode .gallery-filter-btn.is-active,
body.dark-mode .gallery-filter-btn.is-active:hover {
  background-color: rgba(211, 47, 47, 0.86);
}

body.light-mode .gallery-filter-btn.is-active,
body.light-mode .gallery-filter-btn.is-active:hover {
  background-color: var(--red-color);
  background-image: repeating-linear-gradient(
    45deg,
    var(--accent-stripe-a),
    var(--accent-stripe-a) 10px,
    var(--accent-stripe-b) 10px,
    var(--accent-stripe-b) 20px
  );
  color: #fff;
}

.gallery-filter-btn.is-active:hover {
  background-color: var(--red-color);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent-stripe-a-hover),
    var(--accent-stripe-a-hover) 10px,
    var(--accent-stripe-b-hover) 10px,
    var(--accent-stripe-b-hover) 20px
  );
}

body.light-mode .gallery-filter-btn.is-active:hover {
  background-color: var(--red-color);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent-stripe-a-hover),
    var(--accent-stripe-a-hover) 10px,
    var(--accent-stripe-b-hover) 10px,
    var(--accent-stripe-b-hover) 20px
  );
}

.gallery-item-filtered {
  display: none !important;
}

.gallery-empty-state {
  max-width: 1360px;
  margin: 0 auto 70px;
  padding: 26px 24px;
  text-align: center;
  background: var(--card-bg);
  border-radius: 12px;
  color: var(--text-color);
}

.gallery-empty-state p {
  margin: 0;
  font-family: 'Huninn', sans-serif;
  font-size: 1rem;
}

.gallery-item {
  --site-browser-chrome-height: 29px;
  --gallery-item-radius: 12px;
  position: relative;
  border-radius: var(--gallery-item-radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(31, 22, 20, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.3s;
  width: 100%;
}

body.light-mode .gallery-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 250, 247, 0.18) 100%),
    rgba(255, 246, 242, 0.26);
  border-color: rgba(145, 57, 57, 0.08);
  box-shadow:
    0 18px 34px rgba(108, 63, 63, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.gallery-item a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.1) 18%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 24%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0.18;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item a::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  border-radius: calc(var(--gallery-item-radius) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 26px rgba(22, 14, 13, 0.14);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .gallery-item a::before {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 18%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 247, 243, 0.08) 24%, rgba(255, 255, 255, 0.03) 100%);
  opacity: 0.22;
}

body.light-mode .gallery-item a::after {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -18px 26px rgba(153, 101, 90, 0.08);
}

.gallery-item .preview-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s;
  background: transparent;
}

.site-browser-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--site-browser-chrome-height);
  min-height: 0;
  padding: 4px 10px;
  box-sizing: border-box;
  background: rgba(248, 244, 242, 0.92);
  color: #4a3d3a;
  border-bottom: 1px solid rgba(70, 52, 48, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.site-browser-chrome__dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.site-browser-chrome__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.site-browser-chrome__dots span:nth-child(1) {
  background: #ff5f57;
}

.site-browser-chrome__dots span:nth-child(2) {
  background: #febc2e;
}

.site-browser-chrome__dots span:nth-child(3) {
  background: #28c840;
}

.site-browser-chrome__address {
  min-width: 0;
  flex: 1 1 auto;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(92, 79, 75, 0.08);
  color: rgba(74, 61, 58, 0.86);
  font-family: 'Huninn', sans-serif;
  font-size: 0.76rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item--site .preview-image {
  top: var(--site-browser-chrome-height);
  bottom: 0;
  height: auto;
  object-position: top center;
  border-radius: 0 0 var(--gallery-item-radius) var(--gallery-item-radius);
}

.gallery-item--site:hover .preview-image {
  transform: none;
}

.work-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-size: 1.2rem;
  font-weight: 300;
  font-family: 'Huninn', sans-serif;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  opacity: 0.95;
  text-align: left;
  z-index: 2;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.34);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 10px,
    rgba(0, 0, 0, 0.05) 10px,
    rgba(0, 0, 0, 0.05) 20px
  );
  border-radius: 4px;
  letter-spacing: 0.8px;
  line-height: 1.3;
  text-transform: uppercase;
  transition: background-color 0.3s ease, background-image 0.3s ease, opacity 0.3s ease;
}

.work-type {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1rem;
  color: white;
  background-color: rgba(30, 30, 30, 0.7);
  padding: 6px 8px;
  border-radius: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

.gallery-item:hover .work-type {
  background-color: var(--red-color) !important;
  color: white !important;
}

.gallery-item:hover .work-type i {
  color: white !important;
}

.external-link-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(211, 47, 47, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.external-link-label i {
  font-size: 0.7rem;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item:hover a::before {
  opacity: 0.24;
}

.gallery-item:hover a::after {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 28px rgba(22, 14, 13, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .work-title {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 10px,
    rgba(0, 0, 0, 0.065) 10px,
    rgba(0, 0, 0, 0.065) 20px
  );
}

footer {
  background-color: var(--red-color);
  padding: 60px 24px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 30px;
}

body.dark-mode footer {
  background-color: rgba(211, 47, 47, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  backdrop-filter: blur(16px) saturate(110%);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--red-dark), var(--red-dark) 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
  opacity: 0.3;
  z-index: 1;
  transition: all 0.5s ease;
}

footer:hover::before {
  opacity: 0.4;
  background: repeating-linear-gradient(-45deg, var(--red-dark), var(--red-dark) 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.social-icon {
  font-size: 1.25rem;
  color: white;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: color 0.3s;
}

.social-icon:hover {
  color: rgba(255,255,255,0.7);
}

footer a.social-icon,
footer a.social-icon:visited,
body.light-mode footer a.social-icon,
body.light-mode footer a.social-icon:visited {
  color: #ffffff;
}

footer a.social-icon:hover,
body.light-mode footer a.social-icon:hover {
  color: rgba(255,255,255,0.78);
}

.copyright {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  font-family: 'Huninn', sans-serif;
  letter-spacing: 0.5px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.footer-legal-link {
  color: rgba(255,255,255,0.9);
  font-family: 'Huninn', sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal-link:hover {
  color: #ffffff;
}

body.light-mode .footer-legal-link,
body.light-mode .footer-legal-link:visited {
  color: rgba(255, 241, 239, 0.92);
}

body.light-mode .footer-legal-link:hover {
  color: #ffffff;
}

.lang-ru, .lang-en, .lang-ar {
  display: none;
}

.lang-ru.show, .lang-en.show, .lang-ar.show {
  display: block;
}

.about-section {
  position: relative;
  overflow: hidden;
}

.stripes-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--red-color), var(--red-color) 10px, var(--red-dark) 10px, var(--red-dark) 20px);
  opacity: 0.1;
  z-index: 1;
  transition: all 0.5s ease;
}

.about-section:hover .stripes-bg {
  opacity: 0.15;
  background: repeating-linear-gradient(-45deg, var(--red-color), var(--red-color) 10px, var(--red-dark) 10px, var(--red-dark) 20px);
}

body.public-work-page .project-description.about-section {
  background-color: var(--card-bg) !important;
  position: relative !important;
  overflow: hidden !important;
}

body.public-work-page .project-description.about-section .stripes-bg {
  background: repeating-linear-gradient(
    45deg,
    var(--red-color),
    var(--red-color) 10px,
    var(--red-dark) 10px,
    var(--red-dark) 20px
  ) !important;
  opacity: 0.1 !important;
  transition: all 0.5s ease !important;
}

body.public-work-page .project-description.about-section:hover .stripes-bg {
  background: repeating-linear-gradient(
    -45deg,
    var(--red-color),
    var(--red-color) 10px,
    var(--red-dark) 10px,
    var(--red-dark) 20px
  ) !important;
  opacity: 0.15 !important;
}

.profile-photo-container img:hover {
  transform: scale(1.05);
}

.about-text {
  font-family: 'Huninn', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 20px;
}

body[lang="ar"] {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

body[lang="ar"] .about-text,
body[lang="ar"] .work-title,
body[lang="ar"] .copyright {
  font-family: 'Cairo', sans-serif;
}

body[lang="ar"] .work-title {
  text-align: right;
}

body[lang="ar"] .work-type {
  right: auto;
  left: 16px;
}

body[lang="ar"] .external-link-label {
  left: auto;
  right: 16px;
}

.about-page {
  max-width: 1360px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.about-page__shell {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.about-page-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(30, 18, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

body.dark-mode .about-page-card {
  background: rgba(30, 18, 20, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(108%);
  backdrop-filter: blur(16px) saturate(108%);
}

body.light-mode .about-page-card {
  background: rgba(255, 245, 243, 0.94);
  border-color: rgba(155, 52, 52, 0.08);
}

.about-page__hero {
  padding: 58px 52px 54px;
}

.about-page__hero .stripes-bg,
.about-page-card--section .stripes-bg,
.about-page__cta .stripes-bg {
  opacity: 0.08;
}

.about-page__hero:hover .stripes-bg,
.about-page-card--section:hover .stripes-bg,
.about-page__cta:hover .stripes-bg {
  opacity: 0.14;
}

.about-page__hero-inner,
.about-page-card__inner,
.about-page__cta-inner {
  position: relative;
  z-index: 2;
}

.about-page__eyebrow {
  margin: 0 0 14px;
  font-family: 'Huninn', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 214, 206, 0.9);
}

body.light-mode .about-page__eyebrow {
  color: rgba(141, 43, 43, 0.78);
}

.about-page__title {
  margin: 0;
  max-width: 980px;
  font-family: 'Huninn', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: #fff4f1;
}

body.light-mode .about-page__title {
  color: #2b2222;
}

.about-page__lead {
  max-width: 900px;
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.about-page__lead p,
.about-page-card__lead,
.about-page-card__after,
.about-page__cta-inner p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.8;
  color: rgba(255, 245, 242, 0.9);
}

body.light-mode .about-page__lead p,
body.light-mode .about-page-card__lead,
body.light-mode .about-page-card__after,
body.light-mode .about-page__cta-inner p {
  color: rgba(38, 29, 29, 0.84);
}

.about-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-page-card__inner {
  padding: 34px 34px 30px;
}

.about-page-card__inner h2,
.about-page__cta-inner h2 {
  margin: 0 0 18px;
  font-family: 'Huninn', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.05;
  color: var(--red-color);
}

.about-page-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-page-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 245, 242, 0.94);
}

body.light-mode .about-page-list li {
  color: rgba(34, 26, 26, 0.92);
}

.about-page-list li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red-color);
  box-shadow: 0 0 0 6px rgba(211, 47, 47, 0.16);
  transform: translateY(-50%);
}

.about-page__cta {
  padding: 38px 42px;
}

.about-page__cta-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.about-page__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[lang="ar"] .about-page__hero,
body[lang="ar"] .about-page-card__inner,
body[lang="ar"] .about-page__cta {
  text-align: right;
}

body[lang="ar"] .about-page__eyebrow,
body[lang="ar"] .about-page__title,
body[lang="ar"] .about-page-card__inner h2,
body[lang="ar"] .about-page__cta-inner h2 {
  font-family: 'Cairo', sans-serif;
}

body[lang="ar"] .about-page-list li {
  padding-left: 0;
  padding-right: 26px;
}

body[lang="ar"] .about-page-list li::before {
  left: auto;
  right: 0;
}

/* Основные изменения для мобильной версии */
@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 80px;
  }
  .work-title {
    font-size: 1.1rem;
  }
  .navbar {
    padding: 14px 18px;
  }
  .navbar-content {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .main-content {
    margin-top: 150px;
  }
  .about-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }
  .logo-group {
    gap: 16px;
    left: 30%;
    transform: translateX(-30%);
  }
  .author-name, .tagline {
    font-size: 1rem;
  }
  .theme-toggle, .lang-toggle {
    font-size: 1rem;
  }
  .about-section {
    padding: 60px 24px 5px;
  }
  .about-page__hero {
    padding: 42px 26px 38px;
  }
  .about-page-card__inner,
  .about-page__cta {
    padding: 26px 22px;
  }
  .about-page__lead p,
  .about-page-card__lead,
  .about-page-card__after,
  .about-page__cta-inner p,
  .about-page-list li {
    font-size: 0.96rem;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
    padding-bottom: 60px;
  }
  .work-title {
    font-size: 1rem;
    letter-spacing: 0.6px;
  }
  .main-content {
    margin-top: 100px;
  }
  .logo img {
    height: 32px;
  }
  .home-link {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .about-section {
    padding: 50px 20px 1px;
    margin-top: -40px;
  }
  .toggle-group {
    gap: 6px;
  }
  .theme-toggle, .lang-toggle {
    height: 32px;
  }
  .lang-toggle {
    padding: 4px;
    border-radius: 16px;
  }
  .navbar .lang-toggle .lang-option,
  .navbar .lang-toggle .lang-option:visited {
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
  .logo-group {
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .author-name, .tagline {
    display: none !important;
  }
  .logo-group {
    position: static;
    transform: none;
    margin: 0 auto;
    width: auto;
    flex-grow: 1;
    justify-content: center;
    order: 2;
  }
  .navbar-content {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .home-link {
    order: 1;
    flex-shrink: 0;
  }
  .toggle-group {
    order: 3;
    flex-shrink: 0;
  }
  .main-content {
    margin-top: 100px;
  }
}

@media (max-width: 480px) {
  .navbar {
    top: 16px;
    left: 10px;
    right: 10px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .navbar-content {
    gap: 8px;
    align-items: center;
  }
  .logo-group {
    min-width: 0;
    gap: 0;
  }
  .logo img {
    height: 26px !important;
  }
  .home-link,
  .theme-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
  .home-link svg {
    width: 14px;
    height: 14px;
  }
  .toggle-group {
    gap: 5px;
  }
  .theme-toggle,
  .lang-toggle {
    height: 28px;
    border-radius: 14px;
  }
  .lang-toggle {
    padding: 3px;
    gap: 2px;
  }
  .navbar .lang-toggle .lang-option,
  .navbar .lang-toggle .lang-option:visited {
    min-width: 31px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    font-size: 0.74rem;
  }
  .theme-toggle .fas {
    font-size: 0.82rem;
  }
  .main-content {
    margin-top: 90px;
    padding: 0 16px;
  }
}

@media (max-width: 390px) {
  .navbar {
    left: 8px;
    right: 8px;
    padding: 9px 10px;
  }
  .navbar-content {
    gap: 6px;
  }
  .logo img {
    height: 24px !important;
  }
  .home-link,
  .theme-toggle {
    width: 26px;
    height: 26px;
  }
  .home-link svg {
    width: 13px;
    height: 13px;
  }
  .theme-toggle,
  .lang-toggle {
    height: 26px;
    border-radius: 13px;
  }
  .lang-toggle {
    padding: 2px;
  }
  .navbar .lang-toggle .lang-option,
  .navbar .lang-toggle .lang-option:visited {
    min-width: 29px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.72rem;
  }
  .toggle-group {
    gap: 4px;
  }
  .main-content {
    margin-top: 86px;
    padding: 0 12px;
  }
}

/* Иконки темы */
.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon  { display: inline-block; }

body.dark-mode .sun-icon  { display: none; }
body.dark-mode .moon-icon { display: inline-block; }

body.light-mode .sun-icon  { display: inline-block; }
body.light-mode .moon-icon { display: none; }
html {
  scroll-behavior: smooth;
}

.hero-card {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 6px 8px 14px;
}

.hero-title {
  margin: 0;
  font-family: 'Huninn', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.2px;
  color: var(--text-color);
  text-align: center;
}

.hero-title-accent {
  color: var(--red-color);
}

.hero-subtitle {
  margin: 0;
  max-width: 620px;
  font-family: 'Huninn', sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  line-height: 1.35;
  color: rgba(245, 245, 245, 0.72);
}

body.light-mode .hero-subtitle {
  color: rgba(33, 33, 33, 0.72);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-contact-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

.hero-contact-link {
  width: 57px;
  height: 57px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border: none;
  background: transparent;
  font-size: 1.65rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.light-mode .hero-contact-link {
  color: var(--red-color);
}

.hero-contact-link:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.hero-contact-link.lang-ru,
.hero-contact-link.lang-en,
.hero-contact-link.lang-ar {
  display: none;
}

.hero-contact-link.lang-ru.show,
.hero-contact-link.lang-en.show,
.hero-contact-link.lang-ar.show {
  display: inline-flex;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-edge-border-dark);
  text-decoration: none;
  font-family: 'Huninn', sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 var(--glass-edge-highlight-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

/* Keep language-specific CTA buttons hidden until their language gets `.show`. */
.hero-btn.lang-ru,
.hero-btn.lang-en,
.hero-btn.lang-ar {
  display: none;
}

.hero-btn.lang-ru.show,
.hero-btn.lang-en.show,
.hero-btn.lang-ar.show {
  display: inline-flex;
}

.btn-primary {
  background-color: var(--red-color);
  background-image: repeating-linear-gradient(
    45deg,
    var(--accent-stripe-a),
    var(--accent-stripe-a) 10px,
    var(--accent-stripe-b) 10px,
    var(--accent-stripe-b) 20px
  );
  color: #fff;
}

body.light-mode .btn-primary,
body.light-mode .btn-primary:visited,
body.light-mode .hero-btn.btn-primary,
body.light-mode .hero-btn.btn-primary:visited,
body.light-mode a.btn-primary,
body.light-mode a.btn-primary:visited,
body.light-mode a.hero-btn.btn-primary,
body.light-mode a.hero-btn.btn-primary:visited,
body.light-mode a.btn-primary:hover,
body.light-mode a.hero-btn.btn-primary:hover {
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent-stripe-a-hover),
    var(--accent-stripe-a-hover) 10px,
    var(--accent-stripe-b-hover) 10px,
    var(--accent-stripe-b-hover) 20px
  );
  box-shadow: 0 5px 14px rgba(211, 47, 47, 0.35);
}

.btn-secondary {
  background-color: var(--card-bg);
  background-image: repeating-linear-gradient(
    45deg,
    var(--surface-stripe-a),
    var(--surface-stripe-a) 10px,
    var(--surface-stripe-b) 10px,
    var(--surface-stripe-b) 20px
  );
  color: var(--text-color);
  border: 1px solid var(--surface-button-border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--surface-button-border-hover);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--surface-stripe-a-hover),
    var(--surface-stripe-a-hover) 10px,
    var(--surface-stripe-b-hover) 10px,
    var(--surface-stripe-b-hover) 20px
  );
}

.request-form {
  max-width: 760px;
  margin: 10px auto 14px;
  padding: 0;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.request-form--modal {
  margin: 0;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.light-mode .request-form {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.light-mode .btn-secondary {
  border-color: rgba(211, 47, 47, 0.22);
}

body.light-mode .btn-secondary:hover {
  border-color: rgba(211, 47, 47, 0.36);
}

.request-form-title {
  margin: 0;
  text-align: left;
  font-family: 'Huninn', sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  color: var(--red-color);
  line-height: 1.02;
}

.request-form-note {
  margin: 12px 0 0;
  text-align: left;
  max-width: 560px;
  color: rgba(245, 245, 245, 0.76);
  font-family: 'Huninn', sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.request-form-status {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: 'Huninn', sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}

.request-form-status--success {
  background: rgba(50, 180, 105, 0.14);
  color: #c6f0d5;
}

.request-form-status--error {
  background: rgba(211, 47, 47, 0.16);
  color: #ffd2ce;
}

body.light-mode .request-form-status--success {
  color: #205f38;
}

body.light-mode .request-form-status--error {
  color: #7f251d;
}

body.light-mode .request-form-note {
  color: rgba(43, 27, 25, 0.72);
}

body.light-mode .request-consent {
  background-color: rgba(255, 255, 255, 0.58);
}

body.light-mode .request-consent input[type="checkbox"] {
  border-color: rgba(43, 27, 25, 0.22);
  background: rgba(255, 255, 255, 0.7);
}

body.light-mode .request-consent span {
  color: rgba(43, 27, 25, 0.88);
}

body.light-mode .request-consent a {
  color: var(--red-dark);
}

body.light-mode .request-consent a:hover {
  color: var(--red-color);
}

.request-form-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.request-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-field span {
  font-family: 'Huninn', sans-serif;
  font-size: 0.84rem;
  color: rgba(245, 245, 245, 0.82);
}

.request-captcha-prompt {
  display: inline-block;
  margin-inline-start: 8px;
  color: #ffd6d2;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.request-captcha-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.request-captcha-choice {
  appearance: none;
  width: 100%;
  min-height: 86px;
  border: 1px solid rgba(255, 236, 230, 0.12);
  border-radius: 18px;
  background: rgba(53, 39, 35, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.request-captcha-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 208, 0.26);
  background: rgba(68, 47, 42, 0.54);
}

.request-captcha-choice:focus-visible {
  outline: none;
  border-color: rgba(255, 215, 208, 0.52);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.18);
}

.request-captcha-choice.is-selected {
  border-color: rgba(255, 224, 218, 0.56);
  background: rgba(85, 52, 46, 0.62);
  box-shadow: 0 16px 32px rgba(17, 8, 8, 0.16);
}

.request-captcha-choice__blob {
  width: clamp(42px, 7vw, 60px);
  height: clamp(42px, 7vw, 60px);
  border-radius: var(--captcha-blob-radius, 58% 42% 51% 49% / 43% 56% 44% 57%);
  transform: rotate(var(--captcha-blob-rotate, -11deg));
  background:
    radial-gradient(circle at 30% 28%, var(--captcha-blob-highlight, rgba(255, 243, 238, 0.92)) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(155deg, var(--captcha-blob-base, #d85a5d) 0%, var(--captcha-blob-deep, #8f252f) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 28px var(--captcha-blob-shadow, rgba(128, 28, 37, 0.38));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-captcha-choice.is-selected .request-captcha-choice__blob,
.request-captcha-choice:hover .request-captcha-choice__blob {
  transform: rotate(var(--captcha-blob-rotate, -11deg)) scale(1.04);
}

body.light-mode .request-field span {
  color: rgba(43, 27, 25, 0.88);
}

body.light-mode .request-captcha-prompt {
  color: var(--red-dark);
}

body.light-mode .request-captcha-choice {
  border-color: rgba(141, 43, 43, 0.1);
  background: rgba(255, 255, 255, 0.36);
}

body.light-mode .request-captcha-choice:hover {
  border-color: rgba(141, 43, 43, 0.22);
  background: rgba(255, 255, 255, 0.56);
}

body.light-mode .request-captcha-choice.is-selected {
  border-color: rgba(141, 43, 43, 0.34);
  background: rgba(255, 248, 247, 0.78);
  box-shadow: 0 16px 30px rgba(136, 59, 59, 0.12);
}

.request-field input,
.request-field textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(255, 236, 230, 0.12);
  background: rgba(53, 39, 35, 0.52);
  color: var(--text-color);
  padding: 13px 15px;
  font-size: 0.95rem;
  line-height: 1.45;
  font-family: 'Huninn', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.light-mode .request-field input,
body.light-mode .request-field textarea {
  border-color: rgba(141, 43, 43, 0.1);
  background: rgba(255, 255, 255, 0.34);
}

.request-field input:focus,
.request-field textarea:focus {
  border-color: var(--red-color);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.18);
  background: rgba(66, 47, 42, 0.62);
  transform: translateY(-1px);
}

.request-field input::placeholder,
.request-field textarea::placeholder {
  color: rgba(245, 245, 245, 0.42);
}

body.light-mode .request-field input::placeholder,
body.light-mode .request-field textarea::placeholder {
  color: rgba(43, 27, 25, 0.42);
}

body.light-mode .request-field input:focus,
body.light-mode .request-field textarea:focus {
  background: rgba(255, 255, 255, 0.44);
}

.request-field-full {
  grid-column: 1 / -1;
}

.request-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(48, 35, 31, 0.5);
  border: 1px solid rgba(255, 236, 230, 0.08);
}

body.light-mode .request-consent {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(145, 57, 57, 0.08);
}

.request-consent input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1px solid var(--surface-button-border-hover);
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.request-consent input[type="checkbox"]:hover {
  transform: translateY(-1px);
}

.request-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(211, 47, 47, 0.36);
  outline-offset: 2px;
}

.request-consent input[type="checkbox"]:checked {
  border-color: rgba(255, 255, 255, 0.24);
  background-color: var(--red-color);
}

.request-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.request-consent > span {
  display: block;
  font-family: 'Huninn', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.9);
}

.request-consent a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.request-consent a:hover {
  color: #ffd9d6;
}

.request-submit {
  width: fit-content;
  min-width: 180px;
  justify-self: start;
  margin-top: 4px;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.request-modal.is-open {
  display: flex;
}

.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.request-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 236, 230, 0.1);
  background:
    linear-gradient(180deg, rgba(78, 55, 48, 0.16) 0%, rgba(51, 36, 32, 0.14) 100%),
    rgba(21, 15, 14, 0.74);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 240, 236, 0.12);
  padding: 28px 28px 24px;
}

body.dark-mode .request-modal__dialog {
  background:
    linear-gradient(180deg, rgba(78, 55, 48, 0.13) 0%, rgba(51, 36, 32, 0.11) 100%),
    rgba(21, 15, 14, 0.6);
}

.request-modal__dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #d32f2f 0%, #ef5350 100%);
  z-index: 0;
}

body.light-mode .request-modal__dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 246, 242, 0.3) 100%),
    rgba(255, 244, 240, 0.18);
  border-color: rgba(145, 57, 57, 0.1);
  box-shadow:
    0 32px 80px rgba(75, 33, 33, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.light-mode .request-modal__close {
  border-color: rgba(145, 57, 57, 0.1);
  background: rgba(255, 255, 255, 0.3);
}

.request-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 236, 230, 0.08);
  border-radius: 50%;
  background: rgba(58, 42, 38, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-color);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-image 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.request-modal__close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

body.request-modal-open {
  overflow: hidden;
}

html[lang="ar"] .hero-title,
html[lang="ar"] .hero-subtitle,
html[lang="ar"] .request-form-title,
html[lang="ar"] .request-form-note,
html[lang="ar"] .request-field span,
html[lang="ar"] .hero-btn {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .hero-title {
  text-align: center;
}

html[lang="ar"] .request-form {
  text-align: right;
}

html[lang="ar"] .request-form-title,
html[lang="ar"] .request-form-note,
html[lang="ar"] .request-form-status {
  text-align: right;
}

html[lang="ar"] .request-field input,
html[lang="ar"] .request-field textarea {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .request-consent span {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .request-submit {
  justify-self: end;
}

html[lang="ar"] .request-captcha-prompt {
  margin-inline-start: 0;
  margin-inline-end: 8px;
}

html[lang="ar"] .request-modal__close {
  margin-left: 0;
  margin-right: auto;
  right: auto;
  left: 16px;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .hero-btn {
    width: min(100%, 560px);
    min-width: 0;
    margin-inline: auto;
  }

  .request-form {
    padding: 20px 16px;
  }

  .request-modal__dialog {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .request-form-grid {
    grid-template-columns: 1fr;
  }

  .request-modal__close {
    top: 12px;
    right: 12px;
  }

  html[lang="ar"] .request-modal__close {
    right: auto;
    left: 12px;
  }

  .request-field-full {
    grid-column: auto;
  }

  .request-submit {
    width: 100%;
  }
}

.legal-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 30px;
}

.legal-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px 32px;
  background-color: var(--card-bg);
  background-image: repeating-linear-gradient(
    45deg,
    var(--surface-stripe-a),
    var(--surface-stripe-a) 10px,
    var(--surface-stripe-b) 10px,
    var(--surface-stripe-b) 20px
  );
}

body.dark-mode .legal-shell {
  background-color: rgba(30, 30, 30, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(106%);
  backdrop-filter: blur(16px) saturate(106%);
}

.legal-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  pointer-events: none;
}

.legal-hero {
  position: relative;
  z-index: 1;
  padding: 30px 30px 28px;
  border-radius: 24px;
  background-color: var(--red-color);
  color: #fff;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, var(--red-dark), var(--red-dark) 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
  opacity: 0.3;
  transition: all 0.5s ease;
}

.legal-hero:hover::before {
  opacity: 0.4;
  background: repeating-linear-gradient(-45deg, var(--red-dark), var(--red-dark) 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
}

.legal-hero > * {
  position: relative;
  z-index: 1;
}

.legal-kicker {
  margin: 0 0 14px;
  font-family: 'Huninn', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 235, 235, 0.92);
}

.legal-title {
  margin: 0;
  font-family: 'Huninn', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 0.95;
  color: #fff;
}

.legal-lead {
  max-width: 860px;
  margin: 18px 0 0;
  font-family: 'Huninn', sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 238, 238, 0.92);
}

.legal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.legal-card {
  padding: 24px 24px 22px;
  border-radius: 22px;
  background-color: rgba(255,255,255,0.03);
  background-image: repeating-linear-gradient(
    45deg,
    var(--surface-stripe-a),
    var(--surface-stripe-a) 10px,
    var(--surface-stripe-b) 10px,
    var(--surface-stripe-b) 20px
  );
}

body.dark-mode .legal-card {
  background-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px) saturate(104%);
  backdrop-filter: blur(10px) saturate(104%);
}

.legal-card--full {
  grid-column: 1 / -1;
}

.legal-card h2 {
  margin: 0 0 14px;
  font-family: 'Huninn', sans-serif;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--red-color);
}

.legal-card p,
.legal-card li {
  margin: 0 0 12px;
  font-family: 'Huninn', sans-serif;
  font-size: 0.98rem;
  line-height: 1.68;
  color: rgba(245, 245, 245, 0.88);
}

.legal-card p:last-child,
.legal-card li:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-card ul + p {
  margin-top: 12px;
}

.legal-card li {
  position: relative;
  padding-left: 22px;
}

.legal-card li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-color);
}

.legal-card a,
.legal-lead a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-family: 'Huninn', sans-serif;
  font-size: 0.92rem;
  color: rgba(245, 245, 245, 0.66);
}

body.light-mode .legal-card {
  background-color: rgba(255,255,255,0.62);
}

body.light-mode .legal-card p,
body.light-mode .legal-card li,
body.light-mode .legal-updated {
  color: rgba(43, 27, 25, 0.84);
}

body.light-mode .legal-shell {
  background-color: #fff7f5;
}

html[lang="ar"] .legal-title,
html[lang="ar"] .legal-kicker,
html[lang="ar"] .legal-lead,
html[lang="ar"] .legal-card h2,
html[lang="ar"] .legal-card p,
html[lang="ar"] .legal-card li,
html[lang="ar"] .legal-updated {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

html[lang="ar"] .legal-card li {
  padding-left: 0;
  padding-right: 22px;
}

html[lang="ar"] .legal-card li::before {
  left: auto;
  right: 0;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-card--full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .legal-page {
    padding: 0 12px 24px;
  }

  .legal-shell {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .legal-hero {
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .legal-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    width: min(100%, 320px);
    max-width: 320px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.12;
    max-width: 11ch;
    margin-inline: auto;
    text-wrap: balance;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4.6vw, 1.18rem);
    line-height: 1.45;
    max-width: 19ch;
    margin-inline: auto;
    text-wrap: balance;
  }

  .hero-actions {
    width: min(100%, 300px);
    max-width: 300px;
  }

  .hero-btn {
    max-width: 300px;
    min-height: 34px;
    font-size: 0.82rem;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: clamp(1.86rem, 8.4vw, 2.28rem);
    max-width: 10.5ch;
  }

  .hero-subtitle {
    font-size: clamp(0.96rem, 4.2vw, 1.08rem);
    max-width: 18ch;
  }

  .hero-actions {
    width: min(100%, 286px);
    max-width: 286px;
  }

  .hero-btn {
    max-width: 286px;
    min-height: 33px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .hero-btn {
    width: min(260px, 100%) !important;
    max-width: 260px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    align-self: center !important;
  }
}

@media (max-width: 480px) {
  .hero-btn {
    width: min(248px, 100%) !important;
    max-width: 248px !important;
  }
}

@media (max-width: 390px) {
  .hero-btn {
    width: min(236px, 100%) !important;
    max-width: 236px !important;
  }
}
