/
ssm255
/
lb1
Обзор
Документация
Войти
/
ssm255
/
lb1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
CSS/style.css
992 строки
16 KB
Sofya Sysoeva
Добавить aria-метки, alt-тексты и исправить ошибки валидации
28 май 2026, 19:18
28 май 2026, 19:18
ee20348
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap'); :root { --bg: #FAF8F5; --white: #FFFFFF; --dark: #2D2D2D; --muted: #666666; --green: #5F8D8A; --cream: #F5EFE6; --line: #EAEAEA; --star: #F7D299; --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.05); --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.08); } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { min-width: 1440px; margin: 0; background: var(--bg); color: var(--dark); font-family: 'Inter', sans-serif; } a { text-decoration: none; color: inherit; } img { display: block; } button, input { font: inherit; } /* HEADER */ .header { width: 100%; height: 90px; background: var(--white); box-shadow: var(--shadow-soft); } .header__inner { max-width: 1440px; height: 90px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 60px; } .logo { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 600; color: var(--dark); flex-shrink: 0; } .nav { display: flex; gap: 48px; } .nav a { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 500; line-height: 34px; text-align: center; color: var(--dark); transition: color 0.3s ease; } .nav a:hover { color: var(--green); } .header__button { width: 140px; height: 48px; border-radius: 12px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 600; transition: 0.3s; flex-shrink: 0; } .header__button:hover { background: #527876; } /* MAIN */ main { width: 1440px; margin: 0 auto; } /* HERO */ .hero { position: relative; width: 1200px; height: 520px; margin: 93px 0 0 120px; border-radius: 32px; overflow: hidden; background: url("../images/hero1.jpg"); background-size: cover; background-position: center; } .hero__content { position: relative; z-index: 2; padding: 60px; } .hero h1 { width: 650px; margin: 0; font-family: 'Montserrat', sans-serif; font-size: 56px; font-weight: 600; line-height: 68px; } .hero p { width: 520px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 28px; } .button { display: inline-flex; align-items: center; justify-content: center; width: 220px; height: 56px; border-radius: 12px; background: var(--green); color: var(--white); border: none; font-size: 18px; font-weight: 600; cursor: pointer; transition: 0.3s; } .button:hover { background: #527876; } .hero__button { margin-top: 36px; } /* SECTIONS */ .section { width: 1200px; margin-left: 120px; } .section h2 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 40px; font-weight: 600; text-align: center; } /* SERVICES */ .services { padding-top: 100px; } .services__grid { display: grid; grid-template-columns: 560px 560px; gap: 40px 80px; margin-top: 50px; } .service-card { display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: center; height: 190px; padding: 24px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-soft); } .service-card__icon { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; } .service-card__icon img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; } .service-card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; color: var(--muted); } .service-card p { margin: 0; font-size: 16px; line-height: 24px; } /* ABOUT */ .about { padding-top: 100px; } .about__layout { display: grid; grid-template-columns: 520px 648px; gap: 32px; margin-top: 60px; } .about__image { width: 520px; height: 420px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); } .about__image img { width: 100%; height: 100%; object-fit: cover; } .about__text { padding-top: 10px; } .about__text h3 { margin: 0 0 30px; font-family: 'Montserrat', sans-serif; font-size: 30px; font-weight: 600; line-height: 40px; } .about__text p { margin: 0 0 20px; font-size: 18px; line-height: 30px; } /* DOCTORS */ .doctors { padding-top: 100px; } .doctors__grid { display: grid; grid-template-columns: repeat(3, 360px); gap: 60px; margin-top: 50px; } .doctor-card { padding: 20px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-soft); } .doctor-card__photo { width: 320px; height: 240px; border-radius: 20px; object-fit: cover; } .doctor-card h3 { margin: 20px 0 10px; font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 600; } .doctor-card span { display: block; margin-bottom: 20px; color: var(--muted); font-size: 16px; font-weight: 500; } .doctor-card p { margin: 0; font-size: 16px; line-height: 24px; } /* ADVANTAGES */ .advantages { padding-top: 100px; } .advantages__wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; padding: 40px; border-radius: 24px; background: var(--cream); } .advantage-card { padding: 30px 24px; border-radius: 24px; background: var(--white); text-align: center; box-shadow: var(--shadow-card); } .advantage-card__icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; } .advantage-card__icon img { width: 100%; height: 100%; object-fit: cover; } .advantage-card h3 { margin: 0 0 16px; font-size: 20px; font-weight: 600; } .advantage-card p { margin: 0; font-size: 16px; line-height: 24px; } /* REVIEWS */ .reviews { padding-top: 100px; } .reviews__grid { display: grid; grid-template-columns: 560px 560px; gap: 80px; margin-top: 50px; } .review-card { display: flex; gap: 28px; align-items: center; padding: 36px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-card); } .review-card__left { width: 120px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; } .review-card__avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; } .stars { margin-bottom: 16px; color: var(--star); font-size: 24px; letter-spacing: 4px; } .review-card p { margin: 0 0 16px; font-size: 16px; line-height: 24px; } .review-card h3 { margin: 0; text-align: center; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; } .review-card__content { flex: 1; } /* FAQ */ .faq { padding-top: 100px; padding-bottom: 60px; } .faq__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 50px; } .faq-item { background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-soft); border: 1px solid transparent; } .faq-item h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 18px; color: var(--dark); margin: 0 0 12px 0; padding-bottom: 12px; border-bottom: 2px solid var(--green); display: inline-block; } .faq-item p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 16px; } .faq-item a { color: var(--green); font-weight: 500; text-decoration: underline; } /* HERO APPOINTMENT */ .hero--appointment { background: url("../images/hero2.jpg"); background-size: cover; background-position: center 30%; } .hero--appointment::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%); border-radius: 32px; pointer-events: none; } /* FORM SECTION */ .form-section { padding-top: 80px; } .form-section h2 { margin-bottom: 16px; } .form-subtitle { text-align: center; font-size: 16px; color: var(--muted); margin-bottom: 48px; } .form-container { width: 100%; background: var(--white); border-radius: 32px; box-shadow: var(--shadow-card); padding: 48px 60px; margin-top: 20px; } .booking-form { max-width: 1044px; margin: 0 auto; } .form-row { display: flex; gap: 32px; margin-bottom: 32px; } .form-group { flex: 1; } .form-group label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 500; color: var(--muted); } .form-group input, .form-group textarea { width: 100%; padding: 16px 20px; background: #F8F6F2; border: 1px solid #E2DED8; border-radius: 14px; font-family: 'Inter', sans-serif; font-size: 16px; color: var(--dark); transition: all 0.3s ease; outline: none; } .form-group input:focus, .form-group textarea:focus { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(95, 141, 138, 0.1); } .full-width { flex: 100%; margin-bottom: 24px; } .form-agreement { margin: 32px 0 24px; text-align: center; } .checkbox-label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; color: var(--muted); } .checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--green); } .submit-btn { width: 260px; margin: 0 auto; display: flex; background: var(--green); color: var(--white); font-size: 18px; font-weight: 600; padding: 16px 32px; border: none; border-radius: 14px; cursor: pointer; transition: all 0.3s ease; } .submit-btn:hover { background: #527876; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(95, 141, 138, 0.3); } /* STEPS SECTION */ .steps-section { padding-top: 100px; padding-bottom: 60px; } .steps-section h2 { margin-bottom: 50px; } .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 20px; } .step-card { background: var(--white); border-radius: 24px; padding: 40px 24px; text-align: center; box-shadow: var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; } .step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); } .step-number { font-family: 'Montserrat', sans-serif; font-size: 48px; font-weight: 700; color: var(--green); margin-bottom: 24px; line-height: 1; } .step-card h3 { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 600; color: var(--dark); margin-bottom: 16px; } .step-card p { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 280px; margin: 0 auto; } /* ACCESSIBILITY FOCUS */ .form-group input:focus-visible, .form-group textarea:focus-visible, .submit-btn:focus-visible, .checkbox-label input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; } /* RESPONSIVE DESIGN */ @media (max-width: 1440px) { body, main, .header__inner, .footer__inner { min-width: 100%; width: 100%; } .header__inner, .footer__inner, main { padding-left: 20px; padding-right: 20px; } .hero, .section { width: calc(100% - 40px); margin-left: 20px; } } @media (max-width: 1100px) { .nav { gap: 30px; } .nav a { font-size: 18px; } .header__button { width: 120px; height: 44px; font-size: 18px; } .logo { font-size: 24px; } } @media (max-width: 900px) { .header__inner { flex-wrap: wrap; height: auto; padding: 15px 20px; gap: 15px; } .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 20px; } .header__button { order: 2; } .logo { order: 1; } } @media (max-width: 1200px) { .services__grid, .reviews__grid { grid-template-columns: 1fr; gap: 30px; } .doctors__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } .advantages__wrap { grid-template-columns: 1fr; } .about__layout { grid-template-columns: 1fr; } .about__image { width: 100%; } .faq__grid { grid-template-columns: 1fr; } .steps-grid { gap: 30px; } .form-row { flex-direction: column; gap: 20px; } .form-container { padding: 30px; } .hero h1 { font-size: 40px; width: auto; } .hero p { width: auto; } } @media (max-width: 768px) { .hero { height: auto; min-height: 450px; margin-top: 20px; } .hero__content { padding: 30px; } .hero h1 { font-size: 32px; line-height: 1.2; } .button { width: auto; padding: 0 24px; } .section { padding-left: 16px; padding-right: 16px; margin-left: 0; width: 100%; } .section h2 { font-size: 28px; } .doctors__grid { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } .step-card p { max-width: 100%; } .footer__inner { flex-direction: column; gap: 30px; text-align: center; align-items: center; } .footer__column h3 { text-align: center; } .faq__grid { gap: 20px; } .faq-item { padding: 20px; } .faq-item h3 { font-size: 16px; } .faq-item p { font-size: 14px; } } /* FOOTER */ .footer { width: 100%; margin-top: 100px; background: var(--dark); color: #D9D9D9; } .footer__inner { width: 1440px; margin: 0 auto; padding: 40px 60px; display: flex; justify-content: space-between; align-items: flex-start; } .footer__logo { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 600; color: var(--white); } .footer__column h3 { margin: 0 0 12px; font-size: 24px; font-weight: 600; text-align: center; } .footer__column p { margin: 0; font-size: 16px; line-height: 24px; text-align: center; } .footer__copy { padding-bottom: 24px; text-align: center; color: #A0A0A0; font-size: 14px; } .footer__title { margin: 0 0 12px; font-size: 24px; font-weight: 600; text-align: center; color: #D9D9D9; } /* SUCCESS PAGE */ .success-section { min-height: calc(100vh - 90px - 163px - 100px); display: flex; align-items: center; justify-content: center; padding: 80px 20px; } .success-card { width: 700px; max-width: 100%; background: var(--white); border-radius: 32px; box-shadow: var(--shadow-card); padding: 60px 40px; text-align: center; } .success-icon { font-size: 72px; font-weight: 400; color: var(--green); margin-bottom: 24px; line-height: 1; font-family: 'Inter', sans-serif; } .success-card h1 { font-family: 'Montserrat', sans-serif; font-size: 40px; font-weight: 600; color: var(--dark); margin: 0 0 20px 0; } .success-message { font-size: 18px; font-weight: 500; color: var(--muted); margin: 0 0 40px 0; white-space: nowrap; } .success-btn { width: 260px; margin: 0 auto; display: inline-flex; background: var(--green); color: var(--white); font-size: 18px; font-weight: 600; padding: 16px 32px; border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; white-space: nowrap; } .success-btn:hover { background: #527876; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(95, 141, 138, 0.3); } @media (max-width: 768px) { .success-card { padding: 40px 24px; } .success-card h1 { font-size: 28px; } .success-message { font-size: 14px; white-space: normal; } .success-icon { font-size: 56px; } .success-btn { width: auto; min-width: 200px; padding: 12px 24px; white-space: nowrap; } } @media (max-width: 480px) { .success-btn { white-space: normal; font-size: 16px; } }