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

body {
  font-family: "Roboto", sans-serif;
  background-color: #fafafa;
  min-height: 100vh;
  color: #222;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: #fafafa;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo svg {
  width: 211px;
  height: 28px;
}

.menu {
  display: flex;
  gap: 32px;
  flex: 1;
  flex-wrap: wrap;
}

.menu a {
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: #0044ff;
  text-decoration: none;
}

.menu a:hover {
  opacity: 0.8;
}

.header-email {
  display: flex;
  flex-direction: column;
}

.header-email label {
  font-size: 16px;
  color: #686868;
}

.header-email a {
  font-weight: 700;
  font-size: 16px;
  color: #0044ff;
  text-decoration: none;
}

.lang-tabs {
  display: flex;
}

.lang-tab {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.lang-tab.active {
  background: #e5ecff;
  color: #0044ff;
}

.lang-tab:not(.active) {
  color: #222;
}

.btn-primary {
  background: #0044ff;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #0033cc;
}

/* Cover Section */
.cover {
  height: 768px;
  position: relative;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.cover-content {
  position: relative;
  z-index: 2;
  padding: 80px 320px;
  max-width: 1300px;
}

.cover-content h1 {
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  color: white;
  margin-bottom: 16px;
}

.cover-content p {
  font-size: 16px;
  line-height: 24px;
  color: white;
}

/* Section - СМЕЩЕНИЕ ВСЕГО КОНТЕНТА */
.section {
  padding: 56px 160px;
  scroll-margin-top: 70px;
}

/* ЗАГОЛОВКИ СЕКЦИЙ - смещаем вправо */
.section-title {
  font-weight: 800;
  font-size: 40px;
  line-height: 48px;
  color: #222;
  margin-bottom: 32px;
  padding-left: 80px; /* Смещение заголовков */
  margin-left: 0;
}

/* КОНТЕНТ ПОД ЗАГОЛОВКАМИ - смещаем вправо ТОЖЕ */
.cards-grid,
.ship-cards,
.partner-cards,
.cert-grid {
  padding-left: 80px; /* Смещение всего контента */
  margin-left: 0;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  flex-wrap: wrap;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}

/* Карточки услуг УЖЕ */
#services .cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

#services .card {
  min-width: 320px;
  max-width: 350px;
}

.card {
  flex: 1;
  min-width: 450px;
  background: white;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 159px;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 24px;
}

.card-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #222;
}

.card-text {
  font-size: 16px;
  line-height: 24px;
  color: #222;
  margin-top: 8px;
}

/* Ship Cards */
.ship-cards {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(4, 1fr);
}

.ship-card {
  flex: 1;
  max-width: 300px;
  background: white;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ship-card img {
  width: 100%;
  height: 159px;
  object-fit: cover;
  margin-bottom: 24px;
}

.ship-card h3 {
  font-weight: 440;
  font-size: 24px;
  line-height: 32px;
  color: #222;
}

.ship-card p {
  font-size: 16px;
  line-height: 12px;
  color: #222;
  margin-top: 8px;
}

/* Advantages Cards */
.advantage-card {
  flex: 1;
  min-width: 329px;
  background: white;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.advantage-card .icon {
  width: 64px;
  height: 64px;
  background: #e5ecff;
  border-radius: 8px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0044ff;
  font-size: 32px;
}

.advantage-card h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 16px;
  line-height: 24px;
  color: #222;
}

/* Partners - flex-сетка */
#partners .partner-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-left: 80px;
}

#partners .partner-card {
    flex: 1;
    min-width: 249px;
    max-width: calc(33.333% - 22px);
    height: 207px;
    background: white;
    padding: 0; /* Убираем внутренние отступы */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden; /* Чтобы изображение не выходило за границы */
}

/* Clients - grid-сетка 4x2 */
#clients .partner-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 32px;
    padding-left: 80px;
}

#clients .partner-card {
    width: 100%;
    height: 207px;
    background: white;
    padding: 0; /* Убираем внутренние отступы */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden; /* Чтобы изображение не выходило за границы */
}

/* Общие стили для логотипов - ЗАПОЛНЯЕМ ВСЮ КАРТОЧКУ */
.partner-card {
    position: relative;
}

.logo-image {
    width: 100%; /* Занимает всю ширину */
    height: 100%; /* Занимает всю высоту */
    object-fit:fill; /* Заполняет всю карточку, обрезая если нужно */
    display: none;
}

.logo-image.loaded {
    display: block;
}

/* Если нужно сохранять пропорции без обрезки, используйте:
   object-fit: contain;
   Но тогда могут появиться пустые поля */

.placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* Заголовки */
#partners .section-title,
#clients .section-title {
    padding-left: 80px;
    margin-left: 0;
}

/* Ховер-эффекты */
.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Адаптивность */
@media (max-width: 1200px) {
    #clients .partner-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #partners .partner-card {
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    #partners .partner-cards,
    #clients .partner-cards,
    #partners .section-title,
    #clients .section-title {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    #clients .partner-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #partners .partner-card {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    #partners .partner-cards,
    #clients .partner-cards,
    #partners .section-title,
    #clients .section-title {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    #clients .partner-cards {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        height: 180px;
    }
}
/* Two Column Layout - тоже смещаем */
.two-column {
  display: flex;
  gap: 48px;
  padding: 56px 160px;
  padding-left: 240px; /* 160px + 80px */
}

.two-column-left {
  flex: 1;
}

.two-column-right {
  flex: 1;
}

.two-column-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.two-column-right .placeholder {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* About Company Text */
.about-text h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 48px;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 24px;
}

/* Certificates */
.cert-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding-left: 80px;
}

.cert-tab {
    font-weight: 800;
    font-size: 40px;
    line-height: 48px;
    cursor: pointer;
}

.cert-tab.active {
    color: #222;
}

.cert-tab:not(.active) {
    color: #686868;
}

.cert-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding: 0 80px;
}

.cert-card {
    flex: 0 0 calc(25% - 24px); /* 4 карточки в ряд с учетом gap */
    min-width: 224px;
    max-width: calc(25% - 24px);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cert-card:hover {
    transform: translateY(-2px);
}

.cert-card .cert-image {
    width: 100%;
    height: 328px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    position: relative;
    overflow: hidden;
}

.cert-image-real {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: none;
}

.cert-image-real.loaded {
    display: block;
}

.cert-image-fallback {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cert-card .cert-title {
    font-size: 16px;
    line-height: 24px;
    color: #222;
    margin-bottom: 8px;
    min-height: 48px;
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-card .cert-size {
    font-size: 16px;
    line-height: 24px;
    color: #ccc;
}

/* Articles */
.articles-grid {
  grid-template-columns: repeat(4, 1fr);
}

.article-card {
  flex: 1;
  min-width: 250px;
}

.article-card .article-image {
  width: 100%;
  height: 232px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 24px;
}

.article-card h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 16px;
  line-height: 24px;
  color: #222;
}

.article-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover h3 {
  color: #0044ff;
}


#about.two-column,
#career.two-column {
  padding-left: 160px;
}

#about .two-column-left,
#career .two-column-left {
  padding-left: 80px;
}

/* Заголовок "О компании" */
#about .about-text h2 {
  padding-left: 0; 
  margin-left: 0;
}


#articles .btn-primary {
  margin-left: 80px;
  margin-top: 32px;
}


#articles .cards-grid {
  padding-left: 80px;
}

/* Заголовок "О флоте" */
#articles .section-title {
  padding-left: 80px;
}
/* Contact Form Section */
.contact-section {
  padding: 56px 320px;
  text-align: center;
}

.contact-section h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 48px;
  margin-bottom: 16px;
}

.contact-section p {
  font-size: 16px;
  line-height: 24px;
  color: #666;
  margin-bottom: 32px;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #0044ff;
  text-decoration: none;
}

.contact-link svg {
  width: 32px;
  height: 32px;
}

/* Footer */
.footer {
  background: white;
  padding: 24px 320px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex-shrink: 0;
}

.footer p {
  font-size: 14px;
  line-height: 24px;
  color: #666;
}

/* Modal Contacts */
.contacts-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.contacts-overlay.active {
  display: flex;
  opacity: 1;
}

.contacts-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.contacts-overlay.active .contacts-modal {
  transform: translateY(0);
}

.contacts-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  margin-top: 10px;
}

.contacts-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.contacts-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.contacts-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.contacts-modal-body {
  padding-left: 25px;
  padding-top: 10px;
  padding-bottom: 25px;
}

.contact-modal-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-modal-item:last-child {
  margin-bottom: 0;
}

.contact-modal-icon {
  margin-right: 15px;
  color: #555;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-img.mail-icon {
  width: 30px;
  height: 30px;
}

.contact-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contact-modal-item.phone {
  font-size: 24px;
}

.contact-modal-item.mail {
  font-size: 16px;
  font-weight: 300;
  width: 20px;
  height: 20px;
}

.contact-modal-info {
  flex-grow: 1;
}

.contact-link-modal {
  color: #0044ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-link-modal:hover {
  color: #0056b3;
}

.contact-modal-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.modal {
  background-color: #fafafa;
  border-radius: 8px;
  width: 100%;
  max-width: 544px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 32px 16px 32px;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  color: #222222;
  line-height: 40px;
}

.input-group {
  width: 100%;
  margin-bottom: 0;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.close-button svg {
  width: 32px;
  height: 32px;
}

.close-button:hover {
  opacity: 0.7;
}

.modal-content {
  padding: 0 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: scroll !important;
  flex: 1;
  min-height: 0;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.modal-content > * {
  flex-shrink: 0;
  margin-bottom: 24px;
}

.modal-content > *:last-child {
  margin-bottom: 0;
}

.intro-text {
  font-size: 16px;
  line-height: 24px;
  color: #222222;
}

.intro-text a {
  color: #0044ff;
  text-decoration: none;
}

.intro-text a:hover {
  text-decoration: underline;
}

.tabs-group {
  display: flex;
  gap: 0;
  width: 100%;
}

.tab {
  flex: 1;
  padding: 8px 16px;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #222222;
}

.tab.active {
  background-color: #e5ecff;
  color: #0044ff;
}

.tab:hover:not(.active) {
  background-color: #f5f5f5;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 16px;
  line-height: 24px;
  color: #686868;
}

.label .required {
  color: #0044ff;
}

.field {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field input {
  border: none;
  outline: none;
  font-size: 16px;
  line-height: 24px;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  color: #222222;
}

.field input::placeholder {
  color: #cccccc;
}

.field svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.fields-row {
  display: flex;
  gap: 16px;
}

.fields-row .field {
  flex: 1;
}

.hint-text {
  font-size: 12px;
  line-height: 16px;
  color: #cccccc;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-upload-button {
  background-color: #0044ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.file-upload-button:hover {
  background-color: #0033cc;
}

.file-upload-button svg {
  width: 16px;
  height: 16px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-status {
  font-size: 12px;
  line-height: 16px;
  color: #222222;
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
}

.checkbox-wrapper {
  position: relative;
  flex-shrink: 0;
}

.checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: block;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox .custom-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #0044ff;
  border-radius: 4px;
  background-color: white;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.checkbox input:focus-visible + .custom-checkbox {
  outline: 2px solid #0044ff;
  outline-offset: 2px;
}

.checkbox input:checked + .custom-checkbox {
  background-color: #ffffff;
  border-color: #0044ff;
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 68, 255, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 68, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 68, 255, 0); }
}

.checkbox .custom-checkbox::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background-color: #0044ff;
  border-radius: 2px;
  opacity: 1;
  transition: all 0.2s ease;
}

.checkbox input:not(:checked) + .custom-checkbox::after {
  opacity: 0;
  transform: scale(0.8);
}

.checkbox input:checked + .custom-checkbox::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.5;
  color: #686868;
  flex: 1;
  margin-top: 2px;
  user-select: none;
}

.checkbox-label a {
  color: #0044ff;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .checkbox-group {
    gap: 10px;
  }
  
  .checkbox {
    width: 18px;
    height: 18px;
  }
  
  .checkbox .custom-checkbox {
    width: 18px;
    height: 18px;
  }
  
  .checkbox-label {
    font-size: 13px;
  }
}

.submit-button {
  background-color: #0044ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  margin-top: 16px;
}

.submit-button:hover {
  background-color: #0033cc;
}

.submit-button:active {
  background-color: #002299;
}

.no-resume-fields {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.no-resume-fields .label {
  margin-bottom: 8px;
  display: block;
  width: 100%;
}

.no-resume-fields .field {
  margin-bottom: 16px;
  display: flex;
  width: 100%;
  margin-bottom: 16px;
}

.no-resume-fields .field:last-child {
  margin-bottom: 0;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-resume-fields[style*="display: block"] {
  animation: fadeIn 0.3s ease-in-out;
}

@media (max-width: 600px) {
  .no-resume-fields .field {
    padding: 12px;
  }
}

@media (max-width: 600px) {
  .modal {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 24px 24px 16px 24px;
  }
  
  .modal-title {
    font-size: 24px;
    line-height: 32px;
  }
  
  .modal-content {
    padding: 0 24px 24px 24px;
  }
  
  .fields-row {
    flex-direction: column;
  }
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #0044ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon img.checkmark-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.success-title {
  font-size: 32px;
  font-weight: 800;
  color: #222222;
  line-height: 40px;
  margin: 0;
}

.success-message {
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  width: 100%;
  margin: 0;
  text-align: left;
}

.success-button {
  background-color: #0044ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.success-button:hover {
  background-color: #0033cc;
}

.success-button:active {
  background-color: #002299;
}

.button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.button-text {
  font-weight: 700;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-content {
  animation: fadeInUp 0.5s ease-out;
  justify-content: flex-start;
}

.success-text {
  justify-content: flex-start;
  width: 100%;
}

@media (max-width: 600px) {
  .success-content {
    padding: 32px 24px;
    gap: 24px;
  }
  
  .success-icon {
    width: 64px;
    height: 64px;
  }
  
  .success-icon img.checkmark-icon {
    width: 32px;
    height: 32px;
  }
  
  .success-title {
    font-size: 24px;
    line-height: 32px;
  }
  
  .success-message {
    font-size: 14px;
    line-height: 20px;
  }
  
  .success-button {
    padding: 14px 24px;
    font-size: 14px;
  }
}


/* Responsive */
@media (max-width: 1600px) {
  .section,
  .two-column,
  .contact-section,
  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }
  
  .cover-content {
    padding: 80px 40px;
  }
  
  /* Уменьшаем смещение на средних экранах */
  .section-title {
    padding-left: 40px;
  }
  
  .cards-grid,
  .ship-cards,
  
  .cert-grid {
    padding-left: 40px;
  }
  
  .two-column {
    padding-left: 120px; /* 40px + 80px */
  }
  
  .cert-tabs {
    padding-left: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .menu {
    order: 3;
    width: 100%;
  }
  
  .cover {
    height: auto;
    min-height: 500px;
  }
  
  .cover-content h1 {
    font-size: 32px;
    line-height: 40px;
  }
  
  .section-title {
    font-size: 32px;
    line-height: 40px;
    padding-left: 20px;
  }
  
  .cards-grid,
  .ship-cards {
    gap: 20px;
  }
  
  .card,
  .ship-card,
  .advantage-card {
    min-width: 100%;
  }
  
  .two-column {
    flex-direction: column;
    padding-left: 60px; /* На мобильных меньше смещение */
  }
  
  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  /* На мобильных уменьшаем смещение контента */
  .cards-grid,
  .ship-cards,
  
  .cert-grid {
    padding-left: 20px;
  }
  
  .cert-tabs {
    padding-left: 20px;
  }
  
  /* Карточки услуг - на мобильных одна колонка */
  #services .cards-grid {
    grid-template-columns: 1fr;
  }
  
  #services .card {
    min-width: 100%;
    max-width: 100%;
  }
}

/* ==================== */
/* МОБИЛЬНАЯ АДАПТАЦИЯ - ТОЛЬКО АДАПТАЦИЯ */
/* ==================== */

/* Планшетная версия (1024px и меньше) */
@media (max-width: 1024px) {
    /* Header */
    .header {
        padding: 15px 20px;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .menu {
        order: 3;
        width: 100%;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-email {
        order: 2;
        margin-left: auto;
    }
    
    /* Sections */
    .section {
        padding: 40px 40px !important;
    }
    
    .cover {
        height: 500px;
    }
    
    .cover-content {
        padding: 60px 40px;
    }
    
    /* Grids */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
    
    .ship-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Two column */
    .two-column {
        padding: 40px 40px;
        gap: 40px;
    }
    
    /* Certificates */
    .cert-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Partners & Clients */
    #partners .partner-cards,
    #clients .partner-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
    
    /* Articles */
    #articles .cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Contact */
    .contact-section {
        padding: 40px 40px !important;
    }
}

/* Мобильная версия (768px и меньше) */
@media (max-width: 768px) {
    /* Header - ТОЛЬКО СКРЫВАЕМ ЭЛЕМЕНТЫ, НЕ ТРОГАЕМ ПОЗИЦИОНИРОВАНИЕ */
    .header {
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: 70px;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    /* Логотип */
    .logo {
        flex: 0 0 auto;
    }
    
    .logo img {
        max-width: 150px;
        height: auto;
    }
    
    /* Скрываем элементы, которые будут в мобильном меню */
    .menu {
        display: none !important;
    }
    
    .header-email {
        display: none !important;
    }
    
    .lang-tabs {
        display: none !important;
    }
    
    /* Кнопка контактов в хедере - оставляем видимой */
    #openContactsBtn {
        margin-left: auto;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Cover */
    .cover {
        height: 400px;
        min-height: 400px;
    }
    
    .cover-content {
        padding: 40px 20px;
    }
    
    .cover-content h1 {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 15px;
    }
    
    .cover-content p {
        font-size: 16px;
        line-height: 24px;
    }
    
    /* Все секции */
    .section {
        padding: 40px 20px !important;
    }
    
    .section-title {
        font-size: 28px !important;
        line-height: 36px !important;
        padding-left: 0 !important;
        margin-bottom: 20px !important;
    }
    
    /* Убираем смещение контента */
    .cards-grid,
    .ship-cards,
    .partner-cards,
    .cert-grid {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Сетки - 1 колонка */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .ship-cards {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Карточки */
    .card {
        min-width: 100%;
        padding: 20px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .card-text {
        font-size: 15px;
        line-height: 22px;
    }
    
    .ship-card {
        min-width: 100%;
        padding: 20px;
    }
    
    .ship-card img {
        height: 160px;
    }
    
    .ship-card h3 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .ship-card p {
        font-size: 15px;
        line-height: 20px;
    }
    
    /* Two column - вертикально */
    .two-column {
        flex-direction: column !important;
        padding: 40px 20px !important;
        gap: 30px !important;
    }
    
    .two-column-left,
    .two-column-right {
        width: 100% !important;
    }
    
    .two-column-right .placeholder {
        height: 200px !important;
    }
    
    /* Кнопка в карьере */
    #career .btn-primary {
        width: 100%;
        max-width: 300px;
        margin: 20px auto 0 auto;
        display: block;
        text-align: center;
    }
    
    /* Сертификаты */
    .cert-tabs {
        flex-direction: column !important;
        gap: 15px !important;
        padding-left: 0 !important;
    }
    
    .cert-tab {
        font-size: 24px !important;
        line-height: 32px !important;
        text-align: left !important;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 0 !important;
    }
    
    .cert-image {
        height: 250px !important;
    }
    
    /* Партнеры и клиенты */
    #partners .partner-cards,
    #clients .partner-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding-left: 0 !important;
    }
    
    .partner-card {
        height: 150px !important;
    }
    
    /* Статьи */
    #articles .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    #articles .btn-primary[href="articles.html"] {
        display: block !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 30px auto 0 auto !important;
        padding: 12px 20px !important;
        text-align: center !important;
    }
    
    .article-card .article-image {
        height: 180px !important;
    }
    
    /* Контакты */
    .contact-section {
        padding: 40px 20px !important;
    }
    
    .contact-section h2 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    
    .contact-link {
        font-size: 18px !important;
        line-height: 24px !important;
        justify-content: center !important;
    }
    
    /* Footer */
    .footer {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px !important;
        text-align: center !important;
    }
    
    /* Модальные окна */
    .modal-overlay .modal {
        width: 95% !important;
        margin: 10px !important;
        max-height: 90vh !important;
    }
    
    .modal-header {
        padding: 20px 20px 10px 20px !important;
    }
    
    .modal-title {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    
    .modal-content {
        padding: 0 20px 20px 20px !important;
    }
    
    .contacts-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px !important;
    }
    
    /* Преимущества */
    #advantages .cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .advantage-card {
        min-width: 100% !important;
        padding: 20px !important;
    }
    
    .advantage-card .icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
}

/* Маленькие мобильные (480px и меньше) */
@media (max-width: 480px) {
    /* Header */
    .header {
        padding: 12px 15px;
        min-height: 60px;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    #openContactsBtn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    #openContactsBtn img {
        width: 16px;
        height: 16px;
    }
    
    /* Cover */
    .cover {
        height: 350px;
        min-height: 350px;
    }
    
    .cover-content h1 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .cover-content p {
        font-size: 14px;
        line-height: 20px;
    }
    
    /* Sections */
    .section {
        padding: 30px 15px !important;
    }
    
    .section-title {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    
    /* Карточки */
    .card,
    .ship-card {
        padding: 15px;
    }
    
    .card-image,
    .ship-card img {
        height: 150px;
    }
    
    /* Two column */
    .two-column {
        padding: 30px 15px !important;
    }
    
    .two-column-right .placeholder {
        height: 180px !important;
    }
    
    /* Сертификаты */
    .cert-tab {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    
    .cert-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cert-image {
        height: 200px !important;
    }
    
    /* Партнеры и клиенты */
    #partners .partner-cards,
    #clients .partner-cards {
        grid-template-columns: 1fr !important;
    }
    
    .partner-card {
        height: 130px !important;
    }
    
    /* Статьи */
    #articles .cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .article-card .article-image {
        height: 160px !important;
    }
    
    .article-card h3 {
        font-size: 16px;
        line-height: 24px;
    }
    
    .article-card p {
        font-size: 14px;
        line-height: 20px;
    }
    
    /* Контакты */
    .contact-section {
        padding: 30px 15px !important;
    }
    
    .contact-section h2 {
        font-size: 24px !important;
    }
    
    .contact-link {
        font-size: 16px !important;
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    .contact-link svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Footer */
    .footer {
        padding: 15px !important;
    }
    
    .footer p {
        font-size: 12px !important;
    }
    
    /* Модальные окна */
    .modal-header {
        padding: 15px 15px 8px 15px !important;
    }
    
    .modal-title {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    
    .modal-content {
        padding: 0 15px 15px 15px !important;
    }
    
    .field {
        padding: 12px !important;
    }
    
    .submit-button {
        padding: 14px !important;
    }
    
    .contacts-modal-header {
        padding: 15px !important;
    }
    
    .contacts-modal-body {
        padding: 15px !important;
    }
}

/* Оптимизация для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    button,
    a.btn-primary,
    .card,
    .ship-card,
    .article-card,
    .advantage-card,
    .cert-card,
    .partner-card {
        min-height: 44px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea {
        font-size: 16px !important;
    }
}

/* Исправление отступов для статей на главной */
@media (max-width: 768px) {
    #articles .section-title {
        margin-bottom: 30px !important;
    }
    
    #articles .btn-primary[href="articles.html"] {
        margin-top: 40px !important;
    }
}


@media (max-width: 768px) {

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
    }

    /* Логотип слева */
    .logo {
        flex: 1;
    }

    /* Группа кнопок справа */
    .header-right-group {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Кнопка "Контакты" */
    #openContactsBtn {
        order: 1;
        white-space: nowrap;
        padding: 8px 15px;
        background: #0044ff;
        color: white;
        border: none;
        border-radius: 4px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        text-decoration: none;
    }

    /* Бургер-меню */
    .mobile-menu-toggle {
        order: 2;
        margin-left: 0 !important;
        display: flex !important;
    }


    .menu,
    .header-email,
    .lang-tabs {
        display: none !important;
    }
}

/* ==================== */
/* ФИКСЫ ДЛЯ МОБИЛКИ - ОКОНЧАТЕЛЬНЫЕ */
/* ==================== */

@media (max-width: 768px) {
    /* 1. Карьера - текст слева, кнопка слева под текстом */
    #career.two-column {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    #career .two-column-left {
        width: 100% !important;
        padding-left: 0 !important;
    }
    
    #career .about-text h2 {
        text-align: left;
        padding-left: 0;
        margin-left: 0;
    }
    
    #career .about-text p {
        text-align: left;
        margin-bottom: 25px;
        padding-left: 0;
        width: 100%;
    }
    
    #career .btn-primary {
        display: block;
        width: fit-content;
        margin-left: 0 !important;
        margin-top: 20px;
        text-align: center;
        margin-right: auto;
    }
    
    /* 2. О флоте - карточки не выезжают */
    #advantages .cards-grid {
        padding-left: 0 !important;
        grid-template-columns: 1fr !important;
    }
    
    #advantages .advantage-card {
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 20px;
    }
    
    /* 3. Услуги */
    #services .cards-grid {
        padding-left: 0 !important;
        grid-template-columns: 1fr !important;
    }
    
    #services .card {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 4. Карточки кораблей */
    #ship .ship-cards {
        padding-left: 0 !important;
        grid-template-columns: 1fr !important;
    }
    
    #ship .ship-card {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 5. Все заголовки слева */
    .section-title {
        padding-left: 0 !important;
        text-align: left !important;
    }
    
    /* 6. Партнеры и клиенты */
    #partners .partner-cards,
    #clients .partner-cards {
        padding-left: 0 !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .partner-card {
        min-width: 100% !important;
        height: 150px !important;
    }
    
    /* 7. Сертификаты */
    .cert-tabs {
        padding-left: 0 !important;
        flex-direction: column;
        gap: 15px;
    }
    
    .cert-grid {
        padding-left: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .cert-card {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 8. Статьи на главной */
    #articles .cards-grid {
        padding-left: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    #articles .btn-primary[href="articles.html"] {
        margin-left: 0 !important;
        margin-top: 30px;
        display: block;
        width: fit-content;
        margin-right: auto;
    }
    
    /* 9. О компании - двухколоночный блок */
    #about.two-column {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    #about .two-column-left {
        padding-left: 0 !important;
    }
    
    #about .about-text h2,
    #about .about-text p {
        text-align: left;
        padding-left: 0;
    }
    
    /* 10. Контакты внизу */
    .contact-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: left;
    }
    
    .contact-section h2 {
        text-align: left;
    }
    
    .contact-links {
        align-items: flex-start;
    }
    
    /* 11. Изображения в карточках */
    .card img,
    .ship-card img,
    .advantage-card .icon,
    .two-column-right img {
        max-width: 100%;
        height: auto;
    }
    
    /* 12. Футер */
    .footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: center;
    }
    
    /* 13. Заголовок статей на главной */
    #articles .section-title {
        margin-bottom: 30px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    /* Карточки партнеров и клиентов - одна колонка */
    #partners .partner-cards,
    #clients .partner-cards {
        grid-template-columns: 1fr !important;
    }
    
    /* Кнопка в карьере на всю ширину */
    #career .btn-primary {
        width: 100%;
        max-width: 100%;
    }
    
    /* Кнопка в статьях на всю ширину */
    #articles .btn-primary[href="articles.html"] {
        width: 100%;
        max-width: 100%;
    }
}