/*
Theme Name: Januss Blocks
Theme URI: https://januss.lv
Author: Januss
Description: Custom Gutenberg block theme for Januss Juristi.
Version: 0.3.9
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,
.latest-posts-section,
.contacts-section {
  padding: 100px 0;
}

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

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

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

.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-link {
  color: inherit;
  cursor: pointer;
}

.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;
}

.service-card-more {
  margin-top: auto;
  padding-top: 24px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.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);
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.latest-post-card {
  display: grid;
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

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

.latest-post-image {
  display: block;
  background: var(--surface-muted);
}

.latest-post-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.latest-post-content {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.latest-post-content time {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-post-content h3 {
  margin: 0;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.25;
}

.latest-post-content h3 a:hover,
.latest-post-link:hover {
  color: var(--accent-dark);
}

.latest-post-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.latest-post-link {
  margin-top: 6px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.latest-posts-actions {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.latest-posts-all {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  color: #050505;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.latest-posts-all:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.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);
}

.service-detail-page {
  background: var(--bg);
}

.service-detail-hero > div,
.service-detail-content > div {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.service-detail-hero {
  padding: 150px 0 96px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(25, 43, 67, 0.94)),
    #08111f;
}

.service-detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(38px, 6vw, 86px);
  align-items: end;
}

.service-detail-hero-copy {
  min-width: 0;
  max-width: 100%;
}

.service-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
  font-weight: 700;
}

.service-detail-breadcrumb a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition-fast);
}

.service-detail-breadcrumb a:hover {
  color: var(--accent-light);
}

.service-detail-breadcrumb span[aria-current="page"] {
  color: rgba(255, 255, 255, 0.56);
  overflow-wrap: anywhere;
}

.service-detail-title {
  width: 100%;
  max-width: 860px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.service-detail-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.14rem;
  line-height: 1.85;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.service-detail-cta,
.service-detail-final-cta a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  color: #050505;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.service-detail-cta:hover,
.service-detail-final-cta a:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.service-detail-cta:focus-visible,
.service-detail-final-cta a:focus-visible,
.service-detail-breadcrumb a:focus-visible,
.service-detail-contact-card a:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 4px;
}

.service-detail-hero-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.service-detail-hero-panel span {
  grid-row: span 2;
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.service-detail-hero-panel strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.service-detail-hero-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-detail-hero-panel p:last-child {
  margin-bottom: 0;
}

.service-detail-content {
  padding: 82px 0 110px;
}

.service-detail-content [data-reveal] {
  --reveal-y: 18px;
  opacity: 0.82;
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay);
}

.service-detail-page :where(h1, h2, h3, p, li, a, span, strong, dd, dt) {
  min-width: 0;
  max-width: 100%;
}

.service-detail-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 34px;
  align-items: start;
}

.service-detail-main {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.service-detail-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 24px;
}

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

.service-detail-card,
.service-process-card,
.service-faq-card,
.service-detail-contact-card,
.service-detail-final-cta {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.service-detail-card,
.service-process-card,
.service-faq-card {
  padding: 34px;
}

.service-detail-card h2,
.service-process-card h2,
.service-faq-card h2,
.service-detail-final-cta h2 {
  margin: 0 0 22px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.22;
}

.service-detail-card ul,
.service-process-card ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.75;
}

.service-detail-card li::marker,
.service-process-card li::marker {
  color: var(--accent-dark);
  font-weight: 800;
}

.service-process-card,
.service-faq-card,
.service-detail-final-cta {
  margin-top: 0;
}

.service-faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
}

.service-faq-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.service-faq-item:last-child {
  padding-bottom: 0;
}

.service-faq-item h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.05rem;
}

.service-faq-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.service-detail-final-cta {
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.98), rgba(25, 43, 67, 0.96)),
    #08111f;
}

.service-detail-final-cta h2 {
  color: #ffffff;
}

.service-detail-final-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.service-detail-final-cta a {
  margin-top: 26px;
}

.service-detail-contact-card {
  display: grid;
  gap: 8px;
  padding: 26px;
}

.service-detail-contact-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-detail-contact-card a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.service-detail-contact-card a:hover {
  color: var(--accent-dark);
}

.service-related-posts {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.service-related-posts-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-related-posts-header span,
.blog-card-date,
.blog-single-date,
.service-related-post-card time {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-related-posts-header h2 {
  margin: 0;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.22;
}

.service-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-related-post-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.service-related-post-image {
  display: block;
  margin: -22px -22px 8px;
  background: var(--surface);
}

.service-related-post-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-related-post-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.35;
}

.service-related-post-card h3 a:hover,
.service-related-post-link:hover,
.blog-card-title a:hover,
.blog-card-excerpt .wp-block-post-excerpt__more-link:hover,
.blog-single-content a:hover {
  color: var(--accent-dark);
}

.service-related-post-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-related-post-link {
  align-self: end;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.blog-archive-page,
.blog-single-page {
  background: var(--bg);
}

.blog-archive-hero,
.blog-single-hero {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 150px 24px 64px;
}

.blog-archive-title,
.blog-single-title {
  max-width: 900px;
  margin: 0;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.blog-archive-description {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.blog-archive-query {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 110px;
}

.blog-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.blog-archive-grid > li {
  min-width: 0;
}

.blog-archive-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  overflow: hidden;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-archive-card:hover {
  border-color: rgba(38, 86, 164, 0.24);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-archive-card > * {
  width: 100%;
  max-width: none;
}

.blog-archive-card:has(.blog-card-image) {
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 26px 30px;
  align-items: start;
  padding: 0;
}

.blog-card-image {
  width: 100%;
  margin: 0;
  background: var(--surface-muted);
}

.blog-archive-card:has(.blog-card-image) .blog-card-image {
  grid-row: 1 / span 3;
  height: 100%;
}

.blog-card-image a,
.blog-card-image img {
  display: block;
  width: 100%;
}

.blog-card-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-archive-card:has(.blog-card-image) .blog-card-image img {
  height: 100%;
  min-height: 260px;
}

.blog-card-date,
.blog-card-title,
.blog-card-excerpt {
  margin-right: 0;
  margin-left: 0;
}

.blog-archive-card:has(.blog-card-image) .blog-card-date,
.blog-archive-card:has(.blog-card-image) .blog-card-title,
.blog-archive-card:has(.blog-card-image) .blog-card-excerpt {
  margin-right: 30px;
}

.blog-card-date {
  display: block;
  margin-top: 0;
}

.blog-card-image + .blog-card-date {
  margin-top: 0;
}

.blog-card-title {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.blog-card-excerpt,
.blog-card-excerpt p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.blog-card-excerpt .wp-block-post-excerpt__more-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.blog-pagination {
  gap: 12px;
  margin-top: 48px;
}

.blog-pagination a,
.blog-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 800;
}

.blog-pagination a:hover,
.blog-pagination .page-numbers.current {
  color: #050505;
  background: var(--accent);
  border-color: var(--accent);
}

.blog-post-terms {
  margin: 0 0 18px;
}

.blog-post-terms a {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 7px 12px;
  color: var(--primary);
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-single-date {
  display: block;
  margin-top: 22px;
}

.blog-single-featured-image {
  width: min(100% - 48px, var(--container-width));
  margin: 0 auto 54px;
  overflow: hidden;
  background: var(--surface-muted);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.blog-single-featured-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.blog-single-content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 110px;
}

.blog-single-content > * {
  max-width: 100%;
}

.blog-single-content p,
.blog-single-content li {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-single-content h2,
.blog-single-content h3 {
  margin: 44px 0 18px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  line-height: 1.22;
}

.blog-single-content h2 {
  font-size: 2rem;
}

.blog-single-content h3 {
  font-size: 1.35rem;
}

.blog-single-content a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(194, 145, 65, 0.45);
  text-underline-offset: 4px;
}

.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);
}

@media (min-width: 993px) {
  :root {
    --header-height: 64px;
    --header-shrink-height: 56px;
    --container-width: 960px;
    --border-radius: 10px;
  }

  html {
    font-size: 12.8px;
  }

  .container,
  .nav-container {
    padding: 0 19px;
  }

  .logo-img {
    height: 34px;
  }

  .nav,
  .nav ul,
  .footer-links ul {
    gap: 26px;
  }

  .language-links a {
    padding: 5px 10px;
  }

  .hero-section {
    padding: 106px 13px 38px;
  }

  .hero-coordinates {
    top: 69px;
    left: 26px;
    font-size: 8px;
  }

  .hero-statue {
    width: min(56vw, 752px);
  }

  .hero-main {
    max-width: 1024px;
  }

  .hero-copy {
    width: min(100%, 656px);
  }

  .hero-copy p {
    max-width: 448px;
    margin-top: 14px;
  }

  .hero-cta {
    bottom: 42px;
    min-height: 46px;
    padding: 13px 26px;
  }

  .button-icon {
    width: 15px;
    height: 15px;
  }

  .section-header {
    max-width: 560px;
    margin-bottom: 48px;
  }

  .section-title {
    margin-bottom: 16px;
  }

  .services-section,
  .team-section,
  .latest-posts-section,
  .contacts-section {
    padding: 80px 0;
  }

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

  .service-card {
    min-height: 306px;
    padding: 32px;
  }

  .service-icon-wrapper {
    width: 40px;
    height: 40px;
    margin-bottom: 19px;
  }

  .service-card-title {
    margin-bottom: 13px;
  }

  .service-card-more {
    padding-top: 19px;
  }

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

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

  .team-info,
  .latest-post-content {
    padding: 24px;
  }

  .latest-posts-grid {
    gap: 26px;
  }

  .latest-posts-actions {
    margin-top: 34px;
  }

  .latest-posts-all {
    min-height: 42px;
    padding: 11px 21px;
  }

  .contacts-wrapper {
    gap: 48px;
  }

  .contacts-subtitle {
    margin-bottom: 32px;
  }

  .contacts-info-list {
    gap: 26px;
  }

  .contact-info-item {
    gap: 16px;
  }

  .icon-circle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

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

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

  .modern-form {
    gap: 19px;
  }

  .map-container iframe {
    min-height: 360px;
  }

  .policy-hero {
    padding: 61px 0 42px;
  }

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

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

  .policy-card {
    padding: 38px;
  }

  .service-detail-hero {
    padding: 120px 0 77px;
  }

  .service-detail-hero > div,
  .service-detail-content > div {
    padding: 0 19px;
  }

  .service-detail-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(224px, 304px);
    gap: clamp(30px, 5vw, 69px);
  }

  .service-detail-title {
    max-width: 688px;
  }

  .service-detail-intro {
    max-width: 608px;
    margin-top: 19px;
  }

  .service-detail-content {
    padding: 66px 0 88px;
  }

  .service-detail-content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 288px);
    gap: 27px;
  }

  .service-detail-main {
    gap: 27px;
  }

  .service-detail-sidebar,
  .service-detail-grid {
    gap: 19px;
  }

  .service-detail-card,
  .service-process-card,
  .service-faq-card,
  .service-detail-final-cta,
  .service-related-posts {
    padding: 27px;
  }

  .service-detail-contact-card {
    padding: 21px;
  }

  .blog-archive-hero,
  .blog-single-hero {
    padding: 120px 19px 51px;
  }

  .blog-archive-title,
  .blog-single-title {
    max-width: 720px;
  }

  .blog-archive-description {
    max-width: 576px;
    margin-top: 18px;
  }

  .blog-archive-query {
    max-width: 784px;
    padding: 0 19px 88px;
  }

  .blog-archive-grid {
    gap: 22px;
  }

  .blog-archive-card {
    gap: 14px;
    padding: 29px;
  }

  .blog-archive-card:has(.blog-card-image) {
    grid-template-columns: minmax(176px, 34%) minmax(0, 1fr);
    gap: 21px 24px;
  }

  .blog-archive-card:has(.blog-card-image) .blog-card-image img {
    min-height: 208px;
  }

  .blog-archive-card:has(.blog-card-image) .blog-card-date,
  .blog-archive-card:has(.blog-card-image) .blog-card-title,
  .blog-archive-card:has(.blog-card-image) .blog-card-excerpt {
    margin-right: 24px;
  }

  .blog-single-featured-image {
    width: min(100% - 38px, var(--container-width));
    margin-bottom: 43px;
  }

  .blog-single-featured-image img {
    max-height: 448px;
  }

  .blog-single-content {
    max-width: 688px;
    padding: 0 19px 88px;
  }

  .footer {
    padding: 48px 0;
  }
}

@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; }

  .service-detail-hero-inner,
  .service-detail-content-layout,
  .service-detail-grid,
  .service-related-posts-grid,
  .blog-archive-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-hero-inner,
  .service-detail-content-layout {
    gap: 34px;
    min-width: 0;
  }

  .service-detail-hero-copy,
  .service-detail-main,
  .service-detail-sidebar {
    width: 100%;
    max-width: none;
  }

  .service-detail-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.75rem, 7.2vw, 2.18rem);
    line-height: 1.12;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    hyphens: auto;
  }

  .service-detail-intro,
  .service-detail-card h2,
  .service-process-card h2,
  .service-faq-card h2,
  .service-detail-final-cta h2 {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    hyphens: auto;
  }

  .service-detail-page p,
  .service-detail-page li,
  .service-detail-hero-panel strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .service-detail-hero-panel,
  .service-detail-final-cta {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .service-detail-hero-panel {
    grid-template-columns: 32px minmax(0, 1fr);
    overflow: hidden;
  }

  .service-detail-hero-panel span,
  .service-detail-hero-panel strong,
  .service-detail-hero-panel p,
  .service-detail-card ul,
  .service-process-card ol,
  .service-detail-card li,
  .service-process-card li,
  .service-faq-item h3,
  .service-faq-item p {
    min-width: 0;
    max-width: 100%;
  }

  .service-detail-card ul,
  .service-process-card ol {
    padding-left: 18px;
  }

  .service-detail-main,
  .service-detail-sidebar,
  .service-detail-card,
  .service-process-card,
  .service-faq-card,
  .service-detail-contact-card,
  .service-related-posts {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .service-detail-sidebar {
    position: static;
  }

  .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,
  .latest-posts-grid,
  .service-detail-grid,
  .service-related-posts-grid,
  .blog-archive-grid,
  .service-detail-hero-inner,
  .service-detail-content-layout {
    grid-template-columns: 1fr;
  }

  .service-detail-hero-inner {
    gap: 34px;
    min-width: 0;
  }

  .service-detail-hero {
    padding: 122px 0 70px;
  }

  .service-detail-hero-copy {
    width: min(100%, 342px);
    max-width: min(342px, calc(100vw - 48px));
    overflow: visible;
  }

  .service-detail-title {
    width: min(100%, 12ch);
    max-width: 12ch;
    font-size: clamp(1.75rem, 7.2vw, 2.18rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    hyphens: auto;
  }

  .service-detail-intro {
    width: 100%;
    max-width: 28ch;
    overflow-wrap: anywhere;
  }

  .service-detail-actions,
  .service-detail-hero-panel,
  .service-detail-main,
  .service-detail-sidebar,
  .service-detail-card,
  .service-process-card,
  .service-faq-card,
  .service-detail-contact-card,
  .service-detail-final-cta,
  .service-related-posts {
    width: min(100%, 342px);
    max-width: min(342px, calc(100vw - 48px));
  }

  .service-detail-hero-panel p,
  .service-detail-card li,
  .service-process-card li,
  .service-faq-item p {
    overflow-wrap: anywhere;
  }

  .service-detail-intro,
  .service-detail-card h2,
  .service-process-card h2,
  .service-faq-card h2,
  .service-detail-final-cta h2,
  .service-related-posts-header h2,
  .blog-archive-title,
  .blog-single-title {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    hyphens: auto;
  }

  .service-detail-page p,
  .service-detail-page li,
  .service-detail-hero-panel strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .service-detail-actions {
    align-items: stretch;
  }

  .service-detail-cta {
    width: 100%;
    justify-content: center;
  }

  .service-detail-hero-panel {
    grid-template-columns: 32px minmax(0, 1fr);
    width: min(100%, 342px);
    max-width: min(342px, calc(100vw - 48px));
    padding: 26px;
    min-width: 0;
    overflow: hidden;
  }

  .service-detail-hero-panel span,
  .service-detail-hero-panel strong,
  .service-detail-hero-panel p,
  .service-detail-card ul,
  .service-process-card ol,
  .service-detail-card li,
  .service-process-card li,
  .service-faq-item h3,
  .service-faq-item p {
    min-width: 0;
    max-width: 100%;
  }

  .service-detail-card ul,
  .service-process-card ol {
    padding-left: 18px;
  }

  .service-detail-main,
  .service-detail-sidebar,
  .service-detail-card,
  .service-process-card,
  .service-faq-card,
  .service-detail-contact-card,
  .service-detail-final-cta,
  .service-related-posts {
    width: min(100%, 342px);
    max-width: min(342px, calc(100vw - 48px));
    min-width: 0;
  }

  .service-detail-content {
    padding: 64px 0 76px;
  }

  .service-detail-sidebar {
    position: static;
  }

  .service-detail-card,
  .service-process-card,
  .service-faq-card,
  .service-detail-contact-card,
  .service-detail-final-cta,
  .service-related-posts {
    padding: 28px;
  }

  .blog-archive-hero,
  .blog-single-hero {
    padding: 122px 24px 50px;
  }

  .blog-archive-query,
  .blog-single-content {
    padding-bottom: 76px;
  }

  .blog-archive-card {
    padding: 28px;
  }

  .blog-archive-card:has(.blog-card-image) {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 0 28px;
  }

  .blog-archive-card:has(.blog-card-image) .blog-card-image {
    grid-row: auto;
    height: auto;
  }

  .blog-archive-card:has(.blog-card-image) .blog-card-image img {
    height: auto;
    min-height: 0;
  }

  .blog-archive-card:has(.blog-card-image) .blog-card-date,
  .blog-archive-card:has(.blog-card-image) .blog-card-title,
  .blog-archive-card:has(.blog-card-image) .blog-card-excerpt {
    margin-right: 28px;
    margin-left: 28px;
  }

  .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,
  .service-detail-hero > div,
  .service-detail-content > div {
    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;
  }

  .service-detail-hero-copy,
  .service-detail-main,
  .service-detail-sidebar,
  .service-detail-hero-panel,
  .service-detail-final-cta,
  .service-detail-card,
  .service-process-card,
  .service-faq-card,
  .service-detail-contact-card,
  .service-related-posts {
    max-width: none;
  }

  .blog-archive-hero,
  .blog-single-hero,
  .blog-archive-query,
  .blog-single-content {
    padding-right: 16px;
    padding-left: 16px;
  }

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

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