html {
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
}

body {
    background-color: #F4F5F9;
    font-size: 30px;
}

header {
    display: flex;
    background-color: white;
    height: 100px;
    padding: 30px 50px;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 20px;
    font-weight: 600;
}

.logo img {
    height: 200px;
}

a {
    text-decoration: none;
}

nav a {
    color: black;
    margin-left: 3vw;
}

/* #mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(201, 1, 1, 0.1);
    z-index: 9999;
}

#mobile-menu .menu-content {
    background: white;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    width: 40%;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 600;
}

#mobile-menu .menu-content a {
    text-decoration: none;
    color: #222;
}

#mobile-menu .menu-content span#menu-close {
    align-self: flex-end;
    font-size: 36px;
    cursor: pointer;
    color: #C90101;
} */

:root {
    --overlay: rgba(0, 0, 0, .35);
    --panel-bg: #fff;
    --accent: #C90101;
    --link: #222;
    --link-hover: #f6f6f8;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .20);
}

/* Оверлей */
#mobile-menu {
    position: fixed;
    inset: 0;
    display: block;
    background: var(--overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9999;
}

/* Панель */
#mobile-menu .menu-content {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: clamp(280px, 80vw, 420px);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu.open .menu-content {
    transform: translateX(0);
}

/* Кнопка закрытия */
.menu-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

/* Ссылки */
.menu-link {
    display: block;
    text-decoration: none;
    color: var(--link);
    font-weight: 600;
    font-size: 18px;
    padding: 12px 10px;
    border-radius: 10px;
}

.menu-link:hover {
    background: var(--link-hover);
}

.menu-sep {
    border: none;
    height: 1px;
    background: #eee;
    margin: 6px 0 2px;
}

/* Подсветка контактов */
.menu-link.phone {
    color: #1f2937;
}

.menu-link.whatsapp {
    color: #128C7E;
}

/* Блокировка скролла, когда меню открыто */
.no-scroll {
    overflow: hidden;
}

/* Уважение настроек пользователя */
@media (prefers-reduced-motion: reduce) {

    #mobile-menu,
    #mobile-menu .menu-content {
        transition: none;
    }
}

:root {
    --overlay: rgba(0, 0, 0, .35);
    --panel-bg: #fff;
    --accent: #C90101;
    --link: #222;
    --link-hover: #f6f6f8;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .20);
}

#mobile-menu {
    position: fixed;
    inset: 0;
    display: block;
    background: var(--overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9999;
}

/* Панель */
#mobile-menu .menu-content {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: clamp(280px, 80vw, 420px);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu.open .menu-content {
    transform: translateX(0);
}

/* Кнопка закрытия */
.menu-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

/* Ссылки */
.menu-link {
    display: block;
    text-decoration: none;
    color: var(--link);
    font-weight: 600;
    font-size: 18px;
    padding: 12px 10px;
    border-radius: 10px;
}

.menu-link:hover {
    background: var(--link-hover);
}

.menu-sep {
    border: none;
    height: 1px;
    background: #eee;
    margin: 6px 0 2px;
}

/* Подсветка контактов */
.menu-link.phone {
    color: #1f2937;
}

.menu-link.whatsapp {
    color: #128C7E;
}

/* Блокировка скролла, когда меню открыто */
.no-scroll {
    overflow: hidden;
}

/* Уважение настроек пользователя */
@media (prefers-reduced-motion: reduce) {

    #mobile-menu,
    #mobile-menu .menu-content {
        transition: none;
    }
}

.nav-menu {
    height: 35px;
    width: 35px;
    fill: #C90101;
    display: none;
}

.contact-numbers {
    display: flex;
    gap: 20px;
}

.contact-numbers .item {
    display: flex;
}

.contact-number {
    margin-left: 10px;
    font-size: 0.8em;
}

.contact-number span {
    color: #4e5053;
    display: block;
}

.contact-number a {
    text-decoration: none;
    color: #244b77;
}

.contact-number a:hover {
    color: #4581c5;
}

.circle {
    display: flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
}

.contact-numbers .circle {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

section {
    padding: 60px 200px 150px;

}

#home {
    letter-spacing: 2px;
    line-height: 140%;
    font-size: 1em;
}

.home-img {
    text-align: center;
}

#home img {
    width: 90%;
}

#home,
#services {
    background-color: #F0F8FF;
}

#services img {
    width: 400px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#prices {
    text-align: center;
    font-family: sans-serif;
}

#prices .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.price-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.price-card .title {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4em;
}

.price-card .price {
    font-size: 0.9em;
    font-weight: 600;
    color: #dc2743;
    /* акцентный цвет */
}

.price-card .price.free {
    color: #2ecc71;
    /* зелёный для "бесплатно" */
}


#prices button {
    font-size: 0.8em;
    height: 70px;
    width: 260px;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: white;
    transition: transform .2s ease, box-shadow .2s ease;
}

#prices button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

#prices button:active {
    transform: translateY(0);
}

.rembyt-color {
    color: #C90101;
}

.rembyt-background {
    background-color: #C90101;
}


.bold {
    font-weight: 600;
}

#trust,
#reviews {
    background-color: #E3F9F6;
}

#reviews .grid-container {
    margin-top: 100px;
    grid-template-columns: repeat(2, 1fr);
    font-size: 0.7em;
    gap: 50px
}

#trust #items {
    margin-top: 80px;
    display: inline-flex;
    text-align: center;
    font-size: 0.9em;
    width: 100%;
}

#trust .circle {
    width: 80px;
    height: 80px;
    margin: auto;
}

#trust svg {
    fill: rgb(206, 241, 237);
    height: 50px;
    width: 50px;
}

.show {
    display: flex !important;
    flex-direction: column;
    background-color: #444;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 1rem;
    border-radius: 4px;
}

#contacts {
    text-align: center;
}

#contacts .grid-container {
    margin-top: 60px;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.7em;
    margin: auto;
    color: black;
}

#contacts p {
    color: black;
}

#contacts .grid-container svg {

    height: 40px;
    width: 40px;
    fill: #244b77;
}

.fr2fr1 {
    grid-template-columns: 2fr 1fr;
}

.fr1fr2 {
    grid-template-columns: 1fr 2fr;
}

.social-btn {
    position: fixed;
    right: 13px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* важно, чтобы волна выходила наружу */
}

.inst-btn {
    bottom: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}


/* Волны */
.social-btn::before,
.social-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* цвет обводки */
    animation: ripple 2.8s linear infinite;
}

.inst-btn::before,
.inst-btn::after {
    border: 2px solid rgba(220, 39, 67, 0.4);
}

.wa-btn {
    bottom: 150px;
    background: linear-gradient(45deg, #25D366, #128C7E);
}

.wa-btn::before,
.wa-btn::after {
    border: 2px solid rgba(39, 220, 81, 0.4);
}

.social-btn::after {
    animation-delay: 1.4s;
    /* вторая волна для непрерывности */
}

@keyframes ripple {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    70% {
        opacity: 0.4;
    }

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

.social-btn div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    /* чтобы svg был поверх волн */
    z-index: 2;
}

.social-btn svg {
    height: 50px;
    width: 50px;
    margin: auto;
    fill: #fff;
    /* если нужен белый логотип */
}

iframe {
    margin-top: 40px;
    width: 100%;
    height: 500px;
    border: none !important;
    overflow: hidden;
}

.section-title {
    font-size: 1.2em;
}



@media screen and (max-width: 1600px) {
    body {
        font-size: 28px;
    }

    header {
        font-size: 18px;
    }

    section {
        padding: 40px 150px 150px;
    }

    #home {
        font-size: 0.95em;
    }
}

@media screen and (max-width: 1400px) {
    body {
        font-size: 24px;
    }

    header {
        font-size: 16px;
    }

    #services img {
        width: 300px;
    }

    #trust .circle {
        width: 60px;
        height: 60px;
        margin: auto;
    }

    #trust svg {
        height: 40px;
        width: 40px;
    }

    nav {
        display: none;
    }

    .nav-menu {
        display: initial;
    }

    .contact-numbers .circle {
        width: 37px;
        height: 37px;
    }
}

@media screen and (max-width: 1200px) {
    body {
        font-size: 22px;
    }

    #home {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #home img {
        width: 60%;
    }

    #trust #items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }

    #trust #items .item {
        max-width: 200px;
        height: 200px;
        margin: auto;
    }
}

@media screen and (max-width: 1000px) {
    .logo img {
        height: 170px;
    }

    header {
        padding: 40px 10px;
    }

    section {
        padding: 40px 20px 40px;
    }

    body {
        font-size: 20px;
    }

    /* #prices .grid-container {
        gap: 20px;
        grid-template-columns: 1fr;
    } */
    /* 
    #prices .grid-container #item {
        width: 50%;
    } */
}

@media screen and (max-width: 800px) {
    #home img {
        width: 80%;
    }

    #services img {
        width: 100%;
    }

    #trust .circle {
        width: 55px;
        height: 55px;
        margin: auto;
    }

    #trust svg {
        height: 40px;
        width: 40px;
    }

    .social-btn {
        width: 60px;
        height: 60px;
    }

    .social-btn svg {
        height: 40px;
        width: 40px;
    }

    #services .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 650px) {
    .contact-number {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    #home img {
        width: 90%;
    }

    body {
        font-size: 18px;
    }

    #mobile-menu .menu-content {
        width: 70%;
    }

    #reviews .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }


    #contacts .grid-container svg {

        height: 35px;
        width: 35px;
        fill: #244b77;
    }
}

@media screen and (max-width: 500px) {

    #services .grid-container {
        grid-template-columns: 1fr;
    }

    .fr1fr2>div:first-child {
        order: 2;
        /* картинку вниз */
    }

    .fr1fr2>div:last-child {
        order: 1;
        /* текст вверх */
    }

    #services .img {
        text-align: center;
    }

    #services img {
        width: 70%;
    }

    #trust #items {
        grid-template-columns: 1fr;
    }

    #contacts .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 
    #trust .item {
        display: inline-flex;
        align-items: center;
    } */
}