/* ==========================================
   Variables & Reset
   ========================================== */
:root {
  --color-primary: #1f5bff;
  --color-primary-dark: #333fe8;
  --color-text-main: #000000;
  --color-text-muted: #666666;
  --color-bg-light: #ffffff;
  --color-bg-grey: #f2f2f2;
  --color-bg-light-grey: #fafafa;
  --color-bg-dark: #111111;
  --color-text-light: #ffffff;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Typography & Utilities
   ========================================== */
.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  opacity: 0.9;
}

/* ==========================================
   Header
   ========================================== */
.header {
  padding: 15px 0;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.header__logo-img {
  width: 80px;
}

.header__info {
  text-align: center;
}

.header__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.header__phone {
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  display: flex;
  flex-direction: column;
}

.hero__image-wrapper {
  width: 100%;
  height: 400px;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__content {
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
  padding: 40px 20px;
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero__text {
  font-size: 16px;
  margin-bottom: 20px;
}

.hero__contacts {
  font-weight: 600;
  font-size: 16px;
}

/* ==========================================
   Projects Section
   ========================================== */
.projects {
  padding: 60px 0;
  background-color: var(--color-bg-grey);
}

.projects__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  background-color: var(--color-bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.project-card__image-wrapper {
  width: 100%;
  height: 250px;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__content {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card__link {
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.project-card__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.project-card__btn {
  align-self: flex-start;
}

/* ==========================================
   About Section
   ========================================== */
.about {
  padding: 60px 0;
  background-color: var(--color-bg-light-grey);
}

.about__text {
  font-size: 16px;
  color: var(--color-text-main);
  max-width: 800px;
  margin: 0 auto;
}

.about__text p {
  margin-bottom: 15px;
}

/* ==========================================
   Contacts Section
   ========================================== */
.contacts {
  padding: 60px 0;
  background-color: var(--color-bg-light);
}

.contacts__wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacts__info {
  text-align: center;
}

.contacts__phone-email {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contacts__address {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.social-links__item a:hover {
  opacity: 0.8;
}

.social-links__icon {
  width: 30px;
  height: 30px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
}

.contact-form__label {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #c7c7c7;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form__submit {
  border-radius: 5px;
  padding: 15px 30px;
  margin-top: 10px;
  width: 100%;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 40px 0;
  text-align: center;
}

.footer__copy {
  font-size: 14px;
  color: #999;
}

/* ==========================================
   Responsive (Tablet & Desktop)
   ========================================== */
@media screen and (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .header__container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .header__info {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .header__desc {
    margin-bottom: 0;
    text-align: left;
  }
  
  .hero {
    flex-direction: row;
    height: 560px;
  }
  
  .hero__image-wrapper {
    width: 50%;
    height: 100%;
  }
  
  .hero__content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
  }
  
  .hero__title {
    font-size: 42px;
  }
  
  .hero__text, .hero__contacts {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .project-card {
    flex-direction: row;
  }
  
  .project-card__image-wrapper {
    width: 40%;
    height: auto;
  }
  
  .project-card__content {
    width: 60%;
    padding: 40px;
    justify-content: center;
  }
  
  .contacts__wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .contacts__info {
    width: 40%;
    text-align: left;
  }
  
  .social-links {
    justify-content: flex-start;
  }
  
  .contacts__form-wrapper {
    width: 60%;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
  
  .hero__title {
    font-size: 52px;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
