#main {
    margin-top: clamp(47px, 200rem, 140px);
}

p {
    font-size: 18px;
    font-weight: 500;
}

#main h1 {
    color: var(--accent-text);
    text-align: center;
    font-size: var(--text-2);
}

.archive-header {
    text-align: left;
    margin-bottom: 20px;
}

.komanda-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40rem;
}

.komanda-item {
    flex: 1 1 calc(25% - 30rem);
}

.komanda-item a {
    background: #F6F6F8;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
    display: block;
    filter: grayscale(100%);
    transition: filter 1s;
}

.komanda-item a:hover {
    filter: grayscale(0);
}

.komanda-thumb-img {
    width: 100%;
    max-width: 450px;
    max-height: 450px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.komanda-item-title {
    font-size: clamp(16px, 35rem, 24px);
    margin-bottom: 12px;
    color: #000;
    font-weight: 600;
}

.description {
    font-size: 18px;
}

.sotrudnik-page {
    margin-top: 50rem;
}

.sotrudnik-direction {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
}

.sotrudnik-header h1 {
    color: var(--accent);
    font-size: 48rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.dolzhnost {
    color: var(--gray);
    text-align: left;
    font-size: 18px;
    font-weight: 600;
}

h2,
strong {
    font-size: var(--text-2-2);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.sotrudnik-content {
    margin-bottom: 30px;
    max-width: 100%;
    font-size: min(17px, 17px);
}

.sotrudnik-content p, .sotrudnik-lists li{
    font-weight: 400;
}
.sotrudnik-lists li{
    margin-top:6px;
    line-height:150%;
    list-style-type: disc;
    margin-left: 20px;
}
.sotrudnik-direction-top {
    margin-bottom: 20rem;
}

.sotrudnik-direction-bottom {
    display: flex;
    flex-direction: column;
}

.sotrudnik-header {
    display: flex;
    flex-direction: row;
    gap: clamp(24px, 80rem, 60px);
    justify-content: space-between;
    align-items: flex-start;
}
.sotrudnik-photo{
    aspect-ratio: auto;
    max-height: 350px;
    overflow: visible;
}
.sotrudnik-photo img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: auto;
    border-radius: clamp(18px, 60rem, 30px);
    display: block;

}

.sotrudnik-photo {
    flex: 0 0 250px;
    max-width: 250px;
    width: 250px;
    background: transparent;
    border-radius: clamp(24px, 80rem, 40px);
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

:root {
    --bg: #f3f3f3;
    --text: #222;
    --muted: #7a7a7a;
    --radius: 16px;
    --gap: 16px;
}

.stats {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--gap);
    align-items: stretch;
    color: var(--text);
}

.card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: clamp(7px, 30rem, 15px) clamp(18px, 60rem, 24px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04) inset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(70px, 220rem, 100px);
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
}

.card--quote {
    flex: 1 1 0;
    min-height: clamp(100px, 320rem, 150px);
    position: relative;
}

.card--wide {
    flex: 1 1 0;
}

.value {
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: .2px;
    color: var(--accent-text);
    margin-bottom: 6px;
    white-space: nowrap;
}

.label {
    font-size: 14px;
    color: var(--muted);
}

.card--quote blockquote {
    margin: 0;
    font-size: 14px;
    color: #444;
}

.card--quote blockquote::before {
    content: "“";
    position: absolute;
    left: 24px;
    top: 15px;
    font-size: clamp(28px, 80rem, 44px);
    line-height: 1;
    color: var(--accent-text);
    font-weight: 800;
}

.card:has(.value:empty),
.card.is-empty {
    display: none;
}

[class^="list"] {
    text-align: left;
	max-width: calc(33% - 30px);
    width: 100%;
}

[class^="list"] ul {
    list-style-type: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 140%;
    padding: 0;
    margin: 0;
}

.sotrudnik-lists h3 {
    margin-top: 17px;
    color: black;
    font-weight: 600;
	text-align:left;
	font-size:var(--text-2-2);
	text-transform:uppercase;
}

.sotrudnik-lists {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 50px;
    row-gap: 30px;
}

@media (max-width: 1200px) {
    .sotrudnik-photo {
        max-width: 300px;
    }

    .sotrudnik-photo img {
        height: 100%;
    }
}

@media (max-width: 1024px) {
    .komanda-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 900px) {
    .stats {
        flex-wrap: wrap;
    }

    .card--quote blockquote::before {
        position: static;
    }

    .sotrudnik-header {
        flex-direction: column;
        gap: 10px;
    }

    .sotrudnik-photo {
        flex-basis: auto;
        max-width: 100%;
    }

    .sotrudnik-direction {
        display: contents;
    }

    [class^="list"] {
        max-width: 100%;
    }

    .card,
    .card--quote,
    .card--wide {
        flex: 1 1 calc(50% - var(--gap));
    }
}

@media (max-width: 600px) {
	.content:not(:first-of-type){
		margin:0;
	}
	.sotrudnik-lists{
		row-gap: 20px;
	}
	
    .sotrudnik-header h1 {
        font-size: 34rem !important;
        line-height: 1.1;
		text-align:center;
    }
    .sotrudnik-photo {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .komanda-item {
        flex: 1 1 100%;
    }

    .card,
    .card--quote,
    .card--wide {
        flex: 1 1 100%;
    }

    .value {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
  .komanda-grid {
    gap: 20px;
  }
	.sotrudnik-lists h3{
		text-align:center;
		
	}
  .komanda-item {
    flex: 1 1 100%;
  }

  .komanda-item a {
    padding: 16px;
  }

  .komanda-thumb-img {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
  }

  .komanda-item-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .komanda-caption .description {
    font-size: 14px;
    line-height: 1.4;
  }

  .sotrudnik-header {
    align-items: stretch;
  }

  .sotrudnik-photo {
    width: 100%;
    max-width: 100%;
    max-height: none;
    flex: 0 0 auto;
  }

  .sotrudnik-photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  .sotrudnik-header .sotrudnik-direction-top h1 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.1;
  }
	.dolzhnost{
				  text-align:center;
	}

	
	
  .sotrudnik-content,
  .sotrudnik-content p,
  .sotrudnik-content li,
  .sotrudnik-lists li,
  .dolzhnost {
    font-size: 15px;
    line-height: 1.45;

  }
}