/* Dukly — style.css (v2, minimal / Apple-like) */
:root {
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --white: #ffffff;
  --black: #111111;
  --accent: #ff002d;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --soft-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
body.menu-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.logo span { color: var(--accent); }
body.menu-open .logo { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.mail-btn { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: #000; color: #fff; }
.mail-btn:hover { background: var(--accent); }
body.menu-open .mail-btn { visibility: hidden; }
.menu-toggle { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); }
.menu-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.burger { position: relative; width: 28px; height: 12px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 10px; }
.menu-toggle:hover .burger { color: var(--accent); }
body.menu-open .menu-toggle { color: #fff; }
body.menu-open .burger { color: var(--accent); }
body.menu-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center;
  background: var(--black); color: #fff; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
}
body.menu-open .menu-overlay { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.menu-nav { width: 100%; max-width: var(--max); margin: 0 auto; padding: 100px var(--pad) 48px; text-align: right; }
.menu-nav ul { list-style: none; }
.menu-nav > ul > li { margin: 2px 0; }
.menu-link {
  display: inline-block; font-family: inherit; font-size: clamp(34px, 6vw, 62px); font-weight: 800;
  line-height: 1.12; letter-spacing: -.02em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: none; border: 0; cursor: pointer; transition: color .15s;
}
.menu-link:hover, .menu-link[aria-expanded="true"], .menu-link[aria-current="page"] { color: var(--accent); }
.submenu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.submenu.open { grid-template-rows: 1fr; }
.submenu > ul { overflow: hidden; }
.submenu > ul > li:first-child { padding-top: 8px; }
.submenu > ul > li:last-child { padding-bottom: 12px; }
.submenu a { display: inline-block; padding: 5px 0; font-size: clamp(17px, 2vw, 22px); font-weight: 700; text-transform: uppercase; color: #b5b5b5; text-decoration: none; }
.submenu a:hover { color: var(--accent); }
.menu-contact { margin-top: 44px; font-size: 16px; color: #9a9a9a; }
.menu-contact a { color: #fff; text-decoration: none; }
.menu-contact a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Typography ---------- */
.display { font-size: clamp(44px, 7.4vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; }
.h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--grey); font-weight: 500; letter-spacing: -.01em; }
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section-soft { background: var(--soft); }
.section-intro { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.section-intro .sub { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 0; overflow: hidden; }
.hero .display { max-width: 15ch; margin: 0 auto; }
.rotator { display: inline-block; white-space: nowrap; }
.rotator-word {
  display: inline-block;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 94% / 100% .06em;
  transition: opacity .35s, transform .35s var(--ease);
}
.rotator-word.out { opacity: 0; transform: translateY(-.2em); }
.rotator-word.in { opacity: 0; transform: translateY(.2em); transition: none; }
.hero .sub { max-width: 34ch; margin: 24px auto 32px; }

/* Device stage */
.stage {
  position: relative; max-width: 1000px; margin: clamp(56px, 8vw, 88px) auto 0;
  padding: 0 clamp(24px, 6vw, 72px) clamp(56px, 8vw, 96px);
  animation: rise 1.2s var(--soft-ease) .15s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }

.macbook .screen {
  background: #0c0c0d; border-radius: 2.2% 2.2% 0 0 / 3.4% 3.4% 0 0; padding: 1.8% 1.8% 2.4%;
  box-shadow: 0 0 0 1.5px #c9c9ce, 0 40px 80px -30px rgba(0, 0, 0, .35);
}
.macbook .base {
  position: relative; height: clamp(10px, 1.6vw, 18px); width: 112%; margin-left: -6%;
  background: linear-gradient(#e6e6e9 0%, #cfcfd4 55%, #a9a9ae 100%);
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
}
.macbook .base::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 14%; height: 45%; background: #bdbdc2; border-radius: 0 0 10px 10px;
}
.phone {
  position: relative; aspect-ratio: 9 / 19.3; background: #0c0c0d;
  border-radius: 15% / 7%; padding: 3.2%;
  box-shadow: 0 0 0 1.5px #c9c9ce, 0 30px 60px -20px rgba(0, 0, 0, .4);
}
.phone::before {
  content: ""; position: absolute; top: 3.4%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.2%; background: #0c0c0d; border-radius: 99px; z-index: 2;
}
.phone .screen-inner { height: 100%; border-radius: 12.5% / 5.8%; }
.stage .phone { position: absolute; right: 0; bottom: 5%; width: 22%; }
.screen-inner { position: relative; overflow: hidden; background: #fff; container-type: inline-size; }
.macbook .screen-inner { aspect-ratio: 16 / 10; border-radius: 4px; }

/* Photo slots: image if present, gradient if not */
.photo { background-color: #ddd; background-size: cover; background-position: center; }
.ph-restauracja { background-image: url("img/restauracja.jpg"), linear-gradient(135deg, #c8743d, #6b2d12 70%, #2b120a); }
.ph-slub        { background-image: url("img/slub.jpg"), linear-gradient(160deg, #f4e7dc, #d9b99b 60%, #a9805f); }
.ph-biznes      { background-image: url("img/biznes.jpg"), linear-gradient(140deg, #e9eef5, #b8c6d9 55%, #6c7f99); }
.ph-gastronomia { background-image: url("img/branza-gastronomia.jpg"), linear-gradient(160deg, #d9844a, #7a2f14 60%, #2a100a); }
.ph-warsztat    { background-image: url("img/branza-warsztat.jpg"), linear-gradient(160deg, #6f7780, #2e3339 55%, #121417); }
.ph-beauty      { background-image: url("img/branza-beauty.jpg"), linear-gradient(160deg, #f1d2cf, #c98f8a 55%, #7d4a47); }
.ph-uslugi      { background-image: url("img/branza-uslugi.jpg"), linear-gradient(160deg, #9fb7a3, #4d6b55 55%, #1f2e24); }
.ph-sluby       { background-image: url("img/branza-sluby.jpg"), linear-gradient(160deg, #efe3d3, #c7a883 55%, #7e5f3f); }
.ph-freelancer  { background-image: url("img/branza-freelancer.jpg"), linear-gradient(160deg, #b9c2ef, #5b63a8 55%, #23264a); }

/* Mock site: restaurant (scaled with container units) */
.m-site { position: absolute; inset: 0; display: flex; flex-direction: column; text-align: left; font-size: 1.5cqw; color: #1a1a1a; background: #faf7f2; }
.m-nav { display: flex; justify-content: space-between; align-items: center; padding: 2em 4em 1.6em; }
.m-logo { font-size: 1.6em; font-weight: 800; letter-spacing: -.04em; }
.m-links { display: flex; gap: 2.4em; font-size: .95em; color: #555; }
.m-hero { flex: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3em; align-items: center; padding: 0 4em 2.4em; }
.m-hero h4 { font-size: 3em; line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.m-hero p { margin: 1.2em 0 2em; font-size: 1.05em; color: #666; max-width: 26em; line-height: 1.5; }
.m-btn { display: inline-block; padding: .9em 1.8em; border-radius: 99px; background: #1a1a1a; color: #fff; font-weight: 600; font-size: .95em; }
.m-img { height: 100%; min-height: 10em; max-height: 19em; border-radius: 1.4em; }
.m-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6em; padding: 0 4em 2.6em; }
.m-strip div { padding: 1.4em; border-radius: 1em; background: #fff; font-size: .95em; }
.m-strip b { display: block; font-size: 1.1em; margin-bottom: .3em; }
.m-strip span { color: #777; }

/* Mock site: wedding (phone) */
.m-wed { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 5.2cqw; background: #fbf8f4; color: #2b2320; text-align: center; }
.m-wed .m-cover { height: 44%; }
.m-wed-body { padding: 1.4em 1.2em; }
.m-wed small { display: block; color: #9a877a; font-size: .8em; letter-spacing: .02em; }
.m-wed h4 { font-size: 2em; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: .3em 0 .5em; }
.m-wed .m-btn { background: #2b2320; font-size: .85em; padding: .8em 1.4em; }
.m-wed ul { list-style: none; margin-top: 1.2em; text-align: left; font-size: .82em; }
.m-wed li { display: flex; justify-content: space-between; padding: .65em 0; border-top: 1px solid #ece4da; }
.m-wed li span { color: #9a877a; }

/* ---------- Bento (offer) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 560px; padding: clamp(32px, 4vw, 48px); border-radius: var(--r-lg);
  background: var(--white); text-align: center; scroll-margin-top: 88px;
}
.tile-wide { grid-column: 1 / -1; min-height: 520px; }
.tile h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.tile p { max-width: 38ch; margin: 14px auto 0; font-size: 18px; color: var(--grey); }
.tile .actions { margin-top: 24px; }
.tile-visual { flex: 1; display: flex; align-items: center; justify-content: center; margin-top: 40px; }
.tile-photo { width: 100%; height: 100%; min-height: 240px; border-radius: var(--r-md); }
.tile-dark { background: var(--black); color: #fff; }
.tile-dark p { color: #a1a1a6; }
.tile-dark .text-link { color: #fff; }
.tile-dark .text-link:hover { color: var(--accent); }

/* Booking widget mock */
.booking { width: min(100%, 360px); padding: 22px; border-radius: 22px; background: #1d1d1f; text-align: left; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.booking-head { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.booking-head span { color: #a1a1a6; font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.days div { padding: 10px 0; border-radius: 12px; background: #2c2c2e; text-align: center; font-size: 12px; color: #a1a1a6; }
.days b { display: block; font-size: 17px; color: #fff; }
.days .on { background: #fff; color: #6e6e73; }
.days .on b { color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots span { padding: 10px 0; border-radius: 99px; border: 1px solid #3a3a3c; text-align: center; font-size: 14px; }
.slots .on { background: var(--accent); border-color: var(--accent); }
.slots .off { color: #5a5a5e; text-decoration: line-through; }

/* Wedding tile phone */
.tile-phone { width: min(56%, 230px); }

/* ---------- Industries carousel ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 340px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 24px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}
.carousel::-webkit-scrollbar { display: none; }
.card {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4.2; border-radius: var(--r-lg);
  scroll-snap-align: start; color: #fff; isolation: isolate;
}
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 45%); }
.card .photo { position: absolute; inset: 0; z-index: -2; transition: transform .8s var(--soft-ease); }
.card:hover .photo { transform: scale(1.04); }
.card-text { padding: 28px; }
.card small { display: block; font-size: 15px; font-weight: 600; opacity: .85; }
.card h3 { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 10px; }
.carousel-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #e8e8ed; color: var(--ink); font-size: 20px; line-height: 1; transition: background-color .2s, color .2s;
}
.carousel-nav button:hover { background: var(--ink); color: #fff; }

/* ---------- Case ---------- */
.case { background: var(--black); color: #fff; overflow: hidden; }
.case .sub { color: #a1a1a6; }
.case-url { display: inline-block; margin-top: 12px; font-size: clamp(34px, 6vw, 76px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; text-decoration: none; color: #fff; transition: color .15s; }
.case-url:hover { color: var(--accent); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; margin-top: 72px; }
.case-grid .phone { width: min(70%, 300px); margin: 0 auto; }
.case-features { list-style: none; display: grid; gap: 32px; }
.case-features strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.case-features span { color: #a1a1a6; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; list-style: none; counter-reset: step; text-align: center; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700;
}
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--grey); max-width: 26ch; margin: 0 auto; }

/* ---------- Care ---------- */
.care { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.care li { padding: 32px 28px; border-radius: var(--r-md); background: #fff; }
.care svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 20px; }
.care strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.care span { font-size: 16px; color: var(--grey); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 300; line-height: 1; transition: transform .25s var(--ease), color .15s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq details p { max-width: 62ch; padding-bottom: 26px; color: var(--grey); }

/* ---------- CTA ---------- */
.cta .display { max-width: 14ch; margin: 0 auto; }
.cta .sub { max-width: 36ch; margin: 22px auto 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; background: var(--soft); font-size: 14px; color: var(--grey); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Contact page ---------- */
.page-head { padding: 150px 0 64px; text-align: center; }
.page-head h1 { font-size: clamp(52px, 8vw, 104px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.page-head p { margin: 22px auto 0; max-width: 40ch; font-size: clamp(19px, 2vw, 22px); color: var(--grey); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; padding-bottom: 120px; align-items: start; }
.contact-info { padding: 36px; border-radius: var(--r-lg); background: var(--soft); }
.contact-info dl { display: grid; gap: 26px; }
.contact-info dt { font-size: 14px; color: var(--grey); margin-bottom: 4px; }
.contact-info dd { font-size: 19px; font-weight: 600; }
.contact-info dd a { text-decoration: none; }
.contact-info dd a:hover { color: var(--accent); }
.form { display: grid; gap: 20px; padding: 36px; border-radius: var(--r-lg); background: var(--soft); scroll-margin-top: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29, 29, 31, .08); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--grey); }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-status.ok { background: var(--ink); color: #fff; }
.form-status.error { background: #fff0f2; color: #b0001f; }
.form .btn { justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .care { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-wide { min-height: 0; }
  .case-grid, .contact-grid { grid-template-columns: 1fr; }
  .case-grid .phone { width: min(62%, 260px); }
}
@media (max-width: 768px) {
  .mail-btn { display: inline-flex; }
  .hero { padding-top: 120px; }
  .stage .phone { width: 28%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .care, .form-row { grid-template-columns: 1fr; }
  .form, .contact-info { padding: 24px; }
  .m-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
