* {
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f8f8;
    color: #2d2d2d;
    line-height: 1.5;
    scroll-behavior: smooth;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.header {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    color: white;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.header .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}
.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-right: auto;
}

.logo .text-block{
    display: flex;
    flex-direction: column;
    font-weight: normal;
    color: #ffffff;
    max-width: 550px;
}
.logo .text-block h1 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    font-weight: 800;
    color: white;
}
.logo .text-block p{
    font-size: 0.85rem;
    opacity: 0.7;
    color: #bbbbbb;
}

#logo{
    max-width: 100px;
    max-width: 100px;
}
.nav a {
    color: #dddddd;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.nav a:hover {
    border-bottom-color: #b22222;
    color: #b22222;
}
.hero {
    background: #ffffff;
    padding: 70px 0 60px;
    border-bottom: 1px solid #eaeaea;
}
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.hero-text {
    flex: 1.2;
}
.hero-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.hero-text h2 span {
    color: #b22222;
}
.hero-text p {
    font-size: 1.2rem;
    color: #4a4a4a;
    max-width: 550px;
    margin-bottom: 30px;
}
.stats {
    display: flex;
    gap: 35px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.stat-item {
    background: #1a1a1a;
    border-radius: 28px;
    padding: 12px 28px;
    text-align: center;
    color: #e0e0e0;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #b22222;
}
.hero-image {
    flex: 0.8;
    background: #2a2a2a;
    border-radius: 32px;
    padding: 20px;
    text-align: center;
    font-size: 4rem;
    color: #b22222;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
section {
    padding: 70px 0;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    color: #1a1a1a;
}
.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #b22222;
    margin: 16px auto 0;
    border-radius: 2px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    transition: all 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: #b22222;
}
.card i {
    font-size: 2.6rem;
    color: #b22222;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.light-bg {
    background-color: #f5f5f5;
}
/* Благодарность */
.thanks-wrapper {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}
.thanks-text {
    flex: 1.5;
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 32px 36px;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.thanks-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #b22222;
    letter-spacing: -0.3px;
}
.thanks-text p {
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.thanks-sign {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #b22222;
    font-style: normal;
}
.photo-frame {
    display: flex;
    background: #2a2a2a;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    min-width: 13.5rem;
    min-height: 9.188rem;
    max-width: 33.75rem;
    max-height: 23rem;
    padding: 20px;
    overflow: hidden; 
    box-sizing: border-box;
}

.photo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    border-radius: 20px;
}
/* Проекты */
.company-group {
    background: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
}
.company-title {
    background: #1a1a1a;
    color: white;
    padding: 18px 28px;
    font-size: 1.3rem;
    font-weight: 700;
}
.work-item {
    padding: 24px 28px;
    border-bottom: 1px solid #eeeeee;
}
.work-item:last-child {
    border-bottom: none;
}
.work-description {
    color: #3a3a3a;
    line-height: 1.5;
    margin-bottom: 14px;
    font-size: 0.95rem;
}
.work-dates {
    color: #777777;
    font-size: 0.85rem;
}
.work-dates span {
    display: inline-block;
    margin-right: 28px;
}
.work-dates .date-label {
    color: #b22222;
    font-weight: 500;
}
footer {
    background: #1a1a1a;
    color: #aaaaaa;
    padding: 40px 0;
    text-align: center;
}
footer p:first-child {
    color: #e0e0e0;
}
@media (max-width: 800px) {
    .hero-text h2 { font-size: 2.2rem; }
    .nav a { margin-left: 15px; }
    .company-title { font-size: 1.1rem; padding: 14px 20px; }
    .work-item { padding: 18px 20px; }
    .thanks-wrapper { flex-direction: column; }
    .photo-frame { flex: 1; }
}
