/* SimTech — light craft theme */
:root {
  --bg0: #f5f8fa;
  --bg1: #eef3f6;
  --surface: #ffffff;
  --ink: #121c24;
  --muted: #5a6b78;
  --line: rgba(18, 28, 36, 0.1);
  --accent: #0b7f74;
  --accent-hover: #099688;
  --accent-2: #a67c00;
  --accent-soft: rgba(11, 127, 116, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 6px;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --shadow: 0 16px 40px rgba(18, 28, 36, 0.08);
  --shadow-sm: 0 6px 18px rgba(18, 28, 36, 0.06);
  --header-h: 6.75rem;
  --tg: #2aabee;
  --tg-hover: #229ed9;
  --tg-deep: #229ed9;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg0);
  line-height: 1.55;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: var(--pad);
  top: 0.75rem;
}

/* Atmosphere — soft, not flat */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 40% at 8% 0%, rgba(11, 127, 116, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 12%, rgba(166, 124, 0, 0.06), transparent 50%),
    linear-gradient(180deg, #fafcfd 0%, var(--bg0) 42%, #eaf2f5 100%);
}

.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

/* Sticky header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  padding: 0.7rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.25rem;
  width: min(100% - var(--pad) * 2, var(--max));
}

.header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  width: 12.75rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.header-phone {
  display: block;
  padding: 0.42rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.015em;
  text-align: left;
  line-height: 1.3;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-phone:hover {
  color: var(--accent);
}

.header-tg {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem 0.42rem 0.55rem;
  background: var(--tg);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.header-tg:hover {
  background: var(--tg-hover);
  color: #fff;
}

.header-tg-logo {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  flex-shrink: 0;
}

.header-tg-logo svg {
  display: block;
}

.header-tg-user {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

@media (max-width: 900px) {
  .header-bar {
    grid-template-columns: 1fr;
    row-gap: 0.65rem;
  }

  .header-main {
    justify-content: space-between;
  }

  .header-contacts {
    width: min(100%, 13rem);
    justify-self: start;
  }

  .site-header {
    padding: 0.65rem 0;
  }
}

@media (max-width: 640px) {
  .nav-hide-sm {
    display: none;
  }
  .nav a:not(.nav-cta) {
    font-size: 0.82rem;
  }
}

/* Hero — one composition, full-bleed atmosphere, no side mock */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 78% 35%, rgba(11, 127, 116, 0.18), transparent 58%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(166, 124, 0, 0.07), transparent 50%),
    linear-gradient(155deg, #d5e6ea 0%, #f0f5f7 42%, #e4f1ed 100%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  right: -5%;
  top: 12%;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  border-radius: 42% 58% 48% 52%;
  background:
    conic-gradient(from 210deg, rgba(11, 127, 116, 0.22), rgba(166, 124, 0, 0.1), transparent 62%);
  filter: blur(4px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-2%, 3%) rotate(6deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: 1.1rem;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
  max-width: 18ch;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34ch;
  margin-bottom: 1.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11, 127, 116, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 3rem;
  }
}

/* Sections */
.section {
  padding: clamp(3.75rem, 8vw, 6.25rem) 0;
  border-top: 1px solid var(--line);
}

.section-tone {
  background: rgba(255, 255, 255, 0.55);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* Services */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.4rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left 0.25s ease;
}

.service-item:hover {
  padding-left: 0.35rem;
}

.service-item:hover .service-num {
  color: var(--accent);
}

.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #9aafb8;
  min-width: 2ch;
  transition: color 0.2s ease;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.service-item p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 52ch;
}

/* Portfolio */
.work-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .work-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.work {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.work:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 127, 116, 0.28);
  color: inherit;
}

.work-preview {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  background: #e8eef2;
  position: relative;
  overflow: hidden;
}

span.work-preview {
  height: 168px;
}

span.work-preview::after {
  content: "";
  position: absolute;
  inset: 22% 14% auto;
  height: 58%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 20px rgba(18, 28, 36, 0.08);
}

.tone-a {
  background: linear-gradient(135deg, #1a4a52 0%, #2d7a78 55%, #9fd0c8 100%);
}

.tone-b {
  background: linear-gradient(135deg, #3a2a18 0%, #8a6a3a 50%, #e6d3a8 100%);
}

.tone-c {
  background: linear-gradient(135deg, #163528 0%, #2f6b4f 55%, #a8d4bc 100%);
}

.tone-d {
  background: linear-gradient(135deg, #0b7f74 0%, #1aa89a 50%, #c5ebe4 100%);
}

img.work-preview {
  transition: transform 0.35s ease;
}

a.work:hover img.work-preview {
  transform: scale(1.03);
}

.work-meta {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.work-desc {
  color: var(--muted);
  font-size: 0.93rem;
}

.work-url {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.25rem;
}

.work-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent);
  background: rgba(11, 127, 116, 0.1);
  border-radius: 3px;
}

.work-cta .work-title {
  color: var(--accent);
}

/* Prices */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7fafb;
}

.price-table td:last-child {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.price-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Process */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.step {
  counter-increment: step;
  padding: 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
  letter-spacing: -0.03em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Lead */
.lead {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .lead {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.lead-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}

.lead-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.form {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-status.ok {
  color: var(--accent);
}

.form-status.err {
  color: #b3261e;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}

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

.faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
}

/* Feedback widget */
.fb-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: min(100vw - 2rem, 22rem);
}

.fb-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(11, 127, 116, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: fbIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fb-launcher:hover {
  background: var(--accent-hover);
}

.fb-launcher:active {
  transform: scale(0.98);
}

.fb-launcher[aria-expanded="true"] {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.fb-launcher-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.fb-panel {
  width: min(100vw - 2rem, 22rem);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  animation: fbPanel 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom right;
}

.fb-panel[hidden] {
  display: none;
}

.fb-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.fb-panel-head strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: block;
}

.fb-panel-head p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.fb-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.fb-close:hover {
  color: var(--ink);
}

.fb-form {
  display: grid;
  gap: 0.7rem;
}

.fb-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.fb-form input,
.fb-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}

.fb-form input:focus,
.fb-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.fb-form textarea {
  min-height: 88px;
  resize: vertical;
}

.fb-form .btn {
  width: 100%;
}

@keyframes fbIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fbPanel {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .fb-launcher-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .fb-launcher {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
