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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000000;
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid #ffffff60;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-role {
  font-size: 11px;
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 12px;
  opacity: 0.75;
  text-decoration: none;
  color: #f5f5f5;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #f5f5f5;
  transition: width 0.16s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #ffffff33;
  padding: 2px;
  gap: 2px;
  overflow: hidden;
}

.lang-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: #f5f5f5cc;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.lang-btn.is-active {
  color: #050507;
}

.lang-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  height: calc(100% - 4px);
  width: 0;
  border-radius: 999px;
  background: #f5f5f5;
  transform-origin: left center;
  transition: transform 0.2s ease, width 0.2s ease, left 0.2s ease;
  z-index: 0;
}

.btn {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid #f5f5f5;
  background: #f5f5f5;
  color: #050507;
  font-size: 12px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px #000000b0;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: #f5f5f5;
}

.btn-outline:hover {
  background: #f5f5f5;
  color: #050507;
}

.btn-ghost {
  background: transparent;
  color: #f5f5f5;
  border-color: #ffffff33;
}

.btn-ghost:hover {
  border-color: #f5f5f5;
  background: #ffffff10;
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 5px 12px;
  font-size: 11px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  padding: 4px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.section-body {
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ffffff40;
}

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

.hero-side {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 180px;
  height: 180px;
  border: 2px solid #ffffff40;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("profile.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.text:last-child {
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.about-item {
  border-radius: 16px;
  border: 1px solid #ffffff22;
  padding: 10px 10px 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.about-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.about-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
}

.about-text {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.6;
}

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

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

.card {
  border-radius: 16px;
  border: 1px solid #ffffff22;
  padding: 14px 14px 12px;
  background: #000000;
}

.card-header-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.card-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.95;
}

.card-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-company {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.card-role {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}

.card-meta {
  margin: 0 0 6px;
  font-size: 11px;
  opacity: 0.7;
}

.card-title {
  margin: 0 0 6px;
  font-size: 15px;
}

.card-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
}

.card-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ffffff2c;
  background: #000000;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 18px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.contact-meta {
  border-radius: 12px;
  border: 1px dashed #ffffff33;
  padding: 10px 12px;
  font-size: 13px;
}

.contact-label {
  margin: 0 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.contact-value {
  margin: 0 0 8px;
  font-size: 13px;
}

.contact-value:last-child {
  margin-bottom: 0;
}

.footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  opacity: 0.75;
}

.footer-text {
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #000000b8;
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 880px;
  margin: 64px auto;
  background: #000000;
  border-radius: 18px;
  border: 1px solid #ffffff3a;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px #000000e0;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  aspect-ratio: 16 / 9;
  display: flex;
}

.modal.is-open .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 1px minmax(0, 1.9fr);
  width: 100%;
  gap: 0;
}

.modal-left {
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-right {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, #ffffff40, transparent);
}

.modal-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.modal-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  color: #f5f5f5;
  font-size: 18px;
  cursor: pointer;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
}

.label {
  font-size: 12px;
  margin-bottom: 3px;
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid #ffffff38;
  padding: 7px 9px;
  background: #000000;
  color: #f5f5f5;
  font-size: 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #f5f5f5;
}

.field-row {
  display: flex;
  gap: 8px;
}

.field-half {
  flex: 1;
}

.form-hint {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.8;
}

.btn-telegram {
  width: 100%;
  text-align: center;
  background: #229ed9;
  border: 1px solid #229ed9;
  color: #fff;
}

.btn-telegram:hover {
  background: #1b7eac;
  border-color: #1b7eac;
}

.btn-whatsapp {
  opacity: 0.5;
  cursor: default;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #ffffff30;
  background: #000000f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.cookie-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-link {
  color: #f5f5f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    justify-content: flex-start;
  }

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

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

  .cards-grid--services {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer {
    flex-direction: column;
  }

  .footer-text {
    white-space: normal;
  }

  .modal-content {
    aspect-ratio: auto;
  }

  .modal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-divider {
    display: none;
  }

  .modal-left {
    margin-bottom: 12px;
    border-bottom: 1px solid #ffffff20;
    padding-bottom: 12px;
  }

  .modal-right {
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 18px 12px 80px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .modal-content {
    margin: 48px 12px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-photo {
    width: 150px;
    height: 150px;
  }

  .field-row {
    flex-direction: column;
  }
}

.about-icon,
.card-icon {
  filter: invert(1) brightness(1.4);
}