/* AP24 Graphite Silver v5.2: layout, brand & portfolio. Loaded last. */
/* Remove the isolated dark rectangle from interior page headings.
   The heading is part of the dark page, with an understated separator. */
.page-hero.container {
  position:relative;
  background:transparent!important;
  border:0!important;
  border-radius:0;
  box-shadow:none;
  padding-top:clamp(58px,6.8vw,98px);
  padding-bottom:clamp(58px,5vw,78px);
  isolation:isolate;
}
.page-hero.container::after {
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,rgba(206,162,119,.75),rgba(130,150,160,.3) 32%,rgba(130,150,160,0));
  pointer-events:none;
}
.page-hero h1 {line-height:1.12;overflow-wrap:normal;word-break:normal;max-width:100%;}
.page-hero p {max-width:760px;}
/* Navigation: distinct spacing between clickable telephone and booking action. */
.header-actions{display:flex;align-items:center;gap:20px;flex:0 0 auto;}
.header-actions .header-phone{margin:0;white-space:nowrap;}
.header-actions .header-cta{margin:0;}
.header-in{gap:22px;}
.header .logo{flex:0 0 auto;display:inline-flex;align-items:center;min-width:0;}
.header .brand-logo{display:block;max-width:100%;object-fit:contain;}
/* A separate accessible sign, retained on narrow portrait crops where the wall sign disappears. */
.v5-hero-sign{display:none;}
/* 2GIS is a primary destination instead of an email placeholder. */
.contacts-2gis-btn{margin-top:auto;padding:13px 16px;max-width:100%;display:inline-flex;align-items:center;gap:12px;border:1px solid #d4aa7a70;border-radius:7px;background:#d7ab7b16;color:#f2e5d4!important;font-size:13px;font-weight:700;text-decoration:none;transition:background .2s,border-color .2s;}
.contacts-2gis-btn:hover{background:#d7ab7b2c;border-color:#d7ab7b;}
.contacts-2gis-icon{display:inline-flex;gap:5px;align-items:center;color:#e5b98f;font-size:12px;white-space:nowrap;}
.contacts-2gis-icon .icon{width:17px;height:17px;}
.contacts-2gis-btn > .icon:last-child{margin-left:auto;width:16px;height:16px;flex:0 0 auto;}
.contacts-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.contacts-card{min-width:0;min-height:260px;}
/* Published portfolio cards and individual real cases. */
.portfolio-index{padding-top:45px;}
.portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;}
.portfolio-tile{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #353d42;background:#151a1e;color:#f4f5f5;text-decoration:none;border-radius:8px;transition:border-color .2s,transform .2s;}
.portfolio-tile:hover{border-color:#c99d72;transform:translateY(-2px);}
.portfolio-tile-image{aspect-ratio:1.57;overflow:hidden;background:#1d2328;}
.portfolio-tile-image img{width:100%;height:100%;object-fit:cover;transition:transform .45s;}
.portfolio-tile:hover img{transform:scale(1.035);}
.portfolio-tile-copy{padding:24px 26px 26px;min-width:0;display:flex;flex-direction:column;flex:1;}
.portfolio-tile-copy>span:first-child{font-size:10px;color:#dcb18d;text-transform:uppercase;letter-spacing:.1em;}
.portfolio-tile-copy h3{font-size:clamp(23px,2.2vw,32px);letter-spacing:-.035em;line-height:1.14;margin:14px 0 8px;color:#fafafa;overflow-wrap:break-word;}
.portfolio-tile-copy p{font-size:13px;color:#aeb9be;margin:0 0 22px;line-height:1.6;}
.portfolio-tile-link{margin-top:auto;display:flex;align-items:center;gap:10px;font-weight:650;font-size:13px;color:#e6bf9b;}
.portfolio-tile-link svg{width:16px;height:16px;}
.portfolio-empty{padding:clamp(40px,7vw,100px);border:1px solid #333d42;background:linear-gradient(135deg,#1c2429,#111619);border-radius:8px;}
.portfolio-empty h2{font-size:clamp(27px,4vw,46px);margin:0 0 18px;line-height:1.1;}
.portfolio-empty p{max-width:650px;color:#bdc6cb;line-height:1.65;margin-bottom:27px;}
.portfolio-home-grid{padding-top:12px;}
.portfolio-case{padding-top:clamp(46px,6vw,90px);}
.portfolio-case-head{padding-bottom:38px;}
.portfolio-case-head .breadcrumbs{margin-bottom:55px;}
.portfolio-case-head h1{font-size:clamp(40px,6vw,82px);line-height:1.07;letter-spacing:-.05em;max-width:1060px;overflow-wrap:break-word;margin:20px 0 18px;}
.portfolio-case-head>p{font-size:clamp(16px,2vw,22px);color:#b9c5c9;max-width:770px;line-height:1.55;}
.portfolio-case-meta{display:flex;flex-wrap:wrap;gap:9px 24px;margin-top:25px;color:#d2a983;font-size:11px;letter-spacing:.06em;text-transform:uppercase;}
.portfolio-case-cover{width:100%;height:auto;max-height:770px;object-fit:cover;border-radius:8px;}
.portfolio-case-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:24px;}
.portfolio-case-images figure{position:relative;min-width:0;margin:0;overflow:hidden;border-radius:8px;background:#15191c;}
.portfolio-case-images img{display:block;width:100%;height:auto;aspect-ratio:1.45;object-fit:cover;}
.portfolio-case-images figcaption{position:absolute;bottom:16px;left:17px;padding:8px 13px;border-radius:3px;background:#090d0fe6;font-size:12px;font-weight:700;color:#f5f5f5;}
.portfolio-case-description{max-width:950px;padding-block:62px 95px;}
.portfolio-case-description h2{font-size:clamp(28px,3vw,44px);line-height:1.15;margin:0 0 25px;}
.portfolio-case-description p,.portfolio-case-description li{color:#bac3c7;font-size:16px;line-height:1.8;}
.portfolio-case-description ul{padding-left:22px;}
.portfolio-case-description .text-link{display:inline-flex;margin-top:25px;color:#e0b188;}
@media(max-width:1250px){
  .header-actions{gap:14px;}
  .header-in{gap:15px;}
  .contacts-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(min-width:901px) and (max-width:1160px){
  .header-phone{display:none!important;}
  .nav{gap:12px;}
}
@media(max-width:900px){
  .header .logo{margin-right:auto;}
  .header-actions{gap:12px;margin-left:auto;}
  .header-cta,.header-phone{display:none!important;}
  .header .brand-logo{max-width:145px;}
}
@media(max-width:700px){
  .v5-hero-sign{display:block;position:absolute;z-index:2;top:55px;left:var(--page-gutter,18px);width:clamp(135px,38vw,185px);height:auto;max-height:78px;object-fit:contain;object-position:left center;filter:drop-shadow(0 1px 18px #000a);pointer-events:none;}
  .v5-hero-photo{object-position:66% 45%;}
  .v5-hero-shade{background:linear-gradient(0deg,#07090bf4 0%,#080b0ce8 42%,#080b0d30 85%),linear-gradient(90deg,#090a0b87,transparent 100%);}
  .contacts-cards,.portfolio-grid,.portfolio-case-images{grid-template-columns:minmax(0,1fr);}
  .portfolio-case-head .breadcrumbs{margin-bottom:35px;}
  .portfolio-case-description{padding-block:40px 65px;}
  .page-hero.container{padding-top:55px;padding-bottom:55px;}
  .page-hero h1{font-size:clamp(37px,9.1vw,53px);}
}
@media(max-width:380px){
  .header .brand-logo{width:116px;}
  .header .logo-sub{font-size:6.5px;}
  .v5-hero-sign{top:42px;}
}


/* v5.3 adjustments */
.btn-submit{justify-content:center!important;gap:12px!important;}
.btn-submit .icon{width:17px;height:17px;flex:0 0 auto;}
.lead-form select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#f1f2f2 50%),linear-gradient(135deg,#f1f2f2 50%,transparent 50%);background-position:calc(100% - 20px) calc(50% - 3px),calc(100% - 14px) calc(50% - 3px);background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:42px;}
.v5-hero-photo{object-position:center 53%;}
.v5-hero h1{max-width:880px;}
.v5-hero h1 span{display:inline;}
.contacts-social-list>a{gap:16px;}
.social-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#3a4047;color:#f1c79d;box-shadow:inset 0 0 0 1px #55606a;}
.social-avatar .social-icon{width:22px;height:22px;}
.social-arr .icon{width:16px;height:16px;}
@media(max-width:700px){
  .v5-hero-photo{object-position:left top!important;}
  .v5-hero-copy{padding-top:120px;}
  .v5-hero h1{font-size:clamp(40px,13vw,74px);}
}
