*{
    font-family:Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

a{
    color: var(--second-purple);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Urbanist", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1rem;
}

h1 {
    font-size: 4rem;
    text-align: center;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

.fr_text_purple {
    color: var(--accent-purple);
}

.fr_text_green {
    color: var(--accent-green);
}

.fr_text_red {
    color: var(--accent-red);
}

.fr_text_center {
    text-align: center;
}

.fr_text_margin_top {
    margin-top: 1rem;
}

:root {
    --accent-green: #00ff88;
    --second-green: #00ce6e;
    --accent-purple: rgb(125 76 186);
    --second-purple: rgb(93, 49, 148);
    --accent-red: #ff4d4d;
    --second-red: #ff1a1a;
    --space-gray: #f9f9f9;
    --light-gray: #dee2e6;
    --dark-gray: #333;
    --shadow-gray: rgba(0, 0, 0, 0.1);
    --white: #fff;
    --black: #000;
}

body {
    background: #fff;
    color: #333;
    line-height: 1.7;
    font-size: 1rem;
}

/* Containers' styles */
.fr_container_large {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: max-content;
}

.fr_container_middle {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: max-content;
}

.fr_container_small {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: max-content;
}

/* Cards' styles */
.fr_card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-gray);
    margin-top: 20px;
    transition: all 0.3s ease;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
}

.fr_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-gray);
}

.fr_card_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.fr_card_two {
    flex: 0 0 calc(50% - 1rem);
}

@media (max-width: 768px) {
    .fr_card_two {
        flex: 0 0 100%;
    }
}

.fr_card_three {
    flex: 0 0 calc(33.333% - 1rem);
}

@media (max-width: 768px) {
    .fr_card_three {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .fr_card_three {
        flex: 0 0 100%;
    }
}

.fr_card img {
    border-radius: 20px;
}

.fr_partner_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

.fr_partner_logo {
    width: 100%;
    height: 200px;
    object-fit: contain;
}


.fr_card_border_green {
    border-left: 5px solid var(--accent-green);
}

.fr_card_border_purple {
    border-left: 5px solid var(--accent-purple);
}

.fr_card--grad {
  position: relative;
  overflow: hidden;              /* so the gradient respects rounded corners */
}

.fr_card--grad::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;             /* top:0; right:auto; bottom:0; left:0 */
  width: 5px;
  border-radius: 20px 0 0 20px;  /* match the card radius on the left side */
}

.fr_card--grad_purple_to_green::before {
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-green));
}

.fr_card--grad_green_to_purple::before {
  background: linear-gradient(to bottom, var(--accent-green), var(--accent-purple));
}

.fr_card_all_width {
    width: 100%;
    height: auto;
    display: block;
}

/* Buttons' styles */
a.fr_btn,
button.fr_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    background: none;
    line-height: 1;
    font-size: inherit;
}

.fr_btn_group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fr_btn_left_group {
    display: flex;
    gap: 0.5rem;
}

.fr_btn_right_group {
    display: flex;
    gap: 0.5rem;
}

.fr_fIx_from_below {
    position: sticky;
    bottom: 1rem;
    padding-top: 0.5rem;
    box-shadow: 0 2px 10px var(--light-gray);
    z-index: 100;
}

a.fr_btn_left,
button.fr_btn_left {
    text-align: left;
}

a.fr_btn_right,
button.fr_btn_right {
    text-align: right;
}

a.fr_btn_purple,
button.fr_btn_purple {
    background: var(--accent-purple);
    color: white;
}

a.fr_btn_purple:hover,
button.fr_btn_purple:hover {
    background: var(--second-purple);
    transform: translateY(-2px);
}

a.fr_btn_green,
button.fr_btn_green {
    background: var(--accent-green);
    color: white;
}

a.fr_btn_green:hover,
button.fr_btn_green:hover {
    background: var(--second-green);
    transform: translateY(-2px);
}

a.fr_btn_gray,
button.fr_btn_gray {
    background: var(--dark-gray);
    color: white;
}

a.fr_btn_gray:hover,
button.fr_btn_gray:hover {
    background: var(--shadow-gray);
    transform: translateY(-2px);
}

a.fr_btn_red,
button.fr_btn_red {
    background: var(--accent-red);
    color: white;
}

a.fr_btn_red:hover,
button.fr_btn_red:hover {
    background: var(--second-red);
    transform: translateY(-2px);
}

/* Teble styles */
table {
    width: 100%;
    margin:auto;
    border-collapse: collapse;
    background: var(white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-gray);
    border: none;
}

table th, table td {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid var(--light-gray);
    text-align: left;
    font-size: 0.875rem;
}

table tr td:not(:last-child),
table tr th:not(:last-child) {
    border-right: 1px solid var(--light-gray);
}

table th {
    background-color: var(--space-gray);
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: var(--space-gray);
}

table tr:hover {
    background-color: var(--light-gray);
}

/* Form styles */
.fr_form {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.fr_form label {
    flex: 0 0 fit-content;
    text-align: left;
    font-weight: bold;
    color: var(--black);
}

.fr_form input[type="text"],
.fr_form input[type="number"],
.fr_form input[type="date"],
.fr_form input[type="datetime-local"],
.fr_form input[type="email"],
.fr_form input[type="password"],
.fr_form textarea,
.fr_form select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background-color: var(--white);
    transition: border-color 0.2s ease-in-out;
}

.fr_form input[type="file"] {
    flex: 1;
    padding: 0.45rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--dark-gray);
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.fr_form input[type="file"]:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 0.2rem rgba(125, 76, 186, 0.15);
    outline: none;
}

.fr_form input[type="file"]::file-selector-button {
    padding: 0.45rem 1rem;
    margin-right: 1rem;
    border: none;
    border-radius: 6px;
    background: var(--accent-purple);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fr_form input[type="file"]::file-selector-button:hover {
    background: var(--second-purple);
    transform: translateY(-1px);
}

.fr_form input[type="file"]::file-selector-button:active {
    transform: translateY(0);
}

/* Fallback for WebKit-based browsers */
.fr_form input[type="file"]::-webkit-file-upload-button {
    padding: 0.45rem 1rem;
    margin-right: 1rem;
    border: none;
    border-radius: 6px;
    background: var(--accent-purple);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fr_form input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--second-purple);
    transform: translateY(-1px);
}

.fr_form input[type="file"]::-webkit-file-upload-button:active {
    transform: translateY(0);
}

.is-hidden {
    display: none !important;
}

.team-files-manager {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.team-files-manager__input input[type="file"] {
    width: 100%;
}

.team-files-dropzone {
    border: 1px dashed var(--light-gray);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    background: var(--space-gray);
    color: var(--dark-gray);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.team-files-dropzone.is-active {
    border-color: var(--accent-purple);
    background: #f7f1ff;
}

.team-files-dropzone__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-files-dropzone__subtitle {
    font-size: 0.9rem;
    color: var(--dark-gray);
    opacity: 0.75;
}

.team-files-list-wrapper {
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1rem;
    background: var(--white);
}

.team-files-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.team-files-empty {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    opacity: 0.7;
}

.team-files-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.team-file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.team-file-chip__body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.team-file-chip__icon {
    font-size: 1.3rem;
}

.team-file-chip__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.team-file-chip__name {
    font-weight: 600;
    color: var(--dark-gray);
    word-break: break-word;
}

.team-file-chip__meta,
.team-file-chip__size {
    font-size: 0.85rem;
    color: var(--dark-gray);
    opacity: 0.75;
}

.team-file-chip__remove {
    border: none;
    background: transparent;
    color: var(--accent-red);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.1rem 0.2rem;
    transition: color 0.2s ease;
}

.team-file-chip__remove:hover {
    color: var(--second-red);
}

.team-file-chip__status {
    display: none;
    font-size: 0.85rem;
    color: var(--second-red);
}

.team-file-chip--removed {
    border-color: rgba(255, 77, 77, 0.5);
    background: rgba(255, 77, 77, 0.05);
    opacity: 0.85;
}

.team-file-chip--removed .team-file-chip__status {
    display: block;
}

.team-files-existing {
    margin-top: 1rem;
}

.team-files-note {
    margin-top: 0.75rem;
    color: var(--dark-gray);
    opacity: 0.75;
}

.errorlist{
  margin-top:.5rem;
  margin-bottom:0;
  padding-left:1rem;
  color: var(--accent-red);
  list-style:disc;
}

/* Header Styles */
.main-header {
    background: #000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.header-nav .fr_form {
    margin-top: 0;
    margin-left: auto;
    gap: 0.75rem;
}

.header-nav .fr_form select {
    min-width: 160px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    background-color: var(--white);
    color: var(--dark-gray);
}

.logo{
    margin-left: 30px;
}

.logo a {
    color: var(--accent-green);
    font-size: 2rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: #fff;
}

.nav-links {
    margin-right: 20px;
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--accent-green);
    background: rgba(255,255,255,0.05);
}

/* Footer Styles */
.main-footer {
    padding: 1rem;
    background: #000;
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-columns {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p, .footer-col li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}