/*======================================
    MASTERTOP
    style.css
======================================*/

/*====================
      RESET
====================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Montserrat',sans-serif;
    background:#F7F9FC;
    color:#1E293B;
    line-height:1.6;
    overflow-x:hidden;

}

img{

    display:block;
    max-width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

button{

    font-family:inherit;

}

/*====================
    VARIABLES
====================*/

:root{

    --blue:#3F6FA8;
    --orange:#E58A3A;

    --dark:#26364A;

    --light:#F7F9FC;

    --white:#FFFFFF;

    --border:#E8EDF5;

    --shadow:0 12px 30px rgba(63,111,168,.10);

    --radius:18px;

    --transition:.35s;

}

/*====================
    CONTAINER
====================*/

.container{

    width:100%;
    max-width:1200px;

    margin:auto;

    padding:0 18px;

}

/*====================
      HEADER
====================*/

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:#ffffff;

    z-index:1000;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

}

.header .container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    height:72px;

}

.logo{

    font-size:30px;

    font-weight:800;

    letter-spacing:1px;

}

.logo .blue{

    color:var(--blue);

}

.logo .orange{

    color:var(--orange);

}

.header-right{

    display:flex;

    align-items:center;

    gap:20px;

}

.phone{

    color:var(--blue);

    font-weight:700;

    font-size:17px;

}

.phone:hover{

    color:var(--orange);

}

/*====================
     BURGER
====================*/

.burger{

    width:44px;

    height:44px;

    background:none;

    border:none;

    cursor:pointer;

    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:6px;

}

.burger span{

    width:28px;

    height:3px;

    background:var(--dark);

    border-radius:10px;

    transition:.3s;

}

/*====================
   MOBILE MENU
====================*/

.mobile-menu{

    position:fixed;

    top:72px;

    right:-100%;

    width:280px;

    height:calc(100vh - 72px);

    background:#ffffff;

    box-shadow:-10px 0 40px rgba(0,0,0,.08);

    transition:.35s;

    z-index:999;

    padding:35px;

}

.mobile-menu.active{

    right:0;

}

.mobile-menu a{

    display:block;

    padding:15px 0;

    border-bottom:1px solid #eee;

    font-weight:600;

}

/*====================
      HERO
====================*/

.hero{
    position:relative;
    overflow:hidden;
    min-height:680px;
    padding-top:120px;
    padding-bottom:70px;
    background:
        linear-gradient(
            90deg,
        rgba(247,249,252,.94) 0%,
        rgba(247,249,252,.82) 30%,
        rgba(247,249,252,.48) 50%,
        rgba(247,249,252,.08) 72%,
        rgba(247,249,252,0) 100%
        ),
        image-set(url("../img/hero/mastertop-hero.webp") type("image/webp"), url("../img/hero/mastertop-hero.png") type("image/png"));
    background-size:cover;
    background-position:center center;
    background-attachment:scroll;
    background-repeat:no-repeat;
}

.hero-wrapper{
    display:flex;
    align-items:center;
    min-height:490px;
}

.hero-text{
    position:relative;
    z-index:2;
    width:100%;
    max-width:620px;
}

.hero h1{

    font-size:52px;

    line-height:1.15;

    font-weight:800;

    margin-bottom:25px;

}

.hero p{

    font-size:22px;

    color:#64748B;

    margin-bottom:35px;

}

.hero-info{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

    margin-bottom:40px;

}

.hero-info div{

    background:#fff;

    padding:18px;

    border-radius:16px;

    box-shadow:var(--shadow);

    display:flex;

    align-items:center;

    gap:12px;

    font-weight:600;

}

.hero-buttons{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

/*====================
      BUTTONS
====================*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:56px;

    padding:0 30px;

    border-radius:14px;

    font-size:17px;

    font-weight:700;

    transition:var(--transition);

    cursor:pointer;

}

.btn-orange{

    background:var(--orange);

    color:#fff;

    box-shadow:0 10px 25px rgba(229,138,58,.22);

}

.btn-orange:hover{

    transform:translateY(-3px);

    background:#D9782E;

}

.btn-blue{

    background:var(--blue);

    color:#fff;

    box-shadow:0 10px 25px rgba(63,111,168,.22);

}

.btn-blue:hover{

    transform:translateY(-3px);

    background:#345F91;

}

/*====================
      SERVICES
====================*/

/* ======================================
   КАРТОЧКИ УСЛУГ
====================================== */

.services{
    padding:82px 0 92px;
}

.services h2{
    text-align:center;
    margin-bottom:46px;
    color:var(--dark);
    font-size:40px;
    line-height:1.2;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
    align-items:stretch;
}

.service-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;

    background:#fff;
    border:1px solid rgba(63,111,168,.10);
    border-radius:22px;

    box-shadow:
        0 10px 28px rgba(38,54,74,.07);

    transition:
        transform .32s ease,
        box-shadow .32s ease,
        border-color .32s ease;
}

.service-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:3;

    height:4px;
    background:linear-gradient(
        90deg,
        var(--blue),
        #4CA3CF
    );

    transform:scaleX(0);
    transform-origin:left;
    transition:transform .32s ease;
}

.service-card:hover{
    transform:translateY(-7px);
    border-color:rgba(63,111,168,.22);

    box-shadow:
        0 20px 44px rgba(38,54,74,.13);
}

.service-card:hover::before{
    transform:scaleX(1);
}

.service-card > img{
    display:block;
    width:100%;
    height:265px;
    object-fit:cover;
    object-position:center;

    transition:
        transform .45s ease,
        filter .45s ease;
}

.service-card:hover > img{
    transform:scale(1.045);
    filter:saturate(1.04) contrast(1.02);
}

.service-content{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:22px;
}

.service-content h3{
    min-height:54px;
    margin-bottom:12px;

    color:var(--dark);
    font-size:22px;
    font-weight:800;
    line-height:1.3;
}

.price{
    display:inline-flex;
    align-items:baseline;
    align-self:flex-start;

    min-width:auto;
    min-height:auto;

    margin-bottom:20px;
    padding:0;

    color:#4F8A62;
    background:transparent;
    border:none;
    border-radius:0;

    font-size:21px;
    font-weight:600;
    line-height:1.3;
    letter-spacing:-0.2px;
}

.service-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;

    margin-top:auto;
}

.call-btn,
.tg-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    width:100%;
    min-width:0;
    height:54px;

    border-radius:13px;

    color:#fff;
    font-size:15px;
    font-weight:800;

    transition:
        transform .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
}

.call-btn{
    background:var(--orange);
    box-shadow:0 8px 18px rgba(229,138,58,.20);
}

.call-btn:hover{
    background:#D9782E;
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(229,138,58,.26);
}

.tg-btn{
    background:#4CA3CF;
    box-shadow:0 8px 18px rgba(76,163,207,.20);
}

.tg-btn:hover{
    background:#3E92BC;
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(76,163,207,.26);
}

.call-icon,
.tg-icon{
    display:block;
    width:19px !important;
    height:19px !important;
    object-fit:contain !important;
    flex-shrink:0;
    transform:none !important;
}



/* ======================================
   ДОПОЛНЕНИЯ ДЛЯ КАРТОЧЕК УСЛУГ
====================================== */

.service-description{
    margin-bottom:14px;
    color:#64748B;
    font-size:14px;
    line-height:1.55;
}

.service-benefits{
    display:grid;
    gap:8px;
    margin:0 0 18px;
    padding:0;
    list-style:none;
}

.service-benefits li{
    position:relative;
    padding-left:23px;
    color:#44546A;
    font-size:13px;
    font-weight:600;
    line-height:1.4;
}

.service-benefits li::before{
    content:"✓";
    position:absolute;
    top:0;
    left:0;
    display:flex;
    align-items:center;
    justify-content:center;
    width:17px;
    height:17px;
    color:#fff;
    background:var(--blue);
    border-radius:50%;
    font-size:10px;
    font-weight:900;
}


/* ======================================
   ФИНАЛЬНАЯ ОПТИМИЗАЦИЯ КАРТОЧЕК
====================================== */

.service-card{
    height:100%;
}

.service-content{
    min-height:390px;
}

.service-description{
    min-height:66px;
}

.service-benefits{
    min-height:82px;
}

.price{
    min-width:190px;
    justify-content:center;
}

.call-btn{
    box-shadow:
        0 8px 18px rgba(229,138,58,.22);
}

.call-btn:hover{
    box-shadow:
        0 12px 26px rgba(229,138,58,.32);
}

@media (hover:none){
    .service-card:hover{
        transform:none;
    }

    .service-card:hover > img{
        transform:none;
        filter:none;
    }
}


/*======================================
        ADVANTAGES
======================================*/

.advantages{
    position:relative;
    padding:92px 0;
    overflow:hidden;
    background:#FFFFFF;
}

.advantages::before{
    content:"";
    position:absolute;
    top:-180px;
    right:-180px;
    width:420px;
    height:420px;
    border-radius:50%;
    background:rgba(63,111,168,.055);
    pointer-events:none;
}

.advantages-heading{
    position:relative;
    z-index:1;
    max-width:760px;
    margin:0 auto 48px;
    text-align:center;
}

.advantages-kicker{
    display:inline-block;
    margin-bottom:10px;
    color:var(--orange);
    font-size:13px;
    font-weight:800;
    letter-spacing:1.8px;
}

.advantages h2{
    margin-bottom:14px;
    color:var(--dark);
    font-size:40px;
    line-height:1.2;
}

.advantages-heading > p{
    color:#64748B;
    font-size:17px;
    line-height:1.7;
}

.advantages-grid{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.advantage{
    position:relative;
    display:flex;
    align-items:flex-start;
    gap:20px;
    min-width:0;
    padding:28px;
    overflow:hidden;
    background:#F8FAFD;
    border:1px solid rgba(63,111,168,.11);
    border-radius:22px;
    box-shadow:0 10px 28px rgba(38,54,74,.055);
    transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}

.advantage::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:4px;
    height:100%;
    background:linear-gradient(180deg,var(--blue),#4CA3CF);
}

.advantage:hover{
    transform:translateY(-5px);
    border-color:rgba(63,111,168,.22);
    box-shadow:0 18px 38px rgba(38,54,74,.11);
}

.advantage .icon{
    width:62px;
    height:62px;
    min-width:62px;
    flex:0 0 62px;

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

    margin:0;

    background:var(--blue);
    border-radius:18px;
    box-shadow:0 10px 22px rgba(63,111,168,.20);
}

.advantage .icon img,
.advantage .icon svg{
    display:block;

    width:30px !important;
    height:30px !important;

    object-fit:contain;
    flex-shrink:0;
}

.advantage-content{min-width:0;}
.advantage h3{
    margin-bottom:9px;
    color:var(--dark);
    font-size:20px;
    font-weight:800;
    line-height:1.3;
}
.advantage p{
    color:#64748B;
    font-size:15px;
    line-height:1.65;
}
@media (hover:none){.advantage:hover{transform:none;}}

/*======================================
          REVIEWS
======================================*/

.reviews{

    padding:90px 0;

    background:#F7F9FC;

}

.reviews h2{

    text-align:center;

    font-size:40px;

    margin-bottom:50px;

}

.reviews-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

}

.review{

    background:#fff;

    border-radius:20px;

    padding:30px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

}

.review-name{

    font-size:20px;

    font-weight:700;

    margin-bottom:12px;

}

.review-stars{

    color:#ffb400;

    margin-bottom:15px;

    font-size:18px;

}

.review p{

    color:#64748B;

}

/*======================================
        CONTACTS
======================================*/

.contacts{

    padding:90px 0;

    background:#fff;

}

.contacts-wrapper{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

}

.contact-card{

    background:#F7F9FC;

    border-radius:20px;

    padding:35px;

}

.contact-card h3{

    margin-bottom:20px;

    font-size:28px;

}

.contact-item{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:20px;

    font-size:18px;

}

/*======================================
        FOOTER
======================================*/

footer{

    background:#223247;

    color:#fff;

    padding:40px 0;

}

.footer-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    flex-wrap:wrap;

}

.footer-content p{

    opacity:.8;

}

.footer-social{

    display:flex;

    gap:15px;

}

.footer-social a{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.1);

    transition:.3s;

}

.footer-social a:hover{

    background:var(--orange);

}

/*======================================
      SCROLLBAR
======================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:var(--orange);

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#eef2f7;

}

/*======================================
      SELECTION
======================================*/

::selection{

    background:var(--orange);

    color:#fff;

}

/*======================================
        LANGUAGE SWITCH
======================================*/

.lang-switch{

    display:flex;
    align-items:center;
    gap:8px;

    margin-right:15px;

}

.lang-link{

    text-decoration:none;

    font-size:20px;

    line-height:1;

    transition:.25s;

    opacity:.55;

}

.lang-link:hover{

    opacity:1;

    transform:scale(1.15);

}

.lang-link.active{

    opacity:1;

}

.lang-divider{

    color:#C5CBD5;

    font-size:16px;

    font-weight:600;

}

/* ======================================
   ШАПКА ПРИ ПРОКРУТКЕ
====================================== */

.header{
    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        backdrop-filter .25s ease;
}

.header-scrolled{
    background:rgba(255,255,255,.94);
    box-shadow:0 8px 25px rgba(15,23,42,.1);
    backdrop-filter:blur(10px);
}

/* ======================================
   ЛЁГКОЕ ПОЯВЛЕНИЕ БЛОКОВ
====================================== */

.reveal{
    opacity:0;
    transform:translateY(20px);
    transition:
        opacity .5s ease,
        transform .5s ease;
}

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

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

    html{
        scroll-behavior:auto;
    }

    .reveal{
        opacity:1;
        transform:none;
        transition:none;
    }

}

/* Иконки кнопок */

.tg-icon,
.call-icon{

    display:block;

    width:21px;

    height:21px;

    flex-shrink:0;

}

.tg-btn,
.call-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:9px;

}

/* ======================================
   ИКОНКИ САЙТА
====================================== */

.info-icon,
.contact-icon{
    width:26px !important;
    height:26px !important;
    object-fit:contain !important;
    flex-shrink:0;
    transform:none !important;
}

.advantage .icon img{
    width:34px !important;
    height:34px !important;
    object-fit:contain !important;
    transform:none !important;
}

.footer-social img{
    width:22px;
    height:22px;
    object-fit:contain;
}

.hero-info div{
    display:flex;
    align-items:center;
    gap:12px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:14px;
}

/* Номер под Hero скрыт на ПК */

.hero-mobile-phone{
    display:none !important;
}



/* ======================================
   FINAL ACCESSIBILITY & RESPONSIVE POLISH
====================================== */

:focus-visible{
    outline:3px solid rgba(229,138,58,.75);
    outline-offset:3px;
}

.lang-link,
.burger,
.footer-social a{
    -webkit-tap-highlight-color:transparent;
}

.mobile-menu a{
    min-height:48px;
}

@media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
        scroll-behavior:auto !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}
