/*
Theme Name: Max Visitka
Theme URI: https://example.com/max-visitka
Author: Codex
Description: Minimal custom WordPress business card theme based on the reference landing page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: max-visitka
*/

:root {
    --bg: #09090f;
    --surface: #11131b;
    --surface-2: #171a24;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f7fb;
    --muted: #99a3b8;
    --accent-violet: #8b5cf6;
    --accent-cyan: #22d3ee;
    --accent-orange: #f97316;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --container: 1120px;
    --page-radial-1: rgba(139, 92, 246, 0.28);
    --page-radial-2: rgba(34, 211, 238, 0.12);
    --page-radial-3: rgba(249, 115, 22, 0.12);
    --page-gradient-start: #05060a;
    --page-gradient-end: #09090f;
    --hero-card-overlay-1: rgba(255, 255, 255, 0.03);
    --hero-card-overlay-2: rgba(255, 255, 255, 0.02);
    --hero-card-accent-1: rgba(139, 92, 246, 0.08);
    --hero-card-accent-2: rgba(34, 211, 238, 0.06);
    --toggle-surface: rgba(255, 255, 255, 0.04);
    --toggle-thumb: linear-gradient(180deg, #ffffff, #dbe8f8);
    --toggle-icon: #f5f7fb;
}

body[data-theme="light"] {
    --bg: #eef0f2;
    --surface: #fafaff;
    --surface-2: #ecebe4;
    --line: rgba(28, 28, 28, 0.1);
    --text: #1c1c1c;
    --muted: rgba(28, 28, 28, 0.62);
    --accent-violet: #1c1c1c;
    --accent-cyan: #1c1c1c;
    --accent-orange: #1c1c1c;
    --shadow: 0 24px 56px rgba(28, 28, 28, 0.08);
    --page-radial-1: rgba(250, 250, 255, 0.7);
    --page-radial-2: rgba(218, 221, 216, 0.6);
    --page-radial-3: rgba(236, 235, 228, 0.72);
    --page-gradient-start: #fafaff;
    --page-gradient-end: #eef0f2;
    --hero-card-overlay-1: rgba(250, 250, 255, 0.92);
    --hero-card-overlay-2: rgba(238, 240, 242, 0.84);
    --hero-card-accent-1: rgba(218, 221, 216, 0.48);
    --hero-card-accent-2: rgba(236, 235, 228, 0.56);
    --toggle-surface: rgba(28, 28, 28, 0.06);
    --toggle-thumb: linear-gradient(180deg, #fafaff, #ecebe4);
    --toggle-icon: #1c1c1c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top center, var(--page-radial-1), transparent 26%),
        radial-gradient(circle at 20% 30%, var(--page-radial-2), transparent 18%),
        radial-gradient(circle at 80% 20%, var(--page-radial-3), transparent 18%),
        linear-gradient(180deg, var(--page-gradient-start) 0%, var(--page-gradient-end) 100%);
    transition: background 0.35s ease, color 0.35s ease;
}

body[data-theme="light"] .hero__title span,
body[data-theme="light"] .cta__title span {
    background-image:
        linear-gradient(120deg, rgba(218, 221, 216, 0.92), rgba(236, 235, 228, 0.9)),
        linear-gradient(120deg, rgba(28, 28, 28, 0.08), rgba(28, 28, 28, 0.08));
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #000;
    z-index: 1000;
}

.site-main {
    min-height: 100vh;
}

.landing-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.hero-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        linear-gradient(180deg, var(--hero-card-overlay-1), var(--hero-card-overlay-2)),
        linear-gradient(135deg, var(--hero-card-accent-1), transparent 40%),
        linear-gradient(220deg, var(--hero-card-accent-2), transparent 38%),
        var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body[data-theme="light"] .hero-card {
    box-shadow:
        0 24px 56px rgba(28, 28, 28, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.hero {
    padding: 44px 24px 40px;
    text-align: center;
}

.hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    margin-bottom: 6px;
}

.hero__identity {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
    text-align: left;
}

.theme-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--toggle-surface);
    color: var(--toggle-icon);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.theme-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.theme-toggle[data-theme-state="dark"] .theme-toggle__icon--moon,
.theme-toggle[data-theme-state="light"] .theme-toggle__icon--sun {
    opacity: 1;
}

.theme-toggle__track {
    position: relative;
    width: 24px;
    height: 52px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle__thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--toggle-thumb);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, background 0.35s ease;
}

.theme-toggle[data-theme-state="light"] .theme-toggle__thumb {
    transform: translateY(28px);
}

.hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.hero__avatar {
    width: 90px;
    height: 90px;
    border: 3px solid rgba(34, 211, 238, 0.4);
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12);
}

.hero__avatar-wrap::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg width='23' height='23' viewBox='0 0 23 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.2927 2.96701L16.4034 3.18695L17.2314 5.39064C17.2961 5.56314 17.4326 5.70114 17.6065 5.76583L19.734 6.56508C20.6684 6.91439 21.1701 7.91201 20.9214 8.85645L20.861 9.04333L19.872 11.2326C19.8344 11.3162 19.8149 11.4069 19.8149 11.4986C19.8149 11.5903 19.8344 11.6809 19.872 11.7645L20.8122 13.8345C21.0089 14.2684 21.0378 14.7598 20.8934 15.2138C20.749 15.6678 20.4414 16.0521 20.0302 16.2926L19.8102 16.4033L17.6065 17.2313C17.5213 17.264 17.4439 17.3143 17.3795 17.3789C17.3151 17.4436 17.2651 17.5211 17.2328 17.6065L16.4335 19.734C16.2662 20.1807 15.9391 20.5494 15.5155 20.7687C15.092 20.9881 14.6021 21.0425 14.1407 20.9214L13.9539 20.861L11.7645 19.872C11.681 19.8343 11.5903 19.8148 11.4986 19.8148C11.4069 19.8148 11.3163 19.8343 11.2327 19.872L9.16411 20.8121C8.73021 21.0088 8.23881 21.0378 7.78483 20.8933C7.33084 20.7489 6.94648 20.4414 6.70599 20.0301L6.5953 19.8102L5.76586 17.6065C5.73323 17.5213 5.68293 17.4439 5.61827 17.3795C5.5536 17.3151 5.47604 17.2651 5.39067 17.2328L3.26317 16.4335C2.8165 16.2662 2.4478 15.9391 2.22846 15.5155C2.00911 15.0919 1.95471 14.6021 2.0758 14.1407L2.13617 13.9538L3.12661 11.7645C3.16431 11.6809 3.1838 11.5903 3.1838 11.4986C3.1838 11.4069 3.16431 11.3162 3.12661 11.2326L2.18505 9.16408C1.98822 8.73034 1.95907 8.23907 2.10323 7.7851C2.24738 7.33114 2.55462 6.94668 2.96561 6.70595L3.18555 6.59526L5.39067 5.76439C5.47618 5.73193 5.55383 5.68171 5.61851 5.61703C5.68318 5.55236 5.7334 5.47471 5.76586 5.3892L6.56511 3.2617C6.73243 2.81534 7.05932 2.44687 7.48256 2.22755C7.9058 2.00823 8.39533 1.95364 8.85649 2.07433L9.04336 2.1347L11.2327 3.12514C11.3163 3.16284 11.4069 3.18233 11.4986 3.18233C11.5903 3.18233 11.681 3.16284 11.7645 3.12514L13.8345 2.18501C14.2683 1.98819 14.7596 1.95904 15.2135 2.10319C15.6675 2.24735 16.0519 2.55602 16.2927 2.96701ZM14.6108 8.19951L10.0295 13.432L8.35911 11.7616C8.23775 11.6455 8.07575 11.5815 7.90779 11.5834C7.73984 11.5852 7.57928 11.6528 7.46051 11.7715C7.34174 11.8903 7.2742 12.0509 7.27235 12.2188C7.2705 12.3868 7.33449 12.5488 7.45061 12.6701L9.60686 14.8264C9.66909 14.8885 9.7434 14.9371 9.82518 14.9693C9.90697 15.0015 9.99449 15.0166 10.0823 15.0137C10.1702 15.0107 10.2565 14.9898 10.3359 14.9521C10.4154 14.9144 10.4862 14.8609 10.5441 14.7948L15.5754 9.04476C15.6778 8.91544 15.7266 8.75167 15.7116 8.58737C15.6966 8.42307 15.619 8.27083 15.4948 8.16219C15.3707 8.05355 15.2095 7.99683 15.0446 8.00377C14.8798 8.01072 14.7254 8.08081 14.6108 8.19951Z' fill='%2322D3EE'/%3E%3C/svg%3E");
}

.hero__name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.21;
}

.hero__role {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.21;
}

.hero__title {
    width: min(100%, 640px);
    margin: 0 auto 30px;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.05em;
}

.hero__title span,
.cta__title span {
    padding: 0 0.08em;
    background-image:
        linear-gradient(120deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.2)),
        linear-gradient(120deg, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0.14));
    background-repeat: no-repeat;
    background-size: 100% 0.72em, 100% 0.18em;
    background-position: 0 88%, 0 96%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero__subtitle,
.cases__note,
.footer-note,
.footer-copy {
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.33;
}

.hero__subtitle,
.cases__note,
.footer-note,
.footer-copy,
.case-card__subtitle,
.case-card__label,
.case-card__duration {
    color: var(--muted);
}

.hero__subtitle {
    margin-bottom: 30px;
}

.hero__scroll {
    margin-bottom: 16px;
}

.hero__scroll-icon {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-left: 4px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%2322D3EE' d='M0 9.66c0 .41.34.75.75.75h6.75a.75.75 0 0 0 0-1.5H1.5V2.91a.75.75 0 0 0-1.5 0v6.75zM9.88.53 9.35 0 .22 9.13l1.06 1.06L10.41 1.06 9.88.53z'/%3E%3C/svg%3E");
}

.cases {
    position: relative;
    margin-bottom: 92px;
}

.cases__stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 460px;
    min-height: 460px;
    perspective-origin: center center;
    perspective: 1800px;
    transform-style: preserve-3d;
    -webkit-perspective: 1800px;
    -webkit-transform-style: preserve-3d;
    overflow: visible;
}

.cases__stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: min(58vw, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) translateZ(-220px);
    background:
        radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 48%),
        radial-gradient(circle at 65% 45%, rgba(34, 211, 238, 0.18) 0%, rgba(34, 211, 238, 0) 34%),
        radial-gradient(circle at 35% 65%, rgba(249, 115, 22, 0.14) 0%, rgba(249, 115, 22, 0) 32%);
}

.cases__glow {
    display: none;
}

.cases__track {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.case-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(260px, calc(100vw - 88px));
    margin-left: calc(min(260px, calc(100vw - 88px)) / -2);
    margin-top: -195px;
    border-radius: 14px;
    cursor: pointer;
    backface-visibility: hidden;
    transform-origin: center center;
    will-change: transform, opacity, filter;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
}

.case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.34));
    opacity: 1;
    transition: opacity 0.5s;
    z-index: 1;
}

.case-card.is-active::before {
    opacity: 0;
}

.case-card__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 390px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        var(--surface-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body[data-theme="light"] .case-card::before {
    background: linear-gradient(180deg, rgba(250, 250, 255, 0.16), rgba(28, 28, 28, 0.1));
}

body[data-theme="light"] .case-card__inner,
body[data-theme="light"] .review-card,
body[data-theme="light"] .lead-form {
    background:
        linear-gradient(180deg, rgba(250, 250, 255, 0.94), rgba(238, 240, 242, 0.88)),
        var(--surface-2);
    box-shadow: 0 18px 38px rgba(28, 28, 28, 0.08);
}

body[data-theme="light"] .case-card__logo-ring::after,
body[data-theme="light"] .lead-form__placeholder {
    background:
        radial-gradient(circle at top, rgba(218, 221, 216, 0.66), transparent 44%),
        linear-gradient(180deg, rgba(250, 250, 255, 0.92), rgba(236, 235, 228, 0.74));
}

.case-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.case-card__header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.case-card__heading-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.case-card__title {
    margin: 0;
    min-width: 0;
    max-height: calc(1.12em * 2);
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: uppercase;
}

.case-card__logo-ring {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 24%, #d62976 48%, #962fbf 72%, #4f5bd5 100%);
}

.case-card__logo-ring::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--surface-2);
}

.case-card__logo-ring img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid var(--surface-2);
    border-radius: 50%;
    object-fit: cover;
}

.case-card__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.case-card__duration {
    align-self: flex-start;
    padding: 6px 10px;
    border: 1px solid rgba(249, 115, 22, 0.26);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffd6bf;
}

body[data-theme="light"] .case-card__duration {
    color: #1c1c1c;
    border-color: rgba(28, 28, 28, 0.16);
    background: rgba(236, 235, 228, 0.92);
}

.case-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.case-card__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 64px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .case-card__metric,
body[data-theme="light"] .lead-form input[type="text"],
body[data-theme="light"] .lead-form input[type="email"],
body[data-theme="light"] .lead-form input[type="tel"],
body[data-theme="light"] .lead-form textarea,
body[data-theme="light"] .lead-form select,
body[data-theme="light"] .lead-form__field input {
    background: rgba(250, 250, 255, 0.78);
    border-color: rgba(28, 28, 28, 0.1);
}

.case-card__value {
    color: var(--accent-cyan);
    font-family: "Inter Tight", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

body[data-theme="light"] .case-card__value {
    color: #1c1c1c;
}

.case-card__label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
}

.case-card__summary {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 8px;
    margin-top: 14px;
}

.case-card__summary-item {
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.case-card__summary-item--revenue {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.06));
}

.case-card__summary-item--roas {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.08));
}

body[data-theme="light"] .case-card__summary-item--revenue {
    background: linear-gradient(135deg, rgba(130, 110, 248, 0.16), rgba(130, 110, 248, 0.04));
}

body[data-theme="light"] .case-card__summary-item--roas {
    background: linear-gradient(135deg, rgba(242, 138, 75, 0.18), rgba(255, 205, 171, 0.3));
}

.case-card__summary-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.case-card__summary-value {
    display: block;
    font-family: "Inter Tight", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.carousel__controls {
    position: absolute;
    bottom: -54px;
    left: 50%;
    display: flex;
    gap: 20px;
    transform: translateX(-50%);
    z-index: 10;
}

.cases__controls {
    bottom: -44px;
    z-index: 6;
}

.carousel__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

body[data-theme="light"] .carousel__control,
body[data-theme="light"] .site-footer-card__social {
    background: rgba(250, 250, 255, 0.86);
    border-color: rgba(28, 28, 28, 0.1);
    box-shadow: 0 10px 20px rgba(28, 28, 28, 0.06);
}

.carousel__control:hover,
.carousel__control:focus-visible {
    border-color: rgba(34, 211, 238, 0.32);
    background: rgba(34, 211, 238, 0.08);
    transform: scale(1.08);
    outline: none;
}

.carousel__control svg path {
    fill: var(--accent-cyan);
}

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

.clients-grid {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 52px;
}

.clients-grid__item {
    flex: 0 0 calc((100% - 56px) / 5);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 12px 30px rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .clients-grid__item {
    box-shadow: none;
}

.clients-grid__item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    filter: none;
    transform: scale(1.8);
    transform-origin: center;
}

.reviews {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    margin-bottom: 0;
}

.reviews__stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding-top: 28px;
    perspective: 1800px;
    perspective-origin: center center;
    transform-style: preserve-3d;
    -webkit-perspective: 1800px;
    -webkit-transform-style: preserve-3d;
    overflow: visible;
    transition: height 0.35s ease;
    margin-bottom: 30px;
}

.reviews__track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.reviews__heading {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    text-align: center;
}

.reviews__title {
    margin: 0 0 6px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.reviews__eyebrow {
    margin: 0;
    color: var(--accent-cyan);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.review-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        var(--surface-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.review-card--carousel {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(290px, calc(100vw - 88px));
    height: var(--reviews-card-height, auto);
    border-radius: 22px;
    backface-visibility: hidden;
    transform-origin: center center;
    will-change: transform, opacity, filter;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
    overflow: auto;
}

.reviews__controls {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: fit-content;
    margin: 24px auto 0;
    z-index: 4;
}

.review-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-card__image {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 211, 238, 0.28);
}

.review-card__name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.review-card__role {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.review-card__text,
.review-card__text p {
    margin: 0;
    color: #dce4f2;
    font-size: 15px;
    line-height: 1.6;
}

body[data-theme="light"] .review-card__text,
body[data-theme="light"] .review-card__text p {
    color: #4c433b;
}

.review-card__text p + p {
    margin-top: 12px;
}

.cta__title {
    width: min(100%, 720px);
    margin: 0 auto 20px;
    font-size: clamp(29px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.23;
    letter-spacing: -0.04em;
}

.lead-form {
    width: min(100%, 708px);
    margin: 0 auto 16px;
    padding: 32px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(140deg, rgba(139, 92, 246, 0.12), transparent 42%),
        linear-gradient(320deg, rgba(34, 211, 238, 0.08), transparent 32%),
        var(--surface-2);
    box-shadow: var(--shadow);
}

.lead-form--cf7 {
    text-align: left;
}

.lead-form__placeholder {
    padding: 18px;
    border: 1px dashed rgba(34, 211, 238, 0.28);
    border-radius: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
}

.lead-form .wpcf7 {
    color: var(--text);
}

.lead-form .wpcf7-form {
    display: grid;
    gap: 14px;
}

.lead-form .wpcf7-form p {
    margin: 0;
}

.lead-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea,
.lead-form select {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.lead-form textarea {
    min-height: 140px;
    resize: vertical;
}

.lead-form input[type="submit"],
.lead-form button,
.lead-form .wpcf7-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    color: #081018;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.18);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

body[data-theme="light"] .lead-form input[type="submit"],
body[data-theme="light"] .lead-form button,
body[data-theme="light"] .lead-form .wpcf7-submit,
body[data-theme="light"] .lead-form__submit {
    color: #fafaff;
    background: linear-gradient(90deg, #1c1c1c 0%, #343434 100%);
    box-shadow: 0 12px 22px rgba(28, 28, 28, 0.14);
}

body[data-theme="light"] .lead-form__placeholder {
    color: #6a5f56;
}

body[data-theme="light"] .theme-toggle__track {
    background: rgba(28, 28, 28, 0.1);
}

body[data-theme="light"] .hero__scroll-icon {
    filter: saturate(0.9);
}

.lead-form .wpcf7-response-output {
    margin: 0;
    border-radius: 12px;
    color: var(--text);
}

.lead-form__status {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.lead-form__status.is-success {
    color: #d6fff5;
    background: rgba(34, 211, 238, 0.1);
}

.lead-form__status.is-error {
    color: #ffe0d3;
    background: rgba(249, 115, 22, 0.12);
}

.lead-form__grid {
    display: grid;
    gap: 14px;
}

.lead-form__field {
    text-align: left;
}

.lead-form__field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.lead-form__field input {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.lead-form__field input::placeholder {
    color: var(--muted);
}

.lead-form__field input:focus {
    outline: 2px solid rgba(34, 211, 238, 0.35);
    outline-offset: 1px;
}

.lead-form__submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    color: #081018;
    background: linear-gradient(90deg, var(--accent-violet) 0%, var(--accent-cyan) 54%, var(--accent-orange) 100%);
    box-shadow: 0 14px 24px rgba(139, 92, 246, 0.18);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.lead-form__submit:hover,
.lead-form__submit:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.lead-form__privacy {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.33;
}

.lead-form__privacy a {
    color: var(--accent-cyan);
}

.footer-note {
    margin-top: 24px;
    font-size: 16px;
}

.footer-copy {
    margin-top: 18px;
    font-size: 16px;
    font-weight: 500;
}

.site-footer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding-top: 16px;
    text-align: center;
}

.site-footer-card__legal,
.site-footer-card__company {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.site-footer-card__privacy {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer-card__copy,
.site-footer-card__company {
    white-space: pre-line;
}

.site-footer-card__socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 0;
}

.site-footer-card__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer-card__social svg {
    display: block;
    width: 24px;
    height: 24px;
}

.site-footer-card__social:hover,
.site-footer-card__social:focus-visible {
    border-color: rgba(34, 211, 238, 0.32);
    background: rgba(34, 211, 238, 0.08);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 767px) {
    body {
        background: var(--surface);
    }

    .landing-shell {
        width: 100%;
        padding: 0;
    }

    .hero-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .hero {
        padding: 32px 14px 32px;
    }

    .hero__top {
        gap: 12px;
        align-items: center;
    }

    .hero__identity {
        gap: 12px;
        margin-bottom: 36px;
    }

    .theme-toggle {
        padding: 8px 7px;
        gap: 8px;
    }

    .theme-toggle__track {
        width: 22px;
        height: 46px;
    }

    .theme-toggle__thumb {
        width: 16px;
        height: 16px;
    }

    .theme-toggle[data-theme-state="light"] .theme-toggle__thumb {
        transform: translateY(24px);
    }

    .hero__avatar {
        width: 74px;
        height: 74px;
    }

    .hero__avatar-wrap::after {
        width: 18px;
        height: 18px;
    }

    .hero__name {
        font-size: 18px;
    }

    .hero__role,
    .hero__subtitle,
    .hero__scroll,
    .cases__note {
        font-size: 16px;
    }

    .hero__scroll {
        margin-bottom: 28px;
    }

    .cases__stage {
        height: 452px;
        min-height: 452px;
    }

    .cases__stage::before {
        width: min(92vw, 360px);
    }

    .cases {
        margin-bottom: 100px;
    }

    .case-card {
        margin-top: -195px;
    }

    .case-card__inner {
        min-height: 390px;
    }

    .case-card__summary {
        grid-template-columns: 1fr;
    }

    .cta {
        margin-top: 40px;
    }

    .clients-grid {
        margin-top: 44px;
    }

    .clients-grid__item {
        flex-basis: calc((100% - 14px) / 2);
        height: 94px;
        padding: 8px 12px;
    }

    .clients-grid__item img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        transform: scale(1.65);
    }

    .reviews__stage {
        min-height: 0;
        padding-top: 18px;
        margin-bottom: 28px;
    }

    .lead-form {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .carousel__controls {
        bottom: -92px;
    }

    .cases__controls {
        bottom: -44px;
    }

    .review-card--carousel {
        width: min(290px, calc(100vw - 88px));
    }

    .reviews__controls {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 24px auto 0;
    }

    .site-footer-card {
        gap: 16px;
        margin-top: 40px;
    }

    .lead-form__field label {
        font-size: 14px;
    }

    .lead-form__field input {
        min-height: 52px;
        padding: 14px 16px;
    }
}
