:root {
  --black: #000000;
  --black-2: #000000;
  --green: #39ff14;
  --green-2: #00c853;
  --white: #ffffff;
  --muted: #aebbb3;
  --line: rgba(255, 255, 255, 0.1);
  --soft: rgba(255, 255, 255, 0.055);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background: var(--black);
  color: var(--white);
}

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

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(57, 255, 20, 0.75);
  outline-offset: 2px;
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  height: clamp(40px, 5.5vw, 52px);
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.2);
  flex-shrink: 0;
}

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

.brand strong {
  font-size: 1.02rem;
  letter-spacing: 0.3px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 2px;
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--green);
}

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

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

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: 0.2s;
}

nav a:hover {
  color: var(--green);
}

.nav-cta {
  flex-shrink: 0;
}

.btn {
  border: 0;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #031105;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  font: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--white);
}

.hero {
  padding: 54px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dffff0;
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.06);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

h1 span {
  color: var(--green);
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 22px;
}

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

.logo-panel {
  border: 1px solid rgba(57, 255, 20, 0.16);
  background: var(--black);
  border-radius: 30px;
  padding: clamp(16px, 3vw, 26px);
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  height: clamp(280px, 38vw, 380px);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

.logo-panel-img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 90%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.14));
}

.strip {
  padding: 16px 0 36px;
}

.techs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 8px 14px;
  text-align: center;
  color: #eaffed;
  min-height: 92px;
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}

.tech-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tech-name {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #eaffed;
}

section {
  padding: 32px 0;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.title small {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 800;
  font-size: 0.72rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -1px;
  margin-top: 5px;
}

.title p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 520px;
  font-size: 0.95rem;
}

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

.card {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 9px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.93rem;
}

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

.project {
  border: 1px solid rgba(57, 255, 20, 0.15);
  background: var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.2s;
}

.project:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 255, 20, 0.38);
}

.project-img {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 196px;
  height: clamp(188px, 28vw, 220px);
  background: #fff;
  padding: clamp(12px, 2.2vw, 22px) clamp(14px, 3vw, 26px);
}

.project-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  flex-shrink: 1;
  object-fit: contain;
  object-position: center;
}

.project-body {
  padding: 18px;
}

.project-body h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}

.project-body p {
  color: var(--muted);
  line-height: 1.52;
  font-size: 0.93rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.address {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius);
  padding: 22px;
}

.address h3 {
  margin-bottom: 12px;
}

.address p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

form {
  border: 1px solid rgba(57, 255, 20, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border-radius: var(--radius);
  padding: 22px;
}

.form-flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-flash--success {
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: #dffff0;
}

.form-flash--error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffd6d6;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

label {
  display: block;
  color: #eaffed;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(57, 255, 20, 0.55);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.08);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-tech {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em;
  max-width: 100%;
}

.footer-brand {
  color: var(--white);
  font-weight: 800;
}

.footer-brand-x {
  color: var(--green);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-cta .btn {
    display: none;
  }

  .hero-grid,
  .contact-grid,
  .projects {
    grid-template-columns: 1fr;
  }

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

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

  .title {
    display: block;
  }

  .title p {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 38px;
  }

  .logo-panel {
    height: clamp(240px, 58vw, 320px);
    min-height: 220px;
  }

  .brand-mark {
    max-width: 132px;
    height: 38px;
  }

  .tech-name {
    font-size: 0.7rem;
  }

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

  .actions,
  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
