@font-face {
  font-family: "Wallie";
  src: url("assets/fonts/Wallie-Chunky.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("assets/fonts/Comfortaa.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
      --bg: #09090B;
      --card: #121214;
      --button: #D9D9D9;
      --main-text: #FFFFFF;
      --second-text: #8A8A8A;
      --button-text: #09090B;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--main-text);
  font-family: "Comfortaa", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a {
    text-decoration: none;
}
.page {
    margin: 0; 
    padding: 0;
}

.sidebar {
    position: fixed; 
    top: 0;
    left: 0;
    padding: 60px 30px;
    width: 380px;
    height: 100vh;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    border-right: 2px solid #8A8A8A;
}


.nav-logo-first {
    font-family: "Wallie";
    font-size: 32px;
    margin: 0;
}
.logo-divider {
    display: block;
    height: 1px;
    width: 160px;
    background: #ffffff;
    margin: 5px 0;
}
.nav-logo-second {
    margin: 0;
    font-size: 20px;
    color: #8A8A8A;
    margin-top: 10px;
    margin-bottom: 30px;
} 

.section-nav-title {
    font-size: 18px;
    color: #666666;
    margin: 10px 0;
}
.section-nav-item {
    position: relative;
    background-color: transparent;
    border: none;
    color: #FFFFFF;
    border-radius: 0 10px 10px 0;
    margin-bottom: 5px;
    padding: 10px 15px 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.active-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: transparent;
    border-radius: 10px 0 0 10px;
    transition: background-color 0.3s ease;
}
.nav-btn {
    margin: 0;
    font-family: "Comfortaa";
}
.section-nav-item:hover {
    margin-left: 5px;
    background-color: #1a1a1a;
}
.section-nav-item:hover .active-bar {
    background-color: #ffffff;
}

.content {
    margin-left: 380px;
}
.content-container {
    padding: 60px 60px;
}
.content-section {
    margin-bottom: 80px;
}
.logo-info {
    font-family: "Wallie";
    font-size: 62px;
    margin: 0;
}
.description-info {
    font-size: 24px;
    margin: 0;
    color: #8A8A8A;
    margin-bottom: 30px;
}
.info-container {
    border-bottom: 1px solid #8A8A8A;
    position: relative; 
}

.info-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 3px;
    background: #FFFFFF;
}
.title-section {
    position: relative;
}
.title-section::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #FFFFFF;
}
.code-block {
    background: #0d0d0d;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 0;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.code-block:hover {
    border-color: #1a1a1a;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #0a0a0a;
    border-bottom: 1px solid #262626;
}
.code-dots {
    display: flex;
    gap: 8px;
}
.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666666;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.code-label {
    font-size: 12px;
    color: #666666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.code-content {
    padding: 28px;
    position: relative;
    z-index: 0;
}
.method-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #FFFFFF;
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
    margin-right: 16px;
    letter-spacing: 0.5px;
}

.status-grid {
    display: grid;
    gap: 20px;
    margin: 32px 0;
}
.status-card {
    background: #0a0a0a;
    border: 1px solid #262626;
    border-left: 4px solid #FFFFFF;
    border-radius: 10px;
    padding: 24px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.status-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}
.status-code {
    font-size: 24px;
}
.status-200 {
    color: #8FE988;
}
.status-401, .status-403, .status-422 {
    color: #E9D688;
}
.status-500 {
    color: #E98888;
}
.status-text {
    font-size: 16px;
    color: #D9D9D9;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}
.status-card:hover {
    transform: translateX(12px);
    border-left-width: 6px;
    background: #141414;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.status-card:hover::before {
    left: 100%;
}
.text-section {
    margin: 32px 0;
    color: #8A8A8A;
    font-size: 18px;
}
.contact-admin {
    display: inline-flex;
    padding: 20px;
    padding-right: 38px;
    background-color: #D9D9D9;
    align-items: center;
    border-radius: 10px;
    color: #1a1a1a;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}
.contact-arrow {
  position: absolute;
  right: 15px;
  bottom: 15px; /* 15px */
  width: 1.11vw; /* 16px */
  height: 1.11vw;
  display: grid;
  place-items: center;
  transition: all 0.4s ease;
}
.contact-admin:hover {
  background: var(--background); /* фон страницы */
  color: #fff;                  /* белый текст */
  outline: 2px solid #ffffff;  /* рамка поверх, не двигает */
  outline-offset: -2px;  
}

.contact-admin:hover svg {
  color: #fff;
  fill: #fff;
}

.contact-admin:hover .contact-arrow {
  display: none;
}

.lang-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    margin-top: 40px;
    padding: 8px;
    background: #0a0a0a;
    border-radius: 12px 12px 0 0;
    border: 1px solid #262626;
    border-bottom: none;
}
.lang-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #666666;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.lang-tab.active {
    color: #ffffff;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.lang-tab:hover {
    color: #ffffff;
    background: #1a1a1a;
}

.code-example {
    display: none;
}

.code-example.active {
    display: block;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-label {
  transition: all 0.3s ease;
}

.code-header:hover .code-label,
.code-content:hover ~ .code-header .code-label {
  opacity: 0;
}

.code-header:hover .copy-btn,
.code-content:hover ~ .code-header .copy-btn {
  opacity: 1;
}

.copy-btn:active {
  background: transparent;       
  color: #ffffff;               
  border: 2px solid #ffffff;     
  transition: all 0.15s ease;
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin: 40px 0;
}

.grid-card {
    background: #0a0a0a;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}
 .grid-card:hover {
    border-color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: #141414;
}

.field-name {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    width: auto;   
    padding: 8px 16px;
    background: #141414;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    margin: 6px 8px 6px 0;
    border: 1px solid #262626;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tag:hover {
    transform: translateY(-3px);
    background: #1a1a1a;
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(7, auto);
  column-gap: 40px;
  row-gap: 14px;
  align-items: center;
}

.data-grid .tag {
  width: fit-content;
  justify-self: start;
}

.data-grid span:not(.tag) {
  justify-self: end;
  text-align: right;
}

.text-section .tag {
    font-size: 16px;
}

.example-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: start;
    margin: 32px 0;
}
.arrow {
    color: #ffffff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    padding-top: 50px;
    border-top: 1px solid #262626;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-title {
    font-size: 22px;
}
.footer-title span {
    color: #666666;
}

@media (max-width: 1360px) {
    .example-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    .content {
    margin-left: 0;
    }
    .contact-admin {
        padding-right: 20px;
    }
    .contact-arrow {
        display: none;
    }
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 550px) {
    .logo-info {
        font-size: 50px;
    }
    .description-info {
        font-size: 19px;
    }
    .title-section {
        font-size: 19px;
    }
    .text-section {
        font-size: 15px;
    }
    .content-section {
        margin-bottom: 40px;
    }
    .data-grid {
        column-gap: 10px;
    }
}
@media (max-width: 510px) {
    .content-container {
        padding: 30px;
    }
    .code-content {
        padding: 14px;
    }
    .code-content {
        font-size: 12px;
    }
}
@media (max-width: 430px) {
    .contact-admin {
        padding: 5px;
        font-size: 12px;
    }
    .lang-tabs {
        flex-direction: column;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .field-name {
        font-size: 18px;
    }
    .field-text {
        font-size: 14px;
    }
}
@media (max-width: 380px){
    .code-content {
        font-size: 10px;
    }
    .footer {
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 320px) {
    .logo-info {
        font-size: 45px;
    }
    .description-info {
        font-size: 15px;
    }
    .title-section {
        font-size: 16px;
    }
    .text-section {
        font-size: 12px;
    }
    .status-code {
        font-size: 19px;
    }
    .status-text {
        font-size: 13px;
    }
    .status-card {
        padding: 19px;
    }
    .contact-admin svg {
        width: 28px;
        height: 28px;
    }
    .text-section .tag {
        font-size: 13px;
    }
}