/* ========================================================================== 
   RF Automotive – Basis- und Desktop-Styles
   Alle responsiven Anpassungen befinden sich in responsive.css.
   ========================================================================== */

:root {
    --color-blue: #0b9fe8;
    --color-blue-light: #55c9ff;
    --color-blue-dark: #056ba8;
    --color-ink: #05080c;
    --color-ink-soft: #0b1118;
    --color-panel: #111a24;
    --color-line: rgba(255, 255, 255, 0.12);
    --color-text: #17202a;
    --color-muted: #65717f;
    --color-white: #ffffff;
    --color-surface: #f3f6f8;
    --font-main: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
    --container: 1440px;
    --container-narrow: 920px;
    --gutter: clamp(24px, 4vw, 64px);
    --section-space: clamp(84px, 8vw, 140px);
    --shadow: 0 24px 70px rgba(3, 12, 20, 0.16);
    --transition: 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 132px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: inherit;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

h1 {
    font-size: clamp(3.2rem, 6.2vw, 6.8rem);
}

h2 {
    font-size: clamp(2.25rem, 4vw, 4.35rem);
}

h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

p:last-child {
    margin-bottom: 0;
}

code {
    padding: 0.12em 0.35em;
    border-radius: 4px;
    background: rgba(11, 159, 232, 0.1);
    color: var(--color-blue-dark);
    font-size: 0.9em;
}

::selection {
    background: var(--color-blue);
    color: var(--color-white);
}

:focus-visible {
    outline: 3px solid var(--color-blue-light);
    outline-offset: 4px;
}

.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    position: relative;
    padding-block: var(--section-space);
}

.section--compact {
    padding-block: clamp(56px, 6vw, 90px);
}

.section--dark {
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 15%, rgba(11, 159, 232, 0.14), transparent 30%),
        linear-gradient(135deg, #05080c 0%, #0a1119 100%);
    color: rgba(255, 255, 255, 0.72);
}

.section--dark h2,
.section--dark h3,
.section--dark .lead {
    color: var(--color-white);
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    padding: 11px 16px;
    transform: translateY(-150%);
    background: var(--color-blue);
    color: var(--color-white);
    font-weight: 700;
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    color: var(--color-blue);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 38px;
    height: 2px;
    background: currentColor;
    content: "";
}

.lead {
    color: #263340;
    font-size: clamp(1.08rem, 1.35vw, 1.3rem);
    line-height: 1.75;
}

.muted {
    color: rgba(255, 255, 255, 0.55);
}

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 27px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-3px);
}

.button--primary {
    background: linear-gradient(135deg, var(--color-blue), #0876bb);
    box-shadow: 0 12px 30px rgba(4, 130, 201, 0.25);
    color: var(--color-white);
}

.button--primary:hover {
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-blue));
    box-shadow: 0 16px 36px rgba(4, 130, 201, 0.35);
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    backdrop-filter: blur(8px);
}

.button--ghost:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 15px;
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-link span {
    color: var(--color-blue-light);
    font-size: 1.4rem;
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(7px);
}

/* Header ================================================================== */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-ink);
    color: var(--color-white);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
    border-bottom-color: rgba(11, 159, 232, 0.28);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

.topbar {
    overflow: hidden;
    max-height: 38px;
    min-height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #020407;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: max-height var(--transition), min-height var(--transition), opacity 180ms ease, border-color var(--transition);
}

.topbar__inner,
.topbar__nav,
.topbar__contact,
.mainnav__inner,
.mainnav__nav {
    display: flex;
    align-items: center;
}

.topbar__inner {
    min-height: 38px;
    justify-content: space-between;
    transition: min-height var(--transition);
}

.topbar__nav,
.topbar__contact {
    gap: 25px;
}

.topbar a {
    transition: color var(--transition);
}

.topbar a:hover,
.topbar a.is-active {
    color: var(--color-blue-light);
}

.topbar__contact span {
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, 0.2);
}

.mainnav {
    min-height: 150px;
    background: rgba(5, 8, 12, 0.96);
    transition: min-height var(--transition), background var(--transition);
}

.mainnav__inner {
    min-height: 150px;
    justify-content: space-between;
    gap: 32px;
    transition: min-height var(--transition);
}

.brand {
    display: flex;
    width: clamp(198px, 19vw, 285px);
    flex: 0 0 auto;
    align-items: center;
	padding: 25px 0px;
    transition: width var(--transition), padding var(--transition);
}

.brand img {
    width: 100%;
    height: auto;
}

.mainnav__nav {
    align-self: stretch;
    gap: clamp(16px, 1.75vw, 31px);
    justify-content: flex-end;
}

.mainnav__nav > a:not(.mainnav__cta) > span {
	position: relative;
	display: inline-block;
	padding-bottom: 7px;
}

.mainnav__nav > a:not(.mainnav__cta) > span::after {
	position: absolute;
	right: 50%;
	bottom: 0;
	left: 50%;
	height: 2px;
	background: var(--color-blue);
	content: "";
	transition:
		right var(--transition),
		left var(--transition);
}

.mainnav__nav > a:not(.mainnav__cta):hover > span::after,
.mainnav__nav > a.is-active > span::after {
	right: 0;
	left: 0;
}

.mainnav__nav > a:not(.mainnav__cta) {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.8rem, 0.75vw, 1.6rem);
    font-weight: 650;
    letter-spacing: 0.065em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
    transition: color var(--transition);
}

.mainnav__nav > a:not(.mainnav__cta):hover,
.mainnav__nav > a.is-active {
    color: var(--color-white);
}

.mainnav__cta {
    display: none;
}

.mobile-meta,
.menu-toggle {
    display: none;
}

/* Homepage Hero ========================================================== */

.hero {
    position: relative;
    display: flex;
    min-height: min(860px, calc(100svh - 128px));
    overflow: hidden;
    align-items: center;
    background: var(--color-ink);
    color: var(--color-white);
    isolation: isolate;
}

.hero__image,
.hero__overlay,
.hero__blue-line {
    position: absolute;
    inset: 0;
}

.hero__image {
    z-index: -3;
    transform: scale(1.04);
    background-image: url('../bilder/hero-rf-automotive.webp');
    background-position: center;
    background-size: cover;
    will-change: transform;
}

.hero__overlay {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(2, 5, 9, 0.98) 0%, rgba(2, 5, 9, 0.9) 33%, rgba(2, 5, 9, 0.35) 64%, rgba(2, 5, 9, 0.08) 100%),
        linear-gradient(0deg, rgba(2, 5, 9, 0.88) 0%, transparent 35%);
}

.hero__blue-line {
    z-index: -1;
    top: auto;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-blue-light), transparent);
    box-shadow: 0 0 30px var(--color-blue);
}

.hero__content {
    padding-block: 90px 110px;
}

.hero__content > * {
    max-width: 800px;
}

.hero__eyebrow {
    color: var(--color-blue-light);
}

.hero h1 {
    max-width: 930px;
    margin-bottom: 30px;
    font-size: clamp(3.8rem, 6.5vw, 7rem);
    font-weight: 650;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.62);
}

.hero__lead {
    max-width: 670px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.03rem, 1.4vw, 1.25rem);
    line-height: 1.75;
}

.hero__actions,
.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__facts {
    display: flex;
    max-width: 700px;
    gap: 0;
    margin-top: 68px;
}

.hero__facts > div {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 13px;
    padding-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    margin-right: 30px;
}

.hero__facts > div:last-child {
    padding-right: 0;
    border: 0;
    margin-right: 0;
}

.hero__facts strong {
    color: var(--color-blue-light);
    font-size: 1.4rem;
    font-weight: 500;
}

.hero__facts span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.scroll-hint {
    position: absolute;
    right: 38px;
    bottom: 55px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: rotate(90deg);
    transform-origin: right bottom;
}

.scroll-hint span {
    width: 42px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
}

.scroll-hint span::after {
    display: block;
    width: 100%;
    height: 1px;
    animation: scroll-line 2.2s ease-in-out infinite;
    background: var(--color-blue-light);
    content: "";
}

@keyframes scroll-line {
    0% { transform: translateX(-100%); }
    55%, 100% { transform: translateX(100%); }
}

/* Section titles ========================================================= */

.section-heading {
    max-width: 760px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading--center {
    margin-inline: auto;
    margin-bottom: 58px;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-heading--split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
    align-items: end;
    gap: 70px;
    margin-bottom: 60px;
}

.section-heading--split p:last-child {
    color: var(--color-muted);
}

/* Services =============================================================== */

.services {
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(6, 114, 173, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(6, 114, 173, 0.035) 1px, transparent 1px),
        var(--color-surface);
    background-size: 48px 48px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    background: var(--color-ink);
    box-shadow: 0 16px 45px rgba(6, 18, 28, 0.12);
}

.service-card > a,
.service-card img,
.service-card__veil {
    position: absolute;
    inset: 0;
}

.service-card > a {
    display: block;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
}

.service-card__veil {
    background: linear-gradient(0deg, rgba(2, 6, 10, 0.97) 0%, rgba(3, 8, 14, 0.55) 52%, rgba(3, 8, 14, 0.05) 100%);
    transition: background var(--transition);
}

.service-card__number {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    place-items: center;
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
}

.service-card__content {
    position: absolute;
    right: 30px;
    bottom: 29px;
    left: 30px;
    display: flex;
    flex-direction: column;
    color: var(--color-white);
}

.service-card__title {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: clamp(1.2rem, 1.65vw, 1.55rem);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.service-card__title::before {
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 15px;
    background: var(--color-blue);
    content: "";
}

.service-card__text {
    max-height: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.87rem;
    opacity: 0;
    transition: max-height 650ms ease, margin var(--transition), opacity var(--transition);
}

.service-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    color: var(--color-blue-light);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.service-card__link i {
    font-size: 1.3rem;
    font-style: normal;
    transition: transform var(--transition);
}

.service-card:hover img {
    transform: scale(1.075);
    filter: saturate(1.08);
}

.service-card:hover .service-card__veil {
    background: linear-gradient(0deg, rgba(2, 6, 10, 0.99) 0%, rgba(3, 8, 14, 0.62) 68%, rgba(3, 8, 14, 0.14) 100%);
}

.service-card:hover .service-card__text {
    max-height: 100px;
    margin-top: 15px;
    opacity: 1;
}

.service-card:hover .service-card__link i {
    transform: translate(4px, -4px);
}

/* Promise / editorial ==================================================== */

.promise__grid,
.editorial__grid,
.service-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    align-items: center;
    gap: clamp(60px, 7vw, 120px);
}

.promise__media,
.editorial__image,
.service-detail__media {
    position: relative;
    margin: 0;
}

.promise__media::before {
    position: absolute;
    z-index: 1;
    top: -18px;
    left: -18px;
    width: 120px;
    height: 120px;
    border-top: 2px solid var(--color-blue);
    border-left: 2px solid var(--color-blue);
    content: "";
}

.promise__media img,
.editorial__image img,
.service-detail__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.promise__media-line {
    position: absolute;
    right: -36px;
    bottom: 26px;
    width: 150px;
    height: 3px;
    background: var(--color-blue);
    box-shadow: 0 0 22px rgba(11, 159, 232, 0.7);
}

.promise__content h2,
.editorial__copy h2,
.service-detail__copy h2 {
    margin-bottom: 28px;
    font-size: clamp(2.2rem, 3.45vw, 4rem);
}

.promise__content p,
.editorial__copy p,
.service-detail__copy p {
    max-width: 690px;
}

.editorial__grid--reverse .editorial__image {
    grid-column: 2;
}

.editorial__grid--reverse .editorial__copy {
    grid-row: 1;
    grid-column: 1;
}

.editorial__copy .button {
    margin-top: 18px;
}

/* Values ================================================================= */

.values {
    background: var(--color-white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #dbe2e8;
    border-bottom: 1px solid #dbe2e8;
}

.value-card {
    min-height: 265px;
    padding: 38px 28px;
    border-right: 1px solid #dbe2e8;
    text-align: center;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.value-card:last-child {
    border-right: 0;
}

.value-card:hover {
    z-index: 1;
    background: var(--color-ink-soft);
    box-shadow: 0 20px 50px rgba(5, 12, 19, 0.18);
    color: rgba(255, 255, 255, 0.65);
    transform: translateY(-8px);
}

.value-card:hover h3 {
    color: var(--color-white);
}

.value-card__icon {
    display: block;
    margin-bottom: 21px;
    color: var(--color-blue);
    font-family: Arial, sans-serif;
    font-size: 3.1rem;
    font-weight: 300;
    line-height: 1;
}

.value-card h3 {
    margin-bottom: 12px;
    font-size: 1.12rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.value-card p {
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* Process ================================================================ */

.process {
    overflow: hidden;
    background: var(--color-surface);
}

.process__grid,
.service-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.process-card,
.step-card {
    position: relative;
    overflow: hidden;
    padding: 45px 38px;
    border: 1px solid #dae2e8;
    background: var(--color-white);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.process-card::after,
.step-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue-dark), var(--color-blue-light));
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.process-card:hover,
.step-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.process-card:hover::after,
.step-card:hover::after {
    transform: scaleX(1);
}

.process-card > span,
.step-card__number {
    display: block;
    margin-bottom: 45px;
    color: var(--color-blue);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.process-card h3,
.step-card h3 {
    margin-bottom: 16px;
}

.process-card p,
.step-card p {
    color: var(--color-muted);
    font-size: 0.93rem;
}

/* CTA ==================================================================== */

.cta-panel {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 300px;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: clamp(45px, 6vw, 85px);
    background:
        radial-gradient(circle at 92% 15%, rgba(36, 186, 255, 0.32), transparent 32%),
        linear-gradient(120deg, #07111b 0%, #0a2030 100%);
    box-shadow: var(--shadow);
    color: rgba(255, 255, 255, 0.7);
}

.cta-panel::before {
    position: absolute;
    top: -110px;
    right: 15%;
    width: 260px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    content: "";
    transform: rotate(31deg);
}

.cta-panel > * {
    position: relative;
    z-index: 1;
}

.cta-panel h2 {
    max-width: 850px;
    margin-bottom: 18px;
    color: var(--color-white);
    font-size: clamp(2rem, 3.25vw, 3.7rem);
}

.cta-panel p {
    max-width: 700px;
}

.cta-panel > .button {
    flex: 0 0 auto;
}

/* Subpage hero =========================================================== */

.page-hero {
    position: relative;
    display: flex;
    min-height: 610px;
    overflow: hidden;
    align-items: end;
    background: var(--color-ink);
    color: var(--color-white);
    isolation: isolate;
}

.page-hero--compact,
.page-hero--contact {
    min-height: 520px;
}

.page-hero__image,
.page-hero__shade {
    position: absolute;
    inset: 0;
}

.page-hero__image {
    z-index: -2;
    transform: scale(1.04);
    background-position: center;
    background-size: cover;
    will-change: transform;
}

.page-hero--karosserie-lackierung .page-hero__image { background-image: url('../bilder/karosserie-lackierung.webp'); }
.page-hero--unfallinstandsetzung .page-hero__image { background-image: url('../bilder/unfallinstandsetzung.webp'); }
.page-hero--pflegemassnahmen .page-hero__image { background-image: url('../bilder/pflegemassnahmen.webp'); }
.page-hero--glasservice .page-hero__image { background-image: url('../bilder/glasservice.webp'); }
.page-hero--oldtimer-service .page-hero__image { background-image: url('../bilder/oldtimer-service.webp'); }
.page-hero--gutachten-bewertung .page-hero__image { background-image: url('../bilder/gutachten-bewertung.webp'); }
.page-hero--company .page-hero__image { background-image: url('../bilder/oldtimer-service.webp'); }
.page-hero--competence .page-hero__image { background-image: url('../bilder/unfallinstandsetzung.webp'); }
.page-hero--contact .page-hero__image { background-image: url('../bilder/hero-rf-automotive.webp'); }

.page-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 7, 12, 0.98) 0%, rgba(3, 7, 12, 0.83) 42%, rgba(3, 7, 12, 0.16) 83%),
        linear-gradient(0deg, rgba(3, 7, 12, 0.92), transparent 66%);
}

.page-hero__content {
    padding-block: 90px;
}

.page-hero__content h1 {
    max-width: 940px;
    margin-bottom: 24px;
}

.page-hero__content > p:not(.eyebrow) {
    max-width: 720px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

/* Service subpages ======================================================= */

.service-intro__grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(55px, 8vw, 130px);
}

.service-intro__text {
    padding-top: 10px;
}

.service-intro__text p:not(.lead) {
    color: var(--color-muted);
}

.service-detail__frame {
    position: absolute;
    z-index: -1;
    top: 24px;
    right: -24px;
    bottom: -24px;
    left: 24px;
    border: 1px solid rgba(11, 159, 232, 0.5);
}

.check-list {
    display: grid;
    gap: 11px;
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 600;
}

.check-list li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    display: grid;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(11, 159, 232, 0.55);
    place-items: center;
    color: var(--color-blue-light);
    content: "✓";
    font-size: 0.72rem;
}

/* Competence ============================================================= */

.competence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.competence-card {
    min-height: 330px;
    padding: clamp(42px, 5vw, 72px);
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    transition: background var(--transition);
}

.competence-card:hover {
    background: rgba(11, 159, 232, 0.08);
}

.competence-card > span {
    display: block;
    margin-bottom: 45px;
    color: var(--color-blue-light);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.competence-card h2 {
    margin-bottom: 18px;
    font-size: clamp(1.7rem, 2.5vw, 2.75rem);
}

.competence-card p {
    color: rgba(255, 255, 255, 0.58);
}

/* Contact ================================================================ */

.contact {
    background: var(--color-surface);
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(45px, 7vw, 110px);
}

.contact__info {
    position: sticky;
    top: 30px;
    padding: 48px;
    background: linear-gradient(145deg, #060b11, #0d1b27);
    box-shadow: var(--shadow);
    color: rgba(255, 255, 255, 0.66);
}

.contact__info h2 {
    margin-bottom: 20px;
    color: var(--color-white);
    font-size: clamp(2.1rem, 3.2vw, 3.4rem);
}

.contact__info > p:not(.eyebrow) {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-line);
}

.contact__info code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-blue-light);
}

.contact-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--color-line);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-item > span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-blue-light);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-item a,
.contact-item p {
    margin: 0;
    color: var(--color-white);
    font-size: 1rem;
}

.contact-form-wrap {
    padding: clamp(38px, 5vw, 70px);
    background: var(--color-white);
    box-shadow: 0 18px 65px rgba(7, 24, 37, 0.1);
}

.contact-form-wrap .section-heading {
    margin-bottom: 38px;
}

.contact-form-wrap .section-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 3.5vw, 3.6rem);
}

.contact-form-wrap .section-heading > p:last-child {
    color: var(--color-muted);
}

.contact-form,
.form-field {
    display: grid;
    gap: 10px;
}

.contact-form {
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #ccd5dc;
    border-radius: 0;
    background: #fbfcfd;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input,
.form-field select {
    min-height: 54px;
    padding: 0 16px;
}

.form-field textarea {
    min-height: 170px;
    padding: 15px 16px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-blue);
    outline: 0;
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(11, 159, 232, 0.1);
}

.form-field .is-invalid,
.checkbox-field input.is-invalid + span {
    border-color: #c62828;
    color: #b71c1c;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 0.83rem;
    line-height: 1.6;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-blue);
}

.checkbox-field a {
    color: var(--color-blue-dark);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.form-status {
    margin: 0;
    font-size: 0.87rem;
    font-weight: 600;
}

.form-status.is-success {
    color: #16723a;
}

.form-status.is-error {
    color: #b71c1c;
}

.form-trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* Legal ================================================================== */

.legal-hero {
    padding-block: 120px 85px;
    background:
        radial-gradient(circle at 80% 20%, rgba(11, 159, 232, 0.16), transparent 30%),
        var(--color-ink);
    color: var(--color-white);
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 5vw, 5.5rem);
}

.legal-content h2 {
    margin: 48px 0 12px;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.legal-content p {
    color: #4e5c69;
}

.notice-box {
    padding: 24px 28px;
    border-left: 4px solid var(--color-blue);
    margin-bottom: 55px;
    background: #eaf6fc;
    color: #254456;
}

/* Footer ================================================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    background: #030609;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer__accent {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-blue-light), transparent);
    box-shadow: 0 0 28px rgba(11, 159, 232, 0.7);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: clamp(50px, 8vw, 130px);
    padding-block: 85px 70px;
}

.site-footer__brand img {
    width: 245px;
    height: auto;
    margin-bottom: 22px;
}

.site-footer__brand > p:not(.muted) {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-footer__brand .muted {
    max-width: 430px;
    font-size: 0.88rem;
}

.site-footer h2 {
    margin-bottom: 22px;
    color: var(--color-white);
    font-size: 0.79rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a,
.site-footer address a,
.footer-menu a {
    transition: color var(--transition);
}

.footer-links a:hover,
.site-footer address a:hover,
.footer-menu a:hover {
    color: var(--color-blue-light);
}

.footer-links a {
    font-size: 0.85rem;
}

.site-footer address {
    font-size: 0.85rem;
    font-style: normal;
    line-height: 1.75;
}

.site-footer__bottom {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.72rem;
}

.site-footer__bottom p {
    margin: 0;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.back-to-top {
    position: fixed;
    z-index: 900;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    place-items: center;
    background: rgba(5, 11, 17, 0.86);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: var(--color-white);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    backdrop-filter: blur(8px);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-blue);
}

/* Scroll animations ====================================================== */

.js .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal[data-reveal-delay="1"] { transition-delay: 100ms; }
.js .reveal[data-reveal-delay="2"] { transition-delay: 200ms; }
.js .reveal[data-reveal-delay="3"] { transition-delay: 300ms; }
.js .reveal[data-reveal-delay="4"] { transition-delay: 400ms; }

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}
