/* GENERAL */


/* === Sticky / Fixed header === */
:root {
  /* орієнтовні висоти хедера під твої паддінги логотипа */
  --header-h: 64px;
}

@media (min-width: 768px)  { :root { --header-h: 72px; } }
@media (min-width: 1158px) { :root { --header-h: 80px; } }


/* Компенсація простору під фіксований хедер */
body { 
  padding-top: var(--header-h);
}

/* Щоб якорі (#anchor) не ховались під хедером */
html { scroll-padding-top: var(--header-h); }

/* Мобільне меню/оверлеї мають бути вище за хедер */
.mobile-overlay,
.modal-overlay {
  z-index: 2000;
}


:root {
  --font-family: "Roboto", sans-serif;
  --second-family: "Raleway", sans-serif;

  --iris: #4d5ae5;
  --ocean: #404bbf;
  --navy-blue: #2e2f42;
  --green: #31d0aa;
  --slate: #434455;
  --light-slate: #8e8f99;
  --cornflower: #e7e9fc;
  --cloud: #f4f4fd;
  --navy-blue-modal: rgba(46, 47, 66, 0.4);
  --grey: rgba(46, 47, 66, 0.7);
  --white: #fff;
  --dairy: #fcfcfc;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--white);
  color: var(--slate);
}

ul,
ol {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--slate);
}

button {
  cursor: pointer;
  border: none;
  background-color: transparent;
  padding: 0;
}

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

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

.container {
  max-width: 320px;
  padding: 0 16px;
  margin: 0 auto;
}

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

/* -HEADER-*/

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1100;                 /* вище звичайного контенту */
  background-color: var(--white);/* щоб не просвічувався фон під час скролу */
  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);
  border-bottom: 1px solid var(--cornflower);
}

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

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

.contacts-header {
  display: none;
}

.logotype {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--iris);
  display: inline-block;
  padding: 16px 0;
}

.studio {
  color: var(--navy-blue);
}

/* MOBILE MENU */

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-navigation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  width: 100%;
  height: 100%;
  padding: 72px 24px 40px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.close-menu-mob-btn:hover,
.close-menu-mob-btn:focus {
  background-color: var(--ocean);
  border: none;
  fill: var(--white);
}

.navigation-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.navigation-link-mob.current {
  color: var(--ocean);
}

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

.contacts-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.mob-social-icons-list {
  display: flex;
  margin-top: 48px;
  justify-content: space-between;
}

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

.mob-social-icon-item-link:hover,
.mob-social-icon-item-link:focus {
  background-color: var(--ocean);
}

/* TABLET  */

@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
  .open-mob {
    display: none;
  }
  .logotype {
    padding: 24px 0;
  }
  .navigation-header {
    display: flex;
    align-items: center;
    gap: 120px;
  }
  .navigation-header-list {
    display: flex;
    gap: 40px;
  }
  .navigation-link {
    display: inline-block;
    padding: 24px 0;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .navigation-link:hover,
  .navigation-link:focus {
    color: var(--ocean);
  }
  .navigation-link.current {
    position: relative;
    color: var(--ocean);
  }
  .navigation-link.current::after {
    content: "";
    position: absolute;
    border-radius: 2px;
    width: 48px;
    height: 4px;
    background-color: var(--ocean);
    left: 0;
    bottom: -1px;
  }
  .contacts-header {
    display: flex;
  }
  .contacts-header-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .contacts-header-link {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    font-style: normal;
    transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .contacts-header-link:hover,
  .contacts-header-link:focus {
    color: var(--ocean);
  }
}

/* DESKTOP */

@media screen and (min-width: 1158px) {
  .section {
    padding-bottom: 120px;
    padding-top: 120px;
  }
  .container {
    max-width: 1158px;
    padding: 0 15px;
  }
  .navigation-header {
    gap: 76px;
  }
  .contacts-header-list {
    flex-direction: row;
    gap: 40px;
  }
  .contacts-header-link {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 24px 0;
  }
}

/* HERO */

.hero-section {
  padding: 72px 52px;
  background-color: var(--navy-blue);
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(../images/background/fon.jpg); 
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@media (min-resolution: 2dppx) {
  .hero-section {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/background/fon.jpg);
  }
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  margin-bottom: 72px;
}

.hero-section-button {
  border-radius: 4px;
  padding: 16px 32px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--white);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: var(--iris);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* TABLET */

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

  .hero-section {
    padding: 112px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/background/fon.jpg)
  }
  @media (min-resolution: 2dppx) {
    .hero-section {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(../images/background/fon.jpg);
    }
  }

  .hero-section-title {
    font-size: 56px;
    line-height: 1.07;
    max-width: 496px;
    margin-bottom: 36px;
  }
}


/* DESKTOP */

@media screen and (min-width: 1158px) {
  .hero-section {
    padding: 188px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/background/fon.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    max-width: 1440px;
    margin: 0 auto;
  }
  @media (min-resolution: 2dppx) {
    .hero-section {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(../images/background/fon.jpg);
    }
  }
  .hero-section-title {
    margin-bottom: 48px;
  }
}

/* ABOUT */

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

.icons-container {
  display: none;
}

.information-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
}

.information-section-title {
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.information-section-info {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* TABLET */

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

  .information-section-title {
    text-align: start;
  }
  .information-section-list {
    column-gap: 24px;
  }
  .information-section-list-item {
    width: calc((100% - 24px) / 2);
  }
}

/* DESKTOP */
@media screen and (min-width: 1158px) {
  .icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-slate);
    border-radius: 4px;
    width: 264px;
    height: 112px;
    background-color: var(--cloud);
  }
  .information-section-list-item {
    width: calc((100% - 3 * 24px) / 4);
  }
  .information-section-title {
    margin-top: 8px;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
  }
  .information-section-info {
    font-weight: 400;
  }
}

/* TEAM */

.team-section {
  background-color: var(--cloud);
}

.team-section-title {
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--navy-blue);
  margin-bottom: 72px;
}

.team-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 76px;
  justify-content: center;
}

.team-section-item {
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
  background: var(--white);
}

.team-section-item-information {
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-section-item-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--navy-blue);
}

.team-section-item-text {
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.social-icons-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

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

.icons {
  fill: var(--cloud);
}

.social-icon-item .social-icon-item-link:hover,
.social-icon-item .social-icon-item-link:focus {
  background-color: var(--ocean);
}

/* TABLET */

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

  .team-section-list {
    column-gap: 24px;
    row-gap: 64px;
  }
  .team-section .container {
    padding: 0 108px;
  }
  .team-section-item {
    width: calc((100% - 24px) / 2);
  }
}

/* DESKTOP */

@media screen and (min-width: 1158px) {
  .team-section .container {
    padding: 0 15px;
  }
  .team-section-item {
    width: calc((100% - 3 * 24px) / 4);
  }
}

/* ==== PORTFOLIO (1 / 2 / 2) — clean cards ==== */

.portfolio-section-title{
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: .02em;
  text-align: center;
  color: var(--navy-blue);
  margin-bottom: 32px;
}

/* Сітка: mobile 1 в ряд, далі 2 в ряд; центруємо останній ряд */
.portfolio-section-list{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center; /* 2 або 1 в останньому ряду будуть по центру */
}

/* Картка */
.portfolio-section-list-item{
  width: 100%;                     /* мобілка: 1 в ряд */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portfolio-section-list-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

/* Планшет: 2 в ряд */
@media (min-width:768px){
  .portfolio-section-list-item{
    width: calc((100% - 24px)/2);
  }
}

/* Десктоп: теж 2 в ряд (симетричні 2+2) */
@media (min-width:1158px){
  .portfolio-section-list-item{
    width: calc((100% - 24px)/2);
  }
}

/* Прев’ю: однакова висота */
.portfolio-box{
  position: relative;
  height: 300px;             /* підгони за смаком: 260/280/300 */
  background: #f7f7fb;
  overflow: hidden;
}

.portfolio-box picture,
.portfolio-box img{
  width: 100%;
  height: 100%;
  display: block;
}

/* Якщо готуєш картинки одного співвідношення — лишай cover (без білих полів) */
.portfolio-box img{
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.portfolio-section-list-item:hover .portfolio-box img{ transform: scale(1.03); }

/* Оверлей-градієнт на ховер (акуратний) */
.overlay{
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.portfolio-section-list-item:hover .overlay{ opacity: 1; }

/* Текстова частина */
.portfolio-section-item-information{
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.portfolio-section-item-name{
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-blue);
  margin-bottom: 6px;
}
.portfolio-section-item-text{
  font-size: 14px;
  color: var(--slate);
  opacity: .85;
}


/* FOOTER */




.footer {
  background-color: var(--navy-blue);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
}

.footer-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 72px;
}

.footer-information {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.logotype-footer {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--iris);
}

.footer-studio {
  color: var(--cloud);
}

.footer-info {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--cloud);
}

.footer-social-title {
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-social-icons-list {
  display: flex;
  gap: 16px;
}
/* === Footer social icons тільки Instagram + Facebook === */
.footer-social-icon-item-link {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
}

/* іконки всередині білі */
.footer-social-icon-item-link .icons {
  fill: #fff;
}

/* Instagram — офіційний градієнт */
.footer-social-icon-item-link[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, 
              #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer-social-icon-item-link[aria-label="Instagram"]:hover {
  filter: brightness(1.15);
}

/* Facebook — синій */
.footer-social-icon-item-link[aria-label="Facebook"] {
  background-color: #1877F2;
}
.footer-social-icon-item-link[aria-label="Facebook"]:hover {
  background-color: #0D5FDB;
}




.input-title-footer {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
  text-align: center;
}

.footer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.input-area-footer {
  border: 1px solid var(--white);
  border-radius: 4px;
  width: 288px;
  height: 40px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: transparent;
  opacity: 0.3;
  padding: 8px 0 8px 16px;
  outline: transparent;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.input-area-footer::placeholder {
  color: var(--white);
  opacity: 0.6;
}

.footer-btn {
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 16px;
  border-radius: 4px;
  padding: 8px 24px;
  color: var(--white);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: var(--iris);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-icon-btn {
  fill: var(--white);
}




/* TABLET */

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

  .footer .container {
    padding: 0 108px;
  }
  .footer-box {
    gap: 24px;
  }
  .footer-information {
    align-items: flex-start;
    max-width: 264px;
  }
  .footer-icons {
    text-align: start;
  }
  .input-title-footer {
    text-align: start;
  }
  .input-area-footer {
    max-width: 264px;
  }
  .footer-form {
    gap: 24px;
  }
  .modal {
    padding: 72px 24px 24px;
    width: 408px;
    min-height: 584px;
  }
}

/* DESKTOP */

@media screen and (min-width: 1158px) {
  .footer {
    padding: 100px 0;
  }
  .footer .container {
    padding: 0;
    gap: 80px;
  }
  .footer-box {
    display: flex;
    gap: 120px;
  }
  .input-area-footer {
    opacity: inherit;
  }
  }

/* MODAL */

.modal-overlay {
  background-color: rgba(46, 47, 66, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12),
    0 2px 1px 0 rgba(0, 0, 0, 0.2);
  background-color: var(--dairy);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  width: 288px;
  min-height: 623px;
  max-height: 80%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 16px 24px 16px;
   z-index: 2100;
}

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

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

.icons-close {
  fill: #2e2f42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover .icons-close,
.close-btn:focus .icons-close {
  fill: var(--white);
}

.modal-title {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--navy-blue);
  margin-bottom: 16px;
}

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

.form-input:hover,
.form-input:focus-within {
  border-color: var(--iris);
}

.input-wrapper:hover .form-icon,
.input-wrapper:focus-within .form-icon {
  fill: var(--iris);
}

.form-field {
  margin-bottom: 8px;
}

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

.input-wrapper {
  position: relative;
}

.form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-textarea {
  margin-bottom: 16px;
}

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

.form-textarea::placeholder {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
}

.form-textarea:hover,
.form-textarea:focus-within {
  border-color: var(--iris);
}

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

.checkbox-container {
  margin-bottom: 24px;
}

.checkbox-title {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--light-slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-icon {
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  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);
  align-items: center;
  justify-content: center;
  fill: transparent;
}

.visually-hidden:checked + .checkbox-title > .checkbox-icon {
  background-color: var(--ocean);
  fill: var(--cloud);
  border: none;
}

.privacy-policy {
  color: var(--iris);
  text-decoration: underline;
}

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

.send-btn:hover,
.send-btn:focus {
  background-color: var(--ocean);
}


/* === FIX: TEAM PROFILE CARD LAYOUT (back to nice two-column) === */

/* Центруємо секцію і даємо адекватну ширину на десктопі */
.team-section .container {
  max-width: 1060px;   /* було вузько — робимо приємну ширину */
  margin: 0 auto;
}

/* Карта профілю */
.team-profile{
  display: grid;
  grid-template-columns: 1fr;       /* мобілка — одна колонка */
  gap: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 1px rgba(46,47,66,.08), 0 1px 1px rgba(46,47,66,.16), 0 1px 6px rgba(46,47,66,.08);
  padding: 24px;
}

/* Фото без спотворень, зі скругленням */
.team-photo{ border-radius: 10px; overflow: hidden; }
.team-photo img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}

/* Права колонка з текстом */
.team-info{ display:flex; flex-direction:column; gap:12px; }
.team-name{ font-weight:700; font-size:26px; color:var(--navy-blue); }
.team-role{ font-weight:500; color:var(--slate); }
.team-intro{ font-size:16px; line-height:1.5; color:var(--ink); }
.team-text{ font-size:15px; line-height:1.5; color:var(--slate); }
.team-text.highlight{ font-size:16px; color:var(--iris); font-weight:600; }

/* Список послуг — звичайні буліти та відступи */
.team-services{
  list-style: disc;
  padding-left: 20px;
  font-size:15px;
  color:var(--slate);
}

/* Соцмережі — повертаємо охайний вигляд */
.social-icons-list{
  display:flex;
  gap:16px;
  margin-top:8px;
}
.social-icon-item .social-icon-item-link{
  border-radius:50%;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background-color .25s ease;
}
.icons{ fill: var(--cloud); }

/* Instagram / Facebook окремі кольори */
/* Instagram з градієнтом */
.social-icon-item-link[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, 
              #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Hover — легке збільшення яскравості */
.social-icon-item-link[aria-label="Instagram"]:hover,
.social-icon-item-link[aria-label="Instagram"]:focus {
  filter: brightness(1.1);
}

/* сам значок інсти всередині — білий */
.social-icon-item-link[aria-label="Instagram"] .icons {
  fill: #fff;
}
.social-icon-item-link[aria-label="Facebook"]{ background-color:#1877F2; }
.social-icon-item-link[aria-label="Facebook"]:hover,
.social-icon-item-link[aria-label="Facebook"]:focus{ background-color:#0D5FDB; }

/* === Tablet/desktop: 2 колонки, фото зліва, текст справа === */
@media (min-width:768px){
  .team-profile{
    grid-template-columns: 1fr 1.25fr;
    gap: 28px;
    padding: 28px;
  }
  /* щоб фото виглядало як “портрет” і не було занадто низьким */
  .team-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
}

