:root {
  --font-family: "Inter", sans-serif;
  --color-dark: #1b414b;
  --color-light: #fbfbfb;
  --color-accent: #0e1823;
  --color-bg: #040306;
}

body {
  font-family: var(--font-family);
  color: var(--color-light);
  background-color: var(--color-bg);
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

.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;
}

/* ----------------------------- */
/* ------- global styles ------- */

.container {
  width: 100%;
  max-width: 375px;
  padding: 0 20px;
  margin: 0 auto;
}

.section-title {
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

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

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

@media screen and (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 50px;
  }
}

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

/* ---------------------- */
/* ------- header ------- */

.header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.header-container {
  border: 1px solid #fbfbfb;
  border-radius: 8px;
  background-color: var(--color-light);
  padding: 7px 20px;

  width: 100%;
  max-width: 335px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: relative;
}

.logo {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}

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

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

.menu-open-btn {
  cursor: pointer;
  display: block;
  background-color: transparent;
  border: none;
  padding: 0;
  transition: stroke 250ms ease;
}

.menu-open-icon {
  stroke-width: 1px;
  stroke: #1b414b;
}

.menu-open-btn:hover .menu-open-icon {
  stroke: #062730;
}

@media screen and (min-width: 768px) {
  .header-container {
    padding: 4px 28px;
    max-width: 704px;
  }

  .logo {
    font-size: 20px;
  }

  .header-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .header-nav-item {
    border-radius: 8px;
    padding: 15px 24px;
    background-color: rgba(27, 65, 75, 0.5);
    width: 91px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background-color 250ms ease-in-out, transform 200ms ease;
  }

  .header-nav-item:hover,
  .header-nav-item:focus {
    background-color: var(--color-dark);
    transform: scale(1.05);
  }

  .header-nav-link {
    font-weight: 400;
    font-size: 9px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-light);
  }

  .header-soc-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .header-soc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: transparent;
  }

  .header-soc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #1b414b;
    transition: color 250ms ease, opacity 250ms ease;
  }

  .header-soc-icon {
    display: block;
    fill: currentColor;
  }

  .header-soc-link:hover,
  .header-soc-link:focus {
    color: #062730;
  }

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

@media screen and (min-width: 1280px) {
  .header-container {
    padding: 4px 30px;
    max-width: 1080px;
  }
}

@media screen and (min-width: 1440px) {
  .header-container {
    max-width: 1240px;
  }
}

/* --------------------------- */
/* ------- mobile menu ------- */

.mobile-menu {
  position: fixed;
  inset: 0;

  z-index: 9999;
  padding: 260px 20px 40px;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  background-color: var(--color-accent);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 250ms ease, visibility 250ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-header {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;

  border: 1px solid #fbfbfb;
  border-radius: 8px;
  width: 335px;

  background-color: var(--color-light);

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 20px;
}

.mobile-menu-logo {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}

.mobile-menu-close-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu-close-icon {
  fill: #055545;
}

.mobile-nav {
  margin-bottom: 360px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-nav-item {
  border-radius: 8px;
  padding: 15px 24px;
  background: rgba(27, 65, 75, 0.5);
  width: 91px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transition: background-color 250ms ease-in-out, transform 200ms ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  background-color: var(--color-dark);
  transform: scale(1.05);
}

.mobile-nav-link {
  font-weight: 400;
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-light);
}

.mobile-socials {
}

.mobile-socials-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.mobile-socials-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: transparent;
}

.mobile-socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fbfbfb;
  transition: color 250ms ease, opacity 250ms ease;
}

.mobile-socials-icon {
  display: block;
  fill: currentColor;
}

.mobile-socials-link:hover,
.mobile-socials-link:focus {
  color: rgba(251, 251, 251, 0.8);
}

/* -------------------- */
/* ------- hero ------- */

.hero {
  padding-top: 260px;
  padding-bottom: 302px;

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

  background-image: url(../images/hero/hero-bg-mob.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media screen and (-webkit-min-device-pixel-ratio: 2),
  (min-resolution: 2dppx),
  (min-resolution: 192dpi) {
  .hero {
    background-image: url(../images/hero/hero-bg-mob@2x.jpg);
  }
}

.hero-container {
}

.hero-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-light);
  max-width: 335px;
  margin: 0 auto 24px;
}

.hero-text {
  font-weight: 300;
  font-size: 12px;
  max-width: 335px;
  line-height: 1.17;
  text-align: center;
  color: rgba(251, 251, 251, 0.7);
  margin: 0 auto;
  margin-bottom: 38px;
}

.hero-btn {
  display: block;
  border-radius: 15px;
  padding: 14px 32px;
  margin: 0 auto;
  border: none;
  background-color: var(--color-dark);

  font-weight: 500;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.02em;
  color: var(--color-light);

  transition: background-color 250ms ease-in-out, color 250ms ease-in-out;
}

.hero-btn:hover,
.hero-btn:focus {
  background-color: var(--color-light);
  color: var(--color-dark);
}

@media screen and (min-width: 768px) {
  .hero {
    padding-top: 280px;
    padding-bottom: 282px;

    background-image: url(../images/hero/hero-bg-tab.jpg);
  }

  @media screen and (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 2dppx),
    (min-resolution: 192dpi) {
    .hero {
      background-image: url(../images/hero/hero-bg-tab@2x.jpg);
    }
  }

  .hero-title {
    font-size: 70px;
    max-width: 640px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 48px;
    max-width: 597px;
  }

  .hero-btn {
    padding: 16px 40px;

    font-size: 18px;
    line-height: 1.1;
  }
}

@media screen and (min-width: 1280px) {
  .hero {
    padding-top: 235px;
    padding-bottom: 215px;

    background-image: url(../images/hero/hero-bg-desk280.jpg);
  }

  @media screen and (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 2dppx),
    (min-resolution: 192dpi) {
    .hero {
      background-image: url(../images/hero/hero-bg-desk280@2x.jpg);
    }
  }

  .hero-title {
    font-size: 80px;
    max-width: 1000px;
  }
}

@media screen and (min-width: 1440px) {
  .hero {
    background-image: url(../images/hero/hero-bg-desk440.jpg);
  }

  @media screen and (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 2dppx),
    (min-resolution: 192dpi) {
    .hero {
      background-image: url(../images/hero/hero-bg-desk440@2x.jpg);
    }
  }
}

/* ----------------------------------- */
/* ------- yacht-fleet section ------- */

.yacht-fleet {
  position: relative;
  margin-top: -59px;
  background-color: var(--color-bg);
  height: 675px;
  overflow: visible;
  display: flex;
  justify-content: center;
}

.yacht-fleet-container {
  position: relative;
  background-color: var(--color-light);
  border-radius: 24px 24px 0 0;
  padding: 40px 20px 140px;
  max-width: 335px;
  width: 100%;
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 40px;

  overflow: visible;
}

.yacht-fleet-title {
  color: var(--color-dark);
  text-align: left;
  width: 260px;
}

.yacht-fleet-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 20px;
  width: 295px;
}

.yacht-fleet-text p:first-of-type {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.yacht-fleet-text p:last-of-type {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: -0.02em;
  color: #040306;
  opacity: 0.4;
}

.yacht-fleet-picture {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 336px;
  height: 393px;
  border-radius: 24px;
  overflow: hidden;
  z-index: 3;
}

.yacht-fleet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (min-width: 768px) {
  .yacht-fleet {
    margin-top: -67px;
  }

  .yacht-fleet-container {
    padding: 50px 32px 326px;
    max-width: 704px;

    gap: 50px;
  }

  .yacht-fleet-title {
    width: 536px;
  }

  .yacht-fleet-text {
    width: 389px;
  }

  .yacht-fleet-text p:first-of-type {
    font-size: 23px;
  }

  .yacht-fleet-text p:last-of-type {
    font-size: 13px;
    line-height: 1.15;
  }

  .yacht-fleet-picture {
    bottom: -276px;
    width: 704px;
    height: 467px;
  }
}

@media screen and (min-width: 1280px) {
  .yacht-fleet {
    margin-top: -35px;
  }

  .yacht-fleet-container {
    padding: 50px 50px 287px;
    max-width: 1180px;

    flex-direction: row;
    justify-content: space-between;
  }

  .yacht-fleet-text {
    width: 354px;
  }

  .yacht-fleet-picture {
    bottom: -171px;
    width: 1181px;
    height: 467px;
  }
}

@media screen and (min-width: 1440px) {
  .yacht-fleet-container {
    padding-bottom: 232px;
    max-width: 1340px;
  }

  .yacht-fleet-text {
    width: 404px;
  }

  .yacht-fleet-picture {
    bottom: -132px;
    width: 1341px;
    height: 467px;
  }
}

/* ----------------------- */
/* ------- section ------- */

.offer {
  padding-top: 250px;
}

@media screen and (min-width: 768px) {
}

@media screen and (min-width: 1280px) {
}

@media screen and (min-width: 1440px) {
}

/* ---------------------------------- */
/* ------- activities section ------- */

.activities {
  background-color: var(--color-bg);
  padding: 40px 0;
}

.activities-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 20px;
}

.activities-text-content {
  border-radius: 24px;
  width: 335px;

  padding: 80px 20px;

  background-color: var(--color-dark);

  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 40px;
}

.activity-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.activity-number {
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-light);

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 18px;
  margin: 0;

  align-self: stretch;
}

.activity-text {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: -0.02em;
  color: var(--color-light);

  padding-top: 18px;
  margin: 0;
}

.activities-pictures {
  border-radius: 24px;
  width: 100%;
  max-width: 335px;
  height: 424px;
  overflow: hidden;
}

.activities-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (min-width: 768px) {
  .activities {
    padding: 75px 0;
  }

  .activities-container {
    gap: 32px;
  }

  .activities-text-content {
    width: 704px;
    padding: 90px 32px;

    align-items: flex-start;
    gap: 44px 32px;
  }

  .activity-item {
    width: calc((100% - 32px) / 2);
  }

  .activity-number {
    font-size: 32px;
  }

  .activity-text {
    font-size: 13px;
    line-height: 1.15;
  }

  .activities-pictures {
    max-width: 704px;
  }
}

@media screen and (min-width: 1280px) {
  .activities-container {
    flex-direction: row;

    justify-content: center;
    align-items: flex-start;
  }

  .activities-text-content {
    width: 716px;
    padding: 90px 50px;

    gap: 44px 44px;
  }

  .activity-item {
    width: calc((100% - 44px) / 2);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .activity-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .activities-pictures {
    max-width: 432px;
  }
}

@media screen and (min-width: 1440px) {
  .activities-text-content {
    width: 768px;

    gap: 44px 32px;
  }

  .activity-item {
    width: calc((100% - 32px) / 2);
  }

  .activities-pictures {
    max-width: 540px;
  }
}

/* ----------------------- */
/* ------- rent section ------- */

.rent {
  background-color: var(--color-bg);
  padding: 40px 0;
}

.rent-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.rent-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 335px;
}

.rent-title {
  text-align: left;
  align-self: flex-start;
}

.rent-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
}

.form-field {
  width: 100%;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: transparent;
  border: 1px solid rgba(251, 251, 251, 0.2);
  border-radius: 12px;
  color: var(--color-light);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  padding: 14px 18px;
  transition: border-color 250ms ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  color: rgba(251, 251, 251, 0.4);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

.form-textarea {
  min-height: 108px;
  resize: none;
  margin-bottom: 22px;
}

.form-btn {
  align-self: flex-start;
  background-color: var(--color-dark);
  color: var(--color-light);
  border: none;
  border-radius: 15px;
  padding: 14px 44px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}

.form-btn:hover,
.form-btn:focus {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.rent-picture {
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 335px;
}

.rent-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .rent {
    padding: 75px 0;
  }

  .rent-container {
    gap: 100px;
  }

  .rent-content {
    gap: 50px;
    max-width: 473px;
  }

  .form-input,
  .form-textarea {
    padding: 18px;
  }

  .form-input::placeholder,
  .form-textarea::placeholder {
    font-size: 14px;
  }

  .form-textarea {
    min-height: 116px;
    margin-bottom: 32px;
  }

  .form-btn {
    padding: 18px 75px;
    font-size: 18px;
    line-height: 1.1;
  }

  .rent-picture {
    max-width: 704px;
  }
}

@media screen and (min-width: 1280px) {
  .rent-container {
    flex-direction: row-reverse;
    align-items: center;
    gap: 50px;
  }

  .rent-picture {
    max-width: 658px;
  }
}

@media screen and (min-width: 1440px) {
  .rent-picture {
    max-width: 768px;
  }
}

/* ----------------------- */
/* ------- section ------- */

@media screen and (min-width: 768px) {
}

@media screen and (min-width: 1280px) {
}

@media screen and (min-width: 1440px) {
}

/* ---------------------- */
/* ------- footer ------- */

.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

@media screen and (min-width: 768px) {
}

@media screen and (min-width: 1280px) {
}

@media screen and (min-width: 1440px) {
}

/* ---------------------------- */
/* ------- modal window ------- */

@media screen and (min-width: 768px) {
}

@media screen and (min-width: 1280px) {
}

@media screen and (min-width: 1440px) {
}

/* ---------------------------- */
/* ---------------------------- */
