@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #0D1217;
  --bg-soft: #121A21;
  --bg-card: rgba(255, 255, 255, 0.045);
  --line: rgba(248, 242, 228, 0.13);
  --line-strong: rgba(248, 242, 228, 0.22);
  --text: #F8F2E4;
  --muted: rgba(248, 242, 228, 0.68);
  --muted-2: rgba(248, 242, 228, 0.48);
  --accent: #2CB7C5;
  --accent-dark: #1A7D88;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  --font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(44, 183, 197, 0.12), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(248, 242, 228, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%);
  z-index: -1;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(13, 18, 23, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 18, 23, 0.92);
  border-color: var(--line);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.site-nav .nav-contact {
  color: var(--bg);
  background: var(--text);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  min-height: calc(100svh - 86px);
  display: grid;
  align-items: center;
  padding: 78px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(3.05rem, 8.6vw, 7.6rem);
}

h2 {
  font-size: clamp(2.35rem, 5.4vw, 5rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.hero-copy p:not(.eyebrow),
.section-head p,
.contact-card p,
.service-card p,
.modal-copy p {
  color: var(--muted);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin: 28px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 50% 22%, rgba(44, 183, 197, 0.22), transparent 46%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(248, 242, 228, 0.12);
}

.hero-panel::before {
  width: 360px;
  height: 360px;
  right: -130px;
  top: -88px;
}

.hero-panel::after {
  width: 220px;
  height: 220px;
  left: -64px;
  bottom: 128px;
}

.hero-panel img,
.hero-panel p {
  position: relative;
  z-index: 1;
}

.hero-panel img {
  width: min(100%, 430px);
  margin: 0 auto 56px;
}

.hero-panel p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section {
  padding: 90px 0;
}

.intro-section {
  padding: 26px 0 50px;
}

.intro-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-strip span {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
}

.section-head {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-head p:last-child {
  margin: 20px 0 0;
  font-size: 1rem;
}

.section-head.compact {
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.project-card button {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  z-index: -2;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.82) 100%);
}

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

.project-meta {
  width: 100%;
  padding: 24px;
}

.project-meta small {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.project-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.project-meta span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 50px;
  color: var(--accent);
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p {
  margin: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 14% 0%, rgba(44, 183, 197, 0.18), transparent 38%);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  color: var(--text);
  background: rgba(13, 18, 23, 0.74);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(44, 183, 197, 0.72);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-grid img {
  width: 132px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--muted);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;

  width: 62px;
  height: 62px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #25D366;
  color: #ffffff;

  box-shadow: 0 18px 45px rgba(37, 211, 102, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  background: #20bd5a;
  box-shadow: 0 22px 55px rgba(37, 211, 102, 0.36);
}

.floating-whatsapp__icon {
  width: 34px;
  height: 34px;
  display: block;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 18px;
}

.project-modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(14px);
}

.modal-window {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(860px, calc(100svh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101820;
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin: 16px 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(13, 18, 23, 0.86);
  font-size: 1.7rem;
  line-height: 1;
}

.modal-copy {
  padding: 32px 32px 18px;
}

.modal-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.modal-copy p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
}

.gallery-main {
  position: relative;
  margin: 0 32px;
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.gallery-main img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(13, 18, 23, 0.72);
  font-size: 2rem;
  line-height: 1;
}

.gallery-arrow[data-gallery-prev] {
  left: 14px;
}

.gallery-arrow[data-gallery-next] {
  right: 14px;
}

.gallery-counter {
  padding: 14px 32px 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  padding: 18px 32px 32px;
}

.gallery-thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  opacity: 0.56;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumbs button.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-card,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 390px;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 74px;
    padding: 14px;
  }

  .brand img {
    width: 146px;
  }

  .menu-button {
    display: inline-grid;
    place-content: center;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(13, 18, 23, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 14px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 44px;
  }

  .hero-actions,
  .contact-links {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

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

  .project-card {
    min-height: 380px;
  }

  .contact-card {
    padding: 22px;
    border-radius: 26px;
  }

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

  .gallery-main {
    min-height: 280px;
    margin: 0 16px;
  }

  .modal-copy {
    padding: 24px 16px 16px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(5, 1fr);
    padding: 16px;
  }

  .gallery-counter {
    padding-inline: 16px;
  }

  .floating-whatsapp {
  left: auto;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
}

.floating-whatsapp__icon {
  width: 32px;
  height: 32px;
}
}
