body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;

  padding-top: 70px; 
  background-color: rgb(255, 248, 240);  
  margin: 0;
  padding-left: 0; 
  padding-right: 0; 
}

section {
  width: auto; 
  margin: 2rem auto;
  padding: 0 1rem;
}


h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #222;
  border-bottom: 2px solid #D1495B;
  display: inline-block;
  padding-bottom: 0.3rem;
}

h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.navbar {
    background-color: #003D5B !important; 
}


/* --- Hero section*/
#hero {
  position: relative;
  width: 100%;
  height: 500px; 
  background: url('background.jpeg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
  margin-left: auto;
  margin-right: auto;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 0;
}

.hero-content {
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 80%;  
  z-index: 1;      
  color: white;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

#hero p {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 1rem;
  }
}


#services {
  padding: 50px 10%;
  text-align: center;
  background: #f9f9f9;
}

#services h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card button {
  padding: 10px 15px;
  border: none;
  background: #333;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.card button:hover {
  background: #555;
}


.why-choose-us {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.why-choose-us h2 {
  text-align: center;
  font-size: 2rem;
  color: #222;
  margin-bottom: 2rem;
  border-bottom: none;
}

.choose-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.choose-text {
  flex: 1;
}

.choose-text h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #003D5B;
  font-size: 1.3rem;
}

.choose-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

.choose-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.choose-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .choose-container {
    flex-direction: column;
  }
}



.portfolio {
  margin: 3rem auto;
  text-align: center;
}

.portfolio h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
  border-bottom: none;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.portfolio-item img {
  width: 100%;
  height: 200px; 
  object-fit: cover;
  transition: transform 0.3s;
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}

form {
  background: #00798C;
  padding: 2rem;
  color: rgb(255, 248, 240);
  border-radius: 8px;
}

form fieldset {
  border: none;
  margin-bottom: 1.5rem;
}

form legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid rgb(255, 248, 240);
  border-radius: 4px;
}

form button {
  background: #D1495B;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  color: rgb(255, 248, 240);
}

form button:hover {
  background: #a83847;
}

textarea {
  resize: vertical;
  max-width: 100%;
  box-sizing: border-box;
}


/* --- Footer Styles --- */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #003D5B;
  color: rgb(255, 248, 240);
  margin-top: 3rem;
}

footer nav {
  margin-top: 0.5rem;
}

footer nav a {
  color: #D1495B;
  margin: 0 0.5rem;
  text-decoration: none;
}


/* --- Sidebar Styles --- */
.sidebar-social a {
  color: #003D5B; /* основной цвет */
  transition: color 0.3s;
}

.sidebar-social a:hover {
  color: #D1495B; /* при наведении */
}

.btn-group-vertical .btn-outline-dark {
    border-radius: 0.25rem;
    margin-bottom: 5px;
    border: 1px solid #003D5B;
    color: #003D5B;
}

.btn-group-vertical .btn-outline-dark:hover {
    background-color: #003D5B;
    color: white;
}
