/* ==========================================================================
   Стич — стили сайта
   ========================================================================== */

:root {
  --color-bg: #FEFBF5;
  --color-surface: #FFFCF8;
  --color-surface-alt: #F8F1E8;
  --color-border: #E8D9C4;
  --color-text: #372A1E;
  --color-text-muted: #7C6C57;
  --color-text-faint: #B3A28A;
  --color-primary: #C1622D;
  --color-primary-hover: #9C4C21;
  --color-primary-soft: #F3DEC9;
  --color-gold: #B98A2E;
  --color-olive: #6F7A45;
  --color-cream: #FFFDF9;

  --font-display: 'Yeseva One', 'Georgia', serif;
  --font-body: 'Onest', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -25px rgba(55, 42, 30, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(55, 42, 30, 0.28);
  --container: 1160px;
}



* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: var(--color-text);
}

h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--color-primary);
  display: inline-block;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFF7EE;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 231, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}


.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--color-text);
}
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--color-text-muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-sub {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 150px;
}
.hero-badge strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-primary);
}
.hero-badge span {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.4; }
.hero-media-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--color-cream);
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-media-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-olive); }

/* Hero image animation — machine stitching effect */
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 20px 45px -25px rgba(55, 42, 30, 0.35); }
  50%      { box-shadow: 0 32px 60px -18px rgba(193, 98, 45, 0.35); }
}
@keyframes needlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(2.2); opacity: 0.6; }
}
@keyframes stitchLine {
  0%   { width: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { width: 80px; opacity: 1; }
  100% { width: 80px; opacity: 0; }
}
@keyframes stitchLine2 {
  0%   { width: 0; opacity: 0; }
  20%  { opacity: 0; }
  35%  { opacity: 1; }
  90%  { width: 60px; opacity: 1; }
  100% { width: 60px; opacity: 0; }
}
@keyframes stitchLine3 {
  0%   { width: 0; opacity: 0; }
  40%  { opacity: 0; }
  55%  { opacity: 1; }
  95%  { width: 50px; opacity: 1; }
  100% { width: 50px; opacity: 0; }
}
@keyframes machineShake {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(0.6px, 0.4px); }
  40%      { transform: translate(-0.4px, 0.6px); }
  60%      { transform: translate(0.5px, -0.3px); }
  80%      { transform: translate(-0.3px, 0.5px); }
}
@keyframes threadGlow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.hero-media {
  animation: heroGlow 4s ease-in-out infinite;
  position: relative;
}
.hero-media img {
  animation: heroZoom 20s ease-out forwards;
  object-position: center 42%;
}

/* ---------- For whom strip ---------- */
.for-whom {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.for-whom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
}
.for-whom-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  font-weight: 600;
}
.for-whom-item {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--color-text-muted);
}

/* ---------- Services grid with image backgrounds ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.55);
  transition: filter 0.3s ease, transform 0.5s ease;
  z-index: 0;
}
.service-card:hover::before {
  filter: blur(1px) brightness(0.5);
  transform: scale(1.05);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,23,18,0.85) 0%, rgba(30,23,18,0.4) 50%, rgba(30,23,18,0.2) 100%);
  z-index: 1;
}
.service-card > * {
  position: relative;
  z-index: 2;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* Service card backgrounds */
.service-card--pillow::before { background-image: url('../img/bg-pillow.png'); }
.service-card--polo::before   { background-image: url('../img/bg-polo.png'); }
.service-card--cap::before    { background-image: url('../img/bg-cap.png'); }
.service-card--apron::before  { background-image: url('../img/bg-apron.png'); }
.service-card--towel::before  { background-image: url('../img/bg-towel.png'); }
.service-card--workwear::before { background-image: url('../img/bg-workwear.png'); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-icon svg { width: 24px; height: 24px; color: #FFF; }
.service-card h3 {
  margin-bottom: 8px;
  color: #FFF;
  font-size: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.service-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  position: relative;
  padding-top: 8px;
}
.process-number {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 14px;
  display: block;
}
.process-step h3 { font-size: 19px; margin-bottom: 10px; }
.process-step p { color: var(--color-text-muted); font-size: 14.5px; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}
.why-item { display: flex; gap: 16px; }
.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-olive);
  color: #FFF7EE;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 18px; height: 18px; }
.why-item h3 { font-size: 17px; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; }
.why-item p { color: var(--color-text-muted); font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  aspect-ratio: 3/4;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(30, 23, 18, 0.72);
  color: #FFF7EE;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
}
.gallery-wide {
  grid-column: span 2;
  aspect-ratio: 16/10;
}

/* ---------- Pricing ---------- */
.pricing-table {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid var(--color-border);
  gap: 20px;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-item h3 { font-size: 17px; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.pricing-item p { color: var(--color-text-muted); font-size: 14px; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-primary);
  white-space: nowrap;
}
.pricing-note {
  margin-top: 24px;
  padding: 22px 26px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--color-text);
}
.pricing-note strong { color: var(--color-primary-hover); }

/* ---------- Contacts ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-channels { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-channel:hover { border-color: var(--color-primary); transform: translateX(4px); }
.contact-channel .ch-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel .ch-icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.contact-channel strong { display: block; font-size: 15.5px; }
.contact-channel span { font-size: 13.5px; color: var(--color-text-muted); }

.contact-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 14.5px;
  color: var(--color-text-muted);
}

.order-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.order-form h3 { margin-bottom: 6px; }
.order-form > p { color: var(--color-text-muted); font-size: 14.5px; margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12.5px; color: var(--color-text-faint); margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-note { font-size: 13.5px; color: var(--color-text-faint); }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-primary); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-media { max-width: 560px; margin: 24px auto 0; }
  .hero-media img { aspect-ratio: 16/10; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; aspect-ratio: 4/3; }
  .pricing-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-badges { gap: 20px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 26px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .btn { margin-top: 24px; }

/* === Живой логотип (v12): кружок ВЫШИВАЕТСЯ — стежок появляется
   за стежком по кругу, затем готовый держится и цикл заново === */
.stitch-reveal {
  animation: stitchEmbroider 4.2s ease-in-out infinite;
}
@keyframes stitchEmbroider {
  0%   { stroke-dashoffset: 100; }
  62%  { stroke-dashoffset: 0; }   /* круг прошит полностью */
  82%  { stroke-dashoffset: 0; }   /* пауза — любуемся готовым */
  100% { stroke-dashoffset: 100; } /* уходит — и снова с начала */
}
