:root {
  --bg: #f7f2eb;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-tint: rgba(242, 230, 219, 0.7);
  --text: #152033;
  --muted: #5f697d;
  --line: rgba(21, 32, 51, 0.11);
  --line-strong: rgba(21, 32, 51, 0.18);
  --accent: #c96b31;
  --accent-deep: #8e471e;
  --accent-soft: #f2dcc8;
  --cool-soft: #dbe6f3;
  --shadow: 0 24px 70px rgba(21, 32, 51, 0.08);
  --shadow-soft: 0 14px 36px rgba(21, 32, 51, 0.06);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 107, 49, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(107, 141, 191, 0.16), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 58%, #f3ede6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 80%);
}

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

a,
button,
.card,
.stack-list__item,
.project-card,
.partner-chip,
.contact-card,
.hero__tile,
.hero__system,
.hero__contact-strip {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease;
}

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

.site-shell {
  min-height: 100vh;
}

.site-main {
  overflow: hidden;
}

.site-header,
.section,
.site-footer__inner,
.hero {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 16px;
}

.admin-bar .site-header {
  top: 46px;
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.site-brand {
  min-width: 0;
}

.site-brand__logo {
  width: auto;
  max-width: 148px;
  max-height: 42px;
}

.site-menu-toggle {
  justify-self: end;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.site-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.site-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 60px rgba(21, 32, 51, 0.12);
  backdrop-filter: blur(18px);
}

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

.site-nav a,
.lang-switcher a {
  font-size: 0.95rem;
  font-weight: 600;
}

.lang-switcher {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
}

.lang-switcher a.is-active {
  background: var(--text);
  color: #fff;
}

.nav-is-open .site-menu-toggle {
  background: var(--text);
}

.nav-is-open .site-menu-toggle span {
  background: #fff;
}

.eyebrow,
.page-card__eyebrow,
.project-card__meta,
.stack-list__meta,
.site-footer__eyebrow {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero {
  display: grid;
  gap: 18px;
  padding: 28px 0 12px;
}

.hero__content,
.hero__visual,
.card,
.page-card,
.stack-list__item,
.project-card,
.partner-chip,
.content-shell,
.cta-strip,
.contact-panel,
.contact-form-shell,
.contact-map,
.page-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-tint, rgba(255, 255, 255, 0.22)) 0%, var(--card-tint, rgba(255, 255, 255, 0.08)) 100%), var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero__content {
  padding: 28px 22px;
}

.hero h1,
.section-heading h2,
.content-shell h1,
.cta-strip h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(2.7rem, 11vw, 5.6rem);
  max-width: 9ch;
}

.hero__lead,
.card p,
.page-card p,
.stack-list__item p,
.project-card p,
.content-shell__body,
.site-footer__copy,
.contact-form-shell__copy,
.content-shell__lead {
  color: var(--muted);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button--primary {
  background: var(--text);
  color: #fff;
}

.button--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
}

.hero__points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__points li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(201, 107, 49, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.hero__points li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #edb084 100%);
  box-shadow: 0 0 0 6px rgba(201, 107, 49, 0.12);
}

.hero__visual {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.84) 0%, rgba(245, 238, 229, 0.92) 100%);
}

.hero__tile,
.hero__system,
.hero__contact-strip {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.hero__tile::after,
.hero__system::after,
.card::after,
.page-card::after,
.stack-list__item::after,
.project-card::after,
.partner-chip::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 107, 49, 0.14) 0%, rgba(201, 107, 49, 0) 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.hero__tile--feature {
  background:
    radial-gradient(circle at top right, rgba(219, 230, 243, 0.85), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 239, 231, 0.94) 100%);
}

.hero__tile--feature span {
  display: block;
  margin-bottom: 6px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 1;
}

.hero__tile--feature small,
.hero__tile--feature p,
.hero__tile--stat small,
.hero__system span,
.hero__contact-strip small,
.contact-card span,
.page-stat span {
  color: var(--muted);
}

.hero__tile--feature p {
  margin: 14px 0 0;
  line-height: 1.6;
}

.hero__tile--stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
}

.hero__system {
  display: grid;
  gap: 6px;
}

.hero__system strong,
.card h3,
.project-card h3,
.stack-list__item h3,
.content-section h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.hero__contact-strip {
  display: grid;
  gap: 6px;
  background: linear-gradient(135deg, var(--text) 0%, #25334d 100%);
  color: #fff;
}

.hero__contact-strip span,
.hero__contact-strip small {
  color: #fff;
}

.section {
  padding: 28px 0;
}

.section--soft .stack-list__item,
.section--partners .partner-chip,
.cta-strip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 233, 224, 0.94) 100%);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.section-heading h2,
.content-shell h1,
.cta-strip h2 {
  font-size: clamp(2rem, 7vw, 4rem);
  max-width: 12ch;
}

.page-grid,
.card-grid,
.project-grid,
.partner-grid,
.stack-list,
.content-section-grid,
.page-stat-grid {
  display: grid;
  gap: 14px;
}

.card,
.page-card,
.project-card,
.stack-list__item,
.partner-chip,
.cta-strip,
.content-shell,
.contact-panel,
.contact-form-shell,
.contact-map,
.page-stat {
  padding: 22px;
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #f1bf96 100%);
  color: #1b1209;
  font-family: "Sora", sans-serif;
  font-weight: 600;
}

.card,
.page-card,
.project-card,
.stack-list__item,
.partner-chip,
.contact-card {
  position: relative;
}

.card__link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
  color: var(--accent-deep);
}

.page-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 247, 255, 0.76) 100%);
}

.stack-list__item {
  display: grid;
  gap: 14px;
}

.stack-list__detail {
  display: block;
  font-size: 0.95rem;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card strong,
.stack-list__item small {
  display: inline-flex;
  align-self: start;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--text);
  font-size: 0.9rem;
}

.partner-chip {
  display: grid;
  gap: 6px;
  align-content: end;
  min-height: 150px;
}

.partner-chip__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  margin-bottom: 12px;
}

.partner-chip__logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.partner-chip strong {
  font-size: 1.15rem;
}

.partner-chip p,
.stack-list__detail {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-strip {
  display: grid;
  gap: 20px;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-card strong,
.page-stat strong {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
}

.site-footer {
  padding: 26px 0 40px;
}

.site-footer__inner {
  display: grid;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.site-footer__meta {
  display: grid;
  gap: 8px;
}

.section--page {
  padding-top: 20px;
}

.content-shell {
  padding: 26px 22px;
}

.content-shell__lead {
  max-width: 64ch;
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.content-section-grid {
  margin-top: 18px;
}

.content-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.content-section h2 {
  margin-bottom: 10px;
}

.content-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.page-stat-grid {
  margin-top: 20px;
}

.page-stat {
  display: grid;
  gap: 8px;
  min-height: 132px;
}

.page-stat strong {
  font-size: 1.8rem;
}

.contact-layout {
  display: grid;
  gap: 16px;
}

.contact-layout__main {
  display: grid;
  gap: 16px;
}

.contact-panel p:last-of-type {
  margin-bottom: 20px;
}

.contact-map {
  padding: 0;
  overflow: hidden;
  min-height: 320px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-form-shell {
  display: grid;
  align-content: start;
  gap: 12px;
}

.form-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(201, 107, 49, 0.1);
  color: var(--text);
}

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

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
}

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

.wpcf7-submit {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.wpcf7-spinner {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .button:focus-visible,
  .hero__contact-strip:hover,
  .hero__contact-strip:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(21, 32, 51, 0.16);
  }

  .button--primary:hover,
  .button--primary:focus-visible {
    background: #1d2b42;
  }

  .button--ghost:hover,
  .button--ghost:focus-visible {
    border-color: rgba(201, 107, 49, 0.32);
    background: rgba(255, 255, 255, 0.92);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--text);
  }

  .lang-switcher a:hover,
  .lang-switcher a:focus-visible {
    color: var(--text);
    background: rgba(201, 107, 49, 0.12);
  }

  .card:hover,
  .card:focus-within,
  .page-card:hover,
  .page-card:focus-within,
  .project-card:hover,
  .project-card:focus-within,
  .stack-list__item:hover,
  .stack-list__item:focus-visible,
  .partner-chip:hover,
  .partner-chip:focus-visible,
  .contact-card:hover,
  .contact-card:focus-visible,
  .hero__tile:hover,
  .hero__system:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 107, 49, 0.26);
    box-shadow: 0 30px 60px rgba(21, 32, 51, 0.12);
  }

  .card:hover::after,
  .page-card:hover::after,
  .project-card:hover::after,
  .stack-list__item:hover::after,
  .partner-chip:hover::after,
  .contact-card:hover::after,
  .hero__tile:hover::after,
  .hero__system:hover::after {
    opacity: 1;
  }

  .card:hover .card__icon,
  .page-card:hover .card__icon {
    transform: scale(1.06) rotate(-3deg);
  }
}

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

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

@media (min-width: 720px) {
  .site-header__inner {
    grid-template-columns: auto auto 1fr;
  }

  .site-nav {
    width: min(360px, 100%);
    left: auto;
    right: 0;
  }

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

  .hero__tile--feature {
    grid-column: 1 / -1;
  }

  .hero__contact-strip {
    grid-column: 1 / -1;
  }

  .page-grid,
  .content-section-grid,
  .page-stat-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .admin-bar .site-header {
    top: 32px;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 22px;
  }

  .site-menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    justify-self: center;
    align-items: center;
    gap: 22px;
    padding: 0;
    border: 0;
    background: transparent;
  }

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

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

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

  .lang-switcher {
    justify-self: end;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: stretch;
    padding-top: 40px;
  }

  .hero__content {
    padding: 44px;
  }

  .hero__visual {
    padding: 22px;
  }

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

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

  .stack-list,
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .cta-strip,
  .site-footer__inner,
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }
}

@media (min-width: 1160px) {
  .content-shell {
    padding: 34px 34px 36px;
  }

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

  .page-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
