:root {
    --grey: #a8aab1;
    --dark: #313543;
    --red: #ef3e2c;
    --white: #faf9f6;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background: var(--dark);
}

/* Base tags */
h1 {
    font-size: 1.7rem;
}

h2 {
    font-weight: 100;
    margin: 30px 0 20px;
}

h1, h2, h3, h4 {
    color: var(--red);
}

p {
    line-height: 1.6;
    margin: 10px 0;
    color: var(--white);
}

a {
    color: var(--red);
    text-decoration: none;
}
p a, li a {
    color: var(--white);
    text-decoration: underline;
}

img {
    max-width: calc(100% - 6px);
    border-radius: 12px;
    border: solid 3px var(--red);
    margin: 10px 0;
    will-change: transform, opacity;
    transform: translateZ(0);
}

ul li:not(:last-child) {
    margin-bottom: 7px;
}

.wideTable {
    overflow-x: auto;
}

th {
    text-align: left;
}
tr:not(:last-child) {
    border-bottom: solid 2px var(--white);
}

th, td {
    padding: .7rem .3rem;
    max-width: 65vw;
}

table {
    border-collapse: collapse;
    width: 100%;
}

main {
    padding-top: 2rem;
}
/* EOF Base tags */

main .title h1 {
    font-weight: 400;
}

nav a {
    text-decoration: none;
}

/* Call Me */
.callMe {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 2rem);
    margin: 0 auto;
    min-height: 75px;
    padding: 2rem 1rem 0;
    max-width: 340px;
}

.callMeSvg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
}

.callMeSvg svg {
    width: 128px;
    height: 128px;
    opacity: 0;
    position: absolute;
    inset: 0;
}

.callMeSvg svg.gear {
    opacity: 0;
    z-index: 2;
}

.callMeSvg svg.phoneHand {
    opacity: 0;
    z-index: 1;
}

.callMeText {
    transform: translateX(100vw);
    opacity: 0;
}

.callMeText a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none;
}

.callMe.animated .callMeSvg svg.phoneHand {
    opacity: 1;
}

.callMe.animated .callMeText {
    transform: translateX(0);
    opacity: 1;
}
/* EOF Call Me */

/* Call Me Text Section */
.callMeTextSection {
    opacity: 0;
}

.callMeTextSection.animated {
    opacity: 1;
}

.char-split-callme {
    display: inline-block;
}

/* Для анимации слов */
.word {
    display: inline-block;
}
/* EOF Call Me Text Section */

/* Call Me Icons */
section.callMeIcons {
    margin: 0;
}

.callMeIcons svg path {
    fill: transparent;
    stroke: var(--red);
    stroke-width: 45px;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.contactVars svg {
    width: 45px;
    height: 45px;
}

.callMeIcons svg.drawn path {
    fill: var(--red);
    stroke: var(--red);
    stroke-width: 0;
    transition: all 0.5s ease;
}
/* EOF Call Me Icons */

/* Write Me */
.writeMeText {
    opacity: 0;
    text-align: center;
}

.writeMeText.animated {
    opacity: 1;
}

.char-split-writeMe {
    display: inline-block;
}

.sectionContentBtn {
    width: 9.8rem;
    margin: 2rem auto 0;
}

.writeMeBtn {
    opacity: 0;
}

.sectionContentBtn a {
    color: var(--white);
    display: block;
    text-decoration: none;
    text-align: center;
    font-weight: 400;
    position: relative;
    z-index: 110;
    -webkit-text-size-adjust: 100%;
    padding: .8rem;
    width: 8.5rem;
    border: solid 3px var(--red);
    border-right: none;
    background: linear-gradient(29deg, transparent, transparent, rgba(255, 255, 255, .16), transparent, transparent);
}

.sectionContentBtn a::before {
    content: '';
    position: absolute;
    display: block;
    right: -3px;
    top: 0;
    width: 3px;
    border-left: solid 3px var(--red);
    height: .5rem;
}

.sectionContentBtn a::after {
    content: '';
    position: absolute;
    display: block;
    right: -3px;
    bottom: 0;
    width: 3px;
    border-left: solid 3px var(--red);
    height: .5rem;
}

.sectionContentBtn a span {
    width: 11.8rem;
    display: block;
    -webkit-box-reflect: below 1.5rem linear-gradient(#0004, #0001);
}
/* EOF Write Me */

/* Map Section */
.map {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.map.sticky {
    position: sticky;
    top: 0;
    z-index: 10;
}

.mapTitle {
    z-index: 20;
}
.mapTitle h2 {
    margin: 0;
    opacity: 0;
}

.mapContent {
    position: relative;
    width: 100vw;
    height: 70vh;
    max-width: 900px;
    overflow: hidden;
}

.scrollDownIcon {
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
}

svg.scrollDownSvg {
    animation: translate 2s infinite;
}

@keyframes translate {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

svg.scrollDownSvg g {
    fill: var(--red);
    filter: drop-shadow(0px 0px 6px #fff);
}

.mapImages {
    position: relative;
    width: 100%;
    height: 100%;
}

.mapBackground,
.garageOverlay {
    position: absolute;
    top: 0;
    left: 1%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 32px;
    margin: 0;
    will-change: transform;
    transform: translateZ(0);
}

.mapBackground {
    z-index: 1;
}

.garageOverlay {
    z-index: 2;
    /* Координаты позиционирования гаража на карте */
    --garage-x: 48%; /* Позиция на карте */
    --garage-y: 45%;
    --garage-size: 25%; /* Размер относительно карты */
    transform-origin: var(--garage-x) var(--garage-y);
}

.mapInfoContent p {
    opacity: 0;
}

.deliveryLink {
    margin-top: 5rem;
}
.deliveryLink a {
    width: 7.5rem;
}
.deliveryLink a span {
    width: 10.8rem;
}

@media (width > 480px) {
    .callMeTextSection p {
        text-align: center;
    }
    .contactVars {
        justify-content: space-evenly;
    }
}
