@font-face {
    font-family: 'Inter';
    src: url('../fonts/Manrope/Manrope-Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #122b46;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.loader {
  width: 150px;
  height: auto;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

/* Стилізація для WebKit-браузерів (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #122b46;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #f37c1a;
    border-radius: 5px;
    border: 2px solid #122b46;
}

::-webkit-scrollbar-thumb:hover {
    background: #f37c1a;
}

/* Для Firefox */
* {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #f37c1a #122b46;
    box-sizing: border-box;
}

body {
    user-select: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #f8eed0;
    background-color: #122b46;
    margin: 0;
    padding: 0;
}

.header_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    gap: 3rem;
    flex-wrap: nowrap;
    animation: fadeIn 1.2s ease-in-out both;
}

.header_container>div:first-child {
    flex: 1;
    animation: slideInLeft 1s ease-out both;
}

.header_container h1 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
}

.header_container h1 span {
    color: #f37c1a;
}

.subtitle {
    margin: 1rem 0 2rem;
    font-size: 1.25rem;
    color: #f8eed0cc;
}

.header_container>div:last-child {
    flex: 1;
    text-align: center;
    animation: slideInRight 1s ease-out both;
}

.header_container img {
    max-width: 100%;
    height: auto;
}

.header_container .img_container {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

@media (max-width: 1021px) {
    .header_container img {
        max-width: 80%;
    }
}

@media (max-width: 935px) {
    .header_container img {
        max-width: 100%;
    }
}

@media (max-width: 838px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .header_container>div {
        width: 100%;
    }

    .header_container h1 {
        font-size: 2.2rem;
    }

    .header_container img {
        display: none;
    }

    .header_container .img_container {
        display: none;
    }
}


/* Анімації */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

nav button,
form button {
    padding: 0.75rem 2rem;
    margin-top: 10px;
    background: #f37c1a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #f8eed0;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav button:hover,
form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(243, 124, 26, 0.3);
}

.subtitle {
    font-size: 1.2em;
    margin-bottom: 25px;
    font-weight: 300;
}

section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8eed0;
}

section p {
    font-size: 1.1em;
    line-height: 1.6;
}

section ul {
    list-style: none;
    padding-left: 0;
}

section ul li {
    background: #ffffff;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-left: 5px solid #1d3854;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

section ul li:hover {
    background: #f0f8ff;
}

.services,
.team,
.benefits {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.bigCard {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-wrap: wrap;
    background: #1d3854;
}

.leftImg {
    flex-direction: row;
}

.rightImg {
    flex-direction: row-reverse;
}

.bigCard img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cardText {
    flex: 1;
    font-size: 1.2rem;
}

.cardText h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: #1d3854;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

.card:hover, .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 1.2rem;
}

.star {
    color: gold;
    transition: transform 0.2s ease, color 0.3s ease;
}

.star:hover {
    color: #ff0;
}

.card-info {
    flex-direction: column;
    display: flex;
}

.review-name {
    align-self: flex-end;
    margin-top: 10px;
    font-weight: bold;
}

.review-card {
    display: flex;
    gap: 24px;
    background-color: #1d3854;
    border-radius: 16px;
    padding: 20px;
    max-width: 700px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}


.review-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    text-align: start;
}

.card a,
.asimple {
    margin-top: auto;
    align-self: start;
    padding: 0.5rem 1rem;
    background: #f37c1a;
    color: #f8eed0;
    text-decoration: none;
    border-radius: 10px;
    transition: .2s;
    text-transform: uppercase;
    font-size: 12px;
}

.card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {

    .card a,
    .asimple {
        margin: auto;
    }
}

.card a:hover,
.asimple:hover {
    background: #da7627;
}

.review-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.call-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: visible;
}

.call-button img {
    width: 38px;
    height: 38px;
    z-index: 2;
}

.wave {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    animation: ripple 2s infinite;
    z-index: 1;
}

.wave2 {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .call-button {
        width: 50px;
        height: 50px;
    }

    .call-button img {
        width: 34px;
        height: 34px;
    }

    .wave,
    .wave2 {
        width: 50px;
        height: 50px;
    }
}

.contact-form {
    background: #1d3854;
    padding: 20px;
    border-radius: 10px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0px;
    border-radius: 5px;
    border: 1px solid #f8eed0;
    background-color: #1d3854;
    color: white;
}

footer {
    background: #1d3854;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.phoneNumberLink {
    color: #f37c1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
