:root {
  --color-bg: #050816;
  --color-bg-soft: #0b1020;
  --color-bg-light: #ffffff;
  --color-primary: #2563eb;
  --color-primary-soft: rgba(37, 99, 235, 0.12);
  --color-accent: #14b8a6;
  --color-text: #0f172a;
  --color-text-soft: #6b7280;
  --color-border-soft: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.35);
  --container-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top left, #1d2a4a 0, #020617 45%, #000 100%);
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 0.75em;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.7), transparent);
  backdrop-filter: blur(18px);
}

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

.header__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #e5e7eb;
}

.nav__list a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__list a:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #f9fafb;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  padding: 0;
  cursor: pointer;
}

.nav__toggle span {
  height: 2px;
  width: 16px;
  margin: 0 auto;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__cta {
  display: inline-flex;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), #1d4ed8);
  color: #f9fafb;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.45);
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.btn--secondary:hover {
  background: rgba(15, 23, 42, 1);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.8);
}

.btn--full {
  width: 100%;
}

/* Sections */

.section {
  padding: 80px 0;
  color: #e5e7eb;
}

.section--light {
  background: #f9fafb;
  color: var(--color-text);
}

.section--accent {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 45%, #000 100%);
  color: #e5e7eb;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section__lead {
  max-width: 620px;
  color: var(--color-text-soft);
  font-size: 15px;
  margin-bottom: 32px;
}

.section--accent .section__lead,
.section--accent .section__lead p,
.section--accent .section__lead span {
  color: rgba(209, 213, 219, 0.9);
}

.section__two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.section__two-cols--top {
  align-items: flex-start;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.hero__content h1 {
  font-size: 40px;
  color: #f9fafb;
}

.hero__subtitle {
  color: rgba(209, 213, 219, 0.9);
  font-size: 15px;
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 30px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero__stat-number {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #e5e7eb;
}

.hero__stat-label {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
}

.hero__visual {
  display: grid;
  gap: 18px;
}

.hero__card {
  padding: 20px 22px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.hero__card--primary {
  transform: translateY(0);
}

.hero__card--secondary {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.96));
}

.hero__card h3 {
  font-size: 16px;
  color: #f9fafb;
}

.hero__card p {
  font-size: 14px;
  color: rgba(209, 213, 219, 0.9);
}

/* Grid & cards */

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.9);
  font-size: 14px;
}

.section--light .card {
  background: #ffffff;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.24);
}

.card--soft {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

.section--light .card--soft {
  background: #f9fafb;
}

.card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.card p {
  margin: 0;
  color: rgba(209, 213, 219, 0.95);
}

.section--light .card p {
  color: var(--color-text-soft);
}

/* About */

.about__highlights {
  display: grid;
  gap: 16px;
}

.about__item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(249, 250, 251, 0.9);
}

.about__item h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.about__item p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* Process */

.process {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.process__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.9);
}

.process__number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.process__step h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.process__step p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pricing__card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
}

.pricing__card--highlight {
  border-color: var(--color-accent);
  box-shadow: 0 20px 42px rgba(20, 184, 166, 0.35);
  position: relative;
}

.pricing__card--highlight::before {
  content: "Рекомендуем";
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 600;
}

.pricing__card h3 {
  font-size: 16px;
  color: #f9fafb;
}

.pricing__price {
  font-size: 22px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 12px;
}

.pricing__price span {
  font-size: 13px;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.9);
}

.pricing__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(209, 213, 219, 0.95);
}

.pricing__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.pricing__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.pricing__note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}

/* Team */

.team__photo {
  margin: 20px 0 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(14, 116, 144, 0.2)),
    url("https://images.pexels.com/photos/1181370/pexels-photo-1181370.jpeg?auto=compress&cs=tinysrgb&w=1600")
      center/cover no-repeat;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.team__photo-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.7));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px 20px;
}

.team__photo-overlay span {
  font-size: 13px;
  color: #e5e7eb;
  opacity: 0.85;
}

.team__grid {
  margin-top: 8px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 16px;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.7);
}

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

.team-card__photo--placeholder {
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.5), rgba(17, 24, 39, 1));
}

.team-card__name {
  font-size: 15px;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 13px;
  color: var(--color-text-soft);
}

/* Portfolio */

.portfolio__placeholder {
  margin-top: 16px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: rgba(209, 213, 219, 0.95);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.9);
}

/* FAQ */

.faq {
  margin-top: 20px;
  max-width: 760px;
}

.faq__item {
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  padding: 0 14px;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "＋";
  font-size: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 10px;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-soft);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 8px;
}

/* Contacts & form */

.contacts__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 14px;
  color: rgba(209, 213, 219, 0.96);
}

.contacts__list li {
  margin-bottom: 8px;
}

.contacts__list a {
  color: #e5e7eb;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  letter-spacing: 0.01em;
}

.messenger-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.messenger-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.messenger-btn--tg {
  background: linear-gradient(135deg, #2AABEE 0%, #0d8dd4 60%, #0077b6 100%);
  box-shadow: 0 12px 30px rgba(42, 171, 238, 0.5), 0 3px 10px rgba(42, 171, 238, 0.25);
}

.messenger-btn--max {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4f22c6 100%);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.5), 0 3px 10px rgba(124, 58, 237, 0.25);
}

.form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 20px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-soft);
}

.form h3 {
  font-size: 16px;
  color: #f9fafb;
  margin-bottom: 12px;
}

.form__group {
  margin-bottom: 10px;
}

.form__group label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: rgba(209, 213, 219, 0.98);
}

.form__group input,
.form__group textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 10px;
  color: #e5e7eb;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  resize: vertical;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.form__note {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}

.form__status {
  margin-top: 6px;
  font-size: 12px;
  min-height: 16px;
}

.form__status--success {
  color: #4ade80;
}

.form__status--error {
  color: #f97373;
}

/* Honeypot — скрыто от людей, но видно ботам */
.form__honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
}

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

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

.footer__address {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__address:hover {
  color: rgba(148, 163, 184, 1);
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.5);
  text-underline-offset: 3px;
}

.footer__top {
  color: #e5e7eb;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.7);
  text-underline-offset: 3px;
}

/* Responsive */

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

  .hero__visual {
    order: -1;
  }

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

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

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

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

@media (max-width: 768px) {
  .header__inner {
    padding: 10px 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: absolute;
    right: 16px;
    top: 58px;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
    min-width: 210px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav__list.nav__list--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header__cta {
    display: none;
  }

  .hero {
    padding-top: 86px;
  }

  .hero__content h1 {
    font-size: 30px;
  }

  .hero__stats {
    gap: 18px;
  }

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

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

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

  .team__photo {
    height: 190px;
  }

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

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__stats {
    flex-direction: column;
  }

}

