:root {
--navy: #333c4d;
--navy-deep: #2a3140;
--navy-ink: #232936;
--blue: #a9c7ff;
--blue-dim: rgba(169, 199, 255, 0.55);
--line: rgba(169, 199, 255, 0.22);
--red: #fb4646;
--white: #ffffff;
--muted: #aeb7c9;
}

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

html {
scroll-behavior: smooth;
}

body {
font-family: "Montserrat", sans-serif;
background-color: var(--navy);
color: var(--white);
line-height: 1.6;
overflow-x: hidden;
}

/* креслярська сітка на фоні */
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image: linear-gradient(var(--blue) 1px, transparent 1px),
  linear-gradient(90deg, var(--blue) 1px, transparent 1px);
background-size: 56px 56px;
opacity: 0.035;
}

main,
header,
footer {
position: relative;
z-index: 1;
}

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

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

.container {
max-width: 1160px;
width: 92%;
margin: 0 auto;
}

/* ---------- Header ---------- */
.header {
position: sticky;
top: 0;
z-index: 50;
background: var(--navy-ink);
border-bottom: 1px solid var(--line);
}

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

.logo-img {
height: 42px;
width: auto;
}

.nav {
display: flex;
gap: 32px;
}

.nav a {
font-size: 12.5px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--muted);
padding: 4px 0;
border-bottom: 2px solid transparent;
transition: color 0.2s, border-color 0.2s;
}

.nav a:hover {
color: var(--white);
border-color: var(--red);
}

.header-phone {
font-size: 16px;
font-weight: 800;
letter-spacing: 0.02em;
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 10px;
transition: color 0.2s;
}

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

.header-phone svg {
width: 17px;
height: 17px;
color: var(--red);
flex-shrink: 0;
}

/* ---------- Кнопки ---------- */
.btn-primary,
.btn-light {
display: inline-flex;
align-items: center;
gap: 12px;
font-family: inherit;
font-weight: 800;
font-size: 15px;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 17px 30px;
border: none;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
background: var(--red);
color: var(--white);
box-shadow: 5px 5px 0 0 var(--blue);
}

.btn-primary:hover {
transform: translate(2px, 2px);
box-shadow: 3px 3px 0 0 var(--blue);
}

.btn-light {
background: var(--white);
color: var(--navy-ink);
box-shadow: 5px 5px 0 0 var(--navy-ink);
}

.btn-light:hover {
transform: translate(2px, 2px);
box-shadow: 3px 3px 0 0 var(--navy-ink);
}

.btn-primary svg,
.btn-light svg {
width: 18px;
height: 18px;
flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
padding: 84px 0 72px;
border-bottom: 1px solid var(--line);
}

.hero-inner {
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: 64px;
align-items: center;
}

.hero-badge {
display: flex;
align-items: center;
gap: 12px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--blue-dim);
margin-bottom: 26px;
}

.hero-badge::before {
content: "";
width: 10px;
height: 10px;
background: var(--red);
flex-shrink: 0;
}

.hero h1 {
font-size: clamp(32px, 4.6vw, 54px);
font-weight: 900;
line-height: 1.06;
text-transform: uppercase;
letter-spacing: -0.01em;
margin-bottom: 22px;
}

.hero h1 .mark {
display: inline-block;
background: var(--blue);
color: var(--navy-ink);
padding: 0 12px;
}

.hero-subtitle {
font-size: 17px;
color: var(--muted);
margin-bottom: 36px;
max-width: 470px;
border-left: 3px solid var(--red);
padding-left: 18px;
}

.hero-subtitle strong {
color: var(--white);
}

.hero-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 22px;
margin-bottom: 34px;
}

.messengers {
display: flex;
align-items: center;
}

.messengers a {
display: flex;
align-items: center;
justify-content: center;
width: 52px;
height: 52px;
border: 1px solid var(--line);
margin-left: -1px;
transition: background 0.2s, border-color 0.2s;
}

.messengers a:first-child {
margin-left: 0;
}

.messengers a:hover {
background: rgba(169, 199, 255, 0.12);
border-color: var(--blue);
position: relative;
z-index: 1;
}

.messengers img {
width: 24px;
height: 24px;
}

.hero-note {
display: flex;
align-items: flex-start;
gap: 12px;
color: var(--muted);
font-size: 15px;
max-width: 460px;
}

.hero-note svg {
width: 20px;
height: 20px;
color: var(--blue);
flex-shrink: 0;
margin-top: 2px;
}

.hero-note strong {
color: var(--white);
}

/* фото з офсет-рамкою, як на кресленні */
.hero-media {
position: relative;
}

.hero-media::before {
content: "";
position: absolute;
top: -16px;
right: -16px;
width: 100%;
height: 100%;
border: 1px solid var(--blue);
opacity: 0.6;
pointer-events: none;
}

.hero-media img {
width: 100%;
position: relative;
filter: saturate(0.92);
}

.hero-chip {
position: absolute;
left: 0;
bottom: -1px;
background: var(--navy-ink);
border-top: 3px solid var(--red);
padding: 14px 22px 14px 18px;
display: flex;
align-items: center;
gap: 14px;
}

.hero-chip svg {
width: 26px;
height: 26px;
color: var(--blue);
flex-shrink: 0;
}

.hero-chip b {
display: block;
font-size: 15px;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.hero-chip small {
color: var(--muted);
font-size: 12.5px;
}

/* ---------- Stats ---------- */
.stats {
border-bottom: 1px solid var(--line);
background: var(--navy-deep);
}

.stats-inner {
display: grid;
grid-template-columns: repeat(3, 1fr);
}

.stat {
padding: 34px 28px;
border-left: 1px solid var(--line);
}

.stat:first-child {
border-left: none;
}

.stat b {
display: block;
font-size: 42px;
font-weight: 900;
color: var(--blue);
line-height: 1.1;
letter-spacing: -0.01em;
}

.stat span {
display: block;
color: var(--muted);
font-size: 12.5px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
margin-top: 6px;
}

/* ---------- Заголовки секцій ---------- */
section {
padding: 76px 0;
}

.sec-head {
display: flex;
align-items: baseline;
gap: 22px;
margin-bottom: 16px;
}

.sec-num {
font-size: 58px;
font-weight: 900;
line-height: 1;
color: transparent;
-webkit-text-stroke: 1.5px var(--blue-dim);
letter-spacing: 0.02em;
flex-shrink: 0;
}

.section-title {
font-size: clamp(24px, 3.2vw, 38px);
font-weight: 900;
text-transform: uppercase;
line-height: 1.15;
letter-spacing: -0.01em;
}

.section-title span {
color: var(--blue);
}

.sec-head::after {
content: "";
flex: 1;
height: 1px;
background: var(--line);
align-self: center;
min-width: 40px;
}

.section-text {
color: var(--muted);
font-size: 16.5px;
max-width: 560px;
}

/* ---------- Services ---------- */
.services-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
border: 1px solid var(--line);
margin-top: 44px;
}

.service {
position: relative;
padding: 38px 36px 34px;
border-right: 1px solid var(--line);
border-bottom: 1px solid var(--line);
transition: background 0.25s;
}

.service:nth-child(2n) {
border-right: none;
}

.service:nth-last-child(-n + 2) {
border-bottom: none;
}

.service:hover {
background: rgba(169, 199, 255, 0.06);
}

.service-num {
position: absolute;
top: 30px;
right: 32px;
font-size: 15px;
font-weight: 700;
letter-spacing: 0.1em;
color: var(--blue-dim);
}

.service-icon {
width: 46px;
height: 46px;
margin-bottom: 22px;
}

.service-icon svg {
width: 100%;
height: 100%;
color: var(--blue);
}

.service h3 {
font-size: 19px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.01em;
margin-bottom: 12px;
max-width: 340px;
}

.service p {
color: var(--muted);
font-size: 15px;
max-width: 400px;
}

.service .tag {
display: inline-block;
margin-top: 18px;
color: var(--red);
font-size: 13.5px;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
}

.service .tag::before {
content: "// ";
}

/* ---------- Steps: трубопровід ---------- */
.steps {
background: var(--navy-deep);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}

.steps-grid {
position: relative;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 40px;
margin-top: 52px;
}

.steps-grid::before {
content: "";
position: absolute;
top: 21px;
left: 0;
right: 0;
height: 0;
border-top: 2px dashed var(--line);
}

.step {
position: relative;
}

.step-num {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
background: var(--navy-deep);
border: 2px solid var(--blue);
color: var(--blue);
font-weight: 900;
font-size: 17px;
margin-bottom: 22px;
}

.step:last-child .step-num {
background: var(--red);
border-color: var(--red);
color: var(--white);
}

.step h3 {
font-size: 16.5px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.03em;
margin-bottom: 8px;
}

.step p {
color: var(--muted);
font-size: 14.5px;
}

/* ---------- Business ---------- */
.business-inner {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 64px;
align-items: center;
}

.business-media {
position: relative;
}

.business-media::before {
content: "";
position: absolute;
top: -16px;
left: -16px;
width: 100%;
height: 100%;
border: 1px solid var(--blue);
opacity: 0.6;
pointer-events: none;
}

.business-media img {
position: relative;
width: 100%;
filter: saturate(0.92);
}

.business-list {
list-style: none;
margin-top: 28px;
display: grid;
gap: 16px;
}

.business-list li {
display: flex;
align-items: flex-start;
gap: 14px;
color: var(--muted);
font-size: 15.5px;
}

.business-list li::before {
content: "";
width: 9px;
height: 9px;
background: var(--red);
flex-shrink: 0;
margin-top: 8px;
}

.business-list b {
color: var(--white);
}

/* ---------- Sale: попереджувальна стрічка ---------- */
.sale {
padding: 0;
}

.sale-inner {
position: relative;
background: var(--red);
padding: 56px 48px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 32px;
flex-wrap: wrap;
}

.sale-inner::before,
.sale-inner::after {
content: "";
position: absolute;
left: 0;
right: 0;
height: 12px;
background: repeating-linear-gradient(
  -45deg,
  var(--navy-ink) 0 14px,
  transparent 14px 28px
);
opacity: 0.55;
}

.sale-inner::before {
top: 0;
}

.sale-inner::after {
bottom: 0;
}

.sale-inner h2 {
font-size: clamp(22px, 2.8vw, 32px);
font-weight: 900;
text-transform: uppercase;
line-height: 1.2;
letter-spacing: -0.01em;
max-width: 600px;
}

/* ---------- Contacts: рядки-таблиця ---------- */
.contacts-list {
margin-top: 44px;
border-top: 1px solid var(--line);
}

.contact-row {
display: flex;
align-items: center;
gap: 24px;
padding: 26px 4px;
border-bottom: 1px solid var(--line);
transition: background 0.2s;
}

a.contact-row:hover {
background: rgba(169, 199, 255, 0.06);
}

.contact-row small {
width: 160px;
flex-shrink: 0;
color: var(--blue-dim);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
}

.contact-row b {
font-size: clamp(18px, 2.6vw, 26px);
font-weight: 800;
letter-spacing: 0.01em;
word-break: break-word;
}

.contact-row svg {
width: 22px;
height: 22px;
color: var(--red);
margin-left: auto;
flex-shrink: 0;
transition: transform 0.2s;
}

a.contact-row:hover svg {
transform: translate(3px, -3px);
}

/* ---------- Footer ---------- */
.footer {
border-top: 1px solid var(--line);
background: var(--navy-ink);
padding: 32px 0;
}

.footer-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}

.footer-inner .logo-img {
height: 36px;
}

.footer .messengers a {
width: 46px;
height: 46px;
}

.footer .messengers img {
width: 22px;
height: 22px;
}

.footer-copy {
color: var(--muted);
font-size: 13px;
letter-spacing: 0.06em;
}

/* ---------- Анімація при завантаженні ---------- */
@keyframes fadeUp {
from {
  opacity: 0;
  transform: translateY(26px);
}
to {
  opacity: 1;
  transform: none;
}
}

@keyframes slideDown {
from {
  transform: translateY(-100%);
}
to {
  transform: none;
}
}

@keyframes wipeIn {
from {
  clip-path: inset(0 100% 0 0);
}
to {
  clip-path: inset(0 0 0 0);
}
}

@keyframes frameIn {
from {
  opacity: 0;
  transform: translate(-12px, 12px);
}
to {
  opacity: 0.6;
  transform: none;
}
}

.header {
animation: slideDown 0.45s ease-out both;
}

.hero-badge {
animation: fadeUp 0.5s ease-out 0.15s both;
}

.hero h1 {
animation: fadeUp 0.55s ease-out 0.25s both;
}

.hero h1 .mark {
animation: wipeIn 0.5s cubic-bezier(0.77, 0, 0.18, 1) 0.8s both;
}

.hero-subtitle {
animation: fadeUp 0.55s ease-out 0.4s both;
}

.hero-actions {
animation: fadeUp 0.55s ease-out 0.52s both;
}

.hero-note {
animation: fadeUp 0.55s ease-out 0.64s both;
}

.hero-media img {
animation: wipeIn 0.7s cubic-bezier(0.77, 0, 0.18, 1) 0.35s both;
}

.hero-media::before {
animation: frameIn 0.6s ease-out 0.95s both;
}

.hero-chip {
animation: fadeUp 0.5s ease-out 1.05s both;
}

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

.reveal.visible {
opacity: 1;
transform: none;
}

@media (prefers-reduced-motion: reduce) {
html {
  scroll-behavior: auto;
}
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.header,
.hero-badge,
.hero h1,
.hero h1 .mark,
.hero-subtitle,
.hero-actions,
.hero-note,
.hero-media img,
.hero-media::before,
.hero-chip {
  animation: none;
}
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
.nav {
  display: none;
}
.hero-inner,
.business-inner {
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero-media {
  order: -1;
  margin-right: 16px;
}
.business-media {
  margin-left: 16px;
}
.services-grid {
  grid-template-columns: 1fr;
}
.service,
.service:nth-child(2n) {
  border-right: none;
}
.service:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}
.service:last-child {
  border-bottom: none;
}
.steps-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}
.steps-grid::before {
  top: 0;
  bottom: 0;
  left: 21px;
  right: auto;
  height: auto;
  border-top: none;
  border-left: 2px dashed var(--line);
}
.step {
  padding-left: 68px;
}
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  margin-bottom: 0;
}
}

@media (max-width: 560px) {
.hero {
  padding: 48px 0 56px;
}
.stats-inner {
  grid-template-columns: 1fr;
}
.stat {
  border-left: none;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.stat:first-child {
  border-top: none;
}
.header-phone span {
  display: none;
}
.sec-num {
  font-size: 42px;
}
.sale-inner {
  padding: 48px 28px;
}
.contact-row {
  flex-wrap: wrap;
  gap: 8px;
}
.contact-row small {
  width: 100%;
}
}
/* ---------- Блог ---------- */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: border-color 0.2s;
  white-space: nowrap;
}

.lang-switch b {
  color: var(--white);
  font-weight: 800;
}

.lang-switch:hover {
  border-color: var(--blue);
}

.blog-page {
  padding: 76px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  margin-top: 44px;
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 36px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.blog-card:nth-child(2n) {
  border-right: none;
}

.blog-card:hover {
  background: rgba(169, 199, 255, 0.06);
}

.blog-card-num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-dim);
  margin-bottom: 16px;
}

.blog-card h3 {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.blog-card-more {
  margin-top: auto;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card-more::before {
  content: "// ";
}

/* ---------- Стаття ---------- */
.article {
  padding: 64px 0 76px;
}

.article-container {
  max-width: 860px;
}

.crumbs {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: var(--blue-dim);
}

.crumbs a {
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.crumbs a::before {
  content: "← ";
}

.crumbs a:hover {
  border-color: var(--blue);
}

.article-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 30px;
}

.article-body p {
  color: #c7cfdd;
  font-size: 16.5px;
  margin-bottom: 18px;
}

.article-body p:first-child {
  border-left: 3px solid var(--red);
  padding-left: 18px;
  color: var(--white);
  font-size: 17.5px;
}

.article + .sale {
  padding-top: 0;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card,
  .blog-card:nth-child(2n) {
    border-right: none;
  }
  .blog-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .header-right {
    gap: 10px;
  }
  .lang-switch {
    padding: 8px 10px;
  }
  .blog-card {
    padding: 26px 22px;
  }
}

/* ---------- Блог на головній ---------- */
.blog-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid--home .blog-card,
.blog-grid--home .blog-card:nth-child(2n) {
  border-right: 1px solid var(--line);
  border-bottom: none;
}

.blog-grid--home .blog-card:last-child {
  border-right: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 14px 28px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-ghost::after {
  content: "→";
}

.btn-ghost:hover {
  background: var(--blue);
  color: var(--navy-ink);
}

@media (max-width: 900px) {
  .blog-grid--home {
    grid-template-columns: 1fr;
  }
  .blog-grid--home .blog-card,
  .blog-grid--home .blog-card:nth-child(2n) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .blog-grid--home .blog-card:last-child {
    border-bottom: none;
  }
}

/* ---------- Кабінет: вхід ---------- */
.auth {
  padding: 84px 0 96px;
}

.auth-container {
  max-width: 480px;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dim);
}

.field input,
.field select {
  background: var(--navy-ink);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
}

.form .btn-primary {
  justify-content: center;
  margin-top: 6px;
}

.form-error {
  color: #ffb0b0;
  background: rgba(251, 70, 70, 0.12);
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  font-size: 14.5px;
}

.auth-hint {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14.5px;
}

.auth-hint b {
  color: var(--white);
}

/* ---------- Кабінет ---------- */
.cabinet {
  padding: 64px 0 84px;
}

.cabinet .hero-badge {
  margin-bottom: 14px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}

.cabinet-h {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-list {
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.profile-list .contact-row {
  padding: 18px 4px;
  gap: 16px;
}

.profile-list .contact-row b {
  font-size: 16.5px;
}

.progress-box {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--navy-deep);
  padding: 22px 24px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-label span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dim);
}

.progress-label b {
  color: var(--blue);
  font-weight: 800;
}

.progress-bar {
  height: 10px;
  border: 1px solid var(--line);
  background: var(--navy-ink);
}

.progress-bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--blue) 0 8px,
    rgba(169, 199, 255, 0.55) 8px 16px
  );
  transition: width 0.6s ease;
}

/* ---------- Таймлайн робіт ---------- */
.timeline {
  list-style: none;
  margin-top: 22px;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 21px;
  border-left: 2px dashed var(--line);
}

.tl-item {
  position: relative;
  padding: 0 0 30px 68px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  background: var(--navy);
  border: 2px solid var(--line);
  color: var(--muted);
}

.tl-done .tl-node {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--navy-ink);
}

.tl-active .tl-node {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.tl-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tl-top h3 {
  font-size: 16.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tl-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tl-done .tl-status {
  color: var(--blue);
}

.tl-active .tl-status {
  color: var(--red);
}

.tl-pending .tl-status {
  color: var(--blue-dim);
}

.tl-pending .tl-top h3 {
  color: var(--muted);
}

.tl-dates {
  color: var(--blue-dim);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 4px;
}

.tl-dates::before {
  content: "// ";
}

.tl-desc {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
}

/* ---------- Адмінка ---------- */
.admin-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 6px 12px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.pin-note {
  background: rgba(169, 199, 255, 0.1);
  border-left: 3px solid var(--blue);
  color: var(--white);
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 20px;
}

.pin-note b {
  color: var(--blue);
  letter-spacing: 0.06em;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--navy-ink);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.admin-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dim);
  background: transparent;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: rgba(169, 199, 255, 0.04);
}

.admin-table .empty {
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.editor {
  margin-top: 44px;
  border: 1px solid var(--line);
  background: var(--navy-deep);
  padding: 30px 32px 34px;
}

.form--wide {
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field--pin {
  max-width: 420px;
}

.sec-head--sub {
  margin-top: 18px;
  margin-bottom: 0;
}

.stages {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.stage-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr 1.4fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.stage-row:nth-child(even) {
  background: rgba(169, 199, 255, 0.06);
}

.stage-row:nth-child(odd) {
  background: rgba(0, 0, 0, 0.12);
}

.stage-row input,
.stage-row select {
  background: var(--navy-ink);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  border-radius: 0;
  width: 100%;
}

.stage-row input:focus,
.stage-row select:focus {
  border-color: var(--blue);
}

.stage-del {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.stage-del:hover {
  border-color: var(--red);
  color: var(--red);
}

.editor-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.editor-actions .btn-ghost {
  margin-top: 0;
}

.btn-ghost--sm {
  margin-top: 0;
  padding: 9px 16px;
  font-size: 12px;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.btn-ghost--sm::after {
  content: "";
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--red);
  background: none;
  color: var(--red);
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-danger:hover {
  background: var(--red);
  color: var(--white);
}

@media (max-width: 900px) {
  .cabinet-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stage-row {
    grid-template-columns: 1fr 1fr;
  }
  .stage-row .st-title,
  .stage-row .st-desc {
    grid-column: 1 / -1;
  }
}

.nav-cab {
  color: var(--blue) !important;
  border-bottom-color: var(--blue-dim) !important;
}

.nav-cab:hover {
  border-bottom-color: var(--blue) !important;
}

.footer-cab {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.footer-cab:hover {
  border-color: var(--blue);
}

[hidden] {
  display: none !important;
}

/* ---------- Іконка кабінету в хедері ---------- */
.header-cab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--blue);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.header-cab svg {
  width: 20px;
  height: 20px;
}

.header-cab:hover {
  border-color: var(--blue);
  background: rgba(169, 199, 255, 0.12);
}

/* ---------- Секція переваг кабінету ---------- */
.cabpromo-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.cabpromo-btn {
  margin-top: 32px;
}

.cab-preview {
  border: 1px solid var(--line);
  background: var(--navy-deep);
  box-shadow: 12px 12px 0 0 rgba(169, 199, 255, 0.08);
}

.cab-preview-bar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  padding: 16px 26px;
}

.cab-preview-bar b {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cab-preview-bar small {
  color: var(--muted);
  font-size: 12.5px;
}

.timeline--mini {
  margin: 26px 26px 30px;
}

.timeline--mini::before {
  left: 17px;
}

.timeline--mini .tl-node {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.timeline--mini .tl-item {
  padding: 0 0 22px 56px;
}

.timeline--mini .tl-item:last-child {
  padding-bottom: 0;
}

.timeline--mini .tl-top h3 {
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .cabpromo-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.row-actions .btn-ghost--sm {
  height: 38px;
}

/* ---------- Іконкові кнопки редактора ---------- */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--navy-ink);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.icon-btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 4px 4px 0 0 var(--blue);
}

.icon-btn--primary:hover {
  background: #ff5f5f;
  border-color: #ff5f5f;
  color: var(--white);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--blue);
}

.icon-btn--danger:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Підказка */
.icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy-ink);
  color: var(--white);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 6px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
}

.icon-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- PIN у таблиці адмінки ---------- */
.pin-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pin-val {
  font-weight: 700;
  letter-spacing: 0.14em;
  min-width: 42px;
  color: var(--muted);
}

.pin-val.revealed {
  color: var(--blue);
}

.pin-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--navy-ink);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.pin-eye svg {
  width: 15px;
  height: 15px;
}

.pin-eye:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pin-none {
  color: var(--blue-dim);
}

/* ---------- Малий варіант іконкової кнопки ---------- */
.icon-btn--sm {
  width: 38px;
  height: 38px;
}

.icon-btn--sm svg {
  width: 17px;
  height: 17px;
}

/* Підказка знизу — для кнопок у самому верху (хедер) */
.icon-btn--tip-below::after {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
}

.icon-btn--tip-below:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Мапа газифікованих об'єктів ---------- */
.gm-inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 44px;
}

.gm-map {
  position: relative;
  border: 1px solid var(--line);
  background: var(--navy-deep);
  padding: 20px;
}

.gm-map::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--blue);
  opacity: 0.5;
  pointer-events: none;
}

.gm-svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
}

.gm-region {
  fill: rgba(169, 199, 255, 0.05);
  stroke: var(--blue);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.gm-dot {
  fill: var(--red);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.gm-map.visible .gm-dot {
  animation: gmPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.35) forwards;
  animation-delay: var(--d);
}

@keyframes gmPop {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.9; transform: scale(1); }
}

.gm-city-dot {
  fill: var(--blue);
}

.gm-city-pulse {
  fill: var(--blue);
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: gmPulse 2.4s ease-out infinite;
}

@keyframes gmPulse {
  0% { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

.gm-city-label {
  fill: var(--white);
  font-size: 21px;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: var(--navy-ink);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.gm-count-wrap {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}

#gm-count {
  font-size: clamp(56px, 9vw, 92px);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.gm-plus {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  color: var(--red);
  margin-top: 6px;
}

.gm-count-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.gm-legend {
  list-style: none;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.gm-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.gm-lg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.gm-lg-dot {
  background: var(--red);
}

.gm-lg-city {
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(169, 199, 255, 0.2);
}

.gm-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14.5px;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .gm-dot {
    opacity: 0.9;
    transform: none;
    animation: none;
  }
  .gm-city-pulse {
    animation: none;
  }
}

@media (max-width: 900px) {
  .gm-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gm-map {
    margin-left: 16px;
  }
}

/* ---------- Розрахунок у кабінеті ---------- */
.pay-box {
  margin-top: 30px;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-top: 18px;
}

.pay-stat {
  padding: 20px 18px;
  border-left: 1px solid var(--line);
}

.pay-stat:first-child {
  border-left: none;
}

.pay-stat small {
  display: block;
  color: var(--blue-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pay-stat b {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.pay-paid {
  color: var(--blue);
}

.pay-left {
  color: var(--red);
}

.pay-left.pay-clear {
  color: var(--blue);
}

.pay-progress {
  margin-top: 16px;
}

.pay-progress .progress-bar i {
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 8px,
    rgba(251, 70, 70, 0.55) 8px 16px
  );
}

@media (max-width: 560px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
  .pay-stat {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .pay-stat:first-child {
    border-top: none;
  }
}

/* ---------- Завдання перед монтажем: адмінка ---------- */
.tasks {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.task-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.task-row:nth-child(even) {
  background: rgba(169, 199, 255, 0.06);
}

.task-row:nth-child(odd) {
  background: rgba(0, 0, 0, 0.12);
}

.task-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.task-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  cursor: pointer;
}

.task-row .tk-text {
  background: var(--navy-ink);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  border-radius: 0;
  width: 100%;
}

.task-row .tk-text:focus {
  border-color: var(--blue);
}

/* ---------- Завдання перед монтажем: кабінет ---------- */
.task-box {
  margin-top: 30px;
}

.task-hint {
  color: var(--blue-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 16px;
}

.task-list {
  list-style: none;
  margin-top: 14px;
  border: 1px solid var(--line);
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 15px;
}

.task-item:last-child {
  border-bottom: none;
}

.task-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  color: var(--navy-ink);
  font-weight: 900;
  font-size: 13px;
  margin-top: 1px;
}

.task-done .task-mark {
  background: var(--blue);
  border-color: var(--blue);
}

.task-done .task-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--blue-dim);
}

@media (max-width: 560px) {
  .task-row {
    grid-template-columns: 1fr auto;
  }
  .task-row .tk-text {
    grid-column: 1 / -1;
    order: 2;
  }
}

/* ---------- Дати: біла іконка календаря ---------- */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.6);
  opacity: 0.85;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ---------- Select: кастомна стрілка з відступом від краю ---------- */
.field select,
.stage-row select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aeb7c9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ============ Адмінка: адаптація під смартфони ============ */
@media (max-width: 640px) {
  /* контент на максимальну ширину */
  #adminView .container {
    width: 100%;
    padding: 0 14px;
  }
  #adminView {
    padding: 26px 0 48px;
  }

  /* шапка панелі: заголовок + кнопка на всю ширину */
  .admin-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
  }
  .admin-top .btn-primary {
    justify-content: center;
    width: 100%;
  }

  /* таблиця клієнтів -> повноширинні картки */
  .admin-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
  }
  .admin-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tbody {
    display: block;
  }
  .admin-table tr {
    display: block;
    border: 1px solid var(--line);
    background: var(--navy-ink);
    margin-bottom: 14px;
  }
  .admin-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  .admin-table td:last-child {
    border-bottom: none;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--blue-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    flex-shrink: 0;
  }
  /* рядок дій: кнопки на всю ширину картки */
  .admin-table td.row-actions {
    justify-content: stretch;
    gap: 8px;
  }
  .admin-table td.row-actions::before {
    content: none;
  }
  .admin-table td.row-actions .btn-ghost--sm {
    flex: 1;
    justify-content: center;
  }
  .admin-table tbody tr:hover td {
    background: transparent;
  }
  .admin-table .empty {
    justify-content: center;
    text-align: center;
  }
  .admin-table .empty::before {
    content: none;
  }

  /* редактор компактніше */
  .editor {
    padding: 22px 16px 26px;
  }

  /* pin-note / помилки на всю ширину */
  .pin-note,
  #apiError {
    font-size: 14px;
  }
}

/* Мобільна адмінка: дозволяємо полям стискатись у межах контейнера */
@media (max-width: 640px) {
  .editor input,
  .editor select,
  .stage-row,
  .task-row,
  .stages,
  .tasks {
    min-width: 0;
  }
  .editor input,
  .editor select {
    max-width: 100%;
  }
}

/* ============ Адмінка (моб.): поля вводу на макс. ширину + вища висота ============ */
@media (max-width: 640px) {
  /* контент ближче до країв екрана */
  #adminView .container {
    padding: 0 10px;
  }

  /* редактор без рамки/фону — поля тягнуться майже від краю до краю */
  .editor {
    border: none;
    background: transparent;
    padding: 6px 0 26px;
    margin-top: 22px;
  }

  /* поля форми: на всю ширину, вищі, шрифт 16px (без авто-зуму на iOS) */
  #adminView .field input,
  #adminView .field select {
    font-size: 16px;
    padding: 16px 14px;
  }

  #adminView .stage-row input,
  #adminView .stage-row select,
  #adminView .task-row .tk-text {
    font-size: 16px;
    padding: 15px 12px;
  }

  /* стрілка select не впритул при більшій висоті */
  #adminView .field select,
  #adminView .stage-row select {
    background-position: right 14px center;
    padding-right: 42px;
  }

  /* більше повітря між полями */
  #adminView .form {
    gap: 18px;
  }
  #adminView .form-row {
    gap: 16px;
  }

  /* кнопки додавання — на всю ширину */
  #addStageBtn,
  #addTaskBtn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  /* блоки етапів/завдань теж на всю ширину */
  .stages,
  .tasks {
    width: 100%;
  }
}

/* ---------- Тост-повідомлення (помилки/успіх) ---------- */
#toastWrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(520px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  cursor: pointer;
  background: var(--navy-ink);
  color: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast--in {
  opacity: 1;
  transform: translateY(0);
}
.toast--error {
  border-left-color: var(--red);
}
.toast--success {
  border-left-color: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
