:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.68);
  --border: rgba(17, 17, 17, 0.2);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);

  --accent2: #e44e4e;
  --accent: #e09090;
  --violet: #9090d0;
  --mint: #a0d0b0;

  --container: 1080px;
  --radius: 14px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.35;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

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

.nav-link {
  font-weight: 700;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.78);
}

.nav-link:hover {
  color: rgba(17, 17, 17, 0.95);
}

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

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  background: transparent;
  color: var(--text);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent2);
  color: #ffffff;
}

.btn-secondary {
  border-color: rgba(17, 17, 17, 0.3);
  background: rgba(255, 255, 255, 0.7);
}

.btn-lg {
  padding: 12px 16px;
  border-radius: 12px;
}

.btn-wide {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
}

.btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: fdb-spin 700ms linear infinite;
}

@keyframes fdb-spin {
  to {
    transform: rotate(360deg);
  }
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.45fr;
  gap: 24px;
  align-items: start;
}

.hero-headings {
  display: grid;
  gap: 6px;
}

.hero-heading {
  font-weight: 900;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-letter {
  display: inline-block;
  width: 0.92em;
}

.hero-letter-accent {
  color: var(--accent);
}

.hero-letter-violet {
  color: var(--violet);
}

.hero-letter-mint {
  color: var(--mint);
}

.hero-subtitle {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

.hero-aside {
  display: grid;
  gap: 14px;
  justify-items: end;
  padding-top: 14px;
}

.hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #ffffff;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider {
  border-top: 2px solid rgba(17, 17, 17, 0.82);
}

.section {
  padding: 26px 0 36px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 4px solid var(--violet);
}

.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 82ch;
}

.mt-14 {
  margin-top: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

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

.team-card {
  position: relative;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.team-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-right: 3px solid rgba(17, 17, 17, 0.65);
  border-bottom: 3px solid rgba(17, 17, 17, 0.65);
  border-radius: 2px;
  opacity: 0.6;
}

.team-card-accent {
  box-shadow: 0 10px 26px rgba(224, 144, 144, 0.18);
  border-color: rgba(224, 144, 144, 0.65);
}

.team-card-violet {
  box-shadow: 0 10px 26px rgba(144, 144, 208, 0.2);
  border-color: rgba(144, 144, 208, 0.65);
}

.team-card-mint {
  box-shadow: 0 10px 26px rgba(160, 208, 176, 0.22);
  border-color: rgba(160, 208, 176, 0.7);
}

.team-role {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.team-dots {
  display: flex;
  gap: 8px;
  margin: 12px 0 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.dot-accent {
  background: var(--accent);
}

.dot-violet {
  background: var(--violet);
}

.dot-mint {
  background: var(--mint);
}

.team-name {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
}

.team-avatar {
  position: absolute;
  right: 14px;
  top: 18px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.28);
  overflow: hidden;
  background: #ffffff;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.project-main {
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.project-main img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.project-body {
  padding: 14px 14px 16px;
}

.project-title {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 18px;
}

.project-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-side {
  display: grid;
  gap: 16px;
}

.project-card {
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.project-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

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

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.8);
}

.pill-accent {
  border-color: rgba(224, 144, 144, 0.65);
}

.pill-violet {
  border-color: rgba(144, 144, 208, 0.7);
}

.pill-mint {
  border-color: rgba(160, 208, 176, 0.75);
}

.partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.partner {
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: var(--radius-sm);
  height: 72px;
  display: grid;
  place-items: center;
  background: #111111;
}

.partner img {
  max-height: 40px;
  width: auto;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.contact-card {
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.actions {
  display: grid;
  gap: 10px;
}

.contact-title {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 16px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(17, 17, 17, 0.82);
  font-weight: 700;
  font-size: 14px;
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: rgba(17, 17, 17, 0.7);
  font-weight: 700;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-dialog {
  position: relative;
  width: min(740px, calc(100% - 32px));
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.05);
  border: 1px solid rgba(17, 17, 17, 0.14);
  color: rgba(17, 17, 17, 0.9);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-body {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 14px;
}

.modal-body.modal-body-single {
  grid-template-columns: 1fr;
}

.form {
  display: grid;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.78);
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(17, 17, 17, 0.03);
  padding: 12px 12px;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: rgba(224, 144, 144, 0.78);
  background: rgba(224, 144, 144, 0.06);
}

.form-message {
  min-height: 18px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.66);
}

.form-message[data-variant="error"] {
  color: rgba(199, 60, 60, 0.95);
}

.form-message[data-variant="success"] {
  color: rgba(22, 140, 72, 0.95);
}

.tariffs {
  display: grid;
  gap: 10px;
}

.tariff {
  cursor: pointer;
}

.tariff-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tariff-box {
  display: grid;
  gap: 6px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(17, 17, 17, 0.14);
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.tariff:hover .tariff-box {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.22);
}

.tariff-input:checked + .tariff-box {
  border-color: rgba(224, 144, 144, 0.78);
  background: rgba(224, 144, 144, 0.08);
}

.tariff-name {
  font-weight: 900;
}

.tariff-price {
  color: rgba(17, 17, 17, 0.82);
  font-weight: 900;
  font-size: 13px;
}

.tariff-desc {
  color: rgba(17, 17, 17, 0.68);
  font-size: 13px;
}

.modal-summary {
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.summary-label {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.66);
  font-weight: 800;
}

.summary-value {
  font-weight: 900;
  font-size: 13px;
}

.modal-hint {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.55);
}

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

  .hero-aside {
    justify-items: start;
    padding-top: 0;
  }

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

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

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

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

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
}
