/* ===================== RESET & BASE ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #EFEAE4;
  --paper-deep: #E3D9C6;
  --card-bg: #FBF8F2;
  --ink: #201C16;
  --ink-soft: #6E6558;
  --line: #C9BCA0;
  --line-soft: rgba(32, 28, 22, 0.08);
  --amber: #D97706;
  --amber-dark: #B45F04;
  --pine: #2F6F5E;
  --radius: 14px;
  --shadow: 0 10px 28px -14px rgba(32, 28, 22, 0.28);
  --shadow-lg: 0 24px 50px -16px rgba(32, 28, 22, 0.32);
  --max-width: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.mono { font-family: 'Noto Sans Mono', monospace; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

mark.stamp {
  background: var(--amber);
  color: var(--ink);
  padding: 1px 10px;
  border-radius: 3px;
  font-style: normal;
  display: inline-block;
  transform: rotate(-1.5deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ===================== LANGUAGE TOGGLE VISIBILITY ===================== */
html[data-lang="kz"] .lang-ru { display: none; }
html[data-lang="ru"] .lang-kz { display: none; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 20px -6px rgba(217, 119, 6, 0.5);
}
.btn--primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(217, 119, 6, 0.55); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
/* WhatsApp actions carry the brand green so they read as WhatsApp at a glance */
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(18, 140, 126, 0.5);
}
.btn--whatsapp:hover { background: #1EB855; transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(18, 140, 126, 0.55); }

.wa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: -2px;
  color: #fff;
}
.wa-chip svg { width: 20px; height: 20px; display: block; }
.btn--lg .wa-chip svg { width: 22px; height: 22px; }

.btn--instagram {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(238, 42, 123, 0.5);
}
.btn--instagram:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(238, 42, 123, 0.55); }

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 234, 228, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand__badge svg { width: 100%; height: 100%; display: block; }
.brand__name { font-weight: 800; font-size: 1.05rem; }
.brand__name span { color: var(--amber-dark); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-weight: 600; font-size: 0.93rem; color: var(--ink-soft); transition: color 0.2s; }
.nav__link:hover { color: var(--amber-dark); }

.header__actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  background: var(--paper-deep);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch__btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.lang-switch__btn.active { background: var(--ink); color: var(--paper); }

.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.header__phone svg { color: var(--amber-dark); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(32, 28, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 28, 22, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  padding: 108px 0 100px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--amber-dark);
  background: rgba(217, 119, 6, 0.08);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--amber-dark);
  margin-bottom: 24px;
  transform: rotate(-1deg);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero__subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===================== WORKBENCH: PHOTO PRINT + TICKET (signature) ===================== */
.workbench {
  position: relative;
  max-width: 440px;
  margin-left: auto;
  padding-bottom: 150px;
}

.print {
  position: relative;
  background: var(--card-bg);
  padding: 14px 14px 10px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  animation: printIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes printIn {
  from { opacity: 0; transform: rotate(6deg) translateY(16px); }
  to { opacity: 1; transform: rotate(2deg) translateY(0); }
}
/* strips of tape holding the print to the paper */
.print::before,
.print::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 68px;
  height: 26px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.3);
}
.print::before { left: 16px; transform: rotate(-6deg); }
.print::after { right: 16px; transform: rotate(5deg); }

.print img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  /* warmed toward the paper palette; returns to full colour on hover */
  filter: sepia(0.5) saturate(1.3) contrast(1.06);
  transition: filter 0.55s ease;
}
.print:hover img,
.print:focus-within img { filter: none; }

.print__caption {
  margin-top: 11px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* ===================== REPAIR TICKET ===================== */
.ticket {
  position: relative;
  background: var(--card-bg);
  background-image: repeating-linear-gradient(135deg, rgba(32, 28, 22, 0.025) 0px, rgba(32, 28, 22, 0.025) 1px, transparent 1px, transparent 7px);
  border: 1.5px dashed var(--line);
  border-radius: 6px 20px 6px 20px;
  padding: 34px 28px 28px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-lg);
  animation: ticketIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.22s;
}
.workbench .ticket {
  position: absolute;
  left: -30px;
  bottom: 0;
  width: 300px;
  z-index: 2;
}
@keyframes ticketIn {
  from { opacity: 0; transform: rotate(-11deg) translateY(-18px); }
  to { opacity: 1; transform: rotate(-3deg) translateY(0); }
}
.ticket__hole {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--card-bg);
}
.ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-left: 30px;
}
.ticket__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 700;
  max-width: 140px;
}
.ticket__num {
  font-family: 'Noto Sans Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  flex-shrink: 0;
}
.ticket__divider {
  border-top: 1.5px dashed var(--line);
  margin: 18px 0;
}
.ticket__meta { display: flex; flex-direction: column; gap: 10px; }
.ticket__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; color: var(--ink-soft); }
.ticket__row .mono { color: var(--ink); font-weight: 700; font-size: 0.88rem; }
.ticket__stamp {
  position: absolute;
  bottom: -22px;
  right: -26px;
  width: 92px;
  height: 92px;
  border: 2px solid var(--pine);
  border-radius: 50%;
  background: rgba(47, 111, 94, 0.07);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 8px;
  transform: rotate(9deg);
}

/* ===================== SECTIONS ===================== */
.section { padding: 100px 0; }
.section--muted { background: var(--paper-deep); }

.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 16px;
  transform: rotate(-1deg);
}
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.section__head p { color: var(--ink-soft); font-size: 1rem; }

/* ===================== SERVICES GRID ===================== */
.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--advantages { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--amber); }
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--amber-dark);
  margin-bottom: 20px;
}
.card--service h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card--service p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===================== PRICES ===================== */
.price-table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px dashed var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1.5px dashed var(--line);
  font-weight: 600;
}
.price-row:last-child { border-bottom: none; }
.price-row--head {
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.price-row__price { font-family: 'Noto Sans Mono', monospace; color: var(--ink); font-weight: 700; }
.price-row__price--free { color: var(--pine); }
.price-note { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--ink-soft); }

/* ===================== ADVANTAGES ===================== */
.adv {
  text-align: center;
  padding: 10px;
}
.adv__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card-bg);
  color: var(--pine);
}
.adv h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.adv p { font-size: 0.88rem; color: var(--ink-soft); }

/* ===================== CONTACTS ===================== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contacts__info {
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--amber-dark);
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--ink-soft); }
.contacts__buttons { display: flex; gap: 14px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--line);
  filter: sepia(8%) saturate(92%);
}

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: rgba(239, 234, 228, 0.72); padding: 56px 0 30px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__name span { color: var(--amber); }
.footer__tagline { font-size: 0.9rem; max-width: 400px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 0.88rem; font-weight: 600; transition: color 0.2s; }
.footer__links a:hover { color: var(--amber); }
.footer__copy { font-size: 0.8rem; color: rgba(239, 234, 228, 0.4); margin-top: 10px; }

/* ===================== FLOATING WHATSAPP ===================== */
.fab-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(18, 140, 126, 0.4);
  z-index: 200;
  animation: pulse 2.4s infinite;
}
.fab-whatsapp:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 10px 26px rgba(18, 140, 126, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 26px rgba(18, 140, 126, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 26px rgba(18, 140, 126, 0.4); }
}

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticket, .print { animation: none; }
  .fab-whatsapp { animation: none; }
  .print img { transition: none; }
  .btn, .card, .nav__link, .footer__links a { transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--advantages { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .workbench { max-width: 460px; margin: 0 auto; padding-bottom: 0; }
  .workbench .ticket {
    position: static;
    width: auto;
    max-width: 340px;
    margin: -46px auto 0;
  }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__phone-text { display: none; }

  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1.5px solid var(--line);
    box-shadow: var(--shadow);
  }

  .contacts { grid-template-columns: 1fr; }
  .contacts__map { min-height: 280px; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero { padding: 80px 0 60px; }
  .grid--services { grid-template-columns: 1fr; }
  .grid--advantages { grid-template-columns: 1fr; }
  .workbench .ticket { max-width: 100%; margin-top: -34px; padding: 30px 22px 26px; }
  .ticket__stamp { right: -10px; width: 82px; height: 82px; }
  .price-row { padding: 14px 18px; font-size: 0.88rem; }
  .header__actions { gap: 8px; }
  .btn--sm { padding: 8px 14px; font-size: 0.8rem; }
  .fab-whatsapp { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
