/*
Theme Name: Januss Blocks
Theme URI: https://januss.lv
Author: Januss
Description: Custom Gutenberg block theme for Januss Juristi.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: januss-blocks
*/

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --primary: hsl(215, 45%, 18%);
  --primary-light: hsl(215, 40%, 28%);
  --primary-dark: hsl(215, 50%, 10%);
  --accent: hsl(38, 62%, 53%);
  --accent-light: hsl(38, 62%, 63%);
  --accent-dark: hsl(38, 70%, 40%);
  --bg: hsl(30, 20%, 98%);
  --surface: hsl(0, 0%, 100%);
  --surface-muted: hsl(210, 15%, 96%);
  --text-dark: hsl(215, 30%, 15%);
  --text-muted: hsl(215, 12%, 45%);
  --text-light: hsl(0, 0%, 95%);
  --border-color: hsl(215, 15%, 90%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(22, 28, 45, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 28, 45, 0.12);
  --shadow-gold: 0 8px 24px hsla(38, 62%, 53%, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
  --header-shrink-height: 70px;
  --container-width: 1200px;
  --border-radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-shrink-height);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container,
.nav-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: rgba(5, 5, 5, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  height: var(--header-shrink-height);
  background-color: rgba(5, 5, 5, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-img {
  width: auto;
  height: 42px;
  transition: transform var(--transition-smooth);
}

.site-header.scrolled .logo-img {
  transform: scale(0.95);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav ul,
.footer-links ul {
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggler {
  display: none;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggler span,
.nav-toggler span::before,
.nav-toggler span::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all var(--transition-fast);
}

.nav-toggler span {
  position: relative;
}

.nav-toggler span::before,
.nav-toggler span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggler span::before {
  top: -6px;
}

.nav-toggler span::after {
  top: 6px;
}

.nav-toggler.active span {
  background-color: transparent;
}

.nav-toggler.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggler.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

.language-links {
  display: inline-flex;
  gap: 8px;
}

.language-links a {
  padding: 6px 12px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-links a:hover,
.language-links a[aria-current='true'] {
  color: var(--accent-light);
  border-color: var(--accent);
}

.hero-section {
  --mouse-x: 0;
  --mouse-y: 0;
  position: relative;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  max-width: 100vw;
  padding: 132px 16px 48px;
  background: #050505;
  color: white;
  user-select: none;
}

@supports (height: 100dvh) {
  .hero-section {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }
}

body.admin-bar .hero-section {
  height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
  max-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@supports (height: 100dvh) {
  body.admin-bar .hero-section {
    height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
  }
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.4;
  pointer-events: none;
}

.hero-crosshair {
  position: absolute;
  z-index: 1;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.hero-crosshair::before,
.hero-crosshair::after {
  content: '';
  position: absolute;
  background-color: rgba(255, 255, 255, 0.28);
}

.hero-crosshair::before {
  width: 100%;
  height: 1px;
}

.hero-crosshair::after {
  width: 1px;
  height: 100%;
}

.hero-crosshair span {
  width: 6px;
  height: 6px;
  background-color: #f7ce46;
  border-radius: 50%;
}

.hero-crosshair-one {
  top: 22%;
  left: 15%;
  transform: translate(calc(var(--mouse-x) * 25px), calc(var(--mouse-y) * 25px));
}

.hero-crosshair-two {
  right: 8%;
  bottom: 30%;
  transform: translate(calc(var(--mouse-x) * -35px), calc(var(--mouse-y) * -35px));
}

.hero-coordinates {
  position: absolute;
  top: 86px;
  left: 32px;
  z-index: 1;
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.15);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-statue {
  position: absolute;
  right: clamp(0px, 3.5vw, 86px);
  bottom: -8%;
  z-index: 0;
  width: min(56vw, 940px);
  height: 112vh;
  pointer-events: none;
  transform: translate(calc(var(--mouse-x) * 40px), calc(var(--mouse-y) * 30px));
  transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.hero-statue video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.86;
  filter: contrast(1) brightness(0.96);
  mix-blend-mode: screen;
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
  -webkit-mask-image: radial-gradient(ellipse at 50% 58%, rgb(0, 0, 0) 58%, rgba(0, 0, 0, 0.78) 72%, transparent 96%);
  mask-image: radial-gradient(ellipse at 50% 58%, rgb(0, 0, 0) 58%, rgba(0, 0, 0, 0.78) 72%, transparent 96%);
}

.hero-section.cta-hovered .hero-statue video {
  opacity: 1;
  filter: drop-shadow(0 0 100px rgba(0, 0, 0, 0.826)) contrast(1.1) brightness(1.5);
  transform: scale(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, #050505 0%, transparent 98%, rgba(5, 5, 5, 0.82) 80%);
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  width: min(100%, 820px);
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3.05rem, 7vw, 5.9rem);
  font-weight: 500;
  line-height: 1.19;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(180deg, #fff 0%, #fff 58%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-wrap: balance;
  animation: heroTextReveal 1050ms cubic-bezier(0.16, 1, 0.3, 1) 320ms both;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 560px;
  margin: 18px auto 0;
  color: rgb(156, 163, 175);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  animation: heroTextReveal 1050ms cubic-bezier(0.16, 1, 0.3, 1) 430ms both;
}

.hero-orbit {
  display: none;
}

.hero-orbit span {
  display: none;
}

.hero-orbit span:nth-child(1) { width: 430px; height: 430px; }
.hero-orbit span:nth-child(2) { width: 306px; height: 306px; }
.hero-orbit span:nth-child(3) { width: 190px; height: 190px; }

.hero-cta {
  position: absolute;
  bottom: 52px;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  color: #050505;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(247, 206, 70, 0.35);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  animation: heroCtaReveal 800ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #ebc238;
  box-shadow: 0 0 35px rgba(247, 206, 70, 0.5);
  outline: none;
  transform: translateX(-50%) scale(1.05);
}

.button-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-reveal] {
  --reveal-y: 42px;
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-tag,
.section-tag-light {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-tag-light {
  color: var(--accent-light);
  border-bottom: 0;
}

.section-title {
  margin: 0 0 20px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-section,
.team-section,
.contacts-section {
  padding: 100px 0;
}

.services-section {
  background-color: var(--bg);
}

.team-section {
  background-color: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.service-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 40px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent);
  transition: height var(--transition-smooth);
}

.service-card:hover {
  border-color: hsla(38, 62%, 53%, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon-wrapper {
  position: relative;
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-shape {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-shape {
  opacity: 0.25;
  transform: rotate(45deg) scale(1.1);
}

.service-number {
  z-index: 1;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.service-card-title {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.team-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background-color: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.team-card:hover {
  border-color: hsla(215, 45%, 18%, 0.1);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.team-img-container {
  height: 380px;
  overflow: hidden;
  background-color: var(--surface-muted);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.team-name {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.6rem;
}

.team-role {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-bio {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.team-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.team-contact-link:hover {
  color: var(--accent-dark);
}

.contact-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.contacts-section {
  position: relative;
  overflow: hidden;
  color: white;
  background-color: var(--primary-dark);
}

.contacts-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacts-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacts-title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.2;
}

.contacts-subtitle {
  max-width: 500px;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.contacts-info-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.icon-circle {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.contact-svg-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.info-text h3 {
  margin: 0 0 4px;
  color: var(--accent-light);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.info-text a:hover {
  color: var(--accent-light);
}

.contacts-form-card {
  padding: 50px;
  color: var(--text-dark);
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.form-title {
  margin: 0 0 30px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.8rem;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(212, 166, 67, 0.3);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-dark);
  background: linear-gradient(135deg, rgba(212, 166, 67, 0.12), rgba(247, 248, 251, 0.96));
  box-shadow: 0 10px 26px rgba(22, 28, 45, 0.08);
}

.form-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.25;
}

.form-notice span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-notice-sent {
  border-color: rgba(22, 163, 74, 0.34);
  border-left-color: #16a34a;
}

.form-notice-failed,
.form-notice-invalid {
  border-color: rgba(220, 38, 38, 0.34);
  border-left-color: #dc2626;
}

.januss-hp-field {
  display: none !important;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 16px 0 8px;
  color: var(--text-dark);
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid var(--border-color);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-bottom-color: var(--accent);
  outline: none;
}

.form-label {
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
  top: -10px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

textarea.form-control {
  resize: vertical;
}

.form-agreement {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-agreement a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: white;
  background-color: var(--primary);
  border: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-smooth);
}

.btn-submit:hover {
  background-color: var(--accent);
  box-shadow: var(--shadow-gold);
}

.map-section {
  background-color: var(--bg);
}

.map-container {
  position: relative;
  filter: grayscale(0.2) contrast(1.1);
}

.map-container iframe {
  display: block;
  width: 100%;
  min-height: 450px;
  border: 0;
}

.policy-page {
  padding-top: var(--header-height);
  background: var(--bg);
}

.policy-hero {
  padding: 76px 0 52px;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.policy-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
}

.policy-subtitle {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.policy-content-section {
  padding: 64px 0;
}

.container-narrow {
  max-width: 800px;
}

.policy-card {
  padding: 48px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.policy-block {
  margin-bottom: 24px;
}

.policy-block h3,
.policy-text h3,
.policy-content h3 {
  color: var(--primary);
  font-family: var(--font-heading);
}

.policy-divider {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

.policy-text h3,
.policy-content h3 {
  margin: 32px 0 12px;
  font-size: 1.45rem;
}

.policy-text p,
.policy-text li,
.policy-content p,
.policy-content li {
  color: var(--text-muted);
}

.policy-text p,
.policy-content p {
  margin-bottom: 16px;
}

.policy-text ul,
.policy-content ul {
  margin: 0 0 18px 22px;
  padding-left: 0;
  list-style: disc;
}

.policy-text ul ul,
.policy-content ul ul {
  margin-top: 8px;
  list-style: circle;
}

.policy-text a,
.policy-content a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.policy-footer-action {
  margin-top: 40px;
}

.policy-footer-action .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  color: var(--primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-smooth);
}

.policy-footer-action .btn-secondary:hover {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.footer {
  padding: 60px 0;
  color: rgba(255, 255, 255, 0.7);
  background-color: hsl(215, 50%, 10%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  width: auto;
  height: 36px;
  margin-bottom: 12px;
  filter: brightness(1.2);
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
}

.footer-links ul {
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-light);
}

@keyframes heroCtaReveal {
  from { opacity: 0; transform: translateX(-50%) translateY(42px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes heroTextReveal {
  from { opacity: 0; transform: translateY(42px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 992px) {
  html { font-size: 15px; }

  .contacts-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts-form-card {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .nav-toggler {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: max-height var(--transition-smooth);
  }

  .site-header.scrolled .nav {
    top: var(--header-shrink-height);
  }

  .nav.open {
    max-height: 420px;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 8px;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link::after {
    display: none;
  }

  .language-links {
    padding: 8px 24px 20px;
  }

  .hero-section {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: calc(var(--header-height) + 14px) 18px max(18px, env(safe-area-inset-bottom));
  }

  @supports (height: 100dvh) {
    .hero-section {
      height: 100dvh;
      min-height: 100dvh;
      max-height: 100dvh;
    }
  }

  .hero-main {
    justify-content: center;
    padding-bottom: 64px;
  }

  .hero-coordinates,
  .hero-orbit {
    display: none;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: min(360px, calc(100vw - 36px));
    padding: 18px;
    background: rgba(17, 24, 39, 0.42);
    border-radius: 10px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(10px);
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 9.8vw, 3.25rem);
    line-height: 1.04;
  }

  .hero-copy p {
    max-width: 330px;
    margin-top: 12px;
    font-size: clamp(0.86rem, 3.8vw, 0.98rem);
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .hero-statue {
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.68;
    transform: none;
  }

  .hero-statue::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 32%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.82) 42%, #050505 72%, #050505 100%);
    pointer-events: none;
  }

  .hero-statue video {
    object-fit: contain;
    object-position: center 58%;
    filter: contrast(1) brightness(1);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgb(0, 0, 0) 14%, rgb(0, 0, 0) 68%, transparent 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgb(0, 0, 0) 14%, rgb(0, 0, 0) 68%, transparent 88%, transparent 100%);
  }

  .hero-bg-grid {
    opacity: 0.1;
  }

  .hero-cta {
    bottom: max(18px, env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 14px 24px;
  }

  .hero-vignette {
    z-index: 2;
    background:
      linear-gradient(to bottom, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.36) 5%, transparent 55%),
      linear-gradient(to top, rgba(5, 5, 5, 0.96) 10%, rgba(5, 5, 5, 0.58) 40%, transparent 90%);
  }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-container {
    padding: 0 16px;
  }

  .hero-copy {
    max-width: 300px;
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 9.5vw, 2.65rem);
  }

  .hero-cta {
    width: min(100%, 294px);
    max-width: calc(100vw - 36px);
    justify-content: center;
    padding: 15px 22px;
  }

  .section-title,
  .contacts-title {
    font-size: 2rem;
  }

  .service-card,
  .contacts-form-card {
    padding: 30px;
  }

  .team-img-container {
    height: 330px;
  }

  .policy-card {
    padding: 28px;
  }
}
