:root {
  --purple: #31107b;
  --purple-dark: #240b5c;
  --red: #ec1f37;
  --red-dark: #c81028;
  --text: #333333;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --soft: #f6f5fa;
  --max: 1140px;
  --header: 92px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--purple);
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--purple);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  background: var(--purple);
  color: #fff;
  font-size: 0.78rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  align-items: center;
  min-height: 34px;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}

.topbar span,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.site-header {
  background: #fff;
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header);
  padding: 0.75rem 0;
}

.logo img {
  height: 72px;
  width: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--purple);
  position: relative;
  margin: 0 auto;
}

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

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

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

.nav-list {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: end;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.hero {
  position: relative;
  height: min(68vw, 460px);
  background: #1d123f;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
}

.hero-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--purple);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dots .dot.is-active {
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.is-active {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(49, 16, 123, 0.15), rgba(49, 16, 123, 0.45));
  pointer-events: none;
}

.welcome {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: #d7deef;
  overflow: hidden;
}

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ny.png") center 30% / cover no-repeat;
  opacity: 0.16;
  filter: saturate(0.7);
}

.welcome .container {
  position: relative;
}

.welcome h1,
.section-title,
.page-title,
.about h2,
.contact h2,
.blog-home h2,
.quote blockquote {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.welcome h1 {
  margin: 0;
  text-align: center;
  color: var(--purple);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.25;
}

.brand-purple {
  color: var(--purple);
}

.brand-red {
  color: var(--red);
}

.lead {
  text-align: center;
  color: #5e6470;
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0.75rem auto 2.2rem;
}

.flags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.flag-card {
  text-decoration: none;
  color: var(--purple);
  text-align: center;
}

.flag-card img {
  width: 100%;
  aspect-ratio: 500 / 344;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(49, 16, 123, 0.18);
  transition: transform 0.2s ease;
}

.flag-card:hover img {
  transform: translateY(-4px);
}

.flag-card h2 {
  margin: 0.85rem 0 0;
  font-size: 1.25rem;
}

.quote {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.quote .slide {
  filter: brightness(0.55);
}

.quote-content {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 2rem));
  padding: 3rem 0;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
}

.quote p {
  margin: 0.8rem 0 1.2rem;
  font-size: 1.05rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.dot.is-active {
  background: #fff;
  color: var(--purple);
}

.passport,
.about,
.page-content,
.contact,
.blog-home,
.news-band {
  padding: 3.2rem 0;
}

.passport {
  background: #fff;
}

.passport-grid,
.service-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: center;
}

.passport img,
.service-layout > img,
.post-cover {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.service-layout > img {
  height: 280px;
}

.passport p,
.prose p,
.about p,
.card p,
.post-body p,
.post-body li {
  color: var(--muted);
}

.prose strong,
.about strong,
.passport strong {
  color: var(--purple);
}

.steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.4rem 0;
  color: var(--muted);
}

.steps li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  position: absolute;
  left: 0;
  top: 0.65rem;
}

.about {
  background: var(--soft);
}

.about h2,
.contact h2,
.blog-home h2,
.page-title,
.post-header h1 {
  color: var(--purple);
  margin-top: 0;
}

.section-kicker,
.post-date,
.card time {
  color: var(--muted);
  display: block;
}

.blog-home .section-head,
.contact h2,
.page-intro {
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(49, 16, 123, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

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

.card p {
  margin: 0;
}

.more {
  margin-top: auto;
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
}

.see-all {
  text-align: center;
  margin: 1.6rem 0 0;
}

.see-all a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.contact {
  background: #fff;
}

.form {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  color: #555;
  font-size: 0.95rem;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
  padding: 0.75rem 0.8rem;
  color: var(--text);
  background: #fff;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(49, 16, 123, 0.25);
  border-color: var(--purple);
}

.form button {
  background: var(--red);
  color: #fff;
  border: 0;
  min-height: 48px;
  cursor: pointer;
  font-weight: 700;
}

.form button:hover {
  background: var(--red-dark);
}

.form-note,
.form-status {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status:empty {
  display: none;
}

.page-content {
  background: #fff;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.service-layout {
  align-items: start;
}

.prose h2,
.post-body h2 {
  color: var(--purple);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.6rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.2rem auto;
  width: min(720px, 100%);
  text-align: left;
}

.checks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.page-intro {
  max-width: 760px;
  margin: 0 auto 0.5rem;
  color: var(--muted);
}

.news-band {
  background: var(--soft);
  padding-top: 0;
}

.news-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(49, 16, 123, 0.08);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card div {
  padding: 1rem 1.2rem 1rem 0;
}

.badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.6rem;
  text-transform: uppercase;
}

.news-card h2 {
  margin: 0.45rem 0 0;
  color: var(--purple);
  font-size: 1.25rem;
}

.post {
  width: min(820px, 100%);
  margin: 0 auto;
}

.post-cover {
  margin: 1rem 0 1.4rem;
  max-height: 460px;
  object-fit: cover;
}

.post-body blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  color: var(--purple);
}

.back-link {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  background: #f4f2f8;
  border-top: 3px solid var(--purple);
  padding: 1.35rem 0 1.15rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-contact li,
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.45;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--purple);
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--purple);
}

.footer-center {
  text-align: center;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-legal {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--purple);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal:hover {
  text-decoration: underline;
}

.footer-brand {
  justify-self: end;
  line-height: 0;
  opacity: 0.8;
}

.footer-brand:hover,
.footer-brand:focus-visible {
  opacity: 1;
}

.footer-brand img {
  width: 104px;
  height: auto;
}

.cookie[hidden] {
  display: none;
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
}

.cookie p {
  margin: 0;
  color: var(--muted);
}

.cookie button {
  background: var(--purple);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.whatsapp-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 25;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(18, 140, 70, 0.38);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  display: block;
  fill: currentColor;
}

.whatsapp-float:hover {
  background: #1ebe5b;
}

body:has(.cookie:not([hidden])) .whatsapp-float {
  bottom: 6.75rem;
}

.empty {
  text-align: center;
  padding: 3rem 0 4rem;
}

.empty h1 {
  color: var(--purple);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 2px solid var(--red);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .passport-grid,
  .service-layout,
  .news-card,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .flags,
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .news-card div {
    padding-right: 1rem;
  }

  .footer-grid {
    justify-items: center;
    text-align: center;
  }

  .footer-contact li,
  .footer-contact a {
    justify-content: center;
  }

  .footer-brand {
    justify-self: center;
  }

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

  .topbar .topbar-address {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar .topbar-city {
    display: none;
  }

  .logo img {
    height: 56px;
  }

  .hero {
    height: 220px;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
  }

  body:has(.cookie:not([hidden])) .whatsapp-float {
    bottom: 11rem;
  }

  .nav-list,
  .flags,
  .cards {
    grid-template-columns: 1fr;
  }
}

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

  .slide,
  .flag-card img,
  .hero-track {
    transition: none;
  }
}
