/* CNC hair systems page (opportunities 10), 2026-11-15: Application + Service and the making steps
   as open, readable blocks instead of a scroll box and a 13-card carousel. Texts live in the DB
   (description3 / description4), this file only lays them out. */

.cnc-ap, .cnc-mk { --cnc-ink:#151314; --cnc-mute:#5c5a5b; --cnc-line:rgba(21,19,20,.14); text-align:left; }
.cnc-ap *, .cnc-mk * { box-sizing:border-box; }
.cnc-ap p, .cnc-mk p { margin:0; }
.cnc-ap img, .cnc-mk img { display:block; width:100%; height:auto; }

/* ---------- Application + Service (light) ---------- */
.cnc-ap { background:#f6f6f6; color:var(--cnc-ink); padding:72px 0 80px; }
.cnc-ap__h { margin:0 0 36px; }
.cnc-ap__row { display:grid; gap:28px; }
.cnc-ap__ph { margin:0; overflow:hidden; background:#e9e7e6; }
.cnc-ap__ph img { aspect-ratio:3/2; object-fit:cover; }
.cnc-ap__list { list-style:none; margin:0; padding:0; counter-reset:cnc; }
.cnc-ap__list li { counter-increment:cnc; display:grid; grid-template-columns:44px 1fr; gap:14px; padding:18px 0; border-top:1px solid var(--cnc-line); font-size:15px; line-height:1.6; }
.cnc-ap__list li:last-child { border-bottom:1px solid var(--cnc-line); }
.cnc-ap__list li::before { content:counter(cnc, decimal-leading-zero); font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:15px; line-height:1.6; color:var(--cnc-ink); }
.cnc-ap__list li:first-child { font-weight:600; }

.cnc-sv { margin-top:72px; }
.cnc-sv__body { display:grid; gap:24px; }
.cnc-sv__h { font-family:KelsonSansRU, sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:.03em; font-size:20px; line-height:1.3; margin:0 0 24px; }
.cnc-sv__lead p { font-size:15px; line-height:1.65; max-width:62ch; }
.cnc-sv__lead p + p { margin-top:12px; }
.cnc-sv__steps { list-style:none; margin:28px 0 0; padding:0; display:grid; grid-template-columns:1fr; gap:0; }
.cnc-sv__steps li { padding:18px 0 18px 0; border-top:1px solid var(--cnc-line); }
.cnc-sv__steps b { display:flex; gap:12px; align-items:baseline; font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:15px; letter-spacing:.02em; margin-bottom:6px; }
.cnc-sv__steps b i { font-style:normal; color:var(--cnc-mute); font-weight:700; }
.cnc-sv__steps span { display:block; font-size:14.5px; line-height:1.6; color:#2e2c2d; }

.cnc-sv__note { margin-top:56px; display:grid; gap:24px; align-items:center; background:#151314; color:#fff; }
.cnc-sv__note .cnc-ap__ph { background:#151314; }
.cnc-sv__note .cnc-ap__ph img { aspect-ratio:4/5; object-position:50% 30%; }
.cnc-sv__note p { padding:0 24px 32px; font-size:16px; line-height:1.65; }
.cnc-sv__note p strong { font-family:KelsonSansRU, sans-serif; letter-spacing:.02em; }

@media (min-width:768px) {
  .cnc-ap { padding:90px 0 100px; }
  .cnc-ap__row { grid-template-columns:5fr 6fr; gap:48px; align-items:start; }
  .cnc-sv__body { display:grid; grid-template-columns:6fr 5fr; gap:48px; align-items:start; }
  .cnc-sv__body .cnc-ap__ph { order:2; position:sticky; top:110px; }
  .cnc-sv__note { grid-template-columns:2fr 3fr; gap:0; }
  .cnc-sv__note .cnc-ap__ph img { aspect-ratio:4/5; }
  .cnc-sv__note p { padding:40px 48px; font-size:17px; }
}
@media (min-width:1200px) {
  .cnc-ap__list li, .cnc-sv__lead p { font-size:16px; }
  .cnc-sv__h { font-size:24px; }
  .cnc-sv__steps { grid-template-columns:1fr 1fr; column-gap:32px; }
  .cnc-sv__note { grid-template-columns:1fr 2fr; }
  .cnc-sv__note p { padding:56px 72px; font-size:19px; line-height:1.6; }
}

/* ---------- The art of making CNC (dark, open steps in four stages) ---------- */
.making-section.cnc-mk { background:#151314; color:#fff; padding:76px 0 84px; text-align:left; }
.making-section.cnc-mk:after { display:none; } /* the old 80% black veil over the photo background */
.cnc-mk { --cnc-line:rgba(255,255,255,.16); }
.cnc-mk__top { display:grid; gap:20px; margin-bottom:44px; }
.cnc-mk__top .t { margin:0; color:#fff; }
.cnc-mk__intro { font-size:15px; line-height:1.65; color:rgba(255,255,255,.86); max-width:60ch; }
.cnc-mk__stage { display:grid; gap:8px; padding:28px 0 8px; border-top:1px solid rgba(255,255,255,.32); }
.cnc-mk__label { font-family:KelsonSansRU, sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:13px; color:rgba(255,255,255,.6); }
.cnc-mk__label b { display:block; color:#fff; font-size:18px; letter-spacing:.03em; margin-top:6px; }
.cnc-mk__steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr; }
.cnc-mk__steps li { display:grid; grid-template-columns:40px 1fr; gap:12px; padding:16px 0 18px; border-top:1px solid var(--cnc-line); }
.cnc-mk__steps li:first-child { border-top:0; }
.cnc-mk__n { font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:15px; line-height:1.5; color:rgba(255,255,255,.5); }
.cnc-mk__steps h3 { margin:0 0 6px; font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:16px; line-height:1.35; letter-spacing:.02em; color:#fff; text-transform:none; }
.cnc-mk__steps p { font-size:14.5px; line-height:1.6; color:rgba(255,255,255,.8); }
.cnc-mk__end { margin-top:40px; padding-top:32px; border-top:1px solid rgba(255,255,255,.32); font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:20px; line-height:1.4; letter-spacing:.02em; max-width:36ch; }

@media (min-width:768px) {
  .making-section.cnc-mk { padding:96px 0 104px; }
  .cnc-mk__top { grid-template-columns:5fr 6fr; gap:48px; align-items:start; margin-bottom:56px; }
  .cnc-mk__stage { gap:16px; padding:32px 0 12px; }
  .cnc-mk__steps { grid-template-columns:1fr 1fr; column-gap:36px; }
  .cnc-mk__steps li:nth-child(2) { border-top:0; }
  .cnc-mk__end { font-size:24px; margin-top:48px; }
}
@media (min-width:1200px) {
  .cnc-mk__intro, .cnc-mk__steps p { font-size:15.5px; }
  .cnc-mk__steps h3 { font-size:17px; }
  .cnc-mk__stage { grid-template-columns:3fr 8fr; gap:48px; }
  .cnc-mk__end { font-size:28px; }
}

/* About the procedure on phones: no justified text (it opened wide holes between words) */
@media (max-width:767px) { .about-section__tx-box, .about-section__tx-box p { text-align:left !important; } }

/* Faint film loop behind the making steps (owner, 2026-11-15): fixed to the screen and clipped to the block,
   so it shows only while the block is in view (sticky does not work here: a parent clips overflow) */
.making-section.cnc-mk { position:relative; }
.cnc-mk__bg { position:absolute; inset:0; z-index:0; pointer-events:none; clip-path:inset(0); }
.cnc-mk__bg video { position:fixed; top:0; left:0; display:block; width:100%; height:100vh; object-fit:cover; opacity:0; transition:opacity 1.6s ease; filter:saturate(.75); }
.cnc-mk__bg video.is-on { opacity:.18; }
.cnc-mk > .container { position:relative; z-index:1; }

/* ---------- About the procedure, CNC page only (owner, 2026-11-15: taller, bigger photos) ----------
   Same markup as the shared template: two photos on the left, title and text on the right. */
#about-section { --ab-ink:#151314; --ab-mute:#4a4748; background:#fff; padding:72px 0 88px; overflow:hidden; }
#about-section .about-section__left, #about-section .about-section__right { width:auto; padding:0; margin:0; }
#about-section .about-section__img-box { position:relative; width:auto; display:block; }
#about-section .about-section__img-i { width:auto !important; margin:0 !important; }
#about-section .about-section__img-w { margin:0; height:100%; overflow:hidden; background:#ece9e7; }
#about-section .about-section__img { display:block; width:100%; height:100%; object-fit:cover; }
/* big photo: edge to edge on phones */
#about-section .about-section__img-i:first-child { margin:0 -20px !important; aspect-ratio:4/5; max-height:560px; height:auto !important; }
#about-section .about-section__img-i:first-child .about-section__img { object-position:42% 30%; }
/* second photo in a white frame, laid over the corner of the first */
#about-section .about-section__img-i:last-child { position:relative; z-index:2; width:58% !important; margin:-96px 0 0 auto !important; border:8px solid #fff; box-shadow:0 18px 40px rgba(21,19,20,.18); aspect-ratio:415/362; height:auto !important; }
#about-section .about-section__right { position:relative; margin-top:44px; }
#about-section .about-section__right::before { content:""; display:block; width:56px; height:2px; background:var(--ab-ink); margin-bottom:26px; }
#about-section .about-section__t { font-size:34px; line-height:1.08; letter-spacing:.01em; margin:0 0 26px; color:var(--ab-ink); }
#about-section .about-section__tx-box { max-height:none; min-height:0; overflow:visible; padding:0; text-align:left; }
#about-section .about-section__tx-box p, #about-section .about-section__tx { text-align:left !important; font-size:15.5px; line-height:1.75; color:#2e2c2d; margin:0; }
#about-section .about-section__tx-box p + p { margin-top:16px; }
#about-section .about-section__tx-box p:first-child { font-size:18px; line-height:1.6; color:var(--ab-ink); padding-left:18px; border-left:2px solid var(--ab-ink); }

@media (min-width:768px) {
  #about-section { padding:96px 0 110px; }
  #about-section .container { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
  #about-section .about-section__img-box { padding-bottom:70px; }
  #about-section .about-section__img-i:first-child { margin:0 !important; aspect-ratio:auto; height:560px !important; max-height:none; }
  #about-section .about-section__img-i:last-child { position:absolute; right:-28px; bottom:0; width:62% !important; margin:0 !important; }
  #about-section .about-section__right { margin-top:0; }
  #about-section .about-section__t { font-size:40px; }
}
@media (min-width:1200px) {
  #about-section { padding:130px 0 150px; }
  #about-section .container { grid-template-columns:1fr 1fr; gap:96px; }
  /* the big photo runs to the left edge of the screen */
  #about-section .about-section__left { margin-left:calc(550px - 50vw); }
  #about-section .about-section__img-box { padding-bottom:90px; }
  #about-section .about-section__img-i:first-child { height:720px !important; }
  #about-section .about-section__img-i:last-child { right:-64px; width:340px !important; border-width:10px; }
  #about-section .about-section__t { font-size:52px; margin-bottom:34px; }
  #about-section .about-section__tx-box p, #about-section .about-section__tx { font-size:16.5px; }
  #about-section .about-section__tx-box p:first-child { font-size:20px; padding-left:22px; }
}
@media (min-width:1920px) {
  #about-section .about-section__left { margin-left:calc(800px - 50vw); }
  #about-section .about-section__img-i:first-child { height:860px !important; }
  #about-section .about-section__right { max-width:680px; }
  #about-section .about-section__img-i:last-child { width:420px !important; }
}
/* the text: lead, then "the system can be" as two cards, then the closing paragraph */
#about-section .cnc-ab__k { font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:12.5px !important; letter-spacing:.16em; text-transform:uppercase; color:var(--ab-mute) !important; margin:30px 0 12px !important; padding:0 !important; border:0 !important; }
#about-section .cnc-ab__cards { display:grid; grid-template-columns:1fr; gap:10px; margin:0 0 28px; counter-reset:ab; }
#about-section .cnc-ab__card { counter-increment:ab; background:#f5f3f2; padding:20px 22px 22px; }
#about-section .cnc-ab__card::before { content:counter(ab, decimal-leading-zero); display:block; font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:12px; letter-spacing:.12em; color:#9a9697; margin-bottom:12px; }
#about-section .cnc-ab__card b { display:block; font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:19px; line-height:1.2; color:var(--ab-ink); margin-bottom:8px; }
#about-section .cnc-ab__card span { display:block; font-size:15px; line-height:1.6; color:#4a4748; }
@media (min-width:1200px) {
  #about-section .cnc-ab__cards { grid-template-columns:1fr 1fr; gap:12px; }
  #about-section .cnc-ab__card { padding:24px 24px 26px; }
  #about-section .cnc-ab__card b { font-size:20px; }
}
/* reveal when the block comes into view (class set by cnc-v2.js; without the script all stays visible) */
@media (prefers-reduced-motion:no-preference) {
  .cnc-js #about-section .about-section__img-i:first-child .about-section__img-w { clip-path:inset(0 100% 0 0); transition:clip-path 1.3s cubic-bezier(.77,0,.18,1); }
  .cnc-js #about-section .about-section__img-i:first-child .about-section__img { transform:scale(1.12); transition:transform 2.2s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
  .cnc-js #about-section .about-section__img-i:last-child { opacity:0; transform:translateY(40px); transition:opacity .9s ease .7s, transform 1.1s cubic-bezier(.2,.7,.2,1) .7s; }
  .cnc-js #about-section .about-section__right { opacity:0; transform:translateY(24px); transition:opacity .9s ease .35s, transform 1s cubic-bezier(.2,.7,.2,1) .35s; }
  .cnc-js #about-section.is-in .about-section__img-i:first-child .about-section__img-w { clip-path:inset(0 0 0 0); }
  .cnc-js #about-section.is-in .about-section__img-i:first-child .about-section__img { transform:none; }
  .cnc-js #about-section.is-in .about-section__img-i:last-child, .cnc-js #about-section.is-in .about-section__right { opacity:1; transform:none; }
}

/* phones: the hero title and its button sit in the middle of the screen (owner, 2026-11-15) */
@media (max-width:767px) {
  #present-section .present-section__slide-inner { display:flex; flex-direction:column; justify-content:center; padding:40px 20px 90px; text-align:left; }
  #present-section .present-section__box, #present-section .present-section__box * { text-align:left; }
}

/* Можливості CNC: full width with even margins, text left (it was a 290px column, justified) */
@media (max-width:1199px) {
  #application-section .application-section__tx-box { max-width:none; width:100%; text-align:left; }
  #application-section .application-section__tx-box * { text-align:left; }
}

/* our results: bigger photos, close together (the photos are about 10:11, shown whole) */
#results-gallery-section .results-gallery-slide { justify-content:center; gap:8px; }
#results-gallery-section .result-item { width:calc(50% - 4px) !important; margin:0 !important; }
#results-gallery-section .result-item .img { padding-top:110% !important; }
#results-gallery-section .result-item h5 { margin-top:12px; }
@media (max-width:767px) {
  #results-gallery-section .container { padding-left:10px; padding-right:10px; }
  #results-gallery-section .result-item h5 { padding-left:4px; }
}
@media (min-width:768px) {
  #results-gallery-section .results-gallery-slide { gap:14px; }
  #results-gallery-section .result-item { width:calc(50% - 7px) !important; }
}
@media (min-width:1200px) {
  #results-gallery-section .results-gallery-slide { gap:16px; }
  #results-gallery-section .result-item { width:min(520px, calc(50% - 8px)) !important; }
}

/* request block before the results */
.cnc-cta { background:#111; color:#fff; padding:64px 0 70px; position:relative; overflow:hidden; }
.cnc-cta::before { content:""; position:absolute; left:0; top:0; width:100%; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
.cnc-cta .container { display:grid; grid-template-columns:1fr; gap:22px; }
.cnc-cta__k { font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.55); margin:0; }
.cnc-cta__h { font-family:KelsonSansRU, sans-serif; font-weight:700; font-size:30px; line-height:1.08; text-transform:uppercase; color:#fff; margin:0; max-width:14ch; text-wrap:balance; }
.cnc-cta__side p { font-size:16px; line-height:1.6; color:rgba(255,255,255,.78); margin:0 0 26px; max-width:46ch; text-align:left; }
.cnc-cta__btn.btn { background:#fff; color:#111; height:50px; min-width:240px; padding:0 30px; transition:background .3s, color .3s; }
.cnc-cta__btn.btn:hover { background:#49141d; color:#fff; }
@media (max-width:767px) { .cnc-cta__btn.btn { width:100%; } }
@media (min-width:768px) { .cnc-cta { padding:80px 0 86px; } .cnc-cta__h { font-size:40px; } }
@media (min-width:1200px) {
  .cnc-cta { padding:110px 0 116px; }
  .cnc-cta .container { grid-template-columns:1.1fr 1fr; gap:24px 96px; align-items:end; }
  .cnc-cta__k { grid-column:1 / -1; }
  .cnc-cta__h { font-size:54px; }
  .cnc-cta__side p { font-size:17px; }
}
@media (min-width:1920px) { .cnc-cta__h { font-size:64px; } }

/* hero: the Cesare Ragazzi line links to the news (2026-11-15) */
#present-section .cnc-news-link { color:#fff !important; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; text-decoration-color:rgba(255,255,255,.55); transition:text-decoration-color .25s; }
#present-section .cnc-news-link:hover { text-decoration-color:#fff; }
