:root {
  --bg: #eef3f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-dark: rgba(10, 23, 34, 0.58);
  --text: #183044;
  --muted: #5e7386;
  --line: rgba(24, 48, 68, 0.12);
  --line-strong: rgba(24, 48, 68, 0.22);
  --accent: #0a2d49;
  --accent-2: #1a5f7f;
  --shadow: 0 20px 50px rgba(19, 41, 58, 0.12);
  --shadow-deep: 0 28px 64px rgba(19, 41, 58, 0.2);
  --radius: 8px;
  --shell: 1320px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(149, 192, 221, 0.26), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(102, 150, 184, 0.18), transparent 22%),
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 26%, #f2f5f8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

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

p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--muted);
}

h1,
h2 {
  margin: 0 0 1rem;
  line-height: 1.08;
  color: var(--text);
}

.shell {
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.8);
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  background: rgba(247, 250, 252, 0.34);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}

.site-nav.is-scrolled {
  background: rgba(247, 250, 252, 0.82);
  border-bottom-color: rgba(24, 48, 68, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(14, 29, 43, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100%;
}

.brand img {
  width: auto;
  height: 56px;
}

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

.nav-menu a {
  position: relative;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.22s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: auto;
  padding-top: calc(var(--header-height) + 52px);
  padding-bottom: 46px;
  overflow: hidden;
}

.hero-top {
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(103, 150, 185, 0.22), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(33, 97, 126, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(238,243,247,0.92) 56%, rgba(238,243,247,1) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 34px;
  align-items: start;
}

.hero-copy {
  max-width: 640px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 10.2ch;
  max-width: 12.2ch;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-text {
  max-width: 54ch;
  font-size: 1.08rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(24, 48, 68, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 70px rgba(19, 41, 58, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,0.18) 44%, transparent 72%);
  transform: translateX(-70%);
  animation: shine 10s ease-in-out infinite;
  pointer-events: none;
}

.hero-media {
  position: relative;
  aspect-ratio: 1917 / 406;
  overflow: hidden;
}

.hero-media .carousel-inner,
.hero-media .carousel-item,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(1.04) contrast(1.02);
}

.hero-visual-frame:hover .hero-media img {
  transform: scale(1.03);
}

.hero-media .carousel-control-prev,
.hero-media .carousel-control-next {
  width: 46px;
  height: 46px;
  top: auto;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 19, 30, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
}

.hero-media .carousel-control-prev {
  left: 18px;
}

.hero-media .carousel-control-next {
  left: 74px;
  right: auto;
}

.hero-poster {
  position: relative;
  margin-top: 6px;
  min-height: 520px;
  padding: 34px 30px 30px;
  border: 1px solid rgba(24, 48, 68, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(244, 248, 251, 0.82) 100%);
  box-shadow: 0 28px 64px rgba(19, 41, 58, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 24%, rgba(78,151,187,0.12), transparent 22%),
    radial-gradient(circle at 78% 28%, rgba(10,45,73,0.08), transparent 30%);
  pointer-events: none;
}

.hero-poster::after {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #4e97bb 100%);
}

.hero-poster-label {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-poster-graphic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 8px 0 34px;
  padding: 18px 10px;
  border: 1px solid rgba(24, 48, 68, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(242,247,250,0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 18px 34px rgba(19, 41, 58, 0.08);
}

.poster-stage {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.poster-stage strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(10,45,73,0.1) 0%, rgba(78,151,187,0.16) 100%);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(19, 41, 58, 0.08);
}

.poster-stage span {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.poster-arrow {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(24,48,68,0.12) 0%, rgba(78,151,187,0.4) 100%);
}

.poster-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(78,151,187,0.5);
  border-right: 2px solid rgba(78,151,187,0.5);
  transform: translateY(-50%) rotate(45deg);
}

.hero-poster-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.hero-poster-copy span {
  display: block;
  padding-bottom: 14px;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(24, 48, 68, 0.1);
}

.hero-poster-copy span:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #114a69 100%);
  box-shadow: 0 16px 32px rgba(10, 45, 73, 0.26);
}

.button-primary:hover {
  box-shadow: 0 22px 38px rgba(10, 45, 73, 0.32);
}

  .button-secondary {
  color: var(--accent);
  background: rgba(10, 45, 73, 0.04);
  border-color: rgba(10, 45, 73, 0.18);
}

.button-secondary:hover {
  border-color: rgba(10, 45, 73, 0.3);
  box-shadow: 0 18px 34px rgba(7, 19, 30, 0.14);
}

.overview {
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-deep);
}

.service-card-media {
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(19, 41, 58, 0.14);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.03);
}

.service-card h2 {
  font-size: 1.35rem;
}

.detail-section {
  padding: 96px 0 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-layout-reverse .detail-media {
  order: 2;
}

.detail-layout-reverse .detail-copy {
  order: 1;
}

.detail-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 28px 60px rgba(19, 41, 58, 0.16);
}

.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.14) 48%, transparent 76%);
  transform: translateX(-70%);
  animation: shine 12s ease-in-out infinite;
  pointer-events: none;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.detail-media:hover img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.02);
}

.detail-copy {
  padding: 30px 0;
}

.detail-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.detail-copy h2 span {
  color: var(--accent-2);
}

.contact-section {
  position: relative;
  margin-top: 92px;
  padding: 92px 0;
  overflow: hidden;
}

.contact-media,
.contact-overlay {
  position: absolute;
  inset: 0;
}

.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 32, 0.88) 0%, rgba(8, 20, 32, 0.78) 45%, rgba(8, 20, 32, 0.72) 100%);
}

.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.contact-form-block,
.contact-info-block {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px rgba(7, 19, 30, 0.22);
}

.contact-form-block h2,
.contact-info-block,
.contact-info-block a,
.contact-form-block .captcha-label,
.checkbox-row label {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.input {
  min-height: 160px;
  resize: vertical;
}

.input:focus {
  outline: none;
  border-color: rgba(17, 90, 128, 0.46);
  box-shadow: 0 0 0 4px rgba(86, 156, 194, 0.18);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  margin-top: 5px;
}

.checkbox-row a {
  color: #fff;
  text-decoration: underline;
}

.captcha-image {
  width: 180px;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(7, 19, 30, 0.2);
}

.captcha-input {
  max-width: 220px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-list img {
  width: 24px;
  height: 24px;
}

.site-footer {
  padding: 28px 0 34px;
  background: #142838;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand img {
  width: 54px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a,
.footer-top {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

#dialog {
  display: none;
}

.call-dialog .ui-dialog-content {
  padding-top: 16px;
}

.dialog-button {
  margin-top: 14px;
}

#overbox3 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 40;
  padding: 0 16px;
  pointer-events: none;
}

#infobox3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 16px 18px 16px 22px;
  text-align: left;
  line-height: 1.55;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 48, 68, 0.14);
  border-left: 5px solid var(--accent-2);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(19, 41, 58, 0.18);
  pointer-events: auto;
}

.cookie-copy {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.cookie-copy a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button-cookie {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 24px rgba(10, 45, 73, 0.24);
}

.button-cookie,
.button-cookie:hover,
.button-cookie:focus {
  color: #fff !important;
  text-decoration: none;
}

.button-cookie:hover,
.button-cookie:focus {
  box-shadow: 0 16px 30px rgba(10, 45, 73, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes shine {
  0% { transform: translateX(-72%); }
  45% { transform: translateX(-72%); }
  100% { transform: translateX(74%); }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 520px;
    min-height: auto;
    margin-top: 0;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 78px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(247, 250, 252, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 44px rgba(19, 41, 58, 0.14);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero-top {
    margin-bottom: 26px;
  }

  .detail-layout,
  .detail-layout-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-layout-reverse .detail-media,
  .detail-layout-reverse .detail-copy {
    order: initial;
  }

  .detail-media {
    aspect-ratio: 16 / 12;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--shell), calc(100% - 24px));
  }

  .hero {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 34px;
  }

  .hero-top {
    margin-bottom: 22px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    overflow-wrap: break-word;
  }

  .hero-copy .eyebrow {
    font-size: 0.68rem;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-poster {
    display: none;
    max-width: none;
    min-height: auto;
    padding: 24px 20px 22px;
  }

  .hero-poster-graphic {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .poster-arrow {
    width: 2px;
    height: 18px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(24,48,68,0.12) 0%, rgba(78,151,187,0.4) 100%);
  }

  .poster-arrow::after {
    top: auto;
    bottom: -1px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(135deg);
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-section {
    padding-top: 64px;
  }

  .contact-section {
    margin-top: 72px;
    padding: 72px 0;
  }

  .contact-form-block,
  .contact-info-block,
  .service-card {
    padding: 22px;
  }

  #infobox3 {
    display: grid;
    justify-items: start;
    gap: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    overflow-wrap: break-word;
  }

  .cookie-copy {
    width: auto;
    max-width: 100%;
  }

  .button-cookie {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   PÁGINAS LEGALES (aviso, privacidad, cookies)
   ============================================================ */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 860px;
}

.legal-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
}

.legal-page p {
  margin-bottom: 0.9rem;
  line-height: 1.75;
  color: #444;
  font-size: 0.97rem;
  text-align: justify;
}

.legal-page p b {
  color: var(--color-ink);
  display: block;
  margin-top: 1.6rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.legal-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

/* Tabla de cookies */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: var(--color-ink);
}

.cookie-table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* Mensajes de formulario (confirmación/error) */
.form-msg,
.hero-msg {
  margin: 0.5rem 0 1rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-style: italic;
  font-size: 0.95rem;
}

.form-msg-ok,
.hero-msg-ok {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 3px solid #43a047;
}

.form-msg-err {
  background-color: #ffebee;
  color: #c62828;
  border-left: 3px solid #e53935;
}

/* Imagen captcha */
.captcha-image {
  display: block;
  margin: 0.3rem 0 0.6rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.captcha-label {
  color: var(--color-ink);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  display: block;
}

.captcha-input {
  max-width: 200px;
}
