.contact-hero {
  background: var(--accent-color);
  color: white;
  padding: 60px 0;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  
}

.contact-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/pattern-dots.svg');
  background-size: cover;
  opacity: 0.07;
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero h1 {
  color: rgb(0, 0, 0);
  display: inline-block;
  font-size: 3.2rem;
  margin-bottom: 1rem;
  padding-bottom: 12px;
  position: relative;
}

.contact-hero h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--primary-color);
}

.contact-hero p {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.contact-info-section {
  padding: 0 0 70px 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-cards--three {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card-divider {
  width: 40px;
  height: 1px;
  background: var(--border-color);
  margin: 12px auto;
}

/* Стиль как у category-card на главной: тень, рамка, подсветка при hover */
.contact-card {
  background: var(--light-text);
  padding: 28px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(209, 224, 236, 0.8);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--primary-color-rgb), 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: none;
  box-shadow: 0 22px 45px rgba(19, 55, 94, 0.16);
  border-color: rgba(var(--primary-color-rgb), 0.4);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0, rgba(232, 244, 253, 0.9) 40%, rgba(70, 130, 180, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.contact-card-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.25s ease;
  z-index: 0;
}

.contact-card:hover .contact-card-icon {
  background-color: rgba(41, 128, 185, 0.12);
}

.contact-card:hover .contact-card-icon::before {
  transform: scale(1.08);
}

.contact-card-icon i {
  font-size: 24px;
  color: var(--primary-color);
  margin: 0;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}

.contact-card:hover .contact-card-icon i {
  color: var(--secondary-color);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--dark-text);
}

.contact-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}

.contact-card-note {
  font-size: 0.88rem;
  color: #888;
}

.contact-phone-main a {
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-phone-note {
  font-size: 0.82rem;
  color: #888;
  font-weight: 400;
}

.contact-card a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.contact-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-link i {
  font-size: 0.8rem;
  margin-left: 4px;
}

.map-form-section {
  padding: 0 0 80px 0;
}

.map-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* Одинаковая высота блоков: растягиваем по ячейке сетки */
.map-container,
.contact-form-container {
  min-height: 0;
  align-self: stretch;
  height: 100%;
}

/* Блоки карты и формы — hover как у category-card: без сдвига, тень + подсветка */
.map-container,
.contact-form-container {
  background: #fff;
  border-radius: 18px;
  box-shadow: none;
  padding: 36px;
  transition: border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(209, 224, 236, 0.8);
  position: relative;
  overflow: hidden;
}

.contact-form-container {
  box-shadow: none;
}

.map-container::before,
.contact-form-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--primary-color-rgb), 0.12), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.map-container:hover,
.contact-form-container:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(var(--primary-color-rgb), 0.4);
}

.map-container:hover::before,
.contact-form-container:hover::before {
  opacity: 1;
}

.map-container h2,
.contact-form-container h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.form-subtitle {
  color: #666;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.map-frame {
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
  margin-top: 24px;
  box-shadow: none;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.form-group {
  position: relative;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--light-text);
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 3px 8px rgba(var(--primary-color-rgb), 0.12);
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 1rem;
  color: #888;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  padding: 0 5px;
  background: white;
  color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  padding: 12px;
  background-color: #f9fafd;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.form-privacy:hover {
  background-color: #f0f5ff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-privacy input {
  margin-top: 5px;
}

.form-privacy label {
  font-size: 0.9rem;
  color: #666;
}

.form-privacy a {
  color: var(--primary-color);
}

.form-privacy.error {
  color: #e74c3c;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.submit-btn:hover::after {
  left: 100%;
}

.submit-btn i {
  margin-right: 8px;
  color: white;
}

.social-section {
  padding: 70px 0;
  background-color: var(--accent-color);
  text-align: center;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.08);
}

.social-section h2 {
  margin-bottom: 40px;
  font-size: 1.8rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.social-icon i {
  font-size: 24px;
  color: var(--primary-color);
  margin: 0;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.social-icon:hover i {
  color: white;
}

@media (max-width: 1024px) {
  .contact-hero {
    padding: 60px 0;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .map-form-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-frame {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 50px 0;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .contact-cards,
  .contact-cards--three {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .map-container,
  .contact-form-container {
    padding: 24px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .social-icon i {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .contact-hero {
    padding: 40px 0;
  }

  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-cards,
  .contact-cards--three {
    grid-template-columns: 1fr;
  }

  .map-frame {
    height: 300px;
  }

  .map-container h2,
  .contact-form-container h2 {
    font-size: 1.5rem;
  }

  .submit-btn {
    width: 100%;
  }

  .social-icons {
    gap: 16px;
  }

  .social-section h2 {
    font-size: 1.5rem;
  }
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.1);
}

.form-group.error label {
  color: #e74c3c;
  font-weight: 500;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 8px;
  padding: 8px 12px;
  background-color: rgba(231, 76, 60, 0.08);
  border-radius: 5px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.1);
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success i {
  font-size: 60px;
  color: #27ae60;
  margin-bottom: 20px;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.form-success p {
  font-size: 1.1rem;
  color: #666;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-card,
.map-container,
.contact-form-container,
.social-section {
  opacity: 0;
}

.contact-card.animate,
.map-container.animate,
.contact-form-container.animate,
.social-section.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.contact-card:nth-child(1) {
  animation-delay: 0.2s;
}

.contact-card:nth-child(2) {
  animation-delay: 0.4s;
}

.contact-card:nth-child(3) {
  animation-delay: 0.6s;
}

.contact-card {
  border-top: 4px solid transparent;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-top-color: var(--primary-color);
}

.contact-success-message {
  position: relative;
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 30px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.4s ease-out;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-success-message:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.success-icon {
  font-size: 60px;
  color: #4caf50;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 5px 10px rgba(76, 175, 80, 0.2);
}

.contact-success-message h3 {
  color: #2e7d32;
  margin-bottom: 15px;
  font-size: 24px;
  text-align: center;
  font-weight: 700;
}

.contact-success-message p {
  color: #1b5e20;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}

.close-message {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(76, 175, 80, 0.1);
  border: none;
  color: #4caf50;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(76, 175, 80, 0.2);
}

.close-message:hover {
  color: var(--light-text);
  background-color: #4caf50;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contact-map {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-grow: 1;
  height: 100% !important;
}

/* ===== Contacts Page Redesign ===== */
.contacts-page {
  background: var(--accent-color);
}

.contacts-page-main {
  position: relative;
  overflow: hidden;
  background: var(--accent-color);
}

.contacts-page-main > section {
  position: relative;
  z-index: 1;
}

.contacts-page .contacts-page-sea {
  position: absolute;
  inset: 0;
  display: none !important;
  pointer-events: none;
  z-index: 0;
}

.contacts-page .contacts-page-sea i {
  position: absolute;
  line-height: 1;
  pointer-events: none;
  color: rgba(var(--primary-color-rgb), 0.07);
}

.contacts-page .contact-main-sea--anchor-lg {
  font-size: 182px;
  top: 3%;
  right: 5%;
  transform: rotate(-10deg);
  color: rgba(var(--primary-color-rgb), 0.05);
}

.contacts-page .contact-main-sea--binoculars {
  font-size: 44px;
  top: 8%;
  left: 4%;
  transform: rotate(-10deg);
  color: rgba(var(--primary-color-rgb), 0.09);
}

.contacts-page .contact-main-sea--lifebuoy-top {
  font-size: 52px;
  top: 14%;
  left: 28%;
  transform: rotate(8deg);
  color: rgba(var(--primary-color-rgb), 0.08);
}

.contacts-page .contact-main-sea--compass {
  font-size: 62px;
  top: 24%;
  left: 11%;
  transform: rotate(14deg);
  color: rgba(var(--primary-color-rgb), 0.08);
}

.contacts-page .contact-main-sea--wave-top {
  font-size: 72px;
  top: 31%;
  right: 8%;
  transform: rotate(-5deg);
  color: rgba(var(--primary-color-rgb), 0.06);
}

.contacts-page .contact-main-sea--fish {
  font-size: 54px;
  top: 42%;
  left: 22%;
  transform: scaleX(-1) rotate(-6deg);
  color: rgba(var(--primary-color-rgb), 0.08);
}

.contacts-page .contact-main-sea--lifebuoy {
  font-size: 58px;
  top: 55%;
  left: 8%;
  transform: rotate(12deg);
  color: rgba(var(--primary-color-rgb), 0.08);
}

.contacts-page .contact-main-sea--lighthouse {
  font-size: 118px;
  top: 64%;
  right: 7%;
  transform: rotate(5deg);
  color: rgba(var(--primary-color-rgb), 0.05);
}

.contacts-page .contact-main-sea--wave-mid {
  font-size: 78px;
  top: 74%;
  left: 34%;
  transform: rotate(-4deg);
  color: rgba(var(--primary-color-rgb), 0.05);
}

.contacts-page .contact-main-sea--binoculars-low {
  font-size: 40px;
  top: 70%;
  left: 6%;
  transform: rotate(10deg);
  color: rgba(var(--primary-color-rgb), 0.08);
}

.contacts-page .contact-main-sea--anchor-sm {
  font-size: 68px;
  top: 86%;
  left: 14%;
  transform: rotate(18deg);
  color: rgba(var(--primary-color-rgb), 0.05);
}

.contacts-page .contact-main-sea--ship-low {
  font-size: 48px;
  top: 92%;
  right: 24%;
  transform: rotate(6deg);
  color: rgba(var(--primary-color-rgb), 0.05);
}

.contacts-page .contact-main-sea--compass-low {
  font-size: 58px;
  top: 85%;
  right: 9%;
  transform: rotate(-12deg);
  color: rgba(var(--primary-color-rgb), 0.07);
}

.contacts-page .contact-hero {
  background: transparent;
  color: var(--dark-text);
  padding: 24px 0 0;
  margin-bottom: 0;
  text-align: left;
  position: relative;
  overflow: visible;
}

.contacts-page .contact-hero-decor {
  position: absolute;
  inset: 0;
  display: none !important;
  pointer-events: none;
  z-index: 0;
}

.contacts-page .contact-hero-decor i {
  position: absolute;
  line-height: 1;
  pointer-events: none;
  color: rgba(var(--primary-color-rgb), 0.1);
}

.contacts-page .contact-sea--anchor-lg {
  font-size: 180px;
  top: -30px;
  right: 4%;
  transform: rotate(-10deg);
  color: rgba(var(--primary-color-rgb), 0.07);
}

.contacts-page .contact-sea--lighthouse {
  font-size: 130px;
  bottom: -20px;
  left: 2%;
  transform: rotate(5deg);
  color: rgba(var(--primary-color-rgb), 0.08);
}

.contacts-page .contact-sea--ship {
  font-size: 70px;
  top: 14px;
  right: 32%;
  transform: rotate(4deg);
  color: rgba(var(--primary-color-rgb), 0.07);
}

.contacts-page .contact-sea--compass {
  font-size: 60px;
  top: 20px;
  left: 8%;
  transform: rotate(-12deg);
  color: rgba(var(--primary-color-rgb), 0.07);
}

.contacts-page .contact-sea--wave {
  font-size: 90px;
  bottom: -5px;
  left: 32%;
  color: rgba(var(--primary-color-rgb), 0.06);
}

.contacts-page .contact-sea--anchor-sm {
  font-size: 70px;
  bottom: 10px;
  right: 22%;
  transform: rotate(16deg);
  color: rgba(var(--primary-color-rgb), 0.06);
}

.contacts-page .contact-sea--fish {
  font-size: 50px;
  top: 38%;
  left: 38%;
  transform: scaleX(-1) rotate(-6deg);
  color: rgba(var(--primary-color-rgb), 0.07);
}

.contacts-page .contact-hero .container {
  position: relative;
  z-index: 2;
}

.contacts-page .contact-hero-inner {
  display: block;
  max-width: none;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 12px;
  background: var(--light-text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contacts-page .contact-hero-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contacts-page .contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.2rem;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 6px;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contacts-page .contact-hero h1 {
  margin: 0 0 1rem;
  color: var(--dark-text);
  font-size: clamp(1.9rem, 3.7vw, 2.6rem);
  line-height: 1.2;
}

.contacts-page .contact-hero p {
  margin: 0 auto;
  max-width: 580px;
  color: #5b6773;
  font-size: 1.05rem;
}

.contacts-page .contact-hero-meta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: #4f5d6b;
  font-size: 0.92rem;
  font-weight: 600;
}

.contacts-page .contact-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contacts-page .contact-hero-meta i {
  color: var(--primary-color);
  margin-right: 0;
}

.contacts-page .contact-hero-image {
  display: none;
}

.contacts-page .contact-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.contacts-page .contact-info-section {
  padding: 1.5rem 0 3rem;
}

.contacts-page .contact-cards {
  gap: 1.5rem;
}

.contacts-page .contact-cards--three {
  grid-template-columns: repeat(3, minmax(260px, 360px));
  justify-content: center;
}

.contacts-page .contact-card {
  text-align: left;
  padding: 1.7rem 1.5rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.14);
  box-shadow: var(--card-shadow);
}

.contacts-page .contact-card-icon {
  margin: 0 0 1rem;
  width: 52px;
  height: 52px;
  background: rgba(var(--accent-color-rgb), 0.9);
}

.contacts-page .contact-card h3 {
  margin-bottom: 0.75rem;
}

.contacts-page .contact-card p {
  color: #5c6672;
}

.contacts-page .map-form-section {
  padding: 0 0 3.5rem;
}

.contacts-page .map-form-container {
  gap: 1.5rem;
}

.contacts-page .map-container,
.contacts-page .contact-form-container {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.14);
  box-shadow: none;
  padding: 1.75rem;
}

.contacts-page .map-container h2,
.contacts-page .contact-form-container h2 {
  font-size: 1.6rem;
}

.contacts-page .form-subtitle {
  margin-bottom: 1.1rem;
}

.contacts-page .form-group input,
.contacts-page .form-group textarea {
  border-radius: 10px;
  background: #fff;
}

.contacts-page .form-privacy {
  background: rgba(var(--accent-color-rgb), 0.55);
  box-shadow: none;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.contacts-page .form-privacy:hover {
  background: rgba(var(--accent-color-rgb), 0.85);
  box-shadow: none;
}

.contacts-page .social-section {
  padding: 3.5rem 0 64px;
  background: transparent;
  box-shadow: none;
}

.contacts-page .social-section .container {
  background: #fff;
  border: 2px solid rgba(var(--primary-color-rgb), 0.14);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 2.2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contacts-page .social-section .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--primary-color-rgb), 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.contacts-page .social-section .container > * {
  position: relative;
  z-index: 1;
}

.contacts-page .social-section .container:hover {
  border-color: rgba(var(--primary-color-rgb), 0.22);
}

.contacts-page .social-section .container:hover::before {
  opacity: 1;
}

.contacts-page .social-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.7rem;
}

.contacts-page .social-icon {
  width: 54px;
  height: 54px;
  box-shadow: 0 10px 24px rgba(var(--secondary-color-rgb), 0.15);
}

@media (max-width: 992px) {
  .contacts-page .contacts-page-sea {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(7, minmax(82px, 1fr));
    align-content: space-between;
    padding: 24px clamp(12px, 4vw, 28px) 34px;
  }

  .contacts-page .contacts-page-sea i {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
  }

  .contacts-page .contact-main-sea--binoculars {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    align-self: start;
    font-size: clamp(28px, 5vw, 36px);
  }

  .contacts-page .contact-main-sea--anchor-lg {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    align-self: start;
    font-size: clamp(72px, 14vw, 96px);
  }

  .contacts-page .contact-main-sea--lifebuoy-top {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    font-size: clamp(32px, 6vw, 42px);
  }

  .contacts-page .contact-main-sea--wave-top {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    font-size: clamp(42px, 8vw, 56px);
  }

  .contacts-page .contact-main-sea--compass {
    grid-row: 3;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    font-size: clamp(36px, 7vw, 50px);
  }

  .contacts-page .contact-main-sea--fish {
    grid-row: 3;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    font-size: clamp(34px, 6vw, 46px);
  }

  .contacts-page .contact-main-sea--lifebuoy {
    grid-row: 4;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    font-size: clamp(38px, 7vw, 50px);
  }

  .contacts-page .contact-main-sea--lighthouse {
    grid-row: 4;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    font-size: clamp(48px, 9vw, 64px);
  }

  .contacts-page .contact-main-sea--wave-mid {
    grid-row: 5;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    font-size: clamp(44px, 8vw, 58px);
  }

  .contacts-page .contact-main-sea--binoculars-low {
    grid-row: 5;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    font-size: clamp(26px, 5vw, 34px);
  }

  .contacts-page .contact-main-sea--anchor-sm {
    grid-row: 6;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    font-size: clamp(42px, 8vw, 56px);
  }

  .contacts-page .contact-main-sea--compass-low {
    grid-row: 6;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    font-size: clamp(34px, 7vw, 48px);
  }

  .contacts-page .contact-main-sea--ship-low {
    grid-row: 7;
    grid-column: 1 / span 2;
    justify-self: center;
    align-self: end;
    font-size: clamp(30px, 6vw, 42px);
  }

  .contacts-page .contact-hero {
    padding: 20px 0 0;
  }

  .contacts-page .contact-hero-inner {
    padding: 2rem 1.5rem;
    border-radius: 10px;
  }

  .contacts-page .contact-hero-content {
    padding: 0;
  }

  .contacts-page .contact-hero-image {
    flex: none;
    width: 100%;
    max-height: 300px;
  }

  .contacts-page .map-form-container {
    grid-template-columns: 1fr;
  }

  .contacts-page .contact-cards--three {
    grid-template-columns: repeat(2, minmax(260px, 360px));
  }
}

@media (max-width: 768px) {
  .contacts-page .contact-hero {
    min-height: 0;
  }

  .contacts-page .contact-hero-decor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(92px, 1fr));
    align-content: space-between;
    padding: 18px clamp(12px, 5vw, 24px) 24px;
    z-index: 1;
    min-height: 100%;
  }

  .contacts-page .contact-hero-decor i {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: none;
    color: rgba(var(--primary-color-rgb), 0.24);
    filter: drop-shadow(0 6px 18px rgba(var(--primary-color-rgb), 0.08));
  }

  .contacts-page .contact-hero-decor .contact-sea--anchor-lg,
  .contacts-page .contact-hero-decor .contact-sea--compass,
  .contacts-page .contact-hero-decor .contact-sea--ship,
  .contacts-page .contact-hero-decor .contact-sea--wave {
    display: block;
  }

  .contacts-page .contact-sea--anchor-lg {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    align-self: start;
    font-size: clamp(58px, 13vw, 76px);
  }

  .contacts-page .contact-sea--compass {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    align-self: start;
    font-size: clamp(32px, 7vw, 42px);
  }

  .contacts-page .contact-sea--wave {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    align-self: end;
    font-size: clamp(40px, 10vw, 56px);
  }

  .contacts-page .contact-sea--ship {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
    align-self: end;
    font-size: clamp(30px, 7vw, 40px);
  }

  .contacts-page .contacts-page-sea {
    grid-template-rows: repeat(7, minmax(72px, 1fr));
    padding: 18px clamp(10px, 4vw, 22px) 28px;
  }

  .contacts-page .contact-hero {
    padding: 18px 0 0;
  }

  .contacts-page .contact-hero-inner {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .contacts-page .contact-cards--three {
    grid-template-columns: 1fr;
  }

  .contacts-page .contact-card,
  .contacts-page .map-container,
  .contacts-page .contact-form-container {
    padding: 1.2rem;
  }

  .contacts-page .social-section .container {
    padding: 1.7rem 1rem;
  }
}

@media (max-width: 576px) {
  .contacts-page .contacts-page-sea {
    padding: 14px 10px 22px;
  }

  .contacts-page .contact-hero {
    min-height: 0;
  }

  .contacts-page .contact-main-sea--binoculars {
    font-size: 24px;
  }

  .contacts-page .contact-main-sea--anchor-lg {
    font-size: clamp(62px, 18vw, 82px);
  }

  .contacts-page .contact-main-sea--lifebuoy-top {
    font-size: 30px;
  }

  .contacts-page .contact-main-sea--compass {
    font-size: 34px;
  }

  .contacts-page .contact-main-sea--wave-top {
    font-size: 38px;
  }

  .contacts-page .contact-main-sea--fish {
    font-size: 30px;
  }

  .contacts-page .contact-main-sea--lifebuoy {
    font-size: 34px;
  }

  .contacts-page .contact-main-sea--wave-mid {
    font-size: 40px;
  }

  .contacts-page .contact-main-sea--lighthouse {
    font-size: 42px;
  }

  .contacts-page .contact-main-sea--binoculars-low {
    font-size: 24px;
  }

  .contacts-page .contact-main-sea--anchor-sm {
    font-size: 38px;
  }

  .contacts-page .contact-main-sea--ship-low {
    font-size: 28px;
  }

  .contacts-page .contact-main-sea--compass-low {
    font-size: 34px;
  }

  .contacts-page .contact-hero-decor {
    grid-template-rows: repeat(2, minmax(74px, 1fr));
    padding: 14px 10px 20px;
  }

  .contacts-page .contact-hero {
    padding: 14px 0 0;
  }

  .contacts-page .contact-hero-inner {
    padding: 1.25rem;
    border-radius: 8px;
  }

  .contacts-page .contact-info-section {
    padding: 1rem 0 2rem;
  }
}
