/* ============================================
   MVM ORDER — landing page
   Hand-drawn / sketchbook aesthetic
   ============================================ */

:root {
  --bg:        #f3ede0;
  --bg-soft:   #ede4d2;
  --card:      #fbf7ec;
  --ink:       #2c241a;
  --ink-soft:  #5a4f3f;
  --line:      #3b3226;
  --accent:    #d97a3a;
  --accent-dark: #b85f26;
  --accent-soft: #f0c9a4;

  --font-display: 'Permanent Marker', cursive;   /* акценты, номера шагов */
  --font-heading: 'Architects Daughter', cursive; /* заголовки, подписи, кнопки */
  --font-body:    'Kalam', cursive;               /* основной текст */
  --font-script:  'Caveat', cursive;               /* большой заголовок в hero */
  --font-mono:    'DM Mono', monospace;            /* фирменный знак [v] */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(217,122,58,0.05), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(217,122,58,0.05), transparent 45%);
}

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

a { color: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- hand-drawn helpers ---------- */

.divider {
  border: none;
  height: 10px;
  margin: 6px 0 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5 T60 5 T80 5 T100 5 T120 5' fill='none' stroke='%23d97a3a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center;
  background-size: 60px 10px;
  width: 220px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

section { padding: 46px 0; }

/* ---------- header (now lives inside .hero, over the illustration) ---------- */

header {
  padding: 26px 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* убрали рамку-«прямоугольник» — просто фирменный знак цветом и моно-шрифтом */
.logo-row .mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  color: var(--accent-dark);
  line-height: 1;
}

.logo-row .word {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--ink);
}

.logo-col { display: flex; flex-direction: column; position: relative; }

/* png-подложка под лого, поверх карусели фото, под текстом лого — чтобы лого читалось лучше.
   Размер увеличен на 100px по ширине и 50px по высоте от центра (было 260×~81). */
.logo-backdrop {
  position: absolute;
  z-index: 0;
  top: -41px;
  left: -68px;
  width: 360px;
  height: 130px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.logo-row, .tag { position: relative; z-index: 1; }

.tag {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.lang-switch {
  display: flex;
  gap: 22px;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1px;
  background: rgba(251, 247, 236, 0.9);
  border: 1.5px solid var(--line);
  border-radius: 999px 10px 999px 10px / 10px 999px 10px 999px;
  padding: 9px 22px;
  box-shadow: 3px 3px 0 rgba(59, 50, 38, 0.14);
}

.lang-switch span {
  cursor: pointer;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
}

.lang-switch span.active {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

/* ---------- hero : full-bleed background, header + content both sit on top ---------- */

.hero {
  position: relative;
  padding: 0;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-bg.active { opacity: 1; }

/* ровная бумажная растяжка поверх всей иллюстрации — картинка видна и под шапкой,
   и под текстом, но всё остаётся читаемым; без жёстких краёв, без "коробки" */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(243, 237, 224, 0.62);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 54px 0 70px;
}

/* телефон-мокап теперь слева, в потоке, без абсолютного позиционирования */
.phone-col {
  display: flex;
  justify-content: center;
}

/* большая бумажная подложка под весь текстовый блок — foodpic/hero-paper.png.
   padding здесь — те самые "небольшие отступы со всех сторон", чтобы текст
   не упирался в край листа; ::before чуть больше блока, чтобы бумага
   выглядывала за текст, а не обрезалась вровень.
   background-size: cover (не contain) — так подложка всегда заполняет блок
   целиком без пустот и не "съезжает" в сторону из-за пропорций файла.
   Если рисуешь новый hero-paper.png — веди рисунок в край холста, без
   больших прозрачных полей вокруг листа: сама подложка внутри канвы
   должна занимать канву целиком, отступы для текста уже даёт CSS-padding
   выше, дублировать их в файле не нужно. */
.paper-block {
  position: relative;
  padding: 30px 36px;
}

.paper-block::before {
  content: "";
  position: absolute;
  inset: -18px -24px;
  background: url("foodpic/hero-paper.png") no-repeat center / cover;
  z-index: -1;
  pointer-events: none;
}

.hero-copy .heart {
  color: var(--accent);
  font-size: 24px;
  display: inline-block;
  transform: rotate(8deg);
  margin-bottom: 8px;
}

.hero-copy h1 {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 54px;
  line-height: 1.12;
  margin: 0 0 26px;
  color: var(--ink);
}

.hero-copy ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-copy li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 19px;
}

.hero-copy li i {
  color: var(--accent);
  font-size: 18px;
}

/* обёртка с «листочком» под кнопкой — foodpic/order-slip.svg, вид заказа на листе */
.cta-wrap {
  position: relative;
  display: inline-block;
}

.cta-wrap::before {
  content: "";
  position: absolute;
  inset: -22px -34px;
  background: url("foodpic/order-slip.svg") no-repeat center / contain;
  transform: rotate(-2deg);
  z-index: -1;
  pointer-events: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 2px dashed var(--accent);
  padding-bottom: 3px;
  position: relative;
}
.hero-cta i { transition: transform .15s ease; }
.hero-cta:hover i { transform: translateX(4px); }

/* phone mock — теперь обычный элемент потока, без абсолютной позиции */
.phone-mock {
  width: 230px;
  transform: rotate(-2deg);
  background: var(--ink);
  border-radius: 26px;
  padding: 10px;
  box-shadow: 8px 10px 0 rgba(59,50,38,0.18);
}
.phone-mock .screen {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  padding: 14px 12px 12px;
}
.phone-mock .status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.phone-mock .app-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 8px;
}
.phone-mock .app-title .mark {
  font-family: var(--font-mono);
  color: var(--accent-dark);
  font-size: 13px;
}
.phone-mock .tabs {
  display: flex;
  gap: 9px;
  font-size: 9px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 7px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.phone-mock .tabs span:first-child { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--accent-soft);
}
.menu-item:last-child { border-bottom: none; }
.menu-item .thumb {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark);
  font-size: 12px;
  flex: none;
}
.menu-item .name { font-size: 11.5px; font-weight: 700; font-family: var(--font-heading); }
.menu-item .price { font-size: 10px; color: var(--ink-soft); }
.menu-item .mid { flex: 1; }
.menu-item .add {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex: none;
}
.phone-mock .cart-btn {
  margin-top: 10px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: .5px;
  padding: 9px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* ---------- features grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.feature { text-align: center; }

.feature .icon-circle {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border: 2.3px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--ink);
  background: var(--card);
  position: relative;
}

.feature:nth-child(even) .icon-circle { transform: rotate(-3deg); }
.feature:nth-child(odd) .icon-circle { transform: rotate(2deg); }

.feature p {
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  margin-top: 40px;
  gap: 6px;
}

.step { text-align: center; padding: 0 6px; }

.step .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 14px;
}

.step .icon-circle {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2.3px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
  overflow: hidden;
}

/* своя иконка (foodpic/icons/how|benefits/...) поверх дефолтной Font Awesome —
   если картинка не загрузилась, onerror её удаляет и остаётся иконка по умолчанию */
.icon-circle .custom-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24%;
}

.step .icon-circle .mark {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-dark);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 8px;
}

.step p {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.arrow {
  align-self: center;
  font-size: 22px;
  color: var(--ink-soft);
  padding-top: 46px;
}

.steps-end-heart {
  text-align: right;
  color: var(--accent);
  font-size: 22px;
  margin-top: 14px;
}

/* ---------- business benefits ---------- */

.benefits-box {
  background: var(--card);
  padding: 44px 30px;
  margin-top: 34px;
  border: 2.3px solid var(--line);
  border-radius: 34px 8px 34px 8px / 8px 34px 8px 34px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.benefit { text-align: center; }

.benefit .icon-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.benefit p {
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

.benefits-cta {
  text-align: center;
  margin-top: 38px;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 1px;
  background: var(--ink);
  color: #fff8ef;
  border: 2.3px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  padding: 13px 28px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(59, 50, 38, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.demo-btn i { color: var(--accent-soft); }

.demo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(59, 50, 38, 0.2);
  background: var(--accent-dark);
}

/* ---------- languages + contact form ---------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  margin-top: 30px;
  align-items: start;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
  margin-top: 10px;
}

.flag-item {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--ink-soft);
}

.flag-item .flag {
  margin-bottom: 6px;
  display: inline-block;
  border: 2px solid var(--line);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  background: var(--card);
  overflow: hidden;
  object-fit: cover;
}

/* flag-icons рисует флаг как background-image — растягиваем и центрируем под круг */
.flag-item .flag.fi {
  background-size: cover;
  background-position: center;
}

.flag-item .flag.more-dots {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 54px;
  text-align: center;
}

.lang-note {
  margin-top: 22px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---- contact form ---- */

.contact-form {
  background: var(--card);
  border: 2.3px solid var(--line);
  border-radius: 30px 8px 30px 8px / 8px 30px 8px 30px;
  padding: 36px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 25px;
  margin: 0 0 4px;
}

.form-sub {
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 15px;
  font-family: var(--font-body);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-heading);
  font-size: 12.5px;
  letter-spacing: .4px;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px 4px 12px 4px;
  background: var(--bg);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  resize: none;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field.full { margin-bottom: 20px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 2px 0 18px;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  border: 2px solid var(--line);
  border-radius: 5px 2px 5px 2px;
  background: var(--bg);
  position: relative;
  cursor: pointer;
}

.consent-row input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent-dark);
}

.consent-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff8ef;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.consent-row input[type="checkbox"]:focus-visible {
  outline: 2px dashed var(--accent-dark);
  outline-offset: 2px;
}

.submit-btn {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 1px;
  background: var(--accent);
  color: #fff8ef;
  border: 2.3px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  padding: 14px 30px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(59,50,38,0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.submit-btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 rgba(59,50,38,0.2);
  background: var(--accent-dark);
}

.submit-btn:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
  box-shadow: 4px 4px 0 rgba(59,50,38,0.18);
}

.form-privacy {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
}

.form-status {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  text-align: center;
  min-height: 18px;
}
.form-status.ok  { color: #4c7a4c; }
.form-status.err { color: var(--accent-dark); }

/* ---------- footer bar ---------- */

footer {
  border-top: 2px solid var(--line);
  padding: 32px 0 0;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  padding-bottom: 30px;
}

.footer-item {
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-item i {
  font-size: 24px;
  color: var(--accent);
}

.powered-by {
  border-top: 1px dashed var(--accent-soft);
  text-align: center;
  padding: 20px 0 34px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.powered-by a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink-soft);
}

.powered-by .mark {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dark);
}

.powered-by a:hover { color: var(--accent-dark); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 50px; }
  .phone-col { order: 1; }
  .hero-copy { order: 2; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); padding: 6px 0; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-direction: column; gap: 14px; align-items: flex-start; }
  .hero-copy h1 { font-size: 38px; }
}
