/* Подключение локальных файлов (пути — относительно CSS-файла) */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
    background-color: #FAFAFB;

    font-size: 14px;
    font-weight: 400;
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

table {
    border-collapse: collapse;
}

/*  */

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.main-section{
    padding: 20px 0;

    display: flex;
    flex-direction: row;
    gap: 40px;

    min-height: 80vh;
}

.main-section .left-column{
    flex: 0 0 30%;

    display: flex;
    flex-direction: column;

    gap: 60px;
}

.main-section .right-column{
    flex: 0 0 70%;

    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-section .right-column .item:not(:last-child){
    padding-bottom: 20px;
    border-bottom: 1px solid #C3C3C3;
}

.main-section .right-column .title-wrapper .title{
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 32px;
}

.main-section .right-column .title-wrapper .subtitle{
    color: #777777;
}

.main-section .right-column .bottom-section{
    display: flex;
    flex-direction: column;
    gap: 20px;

}

.main-section .right-column .bottom-section .grid-wrapper{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.link-wrapper{
    display: flex;
    flex-direction: row;
    gap: 10px;

}

.link-wrapper a{
    color: #1771E6;
}

.link-wrapper a:hover{
    text-decoration: underline;
}

.link-wrapper .separator::after {
    content: '●';
    color: #999;
    font-size: 8px;
    
}

.main-section .left-column .logo-wrapper{
    display: flex;
    flex-direction: row;
    gap: 8px;

    align-items: center;
}

.main-section .left-column .logo-wrapper svg{
    width: 30px;
    height: 30px;
}

.main-section .left-column .logo-wrapper .title{
    font-weight: 600;
}

.main-section .left-column .middle-section{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-section .left-column .middle-section .item-wrapper{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    
}

.main-section .left-column .middle-section .item-wrapper:not(:last-child){
    padding-bottom: 20px;
    border-bottom: 1px solid #C3C3C3;
}

.main-section .left-column .middle-section .item-wrapper .logo-wrapper svg{
    width: 24px; 
    height: 24px;
    color: #777777;

    flex-shrink: 0;
}

.main-section .left-column .middle-section .item-wrapper .text-wrapper .title{
    font-weight: 600;
    margin-bottom: 10px;
}


.main-section .left-column .bottom-section{
    color: #777777;
    margin-top: auto;
}


/* ===== Форма ===== */
.payment-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field label{
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.required{ color: #EF3124; }

.input-wrapper{ position: relative; }

.input-wrapper input{
    width: 100%;
    height: 50px;
    padding: 0 44px 0 14px;
    border: 1px solid #C9C9CC;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    color: #222;
}

.input-wrapper input::placeholder{ color: #9B9B9F; }

.input-wrapper input:focus{
    border-color: #FFDD2D;
    box-shadow: 0 0 0 2px rgba(255, 221, 45, .35);
}

.input-wrapper input[readonly]{ color: #77777A; }

.input-suffix{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.hint{
    margin-top: 6px;
    font-size: 13px;
    color: #8A8A8E;
}

/* ===== Чекбокс ===== */
.checkbox{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox input{
    position: absolute;
    opacity: 0;
}

.checkbox-box{
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid #C9C9CC;
    border-radius: 4px;
    background: #fff;
    position: relative;
}

.checkbox input:checked + .checkbox-box{
    background: #FFDD2D;
    border-color: #FFDD2D;
}

.checkbox-box::after{
    content: "";
    position: absolute;
    left: 7.5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    transform: rotate(45deg);
    opacity: 0;
}

.checkbox input:checked + .checkbox-box::after{ opacity: 1; }

.checkbox-text{ font-size: 14px; line-height: 1.45; }
.checkbox-text a{ color: #1771E6; }
.checkbox-text a:hover{ text-decoration: underline; }

/* ===== Кнопка СБП ===== */
.pay-button{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background: #FFDD2D;
    cursor: pointer;
    transition: background .15s;
}

.pay-button:hover{ background: #FBCB1E; }

.pay-button-text{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}


.pay-button svg{
    width: 30px;
    height: 30px;
}


.pay-title{ font-weight: 700; font-size: 16px; color: #222; }
.pay-subtitle{ font-size: 13px; color: #4A4A4A; }

/* ===== Другой способ оплаты ===== */
.other-payment{
    align-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #8A8A8E;
    cursor: pointer;
}

.other-payment:hover{ color: #55555A; }