/* YOURTIME specialty coffee bar — лендинг франшизы, вариант 2 (минимализм) */

:root {
  --black: #141416;
  --graphite: #2A2B2E;
  --text: #141416;
  --text-2: #4A4A4F;
  --muted: #6B6B70;
  --muted-2: #8A8A8F;
  --line: #E6E6E3;
  --line-2: #ECECEA;
  --field: #DCDCD9;
  --panel: #F4F4F2;
  --hero: #EDEDEB;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Inter Tight', Inter, sans-serif; margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section { padding-top: 96px; }
.section-title { font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.section-lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: var(--radius-sm);
  font: 600 16px Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-dark { background: var(--black); color: var(--white); border: 0; }
.btn-dark:hover { background: #3A3B3F; transform: translateY(-1px); }
.btn-outline { background: rgba(255,255,255,.6); color: var(--black); border: 1px solid #C9C9C6; }
.btn-outline:hover, .btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--black); border: 1px solid var(--black); min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-white { background: var(--white); color: var(--black); border: 0; }
.btn-white:hover { background: #E4E4E6; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.header__logo img { height: 22px; width: auto; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav a { color: var(--graphite); text-decoration: none; }
.nav a:hover { color: var(--muted-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(237,237,235,.96) 0%, rgba(237,237,235,.82) 50%, rgba(237,237,235,.35) 100%); }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__logo { width: min(100%, 250px); height: auto; align-self: flex-start; }
.special-catalog-back { width: calc(100% - 40px); max-width: 1024px; margin: 20px auto 16px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-weight: 700; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; scale: .85; transform-origin: left center; }
.hero__sub { margin: 0; font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 460px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__media { flex: 0 1 423px; min-width: 0; display: flex; justify-content: center; }
.hero__video { width: 300px; height: 533px; border-radius: 28px; overflow: hidden; background: #D9D9D6; box-shadow: 0 30px 70px rgba(20,20,22,.18); }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }

@media (width < 1055px) {
  .hero__inner { padding-top: 32px; }
}

/* ---------- key figures ---------- */
.figures { padding-top: 40px; }
.figures__panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; background: var(--panel); border-radius: var(--radius); padding: 28px 32px; }
.figure { display: flex; gap: 14px; align-items: flex-start; }
.figure svg { flex: none; margin-top: 2px; }
.figure__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.figure__value { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }

/* ---------- gallery slider ---------- */
.gallery__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.gallery__controls { display: flex; align-items: center; gap: 14px; }
.gallery__counter { font-size: 14px; color: var(--muted); }
.round-btn { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn--light { border: 1px solid var(--field); background: var(--white); color: var(--black); }
.round-btn--dark { border: 1px solid var(--black); background: var(--black); color: var(--white); }
.slider { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.slider::-webkit-scrollbar { display: none; }
.slider__track { display: flex; gap: 16px; }
.slide { scroll-snap-align: start; flex: 0 0 calc((100% - 32px) / 3); height: 260px; border-radius: 16px; overflow: hidden; background: var(--panel); }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.slide:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .slide { flex-basis: calc((100% - 16px) / 1.3); } }

/* ---------- formats ---------- */
.formats__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.formats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 360px)); gap: 24px; justify-content: center; }
.card { background: #faf8f2; border: 1px solid #e9e4d9; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__title { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.card__prices { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 12px; border-top: 1px solid #e9e4d9; margin-top: auto; }
.price__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.price__value { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 20px; }

/* ---------- forms ---------- */
.field { width: 100%; min-height: 54px; padding: 0 18px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--white); font: 400 16px Inter, sans-serif; color: var(--text); }
.field::placeholder { color: #9A9A9F; }
.field:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--black); }
.form-thanks { margin: 0; font-size: 17px; font-weight: 600; }
[hidden] { display: none !important; }

.calc { padding-top: 72px; }
.calc__panel { background: var(--panel); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.calc__title { font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.calc__row { display: flex; flex-wrap: wrap; gap: 12px; }
.calc__row label { display: flex; min-width: 0; }
.calc__row .f-name { flex: 1 1 220px; }
.calc__row .f-phone { flex: 2 1 280px; }
.calc form { display: flex; flex-direction: column; gap: 14px; }

.contact { padding: 96px 0; }
.contact__panel { background: var(--black); color: var(--white); border-radius: 24px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.contact__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__text p { margin: 0; font-size: 17px; line-height: 1.5; color: #B5B5BA; }
.contact__form { flex: 1 1 420px; min-width: 0; }
.contact__form form { display: flex; flex-direction: column; gap: 12px; }
.contact__form .calc__row label { flex: 1 1 180px; }
.contact__form .field { border: 0; }
.contact__form .consent { color: #9A9A9F; }
.contact__form .consent input { accent-color: var(--white); }
.contact__form .form-thanks { font-size: 18px; }

/* ---------- footer ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--line-2); }
.footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer img { height: 18px; width: auto; }
.footer span { font-size: 13px; color: var(--muted); }

/* ---------- motion ---------- */
@keyframes mUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero h1, .hero__sub, .hero__actions { animation: mUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .05s; }
.hero__sub { animation-delay: .18s; }
.hero__actions { animation-delay: .3s; }
@supports (animation-timeline: view()) {
  .reveal { animation: mUp linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero__inner { padding-top: 48px; justify-content: center; }
  .hero__text { align-items: center; text-align: center; }
  .hero__logo { align-self: center; }
  .hero h1 { transform-origin: center; }
  .hero__actions { justify-content: center; }
  .contact__panel { padding: 40px 24px; }
  .calc__panel { padding: 28px 20px; }
  .hero__video { width: 260px; height: 462px; }
}
