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

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

input, textarea {
  caret-color: var(--font-color-1);
}

*:focus-visible, .btn:focus-visible {
	transition: 0s !important;
	outline: 3px dashed #ff0000;
	z-index: 10;
	border-radius: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

.fill-space {
  flex: 1 1 auto;
}

.custom-file-input ~ .custom-file-label::after {
  content: "Wybierz";
}

.form-control:focus {
  border-color: var(--color-1_hover);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px var(--color-1_hover);
}

.scroll-target {
  scroll-margin-top: var(--menu-height);
}

.scroll-target-2 {
  scroll-margin-top: calc(var(--menu-height) + 10rem);
}

.link {
	display: inline-block;
    background-repeat: no-repeat;
    transition: all .2s;
	background-position: bottom left;
    background-size: 0% 1.6px;
    background-image: linear-gradient( var(--color-1), var(--color-1) );
    padding-bottom: 0px;
}
.link:hover {
	background-size: 100% 1.6px;
}

.sub-section {
	position: relative;
	padding-left: 2rem;
}
.sub-section::before {
	content: "●";
	position: absolute;
	left: 0;
	color: var(--color-1);
	top: 0.5em;
}

.accent {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	font-weight: 300;
	font-family: var(--font-accent);
	font-size: 1.5rem;
	color: var(--color-1);
	background-color: var(--bg-2);
	border-radius: 999px;
	padding: .8rem 2rem;
	margin-bottom: .8rem;
	text-transform: uppercase;
}

.accent.accent-2 {
	background-color: var(--bg-3);
}

.accent svg {
	height: 1.5rem;
	fill: transparent;
	flex-shrink: 0;
	stroke-linecap: round;
    stroke-linejoin: round;
}

.accent svg path {
	stroke: var(--color-1);
}




/* ==========================================================================
   Floating Phone
   ========================================================================== */

.floating-phone {
    position: fixed;
    z-index: 999;
    right: 3.2rem;
    bottom: calc(3.2rem + env(safe-area-inset-bottom));

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    width: 6.8rem;
    height: 6.8rem;
    padding: .8rem;
    box-sizing: border-box;

    background-color: var(--bg-1-dark);
    color: var(--white-1);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(11,27,61,.25);

    text-decoration: none;
    transition:
        width .4s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.floating-phone:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11,27,61,.35);
}

/* Phone Icon */

.floating-phone .icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 5.2rem;
    height: 5.2rem;

    background-color: var(--color-2);
    border-radius: 50%;
}

.floating-phone .icon svg {
    width: 2.4rem;
    height: 2.4rem;
    fill: none;
}

.floating-phone .icon svg path {
    stroke: var(--bg-1-dark);
}

/* Phone Animation */

.floating-phone .icon::after {
    position: absolute;
    content: "";
    inset: 0;
    border: 2px solid var(--color-2);
    border-radius: 50%;
    pointer-events: none;
    animation: phonePulse 3s ease-out infinite;
}

@keyframes phonePulse {
    0%, 40% {
        transform: scale(1);
        opacity: .7;
    }

    80%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* Phone Content */

.floating-phone .content {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: .2rem;

    width: max-content;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s;
}

.floating-phone .label {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: .75;
}

.floating-phone .number {
    font-size: 1.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Expand on Hover */

@media (min-width: 768px) {

    .floating-phone:is(:hover, :focus-visible) {
        width: 21rem;
    }

    .floating-phone:is(:hover, :focus-visible) .content {
        opacity: 1;
        visibility: visible;
        transition-delay: .15s;
    }

}

/* Responsive */

@media (max-width: 767.98px) {

    .floating-phone {
        right: 2rem;
        bottom: calc(2rem + env(safe-area-inset-bottom));
        padding: .6rem;
    }

    .floating-phone .content {
        display: none;
    }

    .floating-phone .icon {
        width: 5.6rem;
        height: 5.6rem;
    }

}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    .floating-phone,
    .floating-phone .content,
    .floating-phone .icon::after {
        animation: none;
        transition: none;
    }

}







