/* ================= BASE STYLES ================= */
:root {
  --bg-color: #fff;
  --dark-color: #1a403f;
  --accent-color: #a3c5ba;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Urbanist", sans-serif;
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--dark-color);
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 0;
}

.link {
  text-decoration: none;
  color: var(--dark-color);
}

.link:visited {
  color: var(--dark-color);
}

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

.list {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px 15px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ================= LAYOUT STYLES ================= */

.container {
  max-width: 390px;

  padding-left: 32px;
  padding-right: 32px;

  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: 16px;
  padding-bottom: 16px;
}

.section-text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 32px;
  font-weight: 200;
  line-height: 110%;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 20px;
  line-height: 110%;
  letter-spacing: -1;
  text-transform: uppercase;
  font-weight: 200;
}

.section-text {
  font-size: 16px;
  font-weight: 200;
  line-height: 160%;
}

.section-text-min {
  font-size: 15px;
}

.section-img-wrap {
  max-width: 310px;
  object-fit: cover; /* Запобігає обрізанню */
}

.more-btn,
.openModalBtn {
  display: flex;
  gap: 6px;
  align-items: center;
  width: fit-content;

  background-color: transparent;
  border: none;

  font-size: 15px;
  font-family: "Urbanist", sans-serif;
  font-weight: 200;
}

.btn-link {
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 12px;
  color: var(--dark-color);
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: var(--dark-color);
  transition:
    width 0.3s ease,
    left 0.3s ease;
  transform: translateX(-50%);
}

.btn-link:hover::after {
  width: 100%;
}

.cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;

  border-style: none;
  box-shadow:
    rgba(0, 0, 0, 0.2) 0 3px 5px -1px,
    rgba(0, 0, 0, 0.14) 0 6px 10px 0,
    rgba(0, 0, 0, 0.12) 0 1px 18px 0;
  box-sizing: border-box;
  color: #3c4043;
  font-size: 15px;
  font-family: "Urbanist", sans-serif;
  font-weight: 200;
  letter-spacing: 0.25px;
  line-height: normal;
  padding: 10px 10px;
  transition: background box-shadow 280ms ease;

  width: 160px;

  margin-top: 16px;
}

.cta-button:hover,
.cta-button:focus {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset -8px -7px 10px #fff,
    inset 8px 7px 10px rgba(0, 0, 0, 0.15);
}

/* ================= HEADER STYLES ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  z-index: 998;
}

.header-container {
  display: flex;
}

.header-nav-list {
  display: none;
}

.header-logo-wrap {
  margin-left: auto;

  padding-top: 16px;
  padding-bottom: 16px;

  margin-left: auto;

  max-width: 160px;
}

/* ================= MOB MENU STYLES ================= */

.mob-menu-btn {
  padding-top: 16px;
  padding-bottom: 8px;
  border: none;
  background-color: transparent;

  min-width: 30px;
  min-height: 30px;

  margin-left: auto;
}

.hidden {
  display: none;
}

.mob-menu {
  top: 70;
  position: absolute;
  right: 20px;
  left: 20px;
  background-color: var(--bg-color);
  color: var(--dark-color);
  width: 90%;
  height: 100vh;
  padding: 20px;
  display: none;
  z-index: 999;
}

.mob-menu-list {
  max-width: 180px;
  list-style: none;

  display: flex;

  flex-direction: column;
  gap: 32px;
  justify-content: center;
  text-align: center;

  margin-left: auto;
  margin-right: auto;
}

.mob-menu-list-item {
  display: flex;
  justify-content: center;
}

.mob-menu-list-item .socials {
  display: flex;
  font-size: 18px;
  gap: 24px;
  justify-content: center;
}
/* ================= FOOTER STYLES ================= */
.footer {
  padding-top: 16px;
  padding-bottom: 16px;

  background-color: var(--bg-color);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.footer-logo-wrap {
  margin-left: auto;
  margin-right: auto;

  max-width: 80px;
}

.heart-icon {
  animation: beat 0.7s infinite alternate;
  transform-origin: center;
}

@keyframes beat {
  to {
    transform: scale(1.6);
  }
}
/* Модальне вікно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  position: relative;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

/* Форма */
.contact-form {
  width: 90%;
  max-width: 500px;

  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.close:hover .mob-menu-icon {
  transform: scale(1.1);
}

label {
  font-size: 16px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  outline: none;
}

input,
textarea {
  margin-top: 5px;
}

textarea {
  min-height: 120px;
  resize: none;
}

/* Кнопка відправки */
.submit-btn {
  background-color: #1a403f;
  color: white;
  border: 1px solid #1a403f;

  padding: 12px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.submit-btn:hover {
  background-color: #ffff;
  color: #1a403f;
  border: 1px solid #1a403f;
}

/* Успішне повідомлення */
.hidden {
  display: none;
}

#successMessage {
  display: none;
  text-align: center;
  font-size: 18px;
  color: #1a403f;
  padding: 20px;
}

#successMessage h3 {
  font-size: 24px;
  font-weight: bold;
}

.back-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 18px;
  color: #1a403f;
  text-decoration: underline;
}

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

    padding-left: 48px;
    padding-right: 48px;
  }

  .header-logo-wrap {
    max-width: 200px;
  }

  .mob-menu {
    top: 70;
    position: absolute;
    right: 0;
    left: 0;
    background-color: var(--bg-color);
    color: var(--dark-color);
    width: 90%;
    max-width: 768px;
    height: 100vh;
    padding: 20px;
    display: none;
    z-index: 999;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .section-title {
    font-size: 40px;
  }

  .section-img-wrap {
    min-width: 672px;
  }

  .footer-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-logo-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  .mob-menu {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .header {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-nav-list {
    display: flex;
    gap: 32px;
  }

  .header-nav-item {
    padding-top: 16px;
  }

  .header-logo-wrap {
    margin-left: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .socials {
    display: flex;
    gap: 16px;
  }

  .mob-menu-btn {
    display: none;
  }

  .section-img-wrap {
    min-width: 358px;
  }

  .close {
    position: absolute;
    top: 16px;
    right: 16px;
  }
}

@media screen and (min-width: 1440px) {
  .container {
    max-width: 1440px;
    padding-left: 64px;
    padding-right: 64px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-img-wrap {
    min-width: 504px;
    object-fit: cover;
  }
}
