:root {
  --bg: #f5efe8;
  --surface: rgba(255, 255, 255, 0.74);
  --text: #1d1a1c;
  --muted: #645861;
  --line: rgba(124, 11, 46, 0.14);
  --brand: #fc0650;
  --brand-deep: #9b0a38;
  --accent: #ffb38b;
  --shadow: 0 24px 80px rgba(124, 11, 46, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(252, 6, 80, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 179, 139, 0.28), transparent 22%),
    linear-gradient(180deg, #fbf5ef 0%, #f4ece5 48%, #efe6df 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 85%);
}

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

img {
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(255, 250, 246, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: 148px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.95rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(124, 11, 46, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.lang-switcher a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switcher .is-active {
  color: var(--brand);
}

.lang-divider {
  color: rgba(29, 26, 28, 0.35);
}

.nav a {
  position: relative;
  color: var(--muted);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 30px rgba(99, 23, 44, 0.24);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero,
.page-hero {
  display: grid;
  gap: 32px;
}

.hero {
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 56px 0 32px;
  gap: 72px;
}

.page-hero {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  min-height: calc(100vh - 220px);
  padding: 64px 0 32px;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 220px);
  padding: 64px 0 32px;
}

.error-card {
  width: min(100%, 760px);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.error-card h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
  text-wrap: balance;
}

.error-text {
  max-width: 34ch;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.error-actions {
  margin-top: 32px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.about-panel h2,
.footer h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.9rem);
  max-width: 7.4ch;
  margin-bottom: 22px;
  line-height: 0.94;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 10ch;
  margin-bottom: 28px;
}

.hero h1 span {
  color: var(--brand);
}

.hero-text,
.section-heading p,
.about-panel p,
.timeline-item p,
.service-card p,
.project-card p,
.contact-card p,
.footer-brand-block p,
.footer-meta p,
.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.section-inline-link {
  color: var(--brand);
  font-weight: 800;
}

.section-inline-link:hover,
.section-inline-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.form-feedback {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: none;
  line-height: 1.7;
  font-weight: 700;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.is-success {
  color: #0f5c3a;
  background: rgba(63, 179, 126, 0.12);
  border-color: rgba(63, 179, 126, 0.24);
}

.form-feedback.is-error {
  color: #8b1e3f;
  background: rgba(252, 6, 80, 0.08);
  border-color: rgba(252, 6, 80, 0.18);
}

.hero-copy .hero-text {
  max-width: 32ch;
  margin-top: 20px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-metrics li,
.visual-card,
.service-card,
.project-card,
.timeline-item,
.about-panel,
.contact-point,
.contact-form-wrap,
.contact-card,
.footer-intro,
.footer-bottom {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-metrics li {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 170px;
  gap: 18px;
  align-items: end;
  min-height: 600px;
  min-width: 0;
}

.visual-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.visual-main {
  align-self: stretch;
  min-height: 480px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(252, 6, 80, 0.96), rgba(155, 10, 56, 0.95));
  color: #fff;
}

.visual-main::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 179, 139, 0.24);
  filter: blur(10px);
}

.hero-logo {
  display: block;
  width: min(170px, 55%);
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

.visual-main h2 {
  margin: 24px 0 16px;
  max-width: 9ch;
  font-size: clamp(1.85rem, 2.35vw, 2.5rem);
  line-height: 1.05;
}

.visual-main p,
.visual-label {
  position: relative;
  z-index: 1;
}

.visual-main p {
  max-width: 18ch;
}

.visual-label,
.contact-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-label {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.contact-label,
.visual-side span,
.project-type {
  color: var(--brand);
}

.visual-side {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 18px;
  border-radius: 24px;
}

.hero-visual .visual-side:nth-of-type(2) {
  align-self: end;
  margin-bottom: 108px;
}

.hero-visual .visual-side:nth-of-type(3) {
  align-self: end;
}

.visual-side strong {
  display: block;
  margin-top: 12px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.section-block {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-panel h2,
.footer h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.service-grid,
.showcase-grid,
.timeline,
.footer-contact-grid,
.contact-points {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.project-card,
.timeline-item {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.service-card span,
.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(252, 6, 80, 0.12);
  color: var(--brand);
  font-weight: 800;
}

.service-card h3,
.project-card h3,
.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

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

.project-card {
  display: grid;
  gap: 18px;
  padding: 16px;
  overflow: hidden;
}

.project-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--project-accent, rgba(252, 6, 80, 0.58));
  opacity: 0.72;
  transition: opacity 260ms ease;
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay {
  opacity: 0;
}

.project-card:hover .project-visual img,
.project-card:focus-within .project-visual img {
  transform: scale(1.03);
}

.project-content {
  display: grid;
  gap: 10px;
}

.project-content > div {
  display: grid;
  gap: 6px;
}

.project-auditor {
  --project-accent: rgba(0, 173, 239, 0.72);
}

.project-verdeta {
  --project-accent: rgba(27, 120, 29, 0.72);
}

.project-erener {
  --project-accent: rgba(45, 186, 144, 0.72);
}

.project-isik {
  --project-accent: rgba(0, 159, 227, 0.72);
}

.timeline {
  grid-template-columns: repeat(3, 1fr);
}

.about-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
}

.contact-page {
  padding-top: 28px;
}

.kvkk-page {
  display: grid;
  gap: 24px;
}

.legal-hero,
.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: 30px;
}

.legal-hero {
  padding: 34px;
}

.legal-card {
  padding: 34px;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.legal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-card a {
  color: var(--brand);
  font-weight: 700;
}

.contact-point,
.contact-form-wrap,
.contact-card,
.footer-intro,
.footer-bottom {
  border-radius: 28px;
}

.contact-point {
  padding: 18px 20px;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(252, 6, 80, 0.1);
  color: var(--brand);
  font-size: 1rem;
}

.contact-point a,
.contact-card a {
  display: inline-block;
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-point p {
  margin-top: 10px;
}

.contact-form-wrap {
  padding: 28px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(252, 6, 80, 0.45);
  box-shadow: 0 0 0 4px rgba(252, 6, 80, 0.08);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.consent-block {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(124, 11, 46, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
}

.consent-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.consent-text a {
  color: var(--brand);
  font-weight: 700;
}

.consent-text a:visited {
  color: var(--brand);
}

.consent-text a:hover,
.consent-text a:focus-visible {
  color: var(--brand-deep);
}

.consent-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
  line-height: 1.6;
}

.consent-check input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.turnstile-wrap {
  display: flex;
  justify-content: flex-start;
}

.footer {
  padding-bottom: 28px;
}

.footer-frame {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 42px 28px 30px;
  border: 1px solid rgba(124, 11, 46, 0.14);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 244, 0.66)),
    radial-gradient(circle at top, rgba(252, 6, 80, 0.08), transparent 40%);
  box-shadow: var(--shadow);
}

.footer-brand-block {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.footer-signoff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.6;
}

.footer-signoff i {
  color: var(--brand);
  font-size: 0.95rem;
  filter: drop-shadow(0 4px 12px rgba(252, 6, 80, 0.22));
}

.footer-brand-block::before {
  content: "";
  width: min(260px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 11, 46, 0.24), transparent);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 700;
}

.footer-mail i {
  color: var(--brand);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 1rem;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  transform: translateY(-2px);
  color: var(--brand);
  border-color: rgba(252, 6, 80, 0.3);
  background: rgba(255, 240, 245, 0.92);
}

.footer-logo {
  width: 210px;
  height: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  width: 100%;
}

.footer-links a {
  position: relative;
  padding: 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -3px;
  color: rgba(29, 26, 28, 0.7);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand);
}

.footer-meta {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.scroll-top-button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(124, 11, 46, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.farewell-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.farewell-popup[hidden] {
  display: none;
}

.farewell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 18, 24, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: farewell-fade-in 360ms ease both;
}

.farewell-card {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 38px 36px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 240, 0.86)),
    radial-gradient(circle at top right, rgba(252, 6, 80, 0.16), transparent 60%);
  box-shadow: 0 40px 90px rgba(99, 23, 44, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: farewell-card-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.farewell-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(124, 11, 46, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

.farewell-close:hover,
.farewell-close:focus-visible {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  transform: scale(1.05);
  outline: none;
}

.farewell-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(252, 6, 80, 0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.farewell-card h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  line-height: 1.08;
  text-wrap: balance;
  color: var(--text);
}

.farewell-body {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.farewell-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.farewell-body strong {
  color: var(--brand);
  font-weight: 800;
}

.farewell-signoff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.farewell-signoff i {
  color: var(--brand);
  filter: drop-shadow(0 4px 12px rgba(252, 6, 80, 0.22));
}

.farewell-dismiss {
  width: 100%;
}

@keyframes farewell-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes farewell-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .farewell-card {
    padding: 32px 22px 24px;
    border-radius: 24px;
  }

  .farewell-eyebrow {
    font-size: 0.72rem;
  }

  .farewell-card h2 {
    font-size: 1.4rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

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

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

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

@media (max-width: 1080px) {
  .hero,
  .page-hero,
  .about-panel,
  .service-grid,
  .showcase-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .page-hero {
    min-height: auto;
  }

  .error-page {
    min-height: auto;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 840px) {
  .topbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .desktop-cta {
    display: none;
  }

  .lang-switcher {
    order: 3;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }

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

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .visual-main {
    min-height: 0;
  }

  .visual-main h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .visual-side {
    width: 100%;
  }

  .hero-visual .visual-side:nth-of-type(2) {
    margin-bottom: 0;
  }
}

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

  main {
    padding-inline: 8px;
  }

  .topbar {
    top: 10px;
    padding: 14px 16px;
  }

  .brand-logo {
    width: 120px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9.6vw, 2.5rem);
    max-width: 6.8ch;
    line-height: 0.94;
    overflow-wrap: normal;
  }

  .page-hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
  }

  .error-card {
    padding: 28px 22px;
  }

  .error-card h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .visual-side {
    padding: 16px 18px;
  }

  .visual-main h2 {
    margin-top: 28px;
    max-width: 9ch;
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .visual-main p {
    max-width: 22ch;
  }

  .visual-side strong {
    font-size: 0.95rem;
  }

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

  .contact-form-wrap,
  .footer-frame {
    padding: 24px 20px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-links a {
    padding: 0;
  }

  .footer-links a::after {
    content: none !important;
  }

  .scroll-top-button {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8.8vw, 2.2rem);
    max-width: 7ch;
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}
