/* =====================================
   RESET
===================================== */

*,
*::before,
*::after{
    box-sizing:border-box;
}

*{
    margin:0;
    padding:0;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Segoe UI", Arial, sans-serif;
    line-height:1.6;
    color:#222;
    background:#fafafa;
    overflow-x:hidden;
}

img{
    display:block;
    max-width:100%;
    height:auto;
}

a{

    color:inherit;

    text-decoration:none;

    transition:
        color .3s,
        background .3s,
        transform .3s,
        box-shadow .3s;

}

ul{
    list-style:none;
}

button,
input,
textarea,
select{
    font:inherit;
}

.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* ==================================================
   HEADER
================================================== */

.header{

    position:sticky;

    top:0;

    background:#fff;

    border-bottom:1px solid #ececec;

    box-shadow:0 4px 20px rgba(0,0,0,.05);

    z-index:1000;

}

.header-container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 20px;

    gap:32px;

    min-height:88px;

    position:relative;

}

.logo{

    display:flex;

    flex-direction:column;

    text-decoration:none;

    flex-shrink:0;

}

.logo-title{

    font-size:20px;

    font-weight:800;

    color:#222;

}

.logo-subtitle{

    margin-top:4px;

    font-size:13px;

    color:#777;

}

.nav{

    display:flex;

    align-items:center;

    gap:28px;

    margin-left:auto;

}

.nav a{

    font-size:16px;

    font-weight:600;

    color:#333;

    transition:.25s;

}

.nav a:hover {
    color: #c58a00;
}


/* ==========================================
   Выпадающее меню услуг
   ========================================== */

.nav-services {
    position: relative;
}

.services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    min-width: 240px;
    padding: 10px 0;

    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: .2s ease;
}

.nav-services:hover .services-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.services-dropdown a {
    display: block;
    padding: 11px 18px;

    color: #222;
    text-decoration: none;
    white-space: nowrap;
}

.services-dropdown a:hover {
    background: #faf7ef;
    color: #b8860b;
}

.mobile-services {
    width: 100%;
    border-bottom: 1px solid #eee;
}

.mobile-services summary {
    display: flex;
    align-items: center;

    min-height: 62px;
    padding: 0 30px;

    box-sizing: border-box;

    list-style: none;
    cursor: pointer;

    font-size: 17px;
    font-weight: 500;
    color: #333;
}

.mobile-services summary::-webkit-details-marker {
    display: none;
}

.mobile-services summary::after {
    content: "▾";
    margin-left: 8px;
    font-size: 18px;
}

.mobile-services[open] summary::after {
    content: "▴";
}

.mobile-services-list {
    display: flex;
    flex-direction: column;

    padding: 0 0 0 20px;
    gap: 0;
}

.mobile-services-list a {
    display: flex;
    align-items: center;

    min-height: 70px;
    padding: 0 30px;

    box-sizing: border-box;

    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;

    border-bottom: 1px solid #eee;
}

.mobile-services-list a:hover {
    color: #b8860b;
}

.header-right{

    display:flex;

    align-items:center;

    gap:18px;

}

.button-gold{
    background:#b8860b;
    color:#fff;
}

.button-gold:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(184,134,11,.35);
}

.button-white{
    background:#fff;
    color:#222;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.button-white:hover{
    transform:translateY(-3px);
}

.phone{

    font-size:18px;

    font-weight:700;
    
}

/* Burgers */

.burger{

    display:none;

    position:fixed;

    top:20px;

    right:20px;

    width:48px;

    height:48px;

    padding:0;

    border:none;

    border-radius:12px;

    background:#fff;

    box-shadow:0 6px 18px rgba(0,0,0,.15);

    cursor:pointer;

    z-index:3000;

}

.burger span{

    position:absolute;

    left:50%;

    width:26px;

    height:3px;

    background:#222;

    border-radius:50px;

    transform:translateX(-50%);

    transition:.3s;

}

.burger span:nth-child(1){

    top:15px;

}

.burger span:nth-child(2){

    top:23px;

}

.burger span:nth-child(3){

    top:31px;

}

.burger.active span:nth-child(1){

    top:23px;

    transform:translateX(-50%) rotate(45deg);

}

.burger.active span:nth-child(2){

    opacity:0;

}

.burger.active span:nth-child(3){

    top:23px;

    transform:translateX(-50%) rotate(-45deg);

}

/* ==================================================
   MOBILE MENU
================================================== */

body.menu-open{

    overflow:hidden;

}

body.menu-open .burger{

    right:34px;

    top:20px;

    z-index:3001;

}

.mobile-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:1100;

}

.mobile-overlay.show{

    opacity:1;

    visibility:visible;

}

.mobile-menu{

    position: fixed;

    top: 0;

    right: 0;

    width: min(340px,100%);

    height: 100dvh;

    display: flex;

    flex-direction: column;

    background: #fff;

    overflow: hidden;

    transform: translateX(100%);

    transition: transform .35s ease;

    z-index: 2500;

}

.mobile-menu.show{

    transform: translateX(0);

    box-shadow:-12px 0 30px rgba(0,0,0,.18);
}

.mobile-header{

    height:88px;

    display:flex;

    justify-content:flex-end;

    align-items:center;

    padding:0 24px;

    border-bottom:1px solid #ececec;

    flex-shrink:0;

}

.mobile-nav{

    flex:1;

    overflow-y:auto;

    min-height:0;

}

.mobile-nav a{

    display:flex;

    align-items:center;

    min-height:62px;

    padding:0 30px;

    font-size:17px;

    font-weight:600;

    color:#222;

    border-bottom:1px solid #ececec;

    transition:.25s;

}

.mobile-nav a:hover{

    background:#faf7ef;

    color:#b8860b;

    padding-left:38px;

}

.mobile-contacts{

    flex-shrink:0;

    border-top:1px solid #ececec;

    padding:24px;

}

.mobile-contacts h3{

    margin-bottom:18px;

    color:#888;

    font-size:13px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.mobile-phone{

    display:flex;

    justify-content:center;

    align-items:center;

    height:56px;

    border:2px solid #b8860b;

    border-radius:12px;

    font-size:18px;

    font-weight:700;

    margin-bottom:14px;

}

.mobile-phone:hover{

    background:#b8860b;

    color:#fff;

}

.mobile-btn{

    display:flex;

    justify-content:center;

    align-items:center;

    height:52px;

    border-radius:12px;

    margin-bottom:12px;

    color:#fff;

    font-weight:600;

}

.whatsapp{

    background:#25D366;

}

.telegram{

    background:#229ED9;

}

.mobile-link{

    display:block;

    text-align:center;

    color:#666;

    margin-top:10px;

}

/* ==========================
   Sections
========================== */

.hero{
    padding:80px 0;
    background:#f8f8f8;
}

.works{
    padding:30px 0;
}

.about{
    padding:100px 0;
    background:#f8f9fb;
}

.services{
    padding:100px 0;
    background:#f8f8f8;
}

/* ==========================
   Card
========================== */

.works-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;

}

.works h2{

    text-align:center;
    font-size:36px;
    margin-bottom: 20px;

}

.related-works h2{

    text-align:center;

    font-size:36px;

    margin-bottom:45px;

    position:relative;

}

.related-works h2::after{

    content:"";

    display:block;

    width:70px;

    height:4px;

    background:#c79a3b;

    border-radius:10px;

    margin:15px auto 0;

}

.card{
    display:flex;
    flex-direction:column;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    height:100%;
    min-width:0;

    box-shadow:
        0 8px 30px rgba(0,0,0,.08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.card:hover{

    transform:translateY(-6px);

    box-shadow:
        0 18px 45px rgba(0,0,0,.14);

}

.card:hover h3 a{

    color:#b8860b;

}

.card-image{

    position:relative;

    overflow:hidden;

}

.card-image-link{

    display:block;

    cursor:pointer;

}

.card-image img{

    width:100%;

    display:block;

    transition:transform .5s ease;

    aspect-ratio:4 / 3;

    object-fit:cover;

}

.card:hover .card-image img{

    transform:scale(1.05);

}

.photo-count{

    position:absolute;

    bottom:15px;

    left:15px;

    padding:7px 12px;

    background:rgba(0,0,0,.65);

    color:#fff;

    border-radius:20px;

    font-size:14px;

}

.card-info{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin:18px 0;

    font-size:14px;

    color:#666;

}

.card-info span{

    background:#f5f5f5;

    padding:6px 10px;

    border-radius:20px;

}

.card-body{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:24px;
    min-width:0;
}

.card-body h3{

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

    overflow-wrap:anywhere;

    min-height:62px;

    margin-bottom:12px;

    font-size:24px;

    font-weight:700;

    line-height:1.3;

}

.card-body h3 a{

    color:#222;

    text-decoration:none;

    transition:color .3s ease;

     cursor:pointer;

}

.card-body h3 a:hover{

    color:#b8860b;

}

.card-body p{

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

    overflow-wrap:anywhere;

    color:#666;

    line-height:1.7;

    min-height:54px;

}

/* ==========================
   Buttons
========================== */

.button{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:18px 34px;

    border-radius:14px;

    font-size:17px;

    font-weight:600;

    transition:.3s;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
    margin-top: 0;
    padding: 55px 0 35px;

    background: #f8f8f8;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer h3,
.footer h4 {
    margin: 0 0 25px;
    color: #222;
}

.footer h3 {
    font-size: 28px;
}

.footer h4 {
    font-size: 24px;
}

.footer p {
    margin: 0;
    max-width: 100%;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-social a {
    color: #222;
    text-decoration: none;
    font-size: 16px;
}

.footer-social a:hover {
    color: #c79a3b;
}

.footer-phone {
    margin-bottom: 5px;
    font-size: 20px !important;
}