:root {
  --ink: #10151f;
  --panel: #151c29;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: #dbe4ee;
  --muted: #617083;
  --cyan: #17c3b2;
  --blue: #2f80ed;
  --orange: #ff9f1c;
  --danger: #ff5d5d;
  --shadow: 0 24px 70px rgba(13, 24, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 58px);
  color: #fff;
  background: rgba(16, 21, 31, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  border-radius: 8px;
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.main-nav a,
.nav-button {
  color: rgba(255, 255, 255, 0.86);
}

.main-nav a:hover,
.nav-button:hover {
  color: #fff;
}

.nav-button {
  min-height: 40px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 10px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 790px;
  overflow: hidden;
  align-items: end;
  padding: 132px clamp(18px, 4vw, 58px) 48px;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/hero-coding-studio.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.96) 0%, rgba(7, 10, 16, 0.74) 42%, rgba(7, 10, 16, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.18) 0%, rgba(7, 10, 16, 0.84) 100%);
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 850px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ff5e8;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 7.5vw, 98px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-text {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: var(--ink);
  background: var(--cyan);
  border: 0;
  box-shadow: 0 16px 38px rgba(23, 195, 178, 0.32);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.secondary-button.dark {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button.compact {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 880px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.hero-stats article {
  padding: 24px;
  background: rgba(21, 28, 41, 0.68);
}

.hero-stats strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 92px clamp(18px, 4vw, 58px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 42px;
}

.row-heading {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.code-map,
.services-section,
.pricing-section,
.faq-section {
  background: var(--soft);
}

.tech-tree,
.service-grid,
.team-grid,
.price-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tech-tree article,
.service-card,
.team-card,
.about-copy,
.price-grid article,
.dashboard-empty,
.dashboard article,
.review-grid article,
.faq-list details,
.contact-form,
.modal-dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tech-tree article,
.service-card,
.team-card,
.about-copy,
.price-grid article,
.dashboard-empty,
.dashboard article,
.review-grid article {
  padding: 28px;
}

.tech-tree ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.avatar {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  border-radius: 8px;
  font-weight: 900;
}

.role,
.work-type {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
}

.team-card p,
.service-card p,
.about-copy p,
.work-info p,
.steps p,
.price-grid p,
.review-grid p,
.faq-list p,
.contact-copy p,
.dashboard-empty p,
.dashboard dd,
.purchase-empty,
.purchase-item p,
.tg-card p,
.success-card p {
  color: var(--muted);
}

.about-copy {
  margin-top: 18px;
}

.team-portfolio {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.team-portfolio-main,
.team-portfolio-side {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-portfolio-main {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 195, 178, 0.15), rgba(255, 159, 28, 0.22)),
    #121a27;
}

.team-portfolio-main .role {
  color: #7ff5e8;
}

.team-portfolio-main p {
  color: rgba(255, 255, 255, 0.78);
}

.team-portfolio-side ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.skill-cloud span {
  padding: 8px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.service-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--orange);
  font-weight: 900;
}

.portfolio-slider {
  min-height: 430px;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 30px;
}

.work-card {
  display: none;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-card.active {
  display: grid;
}

.work-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.work-visual span {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.toy-visual {
  background: linear-gradient(135deg, #2f80ed, #ff9f1c 52%, #ff5d5d);
}

.flower-visual {
  background: linear-gradient(135deg, #184e44, #ffb4cf 52%, #ffe9a8);
}

.auto-visual {
  background: linear-gradient(135deg, #10151f, #596477 48%, #17c3b2);
}

.food-visual {
  background: linear-gradient(135deg, #5a352b, #ffba5f 55%, #fff4dc);
}

.work-visual span:nth-child(1) {
  top: 48px;
  left: 38px;
  width: 68%;
  height: 82px;
}

.work-visual span:nth-child(2) {
  left: 38px;
  bottom: 62px;
  width: 34%;
  height: 190px;
}

.work-visual span:nth-child(3) {
  right: 38px;
  bottom: 62px;
  width: 42%;
  height: 190px;
  background: rgba(23, 195, 178, 0.9);
}

.toy-visual span:nth-child(2),
.food-visual span:nth-child(2) {
  border-radius: 50%;
}

.auto-visual span:nth-child(2) {
  border-radius: 90px 90px 18px 18px;
}

.flower-visual span:nth-child(2),
.flower-visual span:nth-child(3) {
  border-radius: 120px 120px 8px 8px;
}

.work-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

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

.tags span {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.steps article {
  min-height: 260px;
  padding: 28px;
  background: #fff;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 900;
}

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

.price-grid article {
  display: grid;
  gap: 16px;
  align-content: start;
}

.price-grid .featured {
  color: #fff;
  background: var(--panel);
  border-color: var(--panel);
}

.price-grid .featured p {
  color: rgba(255, 255, 255, 0.72);
}

.price-grid strong {
  font-size: 28px;
}

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

.purchase-card {
  grid-column: 1 / -1;
}

.purchase-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.purchase-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.purchase-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.purchase-item h4,
.purchase-item p {
  margin: 0;
}

.purchase-item h4 {
  font-size: 18px;
}

.purchase-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.purchase-meta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.dashboard dl {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.dashboard dl div,
.db-preview div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dashboard dt,
.db-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard dd {
  margin: 0;
  font-weight: 900;
}

.text-button {
  justify-content: flex-start;
  min-height: auto;
  padding: 0;
  color: var(--danger);
  background: transparent;
  border: 0;
}

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

.review-grid strong {
  color: var(--orange);
}

.review-grid span {
  color: var(--blue);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}

.contacts-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  color: #fff;
  background: var(--ink);
}

.contact-copy {
  align-self: center;
}

.contact-copy .eyebrow {
  color: #7ff5e8;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-links a,
.contact-links button {
  width: fit-content;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-links button,
.footer-links button {
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font: inherit;
}

.contact-links button:hover,
.footer-links button:hover,
.contact-links a:hover,
.footer-links a:hover {
  border-color: #fff;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(23, 195, 178, 0.14);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 58px);
  color: #fff;
  background: #0b0f17;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 10, 16, 0.76);
}

.modal.active {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
}

.modal-dialog.wide {
  width: min(100%, 720px);
}

.support-dialog p {
  color: var(--muted);
}

.support-user {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 24px;
}

.modal form,
.auth-form {
  display: grid;
  gap: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}

.auth-tabs button {
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.auth-tabs button.active {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  width: min(380px, calc(100vw - 44px));
  padding: 14px 16px;
  color: #fff;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.tg-page,
.success-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(23, 195, 178, 0.2), transparent 32%),
    radial-gradient(circle at 90% 18%, rgba(255, 159, 28, 0.18), transparent 30%),
    var(--ink);
}

.tg-hero,
.success-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 110px 18px 36px;
}

.tg-card,
.success-card {
  width: min(920px, 100%);
  padding: clamp(28px, 6vw, 72px);
  color: #fff;
  background: rgba(21, 28, 41, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.telegram-preview {
  margin-top: 34px;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.telegram-preview span {
  color: var(--blue);
  font-weight: 900;
}

.static-nav {
  display: flex;
}

@media (max-width: 1120px) {
  .tech-tree,
  .service-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    gap: 18px;
    border: 0;
    box-shadow: none;
  }

  .steps article {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 880px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px;
    background: rgba(16, 21, 31, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .main-nav.open,
  .static-nav {
    display: grid;
    gap: 14px;
  }

  .nav-button {
    width: 100%;
  }

  .hero {
    min-height: 760px;
    padding-top: 112px;
  }

  .hero-content {
    padding-bottom: 34px;
  }

  .hero-stats,
  .team-grid,
  .team-portfolio,
  .work-card,
  .price-grid,
  .dashboard,
  .review-grid,
  .contacts-section {
    grid-template-columns: 1fr;
  }

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

  .work-visual {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    max-width: 210px;
  }

  .section {
    padding: 72px 18px;
  }

  .hero {
    min-height: 790px;
  }

  .tech-tree,
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-stats article,
  .tech-tree article,
  .service-card,
  .team-card,
  .team-portfolio-main,
  .team-portfolio-side,
  .about-copy,
  .price-grid article,
  .dashboard-empty,
  .dashboard article,
  .review-grid article,
  .contact-form,
  .modal-dialog {
    padding: 22px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .purchase-item header {
    display: grid;
  }
}
