/* Designer landing. Original benefit cards and trust icons; shared catalog, gallery and video components. */
.sfd {
    --sfd-dark: var(--color-ink-soft, #2e2825);
    --sfd-warm: var(--color-ink, #544541);
    --sfd-paper: #fff;
    --sfd-card: var(--color-ash, #3b3330);
    --sfd-white: #fafafa;
    --sfd-muted: var(--color-fog, #cabfb6);
    --sfd-ink: var(--color-ink-soft, #2e2825);
    --sfd-copy: #4b4340;
    --sfd-line: #e5e0dd;
    --sfd-dark-line: rgb(202 191 182 / 28%);
    --sfd-accent: var(--color-fire, #ef6f2e);
    --sfd-accent-deep: var(--color-fire-deep, #e94f26);
    --sfd-button-fill: linear-gradient(90deg, var(--sfd-accent-deep), var(--sfd-accent));
    --sfd-button-ink: #fff;
    --sfd-radius: 8px;
    --sfd-shell: 1400px;
    --sfd-gutter: 48px;
    --sfd-section: 80px;
    --sfd-h1: 56px;
    --sfd-h2: 42px;
    --sfd-h3: 24px;
    --sfd-body: 16px;
    --sfd-small: 14px;
    background: var(--sfd-paper);
    color: var(--sfd-ink);
    font-family: var(--font-sans);
    font-size: var(--sfd-body);
    line-height: 1.65;
}
.sfd *, .sfd *::before, .sfd *::after { box-sizing: border-box; }
.sfd section[id] { scroll-margin-top: 112px; }
.sfd :where(a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--sfd-accent); outline-offset: 4px; }
.sfd :where(button, a) { touch-action: manipulation; }
.sfd-shell { width: 100%; max-width: var(--sfd-shell); margin-inline: auto; padding-inline: var(--sfd-gutter); }
.sfd h1, .sfd h2, .sfd h3 { font-family: var(--font-display); text-wrap: balance; }
.sfd-hero h1 { margin: 0; font-size: var(--sfd-h1); line-height: 1.08; font-weight: 400; letter-spacing: -.025em; }
.sfd :is(.sfd-benefits, .sfd-videos, .sfd-consult) h2 { margin: 0; font-size: var(--sfd-h2); line-height: 1.15; font-weight: 400; letter-spacing: -.015em; }
.sfd-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 54px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; background: var(--sfd-button-fill); color: var(--sfd-button-ink); font-size: var(--sfd-small); font-weight: 700; line-height: 1.5; text-decoration: none; transition: background .2s; }
.sfd-button:hover { background: var(--sfd-accent-deep); }
.sfd-button svg, .sfd-text-link svg { width: 20px; height: 20px; flex: none; }
.sfd-text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding-block: 10px; border-bottom: 1px solid currentColor; color: inherit; font-size: var(--sfd-small); line-height: 1.5; text-decoration: none; }
.sfd-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sfd-hero { background: var(--sfd-dark); color: var(--sfd-white); }
.sfd-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-rows: 1fr 1.2fr; column-gap: 56px; row-gap: 24px; padding-block: 64px 48px; }
.sfd-hero-heading { grid-column: 1; grid-row: 1; align-self: end; }
.sfd-hero-details { grid-column: 1; grid-row: 2; }
.sfd-lead { margin: 0; max-width: 470px; color: var(--sfd-muted); font-size: 17px; line-height: 1.7; }
.sfd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.sfd-hero-visual { grid-column: 2; grid-row: 1 / 3; min-width: 0; margin: 0; }
.sfd-hero-visual img { display: block; width: 100%; height: 500px; object-fit: cover; object-position: center; border-radius: var(--sfd-radius); }
.sfd-hero-visual figcaption { margin-top: 12px; color: var(--sfd-muted); font-size: 12px; line-height: 1.6; }
.sfd-partners { padding-block: 56px; border-bottom: 1px solid var(--sfd-line); }
.sfd-partners-heading { display: flex; align-items: start; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.sfd-partners-heading h2 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 400; }
.sfd-partners-heading p { max-width: 450px; margin: 0; color: var(--sfd-copy); font-size: var(--sfd-small); }
.sfd-partners-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sfd-partner { display: flex; align-items: center; flex-direction: column; color: inherit; text-align: center; text-decoration: none; }
.sfd-partner:hover .sfd-partner-name { text-decoration: underline; text-underline-offset: 4px; }
.sfd-partner-mark { display: flex; align-items: center; justify-content: center; width: 100%; height: 112px; margin-bottom: 16px; overflow: hidden; }
.sfd-partner-mark img { width: 150px; height: 72px; max-width: 100%; object-fit: contain; }
.sfd-partner-mark--domeo img { width: 124px; height: 72px; padding: 9px 24px; background: var(--sfd-dark); }
.sfd-partner-mark--portrait img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.sfd-partner-mark--artem { position: relative; width: 112px; height: 112px; border-radius: 50%; }
.sfd .sfd-partner-mark--artem img { position: absolute; top: -40px; left: 50%; width: 230px; max-width: none; height: auto; border-radius: 0; transform: translateX(-54%); }
.sfd-partner-name { font-size: var(--sfd-small); font-weight: 600; line-height: 1.5; }
.sfd-partner-role { max-width: 185px; margin-top: 6px; color: var(--sfd-copy); font-size: 12px; line-height: 1.6; }
/* Original six icon benefits. */
.sfd-trust { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-block: 36px 44px; border-top: 1px solid var(--sfd-dark-line); }
.sfd-trust > div { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-inline: 18px; border-left: 1px solid var(--sfd-dark-line); text-align: center; }
.sfd-trust > div:first-child { border-left: 0; }
.sfd-line-icon { display: block; flex: none; width: 48px; height: 48px; color: var(--sfd-accent); }
.sfd-trust p { margin: 0; font-size: 14px; line-height: 1.6; }
.sfd-benefits { padding-block: var(--sfd-section); background: var(--sfd-warm); color: var(--sfd-white); }
.sfd-benefits h2 { max-width: 820px; margin-inline: auto !important; text-align: center; }
.sfd-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px; margin-top: 40px; }
/* The card turns on pointer hover; keyboard and touch use the same buttons. */
.sfd-benefit-card { min-width: 0; perspective: 1200px; }
.sfd-benefit-inner { display: grid; height: 100%; min-height: 310px; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.22, .68, .13, 1); }
.sfd-benefit-card.is-flipped .sfd-benefit-inner { transform: rotateY(180deg); }
.sfd-benefit-face { grid-area: 1 / 1; min-width: 0; border: 1px solid var(--sfd-dark-line); border-radius: var(--sfd-radius); background: var(--sfd-dark); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sfd-benefit-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; width: 100%; min-height: 310px; padding: 30px 24px; color: inherit; text-align: center; cursor: pointer; }
.sfd-benefit-front:focus-visible { outline-offset: -4px; }
.sfd-benefit-title { font-family: var(--font-display); font-size: 25px; font-weight: 400; line-height: 1.3; text-wrap: balance; }
.sfd-benefit-size { display: block; margin-top: 12px; color: var(--sfd-accent); font-size: 22px; line-height: 1.25; }
.sfd-benefit-flip-hint { display: flex; align-items: center; gap: 10px; color: var(--sfd-accent); font-size: 13px; }
.sfd-benefit-flip-hint svg, .sfd-benefit-return svg { width: 20px; height: 20px; flex: none; }
.sfd-benefit-back { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 28px; border-color: var(--sfd-accent); background: var(--sfd-card); transform: rotateY(180deg); }
.sfd-benefit-description { color: var(--sfd-white); font-size: 15px; line-height: 1.75; }
.sfd-benefit-description p { margin: 0; }
.sfd-benefit-description p + p { margin-top: 16px; }
.sfd-benefit-return { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 44px; margin-top: auto; padding: 0; border: 0; background: none; color: var(--sfd-accent); font-size: 13px; cursor: pointer; }
/* The same two-column project grid and cards as the main gallery. */
.sfd-projects { --color-brand-bg: #fff; --color-fog: #cabfb6; --color-brand-700: #c43d1c; --color-brand-400: #f17f42; padding-block: var(--sfd-section); }
.sfd-projects h2 { margin: 0 0 40px; font-size: var(--sfd-h2); line-height: 1.15; font-weight: 400; }
.sfd-projects-more { display: flex; justify-content: center; margin-top: 44px; }
.sfd-videos { padding-block: 64px; background: var(--sfd-warm); color: var(--sfd-white); }
.sfd-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.sfd-section-heading > p { max-width: 370px; margin: 0; color: var(--sfd-muted); font-size: var(--sfd-small); }
.sfd-video-carousel > .relative > button[aria-label="Назад"] { left: 0; }
.sfd-video-carousel > .relative > button[aria-label="Вперёд"] { right: 0; }
.sfd-video-carousel button:focus-visible { outline-offset: -4px; }
/* Keep the existing dot appearance with a usable touch target. */
.sfd-video-carousel button[aria-label^="Ролик "] { position: relative; min-width: 36px; min-height: 44px; background: transparent !important; }
.sfd-video-carousel button[aria-label^="Ролик "]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 8px; border-radius: 8px; background: var(--sfd-muted); transform: translate(-50%, -50%); }
.sfd-video-carousel button[aria-label^="Ролик "].bg-fire::after { width: 28px; background: var(--sfd-accent); }
.sfd-installation { --color-brand-bg: #ffffff; --color-fog: #cabfb6; --color-ash: #3b3330; padding-block: 48px; background: white; }
.sfd-installation .sf-project-preview__installation { margin: 0; }
.sfd-consult { padding-block: var(--sfd-section); background: var(--sfd-dark); color: var(--sfd-white); }
.sfd-consult-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 80px; align-items: center; }
.sfd-consult-description { max-width: 470px; margin: 24px 0 16px; color: var(--sfd-muted); }
.sfd-phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--sfd-white); font-family: var(--font-display); font-size: 24px; text-decoration: none; }
.sfd-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.sfd .sfh-consult-form label { display: block; margin-bottom: 12px; color: var(--sfd-white); font-size: var(--sfd-small); }
.sfd .sfh-form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sfd .sfh-form-row input { width: 100%; min-width: 0; height: 54px; padding: 12px 16px; border: 1px solid var(--sfd-muted); border-radius: var(--sfd-radius); background: transparent; color: var(--sfd-white); font: inherit; }
.sfd .sfh-form-row input::placeholder { color: var(--sfd-muted); opacity: 1; }
.sfd .sfh-btn { min-height: 54px; padding: 14px 20px; border-radius: 999px; border: 1px solid transparent; background: var(--sfd-button-fill); color: var(--sfd-button-ink); font-size: var(--sfd-small); font-weight: 700; cursor: pointer; transition: background .2s; }
.sfd .sfh-btn:hover { background: var(--sfd-accent-deep); }
.sfd .sfh-btn:disabled { opacity: .65; cursor: wait; }
.sfd .sfh-form-consent { margin: 18px 0 0; color: var(--sfd-muted); font-size: 12px; line-height: 1.8; }
.sfd .sfh-form-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sfd .sfh-form-error { margin: 12px 0 0; color: #ffb9a7; font-size: var(--sfd-small); }
.sfd .sfh-form-success { padding: 24px; border: 1px solid var(--sfd-dark-line); border-radius: var(--sfd-radius); }
.sfd .sfh-form-success h3 { margin: 0 0 12px; font-size: 28px; font-weight: 400; }
.sfd .sfh-form-success p { margin: 0; color: var(--sfd-muted); }
@media (max-width: 1100px) {
    .sfd { --sfd-gutter: 32px; --sfd-h1: 46px; }
    .sfd-hero-grid { column-gap: 32px; }
    .sfd-hero-visual img { height: 480px; }
    .sfd-partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
    .sfd-consult-grid { gap: 48px; }
    .sfd-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
    .sfd-trust > div:nth-child(3n+1) { border-left: 0; }
    .sfd-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .sfd { --sfd-section: 64px; --sfd-h2: 36px; }
    .sfd-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 28px; padding-block: 40px; }
    .sfd-hero-heading, .sfd-hero-visual, .sfd-hero-details { grid-column: 1; grid-row: auto; }
    .sfd-hero-visual img { height: auto; aspect-ratio: 4 / 3; }
    .sfd-hero-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
    .sfd-hero-details .sfd-actions { grid-column: 2; grid-row: 1; align-content: start; margin: 0; }
}
@media (max-width: 639px) {
    .sfd { --sfd-gutter: 20px; --sfd-section: 48px; --sfd-h1: 36px; --sfd-h2: 30px; --sfd-h3: 23px; }
    .sfd-hero-grid { padding-block: 28px 32px; gap: 24px; }
    .sfd-hero-visual img { aspect-ratio: 1; }
    .sfd-hero-visual figcaption { font-size: 11px; }
    .sfd-hero-details { display: block; }
    .sfd-lead { font-size: var(--sfd-body); line-height: 1.65; }
    .sfd-hero-details .sfd-actions { display: flex; margin-top: 24px; gap: 12px; }
    .sfd-actions .sfd-button { width: 100%; }
    .sfd-partners { padding-block: 40px; }
    .sfd-partners-heading { display: block; margin-bottom: 24px; }
    .sfd-partners-heading h2 { font-size: 27px; }
    .sfd-partners-heading p { margin-top: 16px; }
    .sfd-partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .sfd-partner-mark img { max-width: 130px; }
    .sfd-partner-role { font-size: 12px; }
    .sfd-section-heading { display: block; margin-bottom: 16px; }
    .sfd-section-heading > p { margin-top: 20px; }
    .sfd-videos { padding-block: 48px 32px; }
    .sfd-installation { padding-block: 32px; }
    .sfd-consult-grid { grid-template-columns: 1fr; gap: 28px; }
    .sfd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 28px 32px; gap: 28px 0; }
    .sfd-trust > div { gap: 14px; padding-inline: 10px; }
    .sfd-trust > div:nth-child(n) { border-left: 1px solid var(--sfd-dark-line); }
    .sfd-trust > div:nth-child(2n+1) { border-left: 0; }
    .sfd-trust .sfd-line-icon { width: 40px; height: 40px; }
    .sfd-trust p { font-size: 12px; }
    .sfd-benefit-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
    .sfd-benefit-front { min-height: 290px; padding: 26px 22px; gap: 20px; }
    .sfd-benefit-title { font-size: 24px; }
    .sfd-benefit-back { padding: 24px; }
    .sfd-projects h2 { margin-bottom: 28px; }
    .sfd-projects-more { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .sfd *, .sfd *::before, .sfd *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
