/* === Base styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



html {
    scroll-behavior: smooth;
}

body {
    color: #e0e0e0;
    background-color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Waves background === */
#waves-bg {
    position: fixed;
    inset: 0;
    z-index: -1;      /* за всем контентом */
    display: block;
}

/* === Header === */
header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #0f202e;
    backdrop-filter: blur(6px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 4rem;
    height: 70px;
}

nav .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00d4ff;
    letter-spacing: 1px;
}

nav .logo img {
    height: 70px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    color: #00d4ff;
}

/* === Sections (общие настройки + анимация появления) === */
section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: transparent;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 460px;
    max-width: 60%;
    height: auto;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 2rem;
    color: #bbbbbb;
}

.btn {
    text-decoration: none;
    color: #ffffff;
    background: #007BFF;
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    transition: 0.3s;
}

.btn:hover {
    background: #0099ff;
    box-shadow: 0 0 15px #0099ff;
}

/* === Partners Section === */
.partners {
  text-align: center;
  padding: 5rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.partners h2 {
  color: #1f7bff;
  margin-bottom: 1.2rem;
  font-size: 2.1rem;
}

.partners-subtitle {
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
  color: #a0a4b0;
}

/* сетка карточек как на референсе */
/* сетка карточек партнёров */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.8rem;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
}

/* десктоп: три колонки, Bugcrowd строго под Cynet */
@media (min-width: 901px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    grid-template-areas:
      "opswat cynet skyguard"
      ".      bugcrowd .";
  }

  .partner-opswat   { grid-area: opswat; }
  .partner-cynet    { grid-area: cynet; }
  .partner-skyguard { grid-area: skyguard; }
  .partner-bugcrowd { grid-area: bugcrowd; }
}

/* планшет: две колонки обычной сеткой */
@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    grid-template-areas: none;
  }

  .partner-link {
    grid-area: auto;
  }
}

/* телефон: одна колонка */
@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* одна карточка партнёра */
.partner {
  position: relative;
  flex: 0 0 320px;
  max-width: 360px;
  border-radius: 22px; /* ← вот этот параметр отвечает за "rounded rectangle" */
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* стрелочка в правом верхнем углу */
.partner::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* hover-эффект */
.partner:hover {
  transform: translateY(-6px);
  background: rgba(10, 12, 16, 0.45);
  border-color: rgba(0, 136, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 136, 255, 0.3);
}
/* логотип внутри карточки */
.partner-logo-wrap {
  width: 100%;
  height: 100%;
  padding: 1.6rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-wrap img {
  max-width: 70%;
  max-height: 70px;
  height: auto;
  display: block;
}

.contract-card {
  background: rgba(10, 20, 40, 0.55);
  border: 1px solid rgba(0, 150, 255, 0.4);
  padding: 32px;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  margin-top: 40px;
  max-width: 600px;
}

.contract-card h3 {
  margin-bottom: 12px;
  font-size: 26px;
  color: #ffffff;
}

.contract-card p {
  color: #d0d9e8;
  margin-bottom: 22px;
  line-height: 1.5;
}

.contract-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #0096ff;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.contract-btn:hover {
  background: #0096ff;
}

.hp-wrapper {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hp-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
  border: 0;
  padding: 0;
}


.verify-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.verify-modal.is-open {
  display: flex;
}

.verify-modal-inner {
  background: #05060a;
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 180, 255, 0.3);
}

.verify-modal-inner h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.verify-modal-inner p {
  margin-bottom: 16px;
  font-size: 14px;
  color: #c5c5c5;
}

.verify-row {
  font-size: 14px;
  margin-bottom: 4px;
}

.verify-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.verify-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.verify-btn-primary {
  background: #00b4ff;
  color: #05060a;
}

.verify-btn-secondary {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.verify-modal-inner .contact-input {
  margin-top: 8px;
  width: 100%;
}

.verify-error {
  margin-top: 6px;
  font-size: 12px;
  color: #ff6b6b;
  min-height: 16px;
}



/* адаптив: 2 колонки, потом 1 */
@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}



/* === Contacts Section === */

.contact-info p {
    margin: 0.5rem 0;
}

.ceo-line {
    margin-top: 0.2rem;
    letter-spacing: 0.04em;
}

/* === 2EasyWay Contact CTA (styled like Bugcrowd block) === */

.contact-cta {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.contact-cta,
.contact-cta * {
  user-select: none; /* чтобы текст нельзя было выделять */
}

.contact-cta-inner {
  padding: 2.2rem 2.4rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.15), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.12), transparent 55%),
    rgba(5, 9, 20, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.55);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
}

.contact-cta-left {
  padding-right: 0.75rem;
}

.contact-title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  color: #ffffff;
}

.contact-text {
  font-size: 0.95rem;
  color: rgba(229, 231, 235, 0.9);
  margin-bottom: 0.8rem;
}

.contact-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.95);
}

.contact-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 0.4rem;
}

.contact-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #38bdf8;
}

/* форма справа (фейковая, текст не выделяется) */
.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid rgba(37, 99, 235, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field-label {
  font-size: 0.78rem;
  color: rgba(229, 231, 235, 0.9);
  margin-bottom: 0.25rem;
}

.contact-field-box {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #020617;
  font-size: 0.86rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.4;
}

.contact-field-multiline {
  min-height: 70px;
  display: flex;
  align-items: flex-start;
}

/* кнопка */
.contact-btn {
  align-self: flex-end;
  margin-top: 0.4rem;
  padding: 0.75rem 1.9rem;
  border-radius: 999px;
  background: #f9fafb;
  color: #020617;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.contact-btn:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* адаптив */
@media (max-width: 900px) {
  .contact-cta-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.6rem 1.5rem 1.7rem;
    gap: 1.6rem;
  }

  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-btn {
    align-self: stretch;
    text-align: center;
  }

  .contact-title {
    font-size: 1.4rem;
  }
}

/* === Footer === */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1e1e1e;
    background: transparent;
    color: #888888;
}

/* === Доп. анимация для hero === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeIn 1s ease-in-out forwards;
}

/* Адаптив под мобилки */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1.5rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .partner {
        padding: 1.4rem 1.4rem;
        flex-direction: row;
    }

    .partners-layout-featured .partners-grid {
        grid-template-columns: 1fr;
    }

    .partners-layout-featured .partner:nth-child(1) {
        grid-row: auto;
    }
}



/* === About Section === */

.about {
  max-width: 1200px;
}

.about-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 320px;
}

.about-text p {
  margin-bottom: 1rem;
  color: #ffffff;
  line-height: 1.7;
  font-size: 0.98rem;
}


.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.about-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e0efff;
  background: rgba(0, 0, 0, 0.5);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  flex: 1 1 160px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(0, 136, 255, 0.35), rgba(4, 15, 30, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 600;
  color: #00d4ff;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #c0c4cf;
}

/* About images */

.about-media {
  flex: 0 0 320px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-main-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.7);
}

.about-main-img img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.about-main-img img:hover {
  transform: scale(1.06);
}

.about-secondary {
  display: flex;
  gap: 1rem;
}

.about-small-img {
  flex: 1 1 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.7);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-small-img:hover {
  opacity: 1;
  transform: translateY(-4px);
}

/* === Contacts Section (cards) === */

.contact {
  max-width: 1200px;
}

.contact-tagline {
  max-width: 600px;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: #aeb4c2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2.5rem;
  justify-items: center;
}



.contact-card {
  background: rgba(5, 10, 20, 0.9);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card h3 {
  margin-bottom: 0.8rem;
  color: #00d4ff;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0.25rem 0;
  color: #c4cad6;
  font-size: 0.92rem;
}

.contact-card a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.7);
}

.contact-card a:hover {
  border-bottom-style: solid;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 26px 55px rgba(0, 136, 255, 0.35);
}

.contact-ceo .contact-note {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  color: #aeb4c2;
}

.contact-btn {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* === поля ввода для контактной формы === */

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #020617;
  font-size: 0.86rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.4;
}

.contact-textarea {
  min-height: 70px;
  resize: vertical;
}

/* чтобы в полях можно было выделять текст */
.contact-input,
.contact-textarea {
  user-select: text;
}

/* а всё остальное остаётся некопируемым */
.contact-cta {
  user-select: none;
}
/* === Email image section in contact block === */
/* === Email text in contact block === */
.contact-email-protected {
  font-size: 16px;
  color: #00b4ff;
  user-select: none;       /* нельзя выделять */
  pointer-events: none;    /* нельзя нажать, кликнуть, копировать */
  opacity: 0.9;
}

.contact-email-protected a {
  color: #00b4ff;
  text-decoration: none;
  pointer-events: auto;    /* только ссылка кликается */
  cursor: pointer;
}

/* запрет правой кнопки */
.contact-email-protected, 
.contact-email-protected a {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}



/* Map under contacts */

.contact-map-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.contact-map-img {
  max-width: 820px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-map-img:hover {
  opacity: 1;
  transform: translateY(-4px);
}

/* Сделать карточку партнёра ссылкой без стандартного внешнего вида */
.partner-link {
  display: block;
  text-decoration: none;
  color: inherit; /* чтобы текст/лого не меняли цвет */
  outline: none;
}

/* сохранить существующий стиль .partner, добавить pointer */
.partner {
  cursor: pointer;
  /* если у вас уже есть тень/фон/радиус, они останутся */
}

/* подсветка при наведении (легкая) */
.partner:hover .partner-logo-wrap,
.partner:focus .partner-logo-wrap {
  transform: translateY(-6px);
  transition: transform 220ms ease;
}

/* для доступности — фокусируемая ссылка */
.partner-link:focus {
  outline: 2px solid rgba(0,160,255,0.25);
  outline-offset: 6px;
  border-radius: 12px;
}


/* Адаптив для about/contacts */

@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
  }

  .about-media {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
/* одна широкая карточка в центре */
.contact-grid-single {
  grid-template-columns: minmax(280px, 780px);
  justify-content: center;
}

.contact-wide {
  width: 100%;
}


@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-secondary {
    flex-direction: column;
  }


}
