/* ================= TEAM SECTION ================= */
/* Team */
.team-section {
  background-color: var(--color-cloud);
}

.team-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  list-style: none;
}

.team-card {
  background-color: #fff;
  width: 264px;
  border-radius: 0 0 4px 4px;
  box-shadow:
    0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 2px 1px rgba(46, 47, 66, 0.08);
}

.social-item {
  list-style: none;
  width: 40px;
  height: 40px;
}

.team-info {
  padding: 32px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.team-name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  margin-bottom: 8px;
  text-align: center;
}

.team-role {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #8e8f99;
  margin-bottom: 16px;
  text-align: center;
}
.social-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-iris);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-link:hover,
.social-link:focus {
  background-color: var(--color-ocean);
}
.icon-social {
  width: 16px;
    height: 16px;
  fill: var(--color-white);
}



@import url('https://cdn.jsdelivr.net/npm/modern-normalize@1.1.0/modern-normalize.min.css');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&family=Roboto:wght@400;500;700&display=swap');

/* ================= VARIABLES ================= */
:root {
  --font-main: 'Roboto', sans-serif;
  --font-accent: 'Raleway', sans-serif;

  --color-iris: #4d5ae5;
  --color-ocean: #404bbf;
  --color-navy: #2e2f42;
  --color-slate: #434455;
  --color-light-slate: #8e8f99;
  --color-cornflower: #e7e9fc;
  --color-cloud: #f4f4fd;
  --color-white: #ffffff;
  --color-green: #31d0aa;
}

/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-slate);
  background-color: var(--color-white);
  margin: 0;
}

/* ================= UTILITIES ================= */
.container {
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;

}

.section {
  padding: 120px 0;
}

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

/* ================= HEADER ================= */
.page-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-cornflower);
  box-shadow:
    0px 2px 1px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 1px 6px rgba(46, 47, 66, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo-link {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-iris);
  text-decoration: none;
}

.logo-span {
  color: var(--color-navy);
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 24px 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-decoration: none;
  position: relative;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-ocean);
}

.nav-link.active {
  color: var(--color-ocean);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background-color: var(--color-ocean);
  border-radius: 2px;
}

/* CONTACTS */
.contact-address {
  font-style: normal;
}

.contact-list {
  display: flex;
  gap: 40px;
  list-style: none;
}

.contact-link {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-slate);
  text-decoration: none;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover,
.contact-link:focus {
  color: var(--color-ocean);
}

/* ================= HERO ================= */
.hero-section {
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/heroimage.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 188px 0;
  text-align: center;
  color: var(--color-white);
  max-width: 1440px;
  margin: 0 auto;
}

.hero-title {
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  max-width: 496px;
  margin: 0 auto 48px;
}

.hero-button {
  background-color: var(--color-iris);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-white);
  cursor: pointer;
  border: none;
  padding: 16px 32px;
  border-radius: 4px;
  min-width: 169px;
  margin: 0 auto;
  display: block;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button:hover,
.hero-button:focus {
  background-color: var(--color-ocean);
}

/* ================= FEATURES ================= */
.features-section {
  padding: 120px 0;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
  padding: 0;
    margin: 0;
}

.feature-item {
  width: calc((100% - 72px) / 4);
  text-align: left;
  list-style: none;
}

.feature-icon {
    display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      background-color: var(--color-cloud);
      border-radius: 4px;
      margin-bottom: 8px;
      height: 112px;
      background-color: #f4f4fd;
      border: 1px solid #8e8f99;
}

.feature-icon svg {
  display: block;
  margin: 0;
  padding: 0;
  width: 64px;
  height: 64px;
  box-sizing: content-box;
  overflow: visible;
}

.feature-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.feature-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-slate);
}

/* ================= GALLERY ================= */
.gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 48px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item {
  width: calc((100% - 48px) / 3);
  background-color: var(--color-white);
  border-radius: 4px;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover,
.gallery-item:focus {
  box-shadow:
    0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 2px 1px rgba(46, 47, 66, 0.08);
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
}

.gallery-overlay-text {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  color: var(--color-cloud);
  background-color: var(--color-iris);
  padding: 40px 32px;
  font-size: 16px;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay-text,
.gallery-item:focus .gallery-overlay-text {
  transform: translateY(0%);
}

.gallery-card {
  padding: 32px 16px;
  border: 1px solid var(--color-cornflower);
  border-top: none;
}

.gallery-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.gallery-type {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-slate);
  margin: 0;
}

/* ================= TEAM ================= */
.team-section {
  background-color: var(--color-cloud);
}

.team-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  list-style: none;
}

.team-card {
  background-color:#fff ;
  width: 264px;
  border-radius: 0 0 4px 4px;
  box-shadow:
    0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 2px 1px rgba(46, 47, 66, 0.08);
}

.team-info {
  padding: 32px 0;
}

.team-name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  margin-bottom: 8px;
  text-align: center;
}

.team-role {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-slate);
  margin: 0;
  margin-bottom: 8px;
}

/* ================= SOCIAL ICONS ================= */
svg {
  fill: currentColor;
}



.social-link-footer:hover,
.social-link-footer:focus {
  background-color: var(--color-green);
}




/* ================= FOOTER ================= */
.footer-section {
  padding: 100px 0;
  background-color: var(--color-navy);
}

.footer-section .container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.footer-left {
  max-width: 264px;
}

.footer-section .logo-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-iris);
}

.footer-text {
  line-height: 1.5;
  color: var(--color-cloud);
  max-width: 264px;
}



.footer-subscribe-title {
margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.footer-subscribe-form {
  display: flex;
  gap: 24px;
}

.footer-subscribe-input {
  width: 264px;
    height: 40px;
    border: 1px solid #ffffff;
    background-color: transparent;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #ffffff;
    padding-left: 16px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.footer-subscribe-input::placeholder {
color: #ffffff;
  opacity: 1;
}

.footer-subscribe-btn {
  min-width: 165px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    cursor: pointer;
    background-color: #4D5AE5;
    border: none;
    border-radius: 4px;
}
.footer-subscribe-icon {
  margin-left: 16px;
}
.footer-subscribe-btn:hover,
.footer-subscribe-btn:focus {
  background-color: var(--color-ocean);
}
.footer-socials-title {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.footer-socials-list {
  display: flex;
  gap: 16px;
}
.logo-accent {
  color: var(--color-cloud);
}
.footer-socials-item {
  list-style: none;
}
.footer-socials-link {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4D5AE5;
  border-radius: 50%;
  transition: background-color 250ms ease;
}
.footer-socials-link:hover,
.footer-socials-link:focus {
  background-color: #31d0aa;
}

.footer-socials-icon {
  fill: #ffffff;
  width: 24px;
  height: 24px;
}
/* ================= MODEL ================= */
/* Modal backdrop styles */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 47, 66, 0.4);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

/* Modal window styles */
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 408px;
  min-height: 584px;
  background: #fcfcfc;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14),
    0px 1px 3px rgba(0, 0, 0, 0.12),
    0px 2px 1px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 72px 24px 24px 24px;
}

/* Modal close button styles */
.modal-close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-button:hover,
.modal-close-button:focus {
  background-color: #404bbf;
  border: none;
}

/* Modal close icon styles */
.modal-close-icon {
  width: 8px;
  height: 8px;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-button:hover .modal-close-icon,
.modal-close-button:focus .modal-close-icon {
  fill: #ffffff;
}
/* ================= MODAL FORM MODERN STYLES ================= */


.modal-form {
  flex-direction: column;
  gap: 8px;
}

.modal-form-field {
  margin-bottom: 8px;
  align-items: center
}

.modal-form-label {
  display: block;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--color-light-slate);
  margin-bottom: 4px;
}

.modal-form-input-wrap {
  position: relative;
}

.modal-form-input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  background-color: transparent;
  padding-left: 38px;
  outline: transparent;
  font-size: 16px;
  color: var(--color-navy);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus {
  border-color: var(--color-iris);
}

.modal-form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 24px;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: var(--color-navy);
}

.modal-form-input:focus+.modal-form-icon {
  fill: var(--color-iris);
}

.modal-form-field-comment {
  margin-bottom: 16px;
}

.modal-form-textarea {
  width: 100%;
  height: 120px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  background-color: transparent;
  padding: 8px 16px;
  outline: transparent;
  resize: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-textarea:focus {
  border-color: var(--color-iris);
}

.modal-form-checkbox-field {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.modal-form-checkbox {
  margin-right: 8px;
}

.modal-form-checkbox-label {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--color-light-slate);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.modal-form-text {
  flex: 1;
  margin-left: 0;
  text-align: left;
}

.modal-form-custom-checkbox {
  height: 16px;
    width: 16px;
    margin-right: 8px;
    margin-top: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: transparent;
}

.modal-form-checkbox:checked+.modal-form-checkbox-label .modal-form-custom-checkbox {
  background-color: var(--color-ocean);
  border: none;
  fill: var(--color-cloud);
}

.modal-form-checkbox-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.modal-form-checkbox:checked+.modal-form-checkbox-label .modal-form-checkbox-icon {
  opacity: 1;
}

.modal-form-privacy-link {
  color: var(--color-iris);
  white-space: nowrap;
}

.modal-form-submit {
  display: block;
  min-width: 169px;
  height: 56px;
  margin: 0 auto;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  background-color: #4D5AE5;
  border: none;
  border-radius: 4px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-submit:hover,
.modal-form-submit:focus {
  background-color: #404bbf;
}
/* Modal form description styles */
.modal-form-desc {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-align: center;
  font-weight: 500;
}


.section-title {  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 64px;
}

/* ================= MOBILE MENU ================= */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-icon {
  stroke: var(--color-navy);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-container {
  position: relative;
  padding: 72px 16px 40px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background-color: var(--color-ocean);
  border: none;
}

.mobile-menu-close-icon {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-close:hover .mobile-menu-close-icon,
.mobile-menu-close:focus .mobile-menu-close-icon {
  fill: var(--color-white);
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mobile-menu-item:not(:last-child) {
  margin-bottom: 40px;
}

.mobile-menu-link {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-decoration: none;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link-current,
.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: var(--color-ocean);
}

.mobile-menu-contacts {
  margin-bottom: 48px;
  text-align: left;
}

.mobile-menu-contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-contacts-item:first-child {
  margin-bottom: 24px;
}

.mobile-menu-contacts-item:last-child {
  margin-bottom: 0;
}

.mobile-menu-contacts-link {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-slate);
  text-decoration: none;
  font-style: normal;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-contacts-link.mobile-menu-contacts-tel {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-iris);
}

.mobile-menu-contacts-link:hover,
.mobile-menu-contacts-link:focus {
  color: var(--color-ocean);
}

.mobile-menu-socials-list {
  display: flex;
  gap: 56px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

.mobile-menu-socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-iris);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-socials-link:hover,
.mobile-menu-socials-link:focus {
  background-color: var(--color-ocean);
}

.mobile-menu-socials-icon {
  fill: var(--color-cloud);
}

/* ================= MOBILE FIRST RESPONSIVE STYLES ================= */

/* Base Mobile Styles (320px+) */
@media screen and (max-width: 767px) {
  .container {
    max-width: 320px;
    padding: 0 16px;
  }

  .section {
    padding: 96px 0;
  }

  /* Header Mobile */
  .page-header {
    padding: 16px 0;
    position: relative;
  }

  .nav-list {
    display: none;
  }

  .contact-address {
    display: none;
  }

  .mobile-menu-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
  }

  .logo-link {
    margin-right: 149px;
  }

  /* Mobile Menu Responsive */
  .mobile-menu-socials-list {
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  @media screen and (min-width: 400px) {
    .mobile-menu-socials-list {
      gap: 56px;
      justify-content: flex-start;
    }
  }

  /* Hero Mobile */
  .hero-section {
    padding: 72px 0;
    max-width: 100%;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.11;
    max-width: 216px;
    margin: 0 auto 72px;
  }

  /* Features Mobile */
  .features-list {
    flex-direction: column;
    gap: 72px;
  }

  .feature-item {
    width: 100%;
  }

  .feature-icon {
    display: none;
  }

  .feature-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    text-align: center;
    margin-bottom: 8px;
  }

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

  /* Gallery Mobile */
  .gallery-list {
    flex-direction: column;
    gap: 48px;
  }

  .gallery-item {
    width: 100%;
  }

  /* Team Mobile */
  .team-list {
    flex-direction: column;
    gap: 72px;
  }

  .team-card {
    max-width: 264px;
    margin: 0 auto;
  }

  /* Footer Mobile */
  .footer-section .container {
    flex-direction: column;
    align-items: center;
    gap: 72px;
  }

  .footer-left {
    text-align: left;
    max-width: none;
    width: 100%;
  }

  .footer-section .logo-link {
    display: block;
    text-align: center;
    margin: 0 auto 16px auto;
  }

  .footer-text {
    text-align: left;
    max-width: 288px;
    margin: 0 auto;
  }

  .footer-socials-title,
  .footer-subscribe-title {
    text-align: center;
  }

  .footer-subscribe-form {
    flex-direction: column;
    gap: 16px;
  }

  .footer-subscribe-input {
    width: 288px;
  }

  /* Modal Mobile */
  .modal {
    width: 288px;
    min-height: 623px;
    padding: 72px 16px 16px 16px;
  }
}

/* ================= TABLET (768px+) ================= */
@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }

  .section {
    padding: 112px 0;
  }

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

  .mobile-menu {
    display: none;
  }

  .nav-list {
    display: flex;
  }

  .contact-address {
    display: block;
  }

  .logo-link {
    margin-right: 76px;
  }

  .contact-list {
    flex-direction: column;
    gap: 12px;
  }

  .contact-link {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--color-slate);
  }

  .hero-section {
    padding: 112px 0;
    max-width: 100%;
  }

  .hero-title {
    font-size: 56px;
    max-width: 496px;
  }

  .features-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
  }

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

  .feature-icon {
    display: none;
  }

  .feature-title {
    text-align: left;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    margin-bottom: 8px;
  }

  .feature-text {
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
  }

  .gallery-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
  }

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

  .team-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 64px 24px;
  }

  .footer-section .container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 72px 24px;
    padding: 0 108px;
    text-align: left;
  }

  .footer-left {
    text-align: left;
  }

  .footer-subscribe-form {
    flex-direction: row;
    gap: 24px;
  }

  .footer-subscribe-input {
    width: 264px;
  }

  .modal {
    width: 408px;
    min-height: 584px;
    padding: 72px 24px 24px 24px;
  }
}

/* ================= DESKTOP (1158px+) ================= */
@media screen and (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding: 0 15px;
  }

  .section {
    padding: 120px 0;
  }

  .contact-list {
    flex-direction: row;
    gap: 40px;
  }

  .contact-link {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .hero-section {
    padding: 188px 0;
    max-width: 1440px;
  }

  .hero-title {
    margin-bottom: 48px;
  }

  .features-list {
    gap: 24px;
  }

  .feature-item {
    width: calc((100% - 72px) / 4);
  }

  .feature-icon {
    display: flex;
  }

  .feature-title {
    font-size: 20px;
    font-weight: 500;
  }

  .feature-text {
    font-weight: 400;
  }

  .gallery-list {
    gap: 24px;
    row-gap: 48px;
  }

  .gallery-item {
    width: calc((100% - 48px) / 3);
  }

  .team-list {
    gap: 24px;
  }

  .footer-section .container {
    gap: 0;
    padding: 0 15px;
    justify-content: space-between;
  }
}

/* Hero background with responsive support */
/* Mobile version always uses @2x */
@media screen and (max-width: 767px) {
  .hero-section {
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url(../images/heroimage@2x.jpg);
  }
}

/* Tablet version uses tablet-specific image */
@media screen and (min-width: 768px) and (max-width: 1157px) {
  .hero-section {
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url(../images/heroimage-tablet.jpg);
  }
}

/* Desktop version uses regular image */
@media screen and (min-width: 1158px) {
  .hero-section {
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url(../images/heroimage.jpg);
  }
}