@font-face {
  font-family: "Bahnschrift";
  src: url("../static/Bahnschrift.ttf");
}

@media (max-width: 978px) {
  main {
    margin-top: 0 !important;
  }
  .project-title {
    margin-top: 70px;
  }
}

.parent {
display: grid;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
}


a {
  text-transform: none;
  text-decoration: none;
  color: inherit;
}

.project-title {
    color: #222222;
    font-family: "Bahnschrift";
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    padding-bottom: 15px;
    padding-top: 0px;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

.card-title {
  margin-bottom: 0;
}

.project-description {
  color: #999999;
    font-family: "Bahnschrift";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding-bottom: 20px;
    padding-top: 0px;
    text-align: center;
    text-transform: none;
}

.card {
      border-radius: 8px;
    border: none;
    transition: box-shadow 200ms ease, transform 200ms ease;
    overflow: hidden; /* ensure image corners match card rounding */
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-body {
  padding-left: 0px;
}

main {
    margin-top: 70px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

  input{
    width:100%;
    padding:15px;
    border-radius:1px;
    border:1px solid #ccc;
    font-family:inherit;
    margin-bottom: 15px;
  }

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.center {
  margin: auto;
  width: 50%;
  padding: 10px;
}

.nav-custom {
  padding: 0;
  margin-bottom: 20px;
}

.nav-custom a {
  padding-top: 15px;
  padding-left: 5px;
}

button2 {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

.grid { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: stretch;
  }

.grid > article img {
  max-width: 100%;
}

.div1 { grid-area: 1 / 2 / 6 / 3; }
.div2 { grid-area: 1 / 3 / 6 / 7; }

.card-text {
  font-weight: 500;
}

.project-url {
  font-family: "Bahnschrift";
  margin-left: 10px;
  color: rgb(153, 153, 153);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  text-transform: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-url:hover {
    color: rgb(34, 34, 34);
    text-transform: none;
}

.gallery-title {
    font-size: 11px;
    line-height: 13px;
    color: #999999;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.project-gallery img {
  width: 100%;
}

h1 {
  font-family: "Bahnschrift";
  font-weight: 300;
  /*letter-spacing: -0.1rem;*/
  line-height: 2.5rem;
}

h2 {
  font-family: "Bahnschrift";
  font-weight: 400;
  color: #999999;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

h5 {
    font-family: "Bahnschrift";
    color: rgb(34, 34, 34);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
}

/* --- Адаптивность для промежутка 1300px - 978px --- */
@media (max-width: 1300px) and (min-width: 979px) {
  .col-md-2 {
    flex: 0 0 18%;
    max-width: 18%;
  }
  .col-md-10 {
    flex: 0 0 82%;
    max-width: 82%;
  }
  h1 {
    font-size: 1.7rem;
    line-height: 2rem;
  }
  .nav-custom a {
    padding-top: 8px;
    padding-left: 2px;
  }
}

/* --- Адаптивность для промежутка 978px - 768px --- */
@media (max-width: 978px) and (min-width: 769px) {
  .col-md-2 {
    flex: 0 0 22%;
    max-width: 22%;
  }
  .col-md-10 {
    flex: 0 0 78%;
    max-width: 78%;
  }
  h1 {
    font-size: 1.2rem;
    line-height: 1.5rem;
  }
  .nav-custom a {
    padding-top: 4px;
    padding-left: 1px;
  }
}

/* --- Более ранний переход на мобильное меню (например, с 1200px) --- */
@media (max-width: 1200px) {
  .d-md-block {
    display: none !important;
  }
  .d-md-none {
    display: block !important;
  }
}

@media (max-width: 1300px) and (min-width: 769px) {
  .row {
    display: flex;
    justify-content: center;
  }
  .col-md-10 {
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
}

/* --- Contact buttons: same size --- */
.contact-btn {
  min-width: 110px;
}