/* styles\contact-section.css */

.contact-section {
  padding: clamp(4rem, 8vh, 6rem) 0;
  background-color: transparent;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.contact-section__content {
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.contact-section__header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
}

.contact-section.animate-in .contact-section__header {
  opacity: 1;
  transform: translateY(0);
}

.contact-section__title {
  font-family: var(--font-family-accent);
  font-size: clamp(1.5rem, 4vw, 2.625rem);
  font-weight: 600;
  background: linear-gradient(90deg, #82A7DA 0%, #7EE2E2 50%, #FFFFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
}

.contact-section__subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  flex: 1;
}

.contact-section__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.contact-section__form {
  width: 608px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16.4px);
  border: 1.5px solid rgba(88, 141, 214, 0.3);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  box-sizing: border-box;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-30px) scale(0.95);
  transition: opacity 0.5s ease-out 0.4s, transform 0.5s ease-out 0.4s;
}

.contact-section.animate-in .contact-section__form {
  opacity: 1;
  transform: translateX(0) scale(1);
}

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

.contact-section__field input,
.contact-section__field textarea {
  width: 100%;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: #FFFFFF;
  font-family: var(--font-family-base);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-section__field textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  flex: 1;
}

.contact-section__field input::placeholder,
.contact-section__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-family-base);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
}

.contact-section__field input:focus,
.contact-section__field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(4, 219, 214, 0.5);
  box-shadow: 0 0 0 2px rgba(4, 219, 214, 0.1);
}

.contact-section__submit {
  width: 100%;
  padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
  border: none;
  border-radius: 30px;
  color: #060c1a;
  font-family: var(--font-family-base);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

@media (any-hover: hover) {
  .contact-section__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 219, 214, 0.3);
  }
}

.contact-section__notice {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
  font-family: var(--font-family-base);
}

.contact-section__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(30px) scale(0.95);
  transition: opacity 0.5s ease-out 0.6s, transform 0.5s ease-out 0.6s;
}

.contact-section.animate-in .contact-section__image-container {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.contact-section__image {
  width: 442px;
  height: 503px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.05);
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .contact-section__image:hover {
    transform: scale(1.02);
    filter: brightness(1.15) contrast(1.1);
  }
}

/* Большие экраны */
@media (width >= 1400px) {
  .contact-section__row {
    max-width: 1400px;
  }
}

/* Уменьшение для больших планшетов */
@media (width <= 1300px) {
  .contact-section__row {
    max-width: 1100px;
  }
}

/* Большие планшеты */
@media (width <= 1200px) {
  .contact-section__row {
    max-width: 1000px;
  }
  
  .contact-section__form {
    width: clamp(480px, 50vw, 608px);
  }
  
  .contact-section__image {
    width: clamp(350px, 35vw, 442px);
    height: clamp(398px, 40vh, 503px);
  }
}

/* Планшеты */
@media (width <= 1024px) {
  .contact-section__row {
    max-width: 900px;
  }
  
  .contact-section__form {
    width: clamp(420px, 55vw, 550px);
  }
  
  .contact-section__image {
    width: clamp(300px, 40vw, 380px);
    height: clamp(342px, 45vh, 432px);
  }
}

/* Переходный планшет */
@media (width <= 900px) {
  .contact-section__row {
    max-width: 800px;
  }
  
  .contact-section__form {
    width: clamp(380px, 60vw, 500px);
  }
  
  .contact-section__image {
    width: clamp(280px, 45vw, 350px);
    height: clamp(318px, 50vh, 398px);
  }
}

/* Средние планшеты */
@media (width <= 768px) {
  .contact-section {
    padding: clamp(3rem, 6vh, 4rem) 0;
  }
  
  .contact-section__content {
    padding: 0 clamp(1rem, 4vw, 2rem);
  }
  
  .contact-section__header {
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    align-items: center;
  }
  
  .contact-section__title {
    white-space: normal;
  }
  
  .contact-section__subtitle br {
    display: none;
  }
  
  .contact-section__row {
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
    justify-content: center;
    max-width: none;
  }
  
  .contact-section__form {
    width: 100%;
    max-width: clamp(350px, 85vw, 500px);
    padding: clamp(1.25rem, 3vw, 2rem);
  }
  
  .contact-section__image {
    display: none;
  }
}

/* Маленькие планшеты */
@media (width <= 600px) {
  .contact-section__form {
    max-width: clamp(320px, 90vw, 450px);
    padding: clamp(1rem, 2.5vw, 1.75rem);
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }
  
  .contact-section__field input,
  .contact-section__field textarea {
    padding: clamp(10px, 2vw, 14px) clamp(18px, 4vw, 24px);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
  }
  
  .contact-section__image {
    width: clamp(220px, 65vw, 320px);
  }
}

/* Мобильные устройства */
@media (width <= 480px) {
  .contact-section {
    padding: clamp(2rem, 5vh, 3rem) 0;
  }
  
  .contact-section__content {
    gap: clamp(1.5rem, 3vw, 2rem);
    padding: 0 clamp(1rem, 3vw, 1.5rem);
  }
  
  .contact-section__header {
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }
  
  .contact-section__row {
    gap: clamp(1.5rem, 4vw, 2rem);
  }
  
  .contact-section__form {
    width: 100%;
    max-width: none;
    padding: clamp(1rem, 2vw, 1.5rem);
    gap: clamp(0.625rem, 1.2vw, 0.875rem);
  }
  
  .contact-section__field input,
  .contact-section__field textarea {
    padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 20px);
    border-radius: 25px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  }
  
  .contact-section__field textarea {
    border-radius: 18px;
    min-height: clamp(70px, 15vw, 90px);
  }
  
  .contact-section__submit {
    padding: clamp(10px, 2.5vw, 14px) clamp(20px, 5vw, 28px);
    border-radius: 25px;
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  }
  
  .contact-section__notice {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
  }
  
  .contact-section__image {
    width: clamp(200px, 70vw, 280px);
    height: auto;
  }
}

/* Очень маленькие экраны */
@media (width <= 360px) {
  .contact-section__content {
    padding: 0 clamp(0.75rem, 2vw, 1rem);
  }
  
  .contact-section__form {
    padding: clamp(0.875rem, 2vw, 1.25rem);
    gap: clamp(0.5rem, 1vw, 0.75rem);
  }
  
  .contact-section__field input,
  .contact-section__field textarea {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  
  .contact-section__field textarea {
    min-height: 70px;
    border-radius: 16px;
  }
  
  .contact-section__submit {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .contact-section__notice {
    font-size: 0.7rem;
  }
  
  .contact-section__image {
    width: clamp(180px, 80vw, 220px);
  }
}

/* Супер маленькие экраны */
@media (width <= 320px) {
  .contact-section__content {
    padding: 0 0.75rem;
  }
  
  .contact-section__form {
    padding: 0.875rem;
    gap: 0.5rem;
  }
  
  .contact-section__field input,
  .contact-section__field textarea {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  
  .contact-section__field textarea {
    min-height: 65px;
  }
  
  .contact-section__submit {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  
  .contact-section__notice {
    font-size: 0.65rem;
  }
  
  .contact-section__image {
    width: clamp(160px, 85vw, 200px);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .contact-section,
  .contact-section__header,
  .contact-section__form,
  .contact-section__image-container,
  .contact-section__submit,
  .contact-section__image {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}