/* ===================== */
/* === BASE STYLES === */
/* ===================== */
:root {
  --primary-color: #54555c;
  --secondary-color: #4d4f53;
  --white: #fff;
  --black: #000;
  --bg-color: #f0f0f0;
  --card-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--white);
  color: var(--primary-color);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a,
a:hover {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Typography */
h1 {
  color: var(--white);
  font-size: 64px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  color: var(--secondary-color);
}

p {
  font-size: 18px;
  line-height: 1.56;
  margin-bottom: 1em;
}

/* Lists */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Sections and layout */
section {
  margin: 0 auto;
  padding: 50px 15px 30px;
}

.main-container {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
}

/* Card styles (reusable) */
.card {
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 25px 20px;
  background-color: var(--white);
  transition: var(--transition);
}

/* Fix for Concrete CMS columns on mobile devices*/
.ccm-layout-column-wrapper,
.ccm-layout-column,
.ccm-layout-column-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}

/* Remove fixed widths if they are specified inline */
 .ccm-layout-column {
  float: none !important;
  display: block !important;
}
#page-content .container,
#page-content .ccm-page,
#page-content .ccm-block-content {
  max-width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
}
/* ===================== */
/* === HEADER STYLES === */
/* ===================== */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

/* Main link styles*/
.nav li {
  color: var(--primary-color);
  font-size: 13px; /* Базовый размер */
  transition: transform 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
}

/* Styles for active links */
li.nav-selected {
  border-bottom: solid 2px var(--primary-color);
}

/* Hover-effects */
.nav li:hover {
  transform: translateY(3px);
}

div.ccm-block-top-navigation-bar .navbar-toggler:focus {
  box-shadow: none;
}

/* ===================== */
/* === HERO SECTION === */
/* ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 15px;
}

.slider-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content p {
  font-size: 20px;
}
/* ===================== */
/* === PROJECTS PAGE === */
/* ===================== */
.projects-block {
  /* background-color: #f0f0f0; */
  max-width: 1090px;
  color: var(--primary-color);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-aria {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-card {
  width: calc(33% - 10px);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  /* transform: translateY(-5px); */
  opacity: 0.7;
}
.project-image img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;

  text-align: center;
}
.project-content h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 500;
}
.project-content p {
  font-size: 13px;
}
.project-card a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

  .project-content p img {
    float: right;
    margin-top: -25px
}
    
/* ===================== */
/* === PROJECT-DETAIL PAGE === */
/* ===================== */
.project-details {
  max-width: 1090px;
}
.image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}
.image-container img {
   max-width: 100%
}
.image-container .ccm-custom-style-container{
     width: 100%
}
.image-container .ccm-image-block {
     width: 100%;
  margin-bottom: 40px;
}
.image-container img {
     width: 100%
}
#ccm-layout-column-wrapper-31{
  display: flex;
  flex-direction: row; 
  justify-content: center;
  gap: 20px;
}
  #ccm-layout-column-wrapper-31 p {
       text-align: right;
}
/* ===================== */
/* === SERVICES PAGE === */
/* ===================== */
.main {
  max-width: 1090px;
  margin: 0 auto;
  padding-top: 0;
}
.service-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.service-descr {
  width: 80%;
}
.service-list {
  width: calc(20%-30px);
  /* padding-left: 20px; */
  margin-left: 30px;
}
.service-list li {
  list-style: circle;
}

/* ===================== */
/* === ABOUT US PAGE === */
/* ===================== */
.about-us {
  max-width: 1090px;
}

.boss-card {
  position: relative;
  max-width: 600px;
  margin: 10px auto 20px;
}

.boss-descr, 
.emploee-content {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  top: 0px;
  left: 0px;
  color: #ffff;
  opacity: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.boss-descr:hover,
.emploee-content:hover {
  opacity: 1;
}
.boss-card img {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.emploee-block {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1090px;
}

.emploee-card {
  position: relative;
  width: calc(33.333% - 15px);
}
.emploee-card img {
  width: 100%;
}

.emploee-card h3, 
.boss-name {
  font-size: 13px;
  line-height: 26px;
  color: #fff;
  text-transform: uppercase;
  padding-bottom: 20px;
}
.emploee-card p,
.boss-text {
  font-size: 14px;
  line-height: 17px;
  color: #fff;
  font-weight: 500;
}

/* ===================== */
/* === CONTACT PAGE === */
/* ===================== */
.contact-page #map {
  margin-top: 100px;
}

.contact-page .section-heading {
  margin-bottom: 40px;
  max-width: 1090px;
}

.contact-text {
  margin-bottom: 50px;
}

.contact-page .item {
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: #fff;
  display: inline-block;
  min-width: 360px;
  width: 100%;
}

.contact-page .phone {
  margin-bottom: 30px;
}

.contact-item {
  font-size: 20px;
  font-weight: 600;
  vertical-align: middle;
}

.contact-type {
  font-size: 15px;
  color: #aaaaaa;
  font-weight: 400;
}

.contact-form {
  margin-left: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: #fff;
}

.contact-page .contact-form label {
  font-size: 15px;
  color: #3a3a3a;
  margin-bottom: 15px;
}

.contact-page .contact-form input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background-color: #f6f6f6;
  border: none;
  margin-bottom: 30px;
  font-size: 14px;
  padding: 0px 15px;
}

.contact-page .contact-form textarea {
  width: 100%;
  height: 150px;
  max-height: 180px;
  border-radius: 22px;
  background-color: #f6f6f6;
  border: none;
  margin-bottom: 40px;
  font-size: 14px;
  padding: 15px 15px;
}

.contact-page .contact-form button {
  background-color: #4a4a4a;
  height: 44px;
  border-radius: 22px;
  padding: 0px 20px;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.5s;
}

.contact-page .contact-form button:hover {
  opacity: 0.5;
}
/* ===================== */
/* === FOOTER STYLES === */
/* ===================== */
.footer {
  color: var(--primary-color);
  background-color: var(--white);
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
}
.footer p {
  font-size: 12px;
  margin-bottom: 0;
}
.footermenu ul {
  display: flex;
  flex-direction: row;
  justify-content: left;
  gap: 20px;
}
.footermenu h6 {
  font-size: 12px;
  font-weight: 500;
}
.footermenu i {
  display: none;
}
.insta-link {
  display: flex;
  align-items: center;
}
.insta-link i::before {
  font-size: 30px;
}

/* ===================== */
/* === MEDIA QUERIES === */
/* ===================== */
@media (max-width: 1024px) {

  .emploee-card,
  .project-card {
    width: calc(50% - 10px);
  }
}
@media (max-width: 991px) {
  .contact-form {
    margin-top: 30px;
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 42px;
  }
  .header-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .hero-content {
    max-width: 80%;
  }
  #page-content p,
  #page-content h1,
  #page-content h2 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .project-card {
    margin-bottom: 20px;
  }
  .footerinfo {
    flex-direction: column;
    align-items: center;
  }

  .footermenu {
    padding-top: 20px;
  }
}

@media (max-width: 576px) {
   .header-wrapper {
    flex-direction: column;
  }
    .nav {
    gap: 15px;
  }
  
  section {
    padding-top: 25px
  }
  
  .ccm-image-slider-description {
    display: none;
  }

  .ccm-image-slider-text {
    width: 90%;
  }

  .ccm-image-slider-title,
  .ccm-image-slider-text a {
    font-size: 34px;
  }

  .emploee-card,
  .project-card {
    width: 100%;
  }
  
  #ccm-layout-column-wrapper-31{
  flex-direction: column; 
  gap: 20px;
}
  #ccm-layout-column-wrapper-31 p{
   text-align: center;
  }
     #ccm-layout-column-wrapper-31 img  {
  margin: 0 auto;
  }
  .about-us {
    width: 100%;
  }
  
  .service-descr,
  .service-list {
    width: 100%;
  }

  .contact-page .section-heading {
    width: 90%;
  }
  .contact-page .item,
  .contact-form {
    min-width: auto;
    width: 100%;
    margin-left: 0;
  }
}
.ccm-layout-column {
  margin-bottom: 30px;
}

.servises-list ul {
  padding-left: 15px;
}

/* Убираем возможные фиксированные размеры */
#ccm-layout-column-46,
#ccm-layout-column-47 {
  width: 100% !important;
}
/* Utility classes */
.navbar-collapse {
  transition: none !important;
}

@media (max-width: 411px) {
  .nav li {
    font-size: 10px;
  }
  .footer p {
    max-width: 210px;
  }
}