/* Shared mockup styles — ОСКА maket */

body.maket {
  margin: 0;
  font-family: Onest, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #0f1115;
  -webkit-font-smoothing: antialiased;
}

body.maket a {
  color: #1B4DE4;
  text-decoration: none;
}
body.maket a:hover {
  color: #163fbd;
}

.logo {
  font-family: Unbounded, Onest, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #1B4DE4;
  letter-spacing: 0.02em;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0 24px;
  text-decoration: none;
}
.btn-primary,
body.maket a.btn-primary {
  background: #1B4DE4;
  color: #ffffff;
}
.btn-primary:hover,
body.maket a.btn-primary:hover {
  color: #ffffff;
  background: #163fbd;
}
.btn-secondary,
body.maket a.btn-secondary {
  background: #ffffff;
  color: #1B4DE4;
  border: 1px solid #1B4DE4;
}
.btn-secondary:hover,
body.maket a.btn-secondary:hover {
  color: #163fbd;
}
button.btn {
  width: 100%;
}

.muted {
  color: #5F6672;
}
.hr {
  height: 1px;
  background: #E1E4EA;
}
.card {
  border: 1px solid #E1E4EA;
  border-radius: 10px;
  padding: 16px;
  box-sizing: border-box;
}
.zone {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}
.z-green {
  background: #E6F4EA;
  color: #1E7B3A;
}
.z-yellow {
  background: #FBF3D9;
  color: #8A6A00;
}
.z-red {
  background: #FBE3E3;
  color: #B42318;
}

input,
textarea,
select {
  font-family: inherit;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Desktop artboard → responsive */
.page-desktop {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 100vh;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 64px;
  box-sizing: border-box;
  border-bottom: 1px solid #E1E4EA;
}
.nav-desktop .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav-desktop .nav-links > a:not(.btn) {
  color: #0f1115;
}
.nav-desktop .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.footer-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #E1E4EA;
  font-size: 14px;
}
.footer-desktop .footer-links {
  display: flex;
  gap: 20px;
}

/* Phone artboard → responsive */
.page-phone {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 100vh;
}
@media (min-width: 640px) {
  .page-phone {
    max-width: 480px;
    box-shadow: 0 0 0 1px #E1E4EA;
  }
}

.nav-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  box-sizing: border-box;
  border-bottom: 1px solid #E1E4EA;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  background: #E6F4EA;
  color: #1E7B3A;
  font-size: 14px;
  line-height: 1.45;
}

.chk-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}
.chk-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
}

.field-label {
  font-size: 14px;
  color: #5F6672;
}
.field-input {
  height: 48px;
  border: 1px solid #C9CED6;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  box-sizing: border-box;
  width: 100%;
}
.field-input-sm {
  height: 44px;
  border: 1px solid #C9CED6;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  box-sizing: border-box;
  width: 100%;
}
.field-textarea {
  border: 1px solid #C9CED6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

.class-letter {
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  color: #1B4DE4;
}

/* Advertiser: show desktop or phone layout */
.adv-desktop {
  display: block;
}
.adv-mobile {
  display: none;
}
@media (max-width: 900px) {
  .adv-desktop {
    display: none;
  }
  .adv-mobile {
    display: block;
  }
  .nav-desktop {
    padding: 0 20px;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-desktop .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }
  .page-desktop > .content-pad {
    padding: 40px 20px 32px !important;
  }
  .footer-desktop {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-desktop .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-2-hero,
  .grid-2-hero-start,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
  body.maket {
    overflow-x: hidden;
  }
  .page-desktop {
    overflow-x: hidden;
  }
}
