/* ==========================================================================
   Temir Stroy Service — основные стили
   ========================================================================== */

:root {
  /* Палитра */
  --c-bg: #0e0f11;
  --c-bg-2: #15171a;
  --c-card: #1b1d21;
  --c-gold: #d4a24c;
  --c-gold-2: #f1cf86;
  --c-gold-dark: #a87a2c;
  --c-text: #f3f1ec;
  --c-muted: rgba(243, 241, 236, .66);
  --c-line: rgba(255, 255, 255, .1);
  --c-line-gold: rgba(212, 162, 76, .35);

  /* Шрифты */
  --f-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-body: "Manrope", "Segoe UI", Arial, sans-serif;

  /* Сетка */
  --container: 1280px;
  --gutter: 32px;
  --header-h: 80px;
  --radius: 10px;
  --section-y: clamp(56px, 6vw, 88px);

  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 2.8vw, 38px);
}

h3 {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

:focus-visible {
  outline: 2px solid var(--c-gold-2);
  outline-offset: 3px;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--c-gold);
  color: #16120a;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--c-gold);
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.accent {
  color: var(--c-gold);
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold) 55%, var(--c-gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.br-desktop {
  display: inline;
}

/* Кнопки ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold) 55%, var(--c-gold-dark));
  color: #16120a;
  box-shadow: 0 10px 26px rgba(212, 162, 76, .25);
}

.btn-gold:hover {
  box-shadow: 0 14px 32px rgba(212, 162, 76, .4);
}

.btn-outline {
  border-color: var(--c-gold);
  background: rgba(14, 15, 17, .35);
  color: var(--c-text);
}

.btn-outline:hover {
  background: rgba(212, 162, 76, .12);
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--c-line-gold);
  color: var(--c-gold-2);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
}

.text-link svg {
  transition: transform .25s var(--ease);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* Шапка ------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: linear-gradient(180deg, rgba(14, 15, 17, .85), rgba(14, 15, 17, 0));
  transition: background-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  background: rgba(14, 15, 17, .94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 36px;
  height: 40px;
}

.logo-text {
  display: grid;
  line-height: 1.1;
}

.logo-title {
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.logo-subtitle {
  margin-top: 3px;
  color: var(--c-muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--c-gold);
  transition: right .25s var(--ease);
}

.main-nav > a:not(.btn):hover::after,
.main-nav a.is-active::after {
  right: 0;
}

.nav-phone,
.nav-cta {
  display: none !important;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
}

.header-phone > svg {
  width: 20px;
  height: 20px;
  color: var(--c-gold);
}

.header-phone a:first-child {
  display: block;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-callback {
  color: var(--c-muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 12px 10px;
  border: 0;
  background: transparent;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform .25s, opacity .25s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Первый экран ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 15, 17, .95) 0%, rgba(14, 15, 17, .75) 35%, rgba(14, 15, 17, .15) 65%, rgba(14, 15, 17, .1) 100%),
    linear-gradient(0deg, rgba(14, 15, 17, .95) 0%, rgba(14, 15, 17, 0) 30%);
}

.hero-content {
  margin-block: auto;
  padding-block: 24px;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.04;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-video {
  gap: 14px;
  line-height: 1.2;
  text-align: left;
}

.btn-video[hidden] {
  display: none;
}

.btn-video .play {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-gold);
  color: #16120a;
}

.btn-video .play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--c-line);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  line-height: 1.35;
}

.hero-features svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--c-gold);
}

.hero-values {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--c-gold);
  list-style: none;
  color: var(--c-muted);
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.8;
  text-transform: uppercase;
}

/* Секции ------------------------------------------------------------------ */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--c-line);
}

.section-alt {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(212, 162, 76, .07), transparent 60%),
    var(--c-bg-2);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 32px;
}

.section-head > div:first-child,
.clients-head > div:first-child {
  flex: 1 0 auto;
}

.section-aside {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  max-width: 500px;
}

.section-aside p {
  margin: 0;
  color: var(--c-muted);
  font-size: 13px;
}

.section-aside .text-link {
  flex: 0 0 auto;
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

/* Проекты ----------------------------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project {
  position: relative;
  aspect-ratio: 9 / 6.4;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  isolation: isolate;
}

.project > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 15, 17, .35) 0%, rgba(14, 15, 17, 0) 30%, rgba(14, 15, 17, .2) 50%, rgba(14, 15, 17, .92) 100%);
}

.project:hover > img {
  transform: scale(1.05);
}

.project-num {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--c-muted);
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
}

.project-go {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 15, 17, .75);
  transition: background-color .25s, color .25s;
}

.project-go svg {
  width: 16px;
  height: 16px;
}

.project:hover .project-go {
  background: var(--c-gold);
  color: #16120a;
}

.project-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.project h3 {
  margin-bottom: 6px;
  font-size: clamp(16px, 1.5vw, 20px);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--c-muted);
  font-size: 13px;
}

.project-meta svg {
  width: 16px;
  height: 16px;
  color: var(--c-gold);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
  font-size: 11px;
}

/* Услуги ------------------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.service {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 20px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)), var(--c-card);
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: border-color .25s, transform .3s var(--ease);
}

.service:hover {
  border-color: var(--c-line-gold);
  transform: translateY(-3px);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--c-gold);
}

.service-arrow {
  position: absolute;
  right: 16px;
  top: 20px;
  width: 16px;
  height: 16px;
  color: var(--c-muted);
  transition: color .25s, transform .25s var(--ease);
}

.service:hover .service-arrow {
  color: var(--c-gold);
  transform: translateX(3px);
}

/* Почему выбирают --------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-2);
}

.why-media {
  position: relative;
  min-height: 420px;
}

.why-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
}

.why-copy {
  padding: var(--section-y) max(var(--gutter), calc((100vw - var(--container)) / 2)) var(--section-y) 40px;
}

.why-copy h2 {
  margin-bottom: 32px;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--c-line-gold);
  border-radius: 8px;
  color: var(--c-gold);
}

.why-icon svg {
  width: 28px;
  height: 28px;
}

.why-list h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.why-list p {
  margin: 0;
  color: var(--c-muted);
  font-size: 13px;
}

/* Клиенты ----------------------------------------------------------------- */
.clients-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 32px;
}

.stats {
  display: flex;
  margin: 0;
}

.stats div {
  padding: 0 24px;
}

.stats div + div {
  border-left: 1px solid var(--c-line);
}

.stats dt {
  color: var(--c-gold);
  font-family: var(--f-head);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.35;
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos li {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  color: rgba(243, 241, 236, .35);
  font-size: 12px;
  text-align: center;
}

.logos img {
  max-height: 44px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: .8;
}

/* Заявка ------------------------------------------------------------------ */
.request {
  padding: clamp(40px, 4vw, 56px) 0;
  border-top: 1px solid var(--c-line);
  background:
    radial-gradient(60% 140% at 0% 50%, rgba(212, 162, 76, .08), transparent 60%),
    var(--c-bg-2);
}

.request-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: center;
}

.request h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.2vw, 30px);
}

.request-copy p {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: start;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, .04);
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder {
  color: rgba(243, 241, 236, .45);
}

.field input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, .18);
}

.field input[aria-invalid="true"] {
  border-color: #ff8a7a;
}

.request-form .btn {
  height: 52px;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-muted);
  font-size: 12px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c-gold);
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #ffb1a6;
}

/* Подвал ------------------------------------------------------------------ */
.footer {
  padding: 44px 0 72px;
  border-top: 1px solid var(--c-line);
  background: #0a0b0c;
  color: var(--c-muted);
  font-size: 14px;
}

.partner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 22px 28px;
  border: 1px solid var(--c-line-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(212, 162, 76, .1), transparent 55%),
    var(--c-card);
  transition: border-color .3s, transform .3s var(--ease);
}

.partner:hover {
  border-color: rgba(212, 162, 76, .7);
  transform: translateY(-2px);
}

.partner-logo {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 18px rgba(212, 162, 76, .25));
  transition: transform .4s var(--ease);
}

.partner:hover .partner-logo {
  transform: rotate(-6deg) scale(1.04);
}

.partner-body {
  flex: 1;
  display: grid;
  gap: 3px;
}

.partner-label {
  color: var(--c-gold);
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.partner-title {
  color: var(--c-text);
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
}

.partner-text {
  max-width: 640px;
  font-size: 13px;
}

.partner-link {
  flex: 0 0 auto;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding-bottom: 28px;
}

.footer-main .logo-title {
  font-size: 16px;
}

.footer-tagline {
  margin: 0;
  padding-right: 40px;
  border-right: 1px solid var(--c-line);
  font-size: 12px;
  line-height: 1.4;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.footer-contact > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--c-gold);
}

.footer-contact a,
.footer-contact span {
  display: block;
}

.footer-contact > div > a:first-child {
  color: var(--c-text);
  font-weight: 600;
}

.footer-sub {
  color: var(--c-muted);
  font-size: 11px;
}

.footer-contact a:hover {
  color: var(--c-gold-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
}

.heart {
  color: var(--c-gold);
}

/* Модальные окна ---------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-card);
  box-shadow: var(--shadow);
  animation: modal-in .3s var(--ease);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 15, 17, .75);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-body {
  padding: 28px;
}

.modal-body h2 {
  margin-bottom: 14px;
  padding-right: 40px;
  font-size: clamp(20px, 2.4vw, 26px);
}

.modal-body p,
.modal-body li {
  color: var(--c-muted);
}

.modal-body ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.modal-body > .btn {
  margin-top: 18px;
}

.modal-video {
  width: min(960px, 100%);
  background: #000;
}

.modal-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
}

/* Плавающая кнопка WhatsApp ----------------------------------------------- */
.wa-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-btn {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35);
  transition: transform .25s var(--ease);
}

.wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.4s ease-out infinite;
}

.wa-btn svg {
  width: 32px;
  height: 32px;
}

.wa-widget:hover .wa-btn {
  transform: scale(1.07);
}

.wa-tooltip {
  padding: 10px 16px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.wa-widget:hover .wa-tooltip,
.wa-widget:focus-visible .wa-tooltip {
  opacity: 1;
  transform: none;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* Появление при прокрутке ------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Черновик: подсветка неподтверждённых данных (включается классом draft на body) */
.draft .todo {
  outline: 1px dashed #ff9f43;
  outline-offset: 3px;
}
