/* Fonts */
@font-face {
  font-family: 'Indenture English Penman';
  src: url('assets/fonts/IndentureEnglishPenman_personal_use_demo_0.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dikoe Disco';
  src: url('assets/fonts/Dikoe_disco.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Miss Katherine-Script';
  src: url('assets/fonts/Miss_Katherine-Script.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Base styles - Mobile First */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Улучшение для touch-устройств */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  /* Плавная прокрутка */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Разрешаем выделение текста в контентных блоках */
.hero-section__content,
.dear-relatives__text,
.dress-code__text,
.tips__item-text,
.location__text,
.feedback__label {
  -webkit-user-select: text;
  user-select: text;
}

/* Hero section with shared video background */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 800vh;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* Улучшение производительности на мобильных */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: scroll-position;
}

.hero-section__video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Оптимизация для мобильных устройств */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Отключение видео на очень маленьких экранах для экономии трафика */
@media (max-width: 360px) and (max-height: 640px) {
  .hero-section__video {
    display: none;
  }
  
  .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
}

/* Fallback для браузеров без поддержки видео */
@supports not (object-fit: cover) {
  .hero-section__video {
    display: none;
  }
}

/* Скрыть текст fallback видео */
.hero-section__video {
  color: transparent;
  font-size: 0;
}

.hero-section__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-section__content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15px;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  box-sizing: border-box;
}

.hero-section__content--active {
  opacity: 1;
  visibility: visible;
}

.invitation__content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.invitation__title {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 30px;
  margin: 0 0 30px 0;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

.invitation__couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  width: 100%;
  line-height: 0.8;
}

.invitation__name {
  font-family: 'Miss Katherine-Script', serif !important;
  font-weight: normal !important;
  font-size: 150px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  width: 100%;
  font-feature-settings: normal !important;
  font-variant-ligatures: none !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-numeric: normal;
}

.invitation__ampersand {
  font-family: 'Miss Katherine-Script', serif !important;
  font-weight: normal !important;
  font-size: 150px;
  margin: 5px 0 0 0;
  color: #ffffff;
  text-align: center;
  width: 100%;
  font-feature-settings: normal !important;
  font-variant-ligatures: none !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-numeric: normal;
}

.invitation__name:last-of-type {
  margin-top: 5px;
}

.invitation__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0 0 0;
  width: 100%;
  line-height: 0.8;
}

.invitation__month {
  font-family: sans-serif;
  font-weight: normal !important;
  font-size: 20px;
  margin: 20px 0;
  color: #ffffff;
  text-align: center;
  width: 100%;
  font-feature-settings: normal !important;
  font-variant-ligatures: none !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-numeric: normal;
}

.invitation__day {
  font-family: sans-serif;
  font-weight: normal !important;
  font-size: 40px;
  margin: 2px 0;
  color: #ffffff;
  text-align: center;
  width: 100%;
  font-feature-settings: normal !important;
  font-variant-ligatures: none !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-numeric: normal;
}

.invitation__year {
  font-family: sans-serif;
  font-weight: normal !important;
  font-size: 20px;
  margin: 20px 0;
  color: #ffffff;
  text-align: center;
  width: 100%;
  font-feature-settings: normal !important;
  font-variant-ligatures: none !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-numeric: normal;
}

/* Responsive - Mobile First */
/* Extra small devices (phones, 320px and up) */
@media (min-width: 320px) {
  .hero-section__content {
    padding: 12px;
    padding-top: 8vh;
  }
  
  .invitation__title {
    font-size: 18px;
  }

  .invitation__name,
  .invitation__ampersand {
    font-size: 60px;
  }

  .invitation__month,
  .invitation__year {
    font-size: 16px;
  }

  .invitation__day {
    font-size: 48px;
  }
}

/* Small devices (phones, 360px and up) */
@media (min-width: 360px) {
  .hero-section__content {
    padding: 15px;
    padding-top: 10vh;
  }
  
  .invitation__title {
    font-size: 20px;
  }

  .invitation__name,
  .invitation__ampersand {
    font-size: 70px;
  }

  .invitation__month,
  .invitation__year {
    font-size: 18px;
  }

  .invitation__day {
    font-size: 60px;
  }
}

/* Medium devices (phones, 375px and up) */
@media (min-width: 375px) {
  .invitation__title {
    font-size: 22px;
  }

  .invitation__name,
  .invitation__ampersand {
    font-size: 75px;
  }

  .invitation__month,
  .invitation__year {
    font-size: 20px;
  }

  .invitation__day {
    font-size: 65px;
  }
}

/* Large phones (390px and up) */
@media (min-width: 390px) {
  .invitation__title {
    font-size: 24px;
  }

  .invitation__name,
  .invitation__ampersand {
    font-size: 80px;
  }

  .invitation__month,
  .invitation__year {
    font-size: 22px;
  }

  .invitation__day {
    font-size: 70px;
  }
}

/* Extra large phones (430px and up) */
@media (min-width: 430px) {
  .hero-section__content {
    padding: 18px;
    padding-top: 12vh;
  }
  
  .invitation__title {
    font-size: 26px;
  }

  .invitation__name,
  .invitation__ampersand {
    font-size: 85px;
  }

  .invitation__month,
  .invitation__year {
    font-size: 24px;
  }

  .invitation__day {
    font-size: 75px;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .hero-section__content {
    padding: 20px;
    padding-top: 15vh;
  }
  
  .invitation__title {
    font-size: 30px;
  }

  .invitation__name,
  .invitation__ampersand {
    font-size: 150px;
  }

  .invitation__month,
  .invitation__year {
    font-size: 20px;
  }

  .invitation__day {
    font-size: 40px;
  }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section__content {
    padding-top: 5vh;
  }
  
  .invitation__name,
  .invitation__ampersand {
    font-size: 50px;
  }
  
  .invitation__day {
    font-size: 40px;
  }
}

.dear-relatives__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.dear-relatives__title {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 30px 0;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dear-relatives__title.dear-relatives__title--visible {
  opacity: 1;
  transform: translateY(0);
}

.dear-relatives__text {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 15px 0;
  color: #ffffff;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dear-relatives__text:last-of-type {
  margin-bottom: 0;
}

.dear-relatives__text.dear-relatives__text--visible {
  opacity: 1;
  transform: translateY(0);
}

.dear-relatives__image {
  width: 60%;
  max-width: 400px;
  margin-top: 20px;
  border-radius: 20px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dear-relatives__image.dear-relatives__image--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive - Mobile First */
/* Extra small devices (320px and up) */
@media (min-width: 320px) {
  .dear-relatives__title {
    font-size: 20px;
  }
  .dear-relatives__text {
    font-size: 14px;
  }
  .dear-relatives__image {
    width: 85%;
    border-radius: 12px;
  }
}

/* Small devices (360px and up) */
@media (min-width: 360px) {
  .dear-relatives__title {
    font-size: 22px;
  }
  .dear-relatives__text {
    font-size: 16px;
  }
  .dear-relatives__image {
    width: 80%;
  }
}

/* Medium devices (375px and up) */
@media (min-width: 375px) {
  .dear-relatives__title {
    font-size: 24px;
  }
  .dear-relatives__text {
    font-size: 17px;
  }
  .dear-relatives__image {
    width: 75%;
  }
}

/* Large phones (390px and up) */
@media (min-width: 390px) {
  .dear-relatives__text {
    font-size: 18px;
  }
  .dear-relatives__image {
    width: 70%;
  }
}

/* Extra large phones (430px and up) */
@media (min-width: 430px) {
  .dear-relatives__title {
    font-size: 26px;
  }
  .dear-relatives__text {
    font-size: 19px;
  }
  .dear-relatives__image {
    width: 65%;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .dear-relatives__title {
    font-size: 28px;
  }
  .dear-relatives__text {
    font-size: 20px;
  }
  .dear-relatives__image {
    width: 60%;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .dear-relatives__title {
    font-size: 20px;
  }
  .dear-relatives__text {
    font-size: 14px;
  }
  .dear-relatives__image {
    width: 50%;
    max-width: 300px;
  }
}

.dress-code__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.dress-code__title {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 0 0;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dress-code__title.dress-code__title--visible {
  opacity: 1;
  transform: translateY(0);
}

.dress-code__text {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 15px 0 0 0;
  color: #ffffff;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dress-code__text.dress-code__text--visible {
  opacity: 1;
  transform: translateY(0);
}

.dress-code__text:last-of-type {
  margin-bottom: 0;
}

.dress-code__image {
  width: 45%;
  max-width: 450px;
  margin-top: 15px;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dress-code__image.dress-code__image--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive - Mobile First */
/* Extra small devices (320px and up) */
@media (min-width: 320px) {
  .dress-code__title {
    font-size: 20px;
  }
  .dress-code__text {
    font-size: 14px;
  }
  .dress-code__image {
    width: 70%;
  }
}

/* Small devices (360px and up) */
@media (min-width: 360px) {
  .dress-code__title {
    font-size: 22px;
  }
  .dress-code__text {
    font-size: 16px;
  }
  .dress-code__image {
    width: 65%;
  }
}

/* Medium devices (375px and up) */
@media (min-width: 375px) {
  .dress-code__title {
    font-size: 24px;
  }
  .dress-code__text {
    font-size: 17px;
  }
  .dress-code__image {
    width: 60%;
  }
}

/* Large phones (390px and up) */
@media (min-width: 390px) {
  .dress-code__text {
    font-size: 18px;
  }
  .dress-code__image {
    width: 58%;
  }
}

/* Extra large phones (430px and up) */
@media (min-width: 430px) {
  .dress-code__title {
    font-size: 26px;
  }
  .dress-code__text {
    font-size: 19px;
  }
  .dress-code__image {
    width: 55%;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .dress-code__title {
    font-size: 28px;
  }
  .dress-code__text {
    font-size: 20px;
  }
  .dress-code__image {
    width: 45%;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .dress-code__title {
    font-size: 20px;
  }
  .dress-code__text {
    font-size: 14px;
  }
  .dress-code__image {
    width: 40%;
    max-width: 300px;
  }
}

.tips__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.tips__title {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 0 0;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tips__title.tips__title--visible {
  opacity: 1;
  transform: translateY(0);
}

.tips__intro {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 15px 0 0 0;
  color: #ffffff;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tips__intro.tips__intro--visible {
  opacity: 1;
  transform: translateY(0);
}

.tips__list {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
  box-sizing: border-box;
}

.tips__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tips__item:first-child {
  margin-top: 0;
}

.tips__item.tips__item--visible {
  opacity: 1;
  transform: translateY(0);
}

.tips__item-icon {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

.tips__item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tips__item-title {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 25px;
  margin: 0 0 10px 0;
  color: #ffffff;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tips__item-text {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  color: #ffffff;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive - Mobile First */
/* Extra small devices (320px and up) */
@media (min-width: 320px) {
  .tips__title {
    font-size: 20px;
  }
  .tips__intro {
    font-size: 14px;
  }
  .tips__item-title {
    font-size: 18px;
  }
  .tips__item-text {
    font-size: 14px;
  }
  .tips__item-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
}

/* Small devices (360px and up) */
@media (min-width: 360px) {
  .tips__title {
    font-size: 22px;
  }
  .tips__intro {
    font-size: 16px;
  }
  .tips__item-title {
    font-size: 20px;
  }
  .tips__item-text {
    font-size: 16px;
  }
  .tips__item-icon {
    width: 45px;
    height: 45px;
    margin-right: 12px;
  }
}

/* Medium devices (375px and up) */
@media (min-width: 375px) {
  .tips__title {
    font-size: 24px;
  }
  .tips__intro {
    font-size: 17px;
  }
  .tips__item-title {
    font-size: 21px;
  }
  .tips__item-text {
    font-size: 17px;
  }
  .tips__item-icon {
    width: 48px;
    height: 48px;
  }
}

/* Large phones (390px and up) */
@media (min-width: 390px) {
  .tips__intro {
    font-size: 18px;
  }
  .tips__item-title {
    font-size: 22px;
  }
  .tips__item-text {
    font-size: 18px;
  }
  .tips__item-icon {
    width: 50px;
    height: 50px;
  }
}

/* Extra large phones (430px and up) */
@media (min-width: 430px) {
  .tips__title {
    font-size: 26px;
  }
  .tips__intro {
    font-size: 19px;
  }
  .tips__item-title {
    font-size: 23px;
  }
  .tips__item-text {
    font-size: 19px;
  }
  .tips__item-icon {
    width: 55px;
    height: 55px;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .tips__title {
    font-size: 28px;
  }
  .tips__intro {
    font-size: 20px;
  }
  .tips__item-title {
    font-size: 25px;
  }
  .tips__item-text {
    font-size: 20px;
  }
  .tips__item-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .tips__title {
    font-size: 20px;
  }
  .tips__intro {
    font-size: 14px;
  }
  .tips__item-title {
    font-size: 18px;
  }
  .tips__item-text {
    font-size: 14px;
  }
  .tips__item-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
}

.location__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.location__title {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 0 0;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.location__title.location__title--visible {
  opacity: 1;
  transform: translateY(0);
}

.location__text {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 15px 0 0 0;
  color: #ffffff;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.location__text.location__text--visible {
  opacity: 1;
  transform: translateY(0);
}

.location__text:last-of-type {
  margin-bottom: 0;
}

.location__image {
  width: 60%;
  max-width: 500px;
  margin-top: 15px;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.location__image.location__image--visible {
  opacity: 1;
  transform: translateY(0);
}

.location__map {
  width: 100%;
  max-width: 500px;
  height: 400px;
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.location__map.location__map--visible {
  opacity: 1;
  transform: translateY(0);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive - Mobile First */
/* Extra small devices (320px and up) */
@media (min-width: 320px) {
  .location__title {
    font-size: 20px;
  }
  .location__text {
    font-size: 14px;
  }
  .location__image {
    width: 85%;
    border-radius: 10px;
  }
  .location__map {
    max-width: 100%;
    height: 250px;
  }
}

/* Small devices (360px and up) */
@media (min-width: 360px) {
  .location__title {
    font-size: 22px;
  }
  .location__text {
    font-size: 16px;
  }
  .location__image {
    width: 80%;
  }
  .location__map {
    height: 280px;
  }
}

/* Medium devices (375px and up) */
@media (min-width: 375px) {
  .location__title {
    font-size: 24px;
  }
  .location__text {
    font-size: 17px;
  }
  .location__image {
    width: 75%;
  }
  .location__map {
    height: 300px;
  }
}

/* Large phones (390px and up) */
@media (min-width: 390px) {
  .location__text {
    font-size: 18px;
  }
  .location__image {
    width: 72%;
  }
  .location__map {
    height: 320px;
  }
}

/* Extra large phones (430px and up) */
@media (min-width: 430px) {
  .location__title {
    font-size: 26px;
  }
  .location__text {
    font-size: 19px;
  }
  .location__image {
    width: 70%;
  }
  .location__map {
    height: 350px;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .location__title {
    font-size: 28px;
  }
  .location__text {
    font-size: 20px;
  }
  .location__image {
    width: 60%;
  }
  .location__map {
    max-width: 500px;
    height: 400px;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .location__title {
    font-size: 20px;
  }
  .location__text {
    font-size: 14px;
  }
  .location__image {
    width: 50%;
    max-width: 300px;
  }
  .location__map {
    height: 200px;
  }
}

.feedback__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.feedback__title {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 0 0;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback__title.feedback__title--visible {
  opacity: 1;
  transform: translateY(0);
}

.feedback__date {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 25px 0 0 0;
  color: #ffffff;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback__date.feedback__date--visible {
  opacity: 1;
  transform: translateY(0);
}

.feedback__form {
  width: 100%;
  max-width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback__form.feedback__form--visible {
  opacity: 1;
  transform: translateY(0);
}

.feedback__field {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 15px;
  box-sizing: border-box;
}

.feedback__field:first-child {
  margin-top: 0;
}

.feedback__label {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 10px 0;
  color: #ffffff;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.feedback__input,
.feedback__select {
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  /* Улучшение для touch-устройств */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  touch-action: manipulation;
  min-height: 44px; /* Минимальный размер для удобного нажатия */
}

.feedback__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.feedback__input:focus,
.feedback__select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 0, 0, 0.4);
}

.feedback__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.feedback__select {
  cursor: pointer;
  appearance: none;
  color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.feedback__select option {
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 12px 15px;
  border: none;
}

/* Стилизация выпадающего списка для лучшего отображения */
.feedback__select:focus option:checked {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.feedback__select option:hover,
.feedback__select option:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Улучшенная стилизация для выпадающего списка */
.feedback__select option:first-child {
  background-color: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.7);
}

.feedback__checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  user-select: text;
  -webkit-user-select: text;
}

.feedback__checkbox {
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
}

.feedback__checkbox:checked {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.feedback__checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.feedback__checkbox:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 0, 0, 0.4);
}

.feedback__checkbox-text {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  user-select: text;
  -webkit-user-select: text;
}

.feedback__field--partner {
  margin-top: 15px;
}

.feedback__submit {
  width: 100%;
  max-width: 100%;
  padding: 15px 30px;
  margin-top: 25px;
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  /* Улучшение для touch-устройств */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  touch-action: manipulation;
  min-height: 44px; /* Минимальный размер для удобного нажатия */
}

.feedback__submit:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
}

.feedback__submit:active {
  transform: scale(0.98);
}

.feedback__submit:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
}

.feedback__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback__message {
  width: 100%;
  max-width: 100%;
  margin-top: 15px;
  padding: 12px 15px;
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  border-radius: 8px;
  box-sizing: border-box;
  display: none;
}

.feedback__message--success {
  background-color: rgba(76, 175, 80, 0.3);
  color: #ffffff;
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.feedback__message--error {
  background-color: rgba(244, 67, 54, 0.3);
  color: #ffffff;
  border: 1px solid rgba(244, 67, 54, 0.5);
}

.feedback__message.feedback__message--show {
  display: block;
}

/* Responsive - Mobile First */
/* Extra small devices (320px and up) */
@media (min-width: 320px) {
  .feedback__title {
    font-size: 20px;
  }
  .feedback__date {
    font-size: 14px;
  }
  .feedback__label {
    font-size: 14px;
  }
  .feedback__input,
  .feedback__select {
    font-size: 14px;
    padding: 10px 12px;
  }
  .feedback__select {
    padding-right: 35px;
    background-position: right 12px center;
  }
  .feedback__checkbox {
    width: 18px;
    height: 18px;
    min-width: 44px;
    min-height: 44px;
  }
  .feedback__checkbox-text {
    font-size: 14px;
  }
  .feedback__submit {
    font-size: 16px;
    padding: 12px 20px;
  }
  .feedback__message {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Small devices (360px and up) */
@media (min-width: 360px) {
  .feedback__title {
    font-size: 22px;
  }
  .feedback__date {
    font-size: 16px;
  }
  .feedback__label {
    font-size: 16px;
  }
  .feedback__input,
  .feedback__select {
    font-size: 15px;
    padding: 11px 13px;
  }
  .feedback__select {
    padding-right: 38px;
    background-position: right 13px center;
  }
  .feedback__checkbox {
    width: 19px;
    height: 19px;
    min-width: 44px;
    min-height: 44px;
  }
  .feedback__checkbox-text {
    font-size: 15px;
  }
  .feedback__submit {
    font-size: 17px;
    padding: 13px 22px;
  }
  .feedback__message {
    font-size: 15px;
    padding: 11px 13px;
  }
}

/* Medium devices (375px and up) */
@media (min-width: 375px) {
  .feedback__title {
    font-size: 24px;
  }
  .feedback__date {
    font-size: 17px;
  }
  .feedback__label {
    font-size: 17px;
  }
  .feedback__input,
  .feedback__select {
    font-size: 16px;
    padding: 12px 14px;
  }
  .feedback__select {
    padding-right: 40px;
    background-position: right 14px center;
  }
  .feedback__checkbox {
    width: 20px;
    height: 20px;
    min-width: 44px;
    min-height: 44px;
  }
  .feedback__checkbox-text {
    font-size: 16px;
  }
  .feedback__submit {
    font-size: 18px;
    padding: 14px 24px;
  }
  .feedback__message {
    font-size: 16px;
    padding: 12px 14px;
  }
}

/* Large phones (390px and up) */
@media (min-width: 390px) {
  .feedback__date {
    font-size: 18px;
  }
  .feedback__label {
    font-size: 18px;
  }
  .feedback__input,
  .feedback__select {
    font-size: 16px;
  }
}

/* Extra large phones (430px and up) */
@media (min-width: 430px) {
  .feedback__title {
    font-size: 26px;
  }
  .feedback__date {
    font-size: 19px;
  }
  .feedback__label {
    font-size: 19px;
  }
  .feedback__input,
  .feedback__select {
    font-size: 17px;
    padding: 12px 15px;
  }
  .feedback__select {
    padding-right: 40px;
    background-position: right 15px center;
  }
  .feedback__checkbox {
    width: 20px;
    height: 20px;
    min-width: 44px;
    min-height: 44px;
  }
  .feedback__checkbox-text {
    font-size: 17px;
  }
  .feedback__submit {
    font-size: 19px;
    padding: 15px 28px;
  }
  .feedback__message {
    font-size: 17px;
    padding: 12px 15px;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .feedback__title {
    font-size: 28px;
  }
  .feedback__date {
    font-size: 20px;
  }
  .feedback__label {
    font-size: 20px;
  }
  .feedback__input,
  .feedback__select {
    font-size: 18px;
    padding: 12px 15px;
  }
  .feedback__select {
    padding-right: 40px;
    background-position: right 15px center;
  }
  .feedback__checkbox {
    width: 20px;
    height: 20px;
    min-width: 44px;
    min-height: 44px;
  }
  .feedback__checkbox-text {
    font-size: 18px;
  }
  .feedback__submit {
    font-size: 20px;
    padding: 15px 30px;
  }
  .feedback__message {
    font-size: 18px;
    padding: 12px 15px;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .feedback__title {
    font-size: 20px;
  }
  .feedback__date {
    font-size: 14px;
  }
  .feedback__label {
    font-size: 14px;
  }
  .feedback__input,
  .feedback__select {
    font-size: 14px;
    padding: 8px 12px;
  }
  .feedback__checkbox {
    width: 18px;
    height: 18px;
    min-width: 44px;
    min-height: 44px;
  }
  .feedback__checkbox-text {
    font-size: 14px;
  }
  .feedback__submit {
    font-size: 16px;
    padding: 10px 20px;
  }
  .feedback__message {
    font-size: 14px;
    padding: 8px 12px;
  }
}

