* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #5a9fb8;
  --primary-light: #7bb3c8;
  --primary-dark: #4a8ba3;
  --secondary-color: #8fc4d4;
  --accent-color: #a8d5e2;
  --success-color: #6b9e7a;
  --error-color: #c97a7a;
  --text-color: #2c3e50;
  --text-light: #5a6c7d;
  --text-lighter: #7a8a9a;
  --bg-color: #f5f9fb;
  --bg-lighter: #fafcfd;
  --white: #ffffff;
  --border-color: #d4e4ed;
  --shadow: 0 2px 12px rgba(90, 159, 184, 0.08);
  --shadow-lg: 0 4px 24px rgba(90, 159, 184, 0.12);
  
  --wave-1: rgba(175, 213, 226, 0.4);
  --wave-2: rgba(143, 196, 212, 0.35);
  --wave-3: rgba(122, 179, 198, 0.3);
  --wave-4: rgba(90, 159, 184, 0.25);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(180deg, #e8f4f8 0%, #d8ecf3 50%, #c8e4ed 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
}

.water-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout style paint;
  transform: translate3d(0, 0, 0);
  isolation: isolate;
}

.animations-disabled .water-background {
  display: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  color: var(--wave-1);
  transform: translate3d(-50%, 0, 0);
  display: block;
  contain: layout style paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: auto;
}

:not(.animations-disabled) .wave-1,
:not(.animations-disabled) .wave-2,
:not(.animations-disabled) .wave-3 {
  will-change: transform;
}

.wave-1 {
  color: var(--wave-1);
  opacity: 0.6;
  animation: wave-move-1 50s linear infinite;
  bottom: 0;
}

.wave-2 {
  color: var(--wave-2);
  opacity: 0.5;
  animation: wave-move-2 60s linear infinite;
  animation-delay: -15s;
  bottom: 10%;
}

.wave-3 {
  color: var(--wave-3);
  opacity: 0.45;
  animation: wave-move-3 70s linear infinite;
  animation-delay: -30s;
  bottom: 20%;
  clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0 100%);
}

@keyframes wave-move-1 {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0%, 0, 0);
  }
}

@keyframes wave-move-2 {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0%, 0, 0);
  }
}

@keyframes wave-move-3 {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave {
    animation: none !important;
    transform: translate3d(-50%, 0, 0) !important;
    will-change: auto !important;
    display: none !important;
  }
  
  .water-background {
    display: none !important;
  }
}

.animations-disabled .wave {
  animation: none !important;
  transform: translate3d(-50%, 0, 0) !important;
  will-change: auto !important;
  display: none !important;
}

.animation-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-color);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  transform: translate3d(0, 0, 0);
}

.animation-toggle:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-lg);
  transform: translate3d(0, -2px, 0);
  will-change: transform;
}

.animation-toggle:not(:hover) {
  will-change: auto;
}

.animation-toggle.active .toggle-icon {
  animation: wave-icon 2s ease-in-out infinite;
}

@keyframes wave-icon {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.animations-disabled .animation-toggle.active .toggle-icon {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .animation-toggle.active .toggle-icon {
    animation: none;
  }
}

.toggle-icon {
  font-size: 1.2rem;
  display: inline-block;
}

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

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

header {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 228, 237, 0.5);
  margin-bottom: 0;
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 1;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  max-width: 325px;
  max-height: 325px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-logo-left {
  order: 1;
}

.header-title-wrapper {
  flex: 0 1 auto;
  text-align: center;
  order: 2;
}

.header-logo-right {
  order: 3;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--primary-dark);
  text-shadow: 0 2px 8px rgba(90, 159, 184, 0.1);
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  font-weight: 400;
}

main {
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  flex: 1;
}

main.documents-page {
  display: block;
  max-width: 1200px;
}

.column-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

section {
  margin-bottom: 0;
}

.description {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 228, 237, 0.5);
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.description h2 {
  color: var(--primary-dark);
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

.description p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 8px;
}

.features li {
  padding: 18px 20px;
  background: rgba(90, 159, 184, 0.08);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-color);
  border-left: 3px solid var(--primary-color);
}

.documents-btn {
  display: block;
  width: 100%;
  padding: 18px;
  margin-top: 32px;
  margin-bottom: 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--success-color) 0%, #7db88d 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  line-height: 1.5;
}

.documents-btn:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #5a8a68 0%, var(--success-color) 100%);
}

.documents-btn:active {
  transform: translate3d(0, 0, 0);
}

.order-form-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 228, 237, 0.5);
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.order-form-section h2 {
  color: var(--primary-dark);
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

.order-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(90, 159, 184, 0.1);
  background: rgba(255, 255, 255, 1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .file-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  cursor: pointer;
}

.form-group .file-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(90, 159, 184, 0.1);
  background: rgba(255, 255, 255, 1);
}

.form-group .file-input:hover {
  border-color: var(--primary-light);
}

.file-input-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.phone-input-wrapper {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  overflow: hidden;
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(90, 159, 184, 0.1);
  background: rgba(255, 255, 255, 1);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 14px 12px 14px 18px;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  user-select: none;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  line-height: 1.5;
}

.phone-input-wrapper input {
  border: none;
  padding: 14px 18px;
  flex: 1;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-color);
}

.phone-input-wrapper input:focus {
  outline: none;
  box-shadow: none;
}

.phone-input-wrapper input::placeholder {
  color: var(--text-lighter);
}

.delivery-options {
  margin-top: 24px;
  padding: 24px;
  background: rgba(90, 159, 184, 0.05);
  border-radius: 12px;
  border: 2px dashed var(--border-color);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  margin-top: 8px;
  line-height: 1.5;
}

.submit-btn:hover:not(:disabled) {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.submit-btn:active:not(:disabled) {
  transform: translate3d(0, 0, 0);
}

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

.section-btn {
  display: block;
  width: 100%;
  padding: 18px;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.section-btn:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.section-btn:active {
  transform: translate3d(0, 0, 0);
}

.result-message {
  margin-top: 30px;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.result-message.success {
  background: rgba(107, 158, 122, 0.1);
  border: 2px solid var(--success-color);
  color: #2d5a3d;
}

.result-message.error {
  background: rgba(201, 122, 122, 0.1);
  border: 2px solid var(--error-color);
  color: #8b3a3a;
}

.result-message h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.result-message h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.payment-info {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.payment-text {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  color: var(--text-color);
}

.payment-text br {
  line-height: 1.8;
}

footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid rgba(212, 228, 237, 0.5);
  margin-top: auto;
  transform: translate3d(0, 0, 0);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  main {
    gap: 40px;
    padding: 50px 30px;
  }
}

@media (max-width: 968px) {
  main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
      "description"
      "order-form"
      "button-right"
      "button-left";
    gap: 40px;
    padding: 40px 30px;
  }

  header {
    padding: 35px 30px;
  }

  .header-content {
    gap: 20px;
  }

  .header-logo {
    max-width: 100px;
    max-height: 100px;
  }

  header h1 {
    font-size: 2.5rem;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .description,
  .order-form-section {
    padding: 30px;
  }

  .column-wrapper:first-child {
    display: contents;
  }

  .column-wrapper:first-child .description {
    grid-area: description;
  }

  .column-wrapper:first-child .section-btn-left {
    grid-area: button-left;
  }

  .column-wrapper:last-child {
    display: contents;
  }

  .column-wrapper:last-child .order-form-section {
    grid-area: order-form;
  }

  .column-wrapper:last-child .section-btn-right {
    grid-area: button-right;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .animation-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .toggle-text {
    display: none;
  }

  header {
    padding: 30px 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .header-logo {
    max-width: 240px;
    max-height: 240px;
  }

  header h1 {
    font-size: 2rem;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  main {
    padding: 30px 20px;
    gap: 30px;
  }

  .description,
  .order-form-section {
    padding: 24px;
  }

  .description h2,
  .order-form-section h2 {
    font-size: 1.6rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 24px 20px;
  }
}

@media (max-width: 400px) {
  header {
    padding: 25px 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .header-logo {
    max-width: 240px;
    max-height: 240px;
  }

  header h1 {
    font-size: 1.75rem;
    margin-bottom: 6px;
  }

  .description,
  .order-form-section {
    padding: 20px;
  }
}

.documents-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 228, 237, 0.5);
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.documents-section h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 600;
}

.documents-intro {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.documents-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 968px) {
  .documents-list {
    grid-template-columns: 1fr 1fr;
  }
}

.document-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(90, 159, 184, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(212, 228, 237, 0.5);
  transition: all 0.3s ease;
}

.document-item:hover {
  background: rgba(90, 159, 184, 0.1);
  border-color: var(--primary-color);
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow);
}

.document-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-info h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 600;
}

.document-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.document-download {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  white-space: nowrap;
  flex-shrink: 0;
}

.document-download:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.document-download:active {
  transform: translate3d(0, 0, 0);
}

.back-link {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid rgba(212, 228, 237, 0.5);
}

@media (max-width: 968px) {
  .documents-section {
    padding: 30px;
  }

  .document-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .document-icon {
    width: auto;
  }

  .document-download {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .documents-section {
    padding: 24px;
  }

  .documents-section h2 {
    font-size: 1.6rem;
  }

  .document-item {
    padding: 20px;
  }

  .document-info h3 {
    font-size: 1.1rem;
  }
}

.image-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active .image-modal-overlay {
  opacity: 1;
}

.image-modal-content {
  position: relative;
  z-index: 10001;
  max-width: 95%;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active .image-modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-image {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: var(--white);
  padding: 8px;
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10002;
  box-shadow: var(--shadow);
}

.image-modal-close:hover {
  background: var(--white);
  transform: rotate(90deg);
  box-shadow: var(--shadow-lg);
}

.image-modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

@media (max-width: 768px) {
  .image-modal-content {
    max-width: 98%;
    max-height: 98vh;
  }

  .modal-image {
    max-height: 98vh;
    padding: 4px;
  }

  .image-modal-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
