@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/GothamPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/GothamPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/GothamPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #ffffff;
  --ink: #141414;
  --muted: #8e8e8e;
  --panel: #f2f2f2;
  --line: #ececec;
  --orange: #2fb344;
  --orange-dark: #239636;
  --radius-xl: clamp(34px, 4vw, 72px);
  --gutter: clamp(40px, 2.75vw, 56px);
  --max: 2400px;
  --nav-strip: clamp(6px, 0.5vw, 10px);
  --nav-fillet: clamp(14px, 1.5vw, 24px);
  --nav-fillet-b: clamp(22px, 2.3vw, 42px);
  --title-fillet: clamp(26px, 2.8vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Gotham Pro", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

body.drawer-open,
body.search-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: clamp(82px, 7.1vw, 140px);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

/* hidden on scroll-down and whenever the (dark) footer is in view, so the notch
   canopy never shows the dark footer through its transparent gaps */
.site-header.header-hidden {
  opacity: 0;
  visibility: hidden;
}

/* white strip across the full width — ties the left and right parts into one navbar */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-strip);
  background: #fff;
  pointer-events: none;
}

.header-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 13.5vw) 1fr minmax(280px, 23vw);
  align-items: start;
  gap: clamp(14px, 1.8vw, 36px);
  padding: 0 var(--gutter) 0;
  pointer-events: none;
}

.logo-panel,
.header-center,
.contact-panel {
  pointer-events: auto;
}

.logo-panel {
  position: relative;
  min-height: clamp(74px, 7.9vw, 162px);
  margin-left: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-top: clamp(8px, 1vw, 18px);
  background: #fff;
  border-bottom-right-radius: clamp(42px, 4.4vw, 88px);
  display: flex;
  align-items: flex-start;
}

/* concave fillet: the strip flows down into the logo bulge as one surface */
.logo-panel::after {
  content: "";
  position: absolute;
  top: var(--nav-strip);
  left: 100%;
  width: var(--nav-fillet);
  height: var(--nav-fillet);
  background: #fff;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 100% 100%, transparent 70%, #000 71%);
  mask: radial-gradient(circle at 100% 100%, transparent 70%, #000 71%);
}

/* concave fillet UNDER the logo: same shape as the side one, rounds the hero corner at the panel base */
.logo-panel::before {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--gutter);
  width: var(--nav-fillet-b);
  height: var(--nav-fillet-b);
  background: #fff;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 100% 100%, transparent 70%, #000 71%);
  mask: radial-gradient(circle at 100% 100%, transparent 70%, #000 71%);
}

.logo-stack {
  position: relative;
  width: clamp(140px, 11.5vw, 240px);
  height: clamp(62px, 5.3vw, 108px);
  display: block;
}

.logo-line {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: clamp(38px, 3.3vw, 70px);
  background: #111;
  color: #fff;
  border-radius: clamp(8px, 0.72vw, 16px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.logo-line-top {
  left: 0;
  top: 0;
  padding: 0 clamp(11px, 0.85vw, 18px);
  font-size: clamp(26px, 2.35vw, 52px);
}

.logo-line-bottom {
  right: 0;
  bottom: 0;
  padding: 0 clamp(12px, 0.95vw, 22px);
  font-size: clamp(23px, 2.05vw, 45px);
}

.header-center {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(16px, 1.5vw, 28px);
  padding: clamp(12px, 1.15vw, 24px) 0 0 0;
}

.icon-button {
  width: clamp(48px, 3.75vw, 76px);
  height: clamp(48px, 3.75vw, 76px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: inset 0 0 0 2px rgba(20, 20, 20, 0.06), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.icon-button svg {
  width: 58%;
  height: 58%;
}

.lang-toggle {
  transition: background 160ms ease, color 160ms ease;
}

.lang-toggle:hover {
  background: var(--orange);
  color: #fff;
}

.lang-code {
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 22px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.primary-button,
.outline-button,
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(48px, 3.8vw, 78px);
  border-radius: 999px;
  padding: 0 clamp(30px, 3.6vw, 72px);
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.22vw, 26px);
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.primary-button:hover,
.footer-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.contact-panel {
  position: relative;
  min-height: clamp(72px, 6.2vw, 104px);
  margin-right: calc(var(--gutter) * -1);
  padding: clamp(10px, 0.95vw, 20px) var(--gutter) 0 clamp(26px, 2.9vw, 60px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 44px);
  background: #fff;
  border-bottom-left-radius: clamp(34px, 3.3vw, 52px);
}

/* concave fillet: mirrors the logo side so the header reads as one white canopy */
.contact-panel::before {
  content: "";
  position: absolute;
  top: var(--nav-strip);
  right: 100%;
  width: var(--nav-fillet);
  height: var(--nav-fillet);
  background: #fff;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 0 100%, transparent 70%, #000 71%);
  mask: radial-gradient(circle at 0 100%, transparent 70%, #000 71%);
}

/* concave fillet UNDER the contacts: same shape as the side one, rounds the hero corner at the panel base */
.contact-panel::after {
  content: "";
  position: absolute;
  top: 100%;
  right: var(--gutter);
  width: var(--nav-fillet-b);
  height: var(--nav-fillet-b);
  background: #fff;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 0 100%, transparent 70%, #000 71%);
  mask: radial-gradient(circle at 0 100%, transparent 70%, #000 71%);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1vw, 20px);
  min-height: clamp(48px, 3.75vw, 76px);
  font-size: clamp(16px, 1.2vw, 26px);
  font-weight: 700;
  white-space: nowrap;
}

.phone-icon {
  width: clamp(42px, 3vw, 62px);
  height: clamp(42px, 3vw, 62px);
  display: inline-flex;
  color: #111;
}

.phone-icon svg {
  width: 100%;
  height: 100%;
}

.menu-button {
  width: clamp(42px, 3.2vw, 64px);
  height: clamp(42px, 3.2vw, 64px);
  display: grid;
  align-content: center;
  gap: clamp(6px, 0.43vw, 9px);
  padding: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  height: clamp(3px, 0.22vw, 5px);
  background: #111;
}

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-items: start;
  padding: clamp(20px, 4vw, 72px) var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.search-open .search-layer {
  opacity: 1;
  pointer-events: auto;
}

.search-form {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  background: #fff;
  border-radius: 999px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.search-form input {
  border: 0;
  outline: 0;
  min-width: 0;
  padding: 0 clamp(18px, 2vw, 36px);
  font-size: clamp(22px, 2vw, 40px);
}

.menu-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-columns: 27.2% 34.2% 1fr;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.drawer-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-contacts,
.menu-services,
.menu-main {
  min-height: 100svh;
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity 360ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-open .menu-contacts,
.drawer-open .menu-services,
.drawer-open .menu-main {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger columns right-to-left: .menu-main (right) first, .menu-contacts (left) last */
.drawer-open .menu-main {
  transition-delay: 80ms;
}

.drawer-open .menu-services {
  transition-delay: 220ms;
}

.drawer-open .menu-contacts {
  transition-delay: 360ms;
}

@media (prefers-reduced-motion: reduce) {
  .menu-contacts,
  .menu-services,
  .menu-main {
    transform: none;
    transition: opacity 160ms ease;
  }
}

.menu-contacts {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3vw, 64px) clamp(34px, 5vw, 104px);
}

.menu-logo,
.footer-logo {
  width: clamp(176px, 13vw, 260px);
  height: clamp(82px, 6vw, 124px);
  position: relative;
  display: block;
}

.menu-logo span,
.footer-logo span {
  position: absolute;
  background: #111;
  color: #fff;
  border-radius: clamp(8px, 0.72vw, 16px);
  min-height: clamp(46px, 4vw, 82px);
  display: flex;
  align-items: center;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.menu-logo span:first-child,
.footer-logo span:first-child {
  left: 0;
  top: 0;
  padding: 0 clamp(14px, 1vw, 20px);
  font-size: clamp(30px, 2.6vw, 54px);
}

.menu-logo span:last-child,
.footer-logo span:last-child {
  right: 0;
  bottom: 0;
  padding: 0 clamp(14px, 1.1vw, 22px);
  font-size: clamp(27px, 2.3vw, 48px);
}

.menu-contact-copy {
  display: grid;
  gap: clamp(26px, 2.2vw, 44px);
  margin-top: auto;
  padding-top: 56px;
  font-size: clamp(17px, 1.18vw, 24px);
  line-height: 1.2;
}

.menu-contact-copy p {
  margin: 0;
}

.menu-phone {
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 22px;
  margin-top: clamp(42px, 4vw, 84px);
}

.socials a {
  width: clamp(48px, 2.6vw, 56px);
  height: clamp(48px, 2.6vw, 56px);
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.socials svg {
  width: 68%;
  height: 68%;
}

.socials span {
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.privacy-link {
  margin-top: clamp(34px, 3vw, 64px);
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: clamp(17px, 1.18vw, 24px);
}

.menu-services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 2.6vw, 54px);
  padding: clamp(80px, 9.8vw, 200px) clamp(48px, 5vw, 108px);
  background: var(--orange);
  color: #fff;
  border-top-left-radius: clamp(48px, 4.8vw, 96px);
  border-bottom-left-radius: clamp(48px, 4.8vw, 96px);
}

.menu-services h2 {
  margin: 0 0 clamp(10px, 1.2vw, 24px);
  font-size: clamp(46px, 3.1vw, 66px);
  line-height: 1;
  font-weight: 700;
}

.menu-services a {
  font-size: clamp(24px, 1.5vw, 32px);
  line-height: 1.08;
}

.menu-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(92px, 10vw, 208px) clamp(48px, 5vw, 104px) clamp(44px, 4.4vw, 90px);
  background: #fff;
  border-top-left-radius: clamp(48px, 4.8vw, 96px);
  border-bottom-left-radius: clamp(48px, 4.8vw, 96px);
  margin-left: calc(clamp(48px, 4.8vw, 96px) * -1);
}

.menu-main-links {
  display: grid;
  gap: clamp(34px, 4vw, 82px);
}

.menu-main-links a {
  font-size: clamp(44px, 3.1vw, 66px);
  line-height: 1;
  font-weight: 700;
}

.presentation-link {
  margin-top: auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--orange);
  font-size: clamp(22px, 1.45vw, 32px);
}

.presentation-arrow {
  width: clamp(58px, 4vw, 82px);
  height: clamp(58px, 4vw, 82px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}

.presentation-arrow svg {
  width: 58%;
  height: 58%;
}

.drawer-close {
  position: absolute;
  top: clamp(32px, 2.6vw, 54px);
  right: clamp(40px, 3vw, 62px);
  width: clamp(48px, 3vw, 64px);
  height: clamp(48px, 3vw, 64px);
  background: transparent;
  color: #111;
}

.drawer-close::before,
.drawer-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform-origin: center;
}

.drawer-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

main {
  max-width: var(--max);
  margin: 0 auto;
}

.projects-section {
  display: grid;
  gap: clamp(52px, 4.05vw, 84px);
  padding: 0 var(--gutter) clamp(58px, 6vw, 120px);
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(242px, 38.6vw, 790px);
  border-radius: var(--radius-xl);
  isolation: isolate;
  background: var(--panel);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 68%, rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-card {
  margin-top: 0;
}

.hero-cta,
.hero-arrow {
  display: none;
}

.project-title,
.project-section-label {
  position: absolute;
  z-index: 4;
  left: 0;
  background: #fff;
  color: #111;
}

.project-title {
  bottom: 0;
  max-width: min(40vw, 700px);
  min-height: clamp(74px, 6.95vw, 143px);
  display: flex;
  align-items: center;
  padding: 0 clamp(28px, 2.9vw, 60px);
  border-top-right-radius: clamp(38px, 3.9vw, 78px);
  /* no own bottom-left radius — the card's overflow:hidden clips this corner,
     so the tab always matches the card edge with no sub-pixel image sliver */
  border-bottom-left-radius: 0;
  font-size: clamp(34px, 2.6vw, 58px);
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

/* concave fillets: the title tab flows into the card above it and to its right.
   Applied to the hero and any card marked .flow-title (GROWTH SEO, IRecenze…). */
.hero-card .project-title::before,
.hero-card .project-title::after,
.flow-title .project-title::before,
.flow-title .project-title::after {
  content: "";
  position: absolute;
  width: var(--title-fillet);
  height: var(--title-fillet);
  background: #fff;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 70%, #000 71%);
  mask: radial-gradient(circle at 100% 0, transparent 70%, #000 71%);
}

/* above the title (rounds the top-left) */
.hero-card .project-title::before,
.flow-title .project-title::before {
  left: 0;
  bottom: 100%;
}

/* to the right of the title (rounds the bottom-right) */
.hero-card .project-title::after,
.flow-title .project-title::after {
  left: 100%;
  bottom: 0;
}

.project-title.compact {
  max-width: 190px;
}

.project-title.large {
  max-width: min(44vw, 760px);
}

.project-title.extra-large {
  max-width: min(55vw, 920px);
}

.project-section-label::after {
  content: "";
  position: absolute;
  width: clamp(28px, 2.8vw, 56px);
  height: clamp(28px, 2.8vw, 56px);
  background: #fff;
  pointer-events: none;
  mask: radial-gradient(circle at 100% 0, transparent 70%, #000 72%);
}

.project-section-label {
  bottom: clamp(74px, 6.95vw, 143px);
  min-height: clamp(48px, 4.1vw, 84px);
  max-width: min(37vw, 650px);
  padding: 0 clamp(28px, 2.9vw, 60px);
  display: flex;
  align-items: center;
  border-top-right-radius: clamp(30px, 3vw, 62px);
  font-size: clamp(22px, 1.95vw, 40px);
  color: #111;
}

.project-section-label::after {
  right: calc(clamp(28px, 2.8vw, 56px) * -1);
  bottom: 0;
}

.tags {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 2.1vw, 44px);
  bottom: clamp(28px, 2.2vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(12px, 1vw, 20px);
}

.tags span {
  min-height: clamp(36px, 3.05vw, 62px);
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 clamp(22px, 2vw, 42px);
  background: #111;
  color: #fff;
  font-size: clamp(16px, 1.25vw, 26px);
  line-height: 1;
  white-space: nowrap;
}

.tags-wide {
  right: clamp(34px, 3vw, 72px);
}

.portfolio-link {
  display: flex;
  justify-content: center;
  margin-top: calc(clamp(14px, 1.2vw, 24px) * -1);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  min-height: clamp(52px, 4.2vw, 84px);
  border: 2px solid #111;
  background: #fff;
  color: #111;
  font-weight: 500;
}

.outline-button:hover {
  background: #111;
  color: #fff;
}

.company-section {
  margin: 0 var(--gutter) clamp(70px, 7vw, 138px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #f3f3f3;
}

.company-media {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #f2f2f2;
}

.company-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.company-copy {
  padding: clamp(28px, 3.3vw, 70px);
  background: #fff;
}

.company-copy h2,
.section-head h2 {
  margin: 0 0 clamp(18px, 2.2vw, 42px);
  font-size: clamp(38px, 3.4vw, 68px);
  line-height: 1.05;
  font-weight: 400;
}

.company-copy p {
  max-width: 1160px;
  margin: 0 0 18px;
  font-size: clamp(18px, 1.38vw, 28px);
  line-height: 1.42;
}

.company-copy p:first-of-type {
  font-size: clamp(24px, 2vw, 40px);
}

.reviews-section {
  padding: 0 var(--gutter) clamp(74px, 7vw, 140px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 2.4vw, 48px);
}

.review-controls {
  display: flex;
  gap: 10px;
}

.review-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  box-shadow: inset 0 0 0 2px rgba(47, 179, 68, 0.2);
  font-size: 30px;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: clamp(20px, 2vw, 40px);
  overflow-x: auto;
  padding: 0 clamp(22px, 2.4vw, 48px) 12px;
  scroll-snap-type: x mandatory;
}

.review-card {
  min-height: 540px;
  padding: clamp(26px, 2.5vw, 50px);
  border-radius: clamp(30px, 3vw, 58px);
  background: #f5f5f5;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-card img {
  height: 70px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.review-card a {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  font-weight: 500;
}

.review-card p {
  margin: 0;
  color: #242424;
  font-size: 18px;
  line-height: 1.34;
}

.author {
  margin-top: auto;
}

.author strong,
.author span {
  display: block;
}

.author strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.author span {
  color: #6f6f6f;
  font-size: 14px;
}

.file-link {
  display: inline-flex;
  width: fit-content;
  color: #444;
  font-size: 14px;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 6vw, 122px) var(--gutter) clamp(10px, 1vw, 20px);
  color: #fff;
}

.footer-shell {
  position: relative;
  min-height: clamp(580px, 34.4vw, 705px);
  border-radius: clamp(40px, 3.1vw, 64px);
  background: #111;
  overflow: hidden;
}

.footer-request {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: min(46vw, 900px);
  min-height: clamp(94px, 6.2vw, 128px);
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(24px, 2.6vw, 54px);
  padding: clamp(20px, 1.8vw, 38px) clamp(16px, 0.9vw, 20px) clamp(24px, 2vw, 44px)
    clamp(54px, 3.8vw, 78px);
  background: #fff;
  color: #111;
  border-bottom-left-radius: clamp(40px, 3.1vw, 64px);
}

/* concave fillets: the request panel flows into the dark footer on its left and underneath */
.footer-request::before,
.footer-request::after {
  content: "";
  position: absolute;
  width: var(--nav-fillet-b);
  height: var(--nav-fillet-b);
  background: #fff;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 0 100%, transparent 70%, #000 71%);
  mask: radial-gradient(circle at 0 100%, transparent 70%, #000 71%);
}

/* to the left of the panel */
.footer-request::before {
  top: 0;
  right: 100%;
}

/* under the panel */
.footer-request::after {
  top: 100%;
  right: 0;
}

.footer-request h2 {
  margin: 0;
  font-size: clamp(24px, 1.6vw, 34px);
  line-height: 1;
  font-weight: 700;
}

.footer-form {
  display: grid;
  grid-template-columns: 1fr clamp(52px, 3.8vw, 72px);
  align-items: center;
  min-height: clamp(62px, 4vw, 82px);
  border-radius: 999px;
  background: #ededed;
  padding: 0 clamp(8px, 0.7vw, 14px) 0 clamp(24px, 1.6vw, 34px);
}

.footer-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: clamp(19px, 1.25vw, 26px);
}

.footer-form button {
  width: clamp(52px, 3.8vw, 72px);
  height: clamp(52px, 3.8vw, 72px);
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
}

.footer-form svg {
  width: 58%;
  height: 58%;
}

.footer-content {
  min-height: inherit;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1.05fr 1.65fr;
  grid-template-rows: auto 1fr auto auto;
  column-gap: clamp(36px, 3.6vw, 74px);
  row-gap: clamp(34px, 3vw, 64px);
  padding: clamp(40px, 4vw, 84px) clamp(40px, 4vw, 84px) clamp(24px, 2vw, 42px);
}

.footer-logo {
  grid-column: 1;
  grid-row: 1;
}

.footer-logo span {
  background: #fff;
  color: #111;
}

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

.footer-menu-left {
  grid-column: 2;
  grid-row: 2;
}

.footer-menu-right {
  grid-column: 3;
  grid-row: 2;
}

.footer-menu a {
  display: inline-flex;
  padding: 9px 0;
  font-size: clamp(16px, 0.98vw, 21px);
  font-weight: 700;
  line-height: 1.1;
}

.footer-phone {
  grid-column: 4;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 98px;
}

.footer-phone a:first-child {
  font-weight: 700;
}

.footer-addresses {
  grid-column: 5;
  grid-row: 2 / span 2;
  display: grid;
  align-content: start;
  gap: clamp(22px, 1.7vw, 36px);
}

.footer-addresses p,
.footer-phone a {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(16px, 0.98vw, 21px);
  line-height: 1.24;
}

.footer-socials {
  grid-column: 4;
  grid-row: 3;
  align-self: end;
  margin: 0;
}

.footer-socials a {
  background: #fff;
  color: #111;
}

.footer-bottom {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.05fr 1.65fr;
  column-gap: clamp(36px, 3.6vw, 74px);
  align-items: end;
  padding-top: clamp(18px, 2vw, 42px);
}

.footer-bottom a,
.copy {
  color: #fff;
  font-size: clamp(14px, 0.9vw, 19px);
  line-height: 1.25;
}

.copy {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  transform: translateY(38px);
  font-size: clamp(12px, 0.72vw, 15px);
}

/* Floating contact speed-dial (phone / WhatsApp / Telegram) */
.contact-fab {
  position: fixed;
  right: clamp(18px, 1.9vw, 40px);
  bottom: clamp(18px, 1.9vw, 40px);
  z-index: 35;
}

.chat-button {
  position: relative;
  width: clamp(58px, 4.8vw, 94px);
  height: clamp(58px, 4.8vw, 94px);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 clamp(8px, 0.75vw, 15px) rgba(47, 179, 68, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease;
}

.chat-button:hover {
  transform: scale(1.05);
}

/* two icons cross-fade between chat (closed) and × (open) */
.fab-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    opacity 200ms ease,
    transform 240ms ease;
}

.fab-icon svg {
  width: 46%;
  height: 46%;
}

.fab-icon-close {
  opacity: 0;
  transform: scale(0.4) rotate(-45deg);
}

.contact-fab.open .fab-icon-chat {
  opacity: 0;
  transform: scale(0.4) rotate(45deg);
}

.contact-fab.open .fab-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* the action buttons stack upward above the toggle */
.contact-fab-actions {
  position: absolute;
  right: 0;
  bottom: calc(100% + clamp(12px, 1.2vw, 18px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.1vw, 16px);
}

.contact-fab-action {
  width: clamp(50px, 4.2vw, 64px);
  height: clamp(50px, 4.2vw, 64px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(14px) scale(0.4);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-fab-action:hover {
  filter: brightness(1.08);
}

.contact-fab-action svg {
  width: 50%;
  height: 50%;
}

.fab-phone {
  background: #111;
}

.fab-whatsapp {
  background: #25d366;
}

.fab-telegram {
  background: #229ed9;
}

.contact-fab.open .contact-fab-action {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* stagger from the button upward (telegram is closest, phone is on top) */
.contact-fab.open .fab-telegram {
  transition-delay: 30ms;
}

.contact-fab.open .fab-whatsapp {
  transition-delay: 80ms;
}

.contact-fab.open .fab-phone {
  transition-delay: 130ms;
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab-action {
    transition: opacity 160ms ease;
    transform: none;
  }
}

@media (min-width: 1280px) {
  .project-card {
    min-height: min(38.6vw, 790px);
  }

  .reviews-track {
    grid-auto-columns: minmax(440px, 1fr);
  }
}

@media (max-width: 940px) {
  .site-header {
    height: clamp(96px, 18vw, 145px);
  }

  /* ---- Mobile menu: one scrollable column instead of the 3-col desktop grid ---- */
  .menu-overlay {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-contacts,
  .menu-services,
  .menu-main {
    min-height: 0;
    width: 100%;
    flex-shrink: 0; /* keep content height; the overlay scrolls instead of squashing */
    transform: none; /* no horizontal slide on a vertical stack */
  }

  /* order: main nav first, then services, then contacts */
  .menu-main {
    order: 1;
    margin-left: 0;
    border-radius: 0;
    padding: clamp(78px, 19vw, 110px) clamp(28px, 7vw, 56px) clamp(34px, 8vw, 56px);
  }

  .menu-services {
    order: 2;
    border-radius: 0;
    padding: clamp(38px, 9vw, 64px) clamp(28px, 7vw, 56px);
    gap: clamp(18px, 4.5vw, 32px);
  }

  .menu-contacts {
    order: 3;
    padding: clamp(34px, 8vw, 56px) clamp(28px, 7vw, 56px) clamp(48px, 12vw, 80px);
  }

  .menu-main-links {
    gap: clamp(22px, 5vw, 34px);
  }

  .menu-main-links a {
    font-size: clamp(34px, 9vw, 46px);
  }

  .presentation-link {
    margin-top: clamp(40px, 9vw, 64px);
    margin-left: 0;
    font-size: clamp(20px, 5vw, 26px);
  }

  .menu-services h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .menu-services a {
    font-size: clamp(20px, 5vw, 26px);
  }

  .menu-contact-copy {
    margin-top: clamp(26px, 6vw, 44px);
    padding-top: 0;
    gap: clamp(16px, 4vw, 28px);
    font-size: clamp(16px, 4.4vw, 20px);
  }

  .socials {
    margin-top: clamp(26px, 6vw, 40px);
  }

  /* close button pinned to the top-right of the overlay while it scrolls */
  .drawer-close {
    position: fixed;
    top: clamp(22px, 5.5vw, 36px);
    right: clamp(20px, 5vw, 34px);
    z-index: 5;
  }

  /* the side fillets keep their default position anchored to the white nav strip;
     the bottom fillets align to the hero card's side edges (projects-section padding)
     so the concave notches meet the card cleanly */
  .logo-panel::before {
    left: clamp(15px, 3.7vw, 30px);
  }

  .contact-panel::after {
    right: clamp(15px, 3.7vw, 30px);
  }

  .header-shell {
    grid-template-columns: clamp(132px, 23.5vw, 190px) 1fr clamp(76px, 14.5vw, 116px);
    gap: clamp(8px, 1.8vw, 14px);
    padding-right: var(--gutter);
  }

  .logo-panel {
    min-height: clamp(96px, 18vw, 145px);
    padding-left: clamp(24px, 6vw, 48px);
    padding-top: clamp(18px, 4.7vw, 38px);
    border-bottom-right-radius: clamp(34px, 5vw, 44px);
  }

  .logo-stack {
    width: clamp(108px, 17vw, 140px);
    /* tall enough for the two lines to stack with a diagonal offset instead of overlapping */
    height: clamp(80px, 11.5vw, 104px);
  }

  .logo-line {
    min-height: clamp(34px, 7vw, 56px);
    border-radius: clamp(7px, 1.7vw, 14px);
  }

  .logo-line-top {
    padding: 0 clamp(9px, 2vw, 16px);
    font-size: clamp(24px, 5.3vw, 42px);
  }

  .logo-line-bottom {
    padding: 0 clamp(10px, 2.2vw, 18px);
    font-size: clamp(22px, 5vw, 38px);
  }

  .header-center {
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: clamp(26px, 6.4vw, 52px);
    padding-right: clamp(8px, 2.5vw, 20px);
  }

  .icon-button {
    width: clamp(46px, 9.5vw, 76px);
    height: clamp(46px, 9.5vw, 76px);
  }

  .primary-button {
    display: none;
  }

  .contact-panel {
    min-height: clamp(70px, 15.5vw, 124px);
    margin-right: calc(var(--gutter) * -1);
    padding: clamp(26px, 6.4vw, 52px) clamp(24px, 6vw, 48px) 0 0;
    border-bottom-left-radius: clamp(30px, 5.2vw, 44px);
    background: #fff;
    justify-content: flex-end;
  }

  .phone-link {
    display: none;
  }

  .menu-button {
    width: clamp(46px, 9.5vw, 76px);
    height: clamp(46px, 9.5vw, 76px);
    background: transparent;
    border-radius: 0;
    gap: clamp(7px, 1.4vw, 11px);
    padding: 0;
  }

  .menu-button span {
    height: clamp(3px, 0.65vw, 5px);
    border-radius: 999px;
  }

  main {
    margin-top: 0;
  }

  .projects-section {
    padding: clamp(12px, 3vw, 24px) clamp(15px, 3.7vw, 30px) clamp(58px, 6vw, 120px);
    gap: 28px;
  }

  .project-card {
    min-height: 56vw;
    border-radius: 32px;
  }

  .project-title {
    max-width: 86%;
    min-height: 66px;
    padding: 0 22px;
    font-size: clamp(25px, 7vw, 42px);
    border-top-right-radius: 32px;
  }

  .hero-card {
    min-height: clamp(200px, 50vw, 410px);
    margin-bottom: clamp(60px, 15vw, 130px);
    overflow: visible;
    background: transparent;
    border-radius: clamp(32px, 5vw, 42px);
  }

  .hero-card img,
  .hero-card::after {
    border-radius: inherit;
  }

  .hero-card .project-title {
    bottom: calc(clamp(56px, 8.8vw, 82px) * -1);
    max-width: none;
    min-height: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: clamp(32px, 5.2vw, 48px);
    line-height: 1.1;
  }

  .hero-card .project-title::before,
  .hero-card .project-title::after {
    display: none;
  }

  /* white "bay" carved into the card's bottom-right corner, holding the arrow */
  .hero-cta {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3.6vw, 22px);
    background: #fff;
    border-radius: clamp(30px, 6vw, 46px) 0 clamp(32px, 5vw, 42px) 0;
  }

  /* concave fillets so the card flows around the bay's top and left edges */
  .hero-cta::before,
  .hero-cta::after {
    content: "";
    position: absolute;
    width: var(--title-fillet);
    height: var(--title-fillet);
    background: #fff;
    pointer-events: none;
    -webkit-mask: radial-gradient(circle at 0 0, transparent 70%, #000 71%);
    mask: radial-gradient(circle at 0 0, transparent 70%, #000 71%);
  }

  /* above the bay (rounds where the card meets the bay's top-right) */
  .hero-cta::before {
    right: 0;
    bottom: 100%;
  }

  /* left of the bay (rounds where the card meets the bay's bottom-left) */
  .hero-cta::after {
    right: 100%;
    bottom: 0;
  }

  .hero-arrow {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(44px, 9.5vw, 76px);
    height: clamp(44px, 9.5vw, 76px);
    border-radius: 50%;
    background: #111;
    color: #fff;
  }

  .hero-arrow svg {
    width: 58%;
    height: 58%;
  }

  .project-section-label {
    bottom: 66px;
    max-width: 84%;
    min-height: 46px;
    padding: 0 22px;
    font-size: 20px;
    border-top-right-radius: 24px;
  }

  .tags {
    right: 18px;
    bottom: 18px;
    gap: 8px;
  }

  .tags span {
    min-height: 34px;
    padding: 0 16px;
    font-size: 14px;
  }

  .company-section {
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 34px;
  }

  .company-media {
    border-radius: 34px;
  }

  .company-copy h2,
  .section-head h2 {
    font-size: 38px;
  }

  /* ---- Footer: centered, stacked layout (logo, form, 2-col menu, contacts, socials, legal) ---- */
  .footer {
    padding-left: 16px;   /* match the width of the other content blocks */
    padding-right: 16px;
  }

  .footer-shell {
    min-height: 0; /* height follows content */
  }

  /* centered grid: full-width rows + one 2-column menu row */
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-auto-flow: row;
    justify-items: center;
    align-items: start;
    text-align: center;
    min-height: 0;
    column-gap: clamp(28px, 9vw, 80px);
    row-gap: clamp(26px, 4vw, 40px);
    padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 48px) clamp(30px, 4vw, 48px);
  }

  /* full-width stacked items span both columns */
  .footer-logo,
  .footer-request,
  .footer-phone,
  .footer-addresses,
  .footer-socials,
  .footer-bottom,
  .copy {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-logo {
    margin: 0 auto; /* center the logo */
  }

  /* request form: in-flow on the dark shell, full width, light input pill */
  .footer-request {
    position: static;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(14px, 2.4vw, 22px);
    padding: 0;
    background: transparent;
    border-radius: 0;
    justify-items: center;
  }

  .footer-request::before,
  .footer-request::after {
    display: none;
  }

  .footer-request h2 {
    color: #fff; /* "Leave a request" sits on the dark shell now */
  }

  .footer-form {
    width: 100%;
    grid-template-columns: 1fr auto;
  }

  .footer-form input {
    width: 100%;
  }

  .footer-form button {
    width: clamp(52px, 9vw, 60px);
    height: clamp(52px, 9vw, 60px);
  }

  /* two centered menu columns */
  .footer-menu-left,
  .footer-menu-right {
    grid-row: auto;
  }

  .footer-menu-left {
    grid-column: 1;
    justify-self: end;
    text-align: right;
  }

  .footer-menu-right {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .footer-menu a {
    padding: 10px 0;
  }

  /* phone centered (drop the desktop space-between gap) */
  .footer-phone {
    align-items: center;
    min-height: 0;
  }

  /* socials centered */
  .footer-socials {
    margin-top: 0;
    justify-content: center;
  }

  .footer-socials a {
    width: 48px;
    height: 48px;
  }

  /* legal links: single centered column, wrap long phrases */
  .footer-bottom {
    grid-template-columns: 1fr;
    row-gap: 14px;
    justify-items: center;
    align-items: start;
    padding-top: clamp(14px, 3vw, 28px);
  }

  .footer-bottom a {
    overflow-wrap: anywhere;
  }

  /* copyright centered + visible */
  .copy {
    transform: none;
    margin-top: clamp(8px, 2vw, 16px);
  }
}

@media (min-width: 621px) and (max-width: 940px) {
  .hero-card {
    margin-bottom: 145px;
  }

  .hero-card .project-title {
    bottom: -92px;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 12px;
    /* larger fillets so the concave notches match the panel corner radius (~34px) */
    --nav-fillet: 22px;
    --nav-fillet-b: 34px;
  }

  /* bottom fillets align exactly to the hero card's side edges (projects-section padding: 0 16px) */
  .logo-panel::before {
    left: 16px;
  }

  .contact-panel::after {
    right: 16px;
  }

  .header-shell {
    grid-template-columns: 103px 1fr 58px;
    gap: 8px;
  }

  .logo-panel {
    min-height: 72px;
    padding-left: 16px; /* align logo with the hero card's left edge + give it breathing room on the right */
    padding-top: 18px;
    border-bottom-right-radius: 30px;
  }

  .logo-stack {
    width: 90px;
    height: 48px;
  }

  .logo-line {
    min-height: 28px;
  }

  .logo-line-top {
    font-size: 21px;
  }

  .logo-line-bottom {
    font-size: 19px;
  }

  .header-center {
    padding-top: 26px;
    padding-right: 7px;
  }

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

  .contact-panel {
    min-height: 62px;
    padding: 24px 24px 0 0;
    border-bottom-left-radius: 28px;
  }

  .menu-button {
    width: 46px;
    height: 46px;
    gap: 6px;
  }

  /* narrower, right-aligned bars so they sit in the flat white area and clear
     the contact panel's rounded bottom-left corner (no longer look crooked) */
  .menu-button span {
    width: 28px;
    justify-self: end;
  }

  .projects-section {
    padding: var(--nav-strip) 16px clamp(58px, 6vw, 120px); /* top inset == navbar strip */
    gap: 34px;
  }

  .project-card {
    min-height: 68vw;
  }

  .hero-card {
    min-height: 66vw;
    margin-bottom: 70px;
  }

  .project-card img {
    object-position: center;
  }

  .hero-card img {
    object-position: 43% center;
  }

  /* smaller, breathing titles — closer to reference proportions */
  .project-title {
    font-size: clamp(21px, 5.7vw, 36px);
  }

  .hero-card .project-title {
    bottom: -54px;
    font-size: clamp(23px, 6.2vw, 38px);
  }

  .project-title.large,
  .project-title.extra-large {
    max-width: 92%;
    white-space: normal;
  }

  .project-section-label {
    display: none;
  }

  .search-form {
    grid-template-columns: 1fr;
    border-radius: 32px;
  }

  .search-form input {
    min-height: 62px;
  }

  .search-form .primary-button {
    display: inline-flex;
    justify-content: center;
  }

  .section-head {
    padding: 0;
  }

  .review-controls {
    display: none;
  }

  .reviews-track {
    grid-auto-columns: minmax(286px, 88vw);
    padding: 0 0 12px;
  }

  .review-card {
    min-height: 500px;
  }

  .footer {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }

  /* tighter spacing on phones; keep the 2-column menu from the <=940 rules */
  .footer-content {
    column-gap: clamp(20px, 8vw, 44px);
    row-gap: 24px;
    padding: 40px 18px 28px;
  }

  .footer-form {
    padding: 0 8px 0 18px;
  }

  .footer-form input {
    font-size: 19px; /* >=16px so iOS doesn't zoom on focus */
  }

  .footer-form button {
    width: 52px;
    height: 52px;
  }

  .footer-socials a {
    width: 46px;
    height: 46px;
  }
}
