/* styles.css
   Цвета и шрифты в :root
   Google Fonts импортируются ниже
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Merriweather:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
    --header-bg: rgba(245, 245, 245, 0.8);
    --practice-item-bg: rgba(245, 245, 245, 0.6);
    --white: #fefefe;
    --lighter-grey1: #f9f9f9;
    --lighter-grey2: #faf8f7;
    --light-grey: #e7e7e7;
    --light-grey-style-line: #cfcfcf;
    --first-line-grey: #b3b3b3;
    --mid-light-grey: #aaa;
    --mid-grey: #6b6b6b;
    --dark-grey: #555;
    --darker-grey: #333;
    --black: #111;
    --muted: #a0a0a0;
    --container-max: 1200px;
}

/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button {
    background: none;
    border: 0;
}

img {
    display: block;
}

a {
    display: block;
    text-decoration: none;
}

.fw700 {
    font-weight: 700;
}

html {
    height: 100%;
    font-size: 18px;
}

body {
    height: 100%;
    font-family: "Sansation", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Scroll-button */
.scroll-top {
    position: fixed;
    bottom: -30px;
    right: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--dark-grey);
    color: white;
    font-size: 30px;
    padding-bottom: 5px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: .7;
    visibility: visible;
    bottom: 60px;
}

.scroll-top.visible:hover {
    transition: all .15s ease;
    background-color: var(--mid-grey);
}

/* Utility container */
.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 5;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--light-grey);
    backdrop-filter: blur(6px);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

/* Logo */
#logo {
    height: 50px;
}

#logo img {
    cursor: pointer;
    height: 100%;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav .nav-link {
    display: block;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: var(--mid-grey);
    font-weight: 700;
    font-size: 1.05em;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: var(--darker-grey);
}

.main-nav li a {
    display: block;
    position: relative;
    transition: 0.15s all ease;
}

.main-nav li a:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    background-color: var(--darker-grey);
    width: 0;
    height: 3px;
    transition: all 0.2s ease;
}

.main-nav li a:hover:after {
    width: 100%;
    left: 0;
}

/* quick contacts on right */
.contact-quick {
    display: flex;
    gap: 18px;
    align-items: center;
}

.icon-link {
    width: 25px;
    height: 25px;
    font-weight: 700;
    text-decoration: none;
    color: var(--mid-grey);
    transition: .15s ease all;
}

.email-link {
    width: 28px;
    height: 28px;
}

.icon-link:hover {
    color: var(--darker-grey);
}

.phone-link-icon {
    display: none;
}

.phone-link-string {
    display: block;
    width: auto;
}


/* burger */
.burger {
    display: none;
    cursor: pointer;
    width: 36px;
    height: 30px;
}

.burger-lines,
.cross-lines {
    height: 100%;
}

.flex-burger {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--darker-grey);
}

.cross-line-one,
.cross-line-two {
    background: var(--darker-grey);
    height: 100%;
    margin: 0 auto;
    transform: rotate(-45deg);
    width: 2px;
}

.cross-line-two {
    margin-top: -30px;
    transform: rotate(45deg);
}


/* HERO - full screen */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background-color: white;
    background-image: url('images/main-picture.png');
    background-repeat: no-repeat;
    filter: grayscale(80%);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all .8s ease;
}

.hero-visible {
    opacity: 1;
}

.mobile-img-wrap {
    display: none;
    margin-top: 70px;
    border-bottom: 4px solid var(--mid-grey);
    padding: 0;
    z-index: 4;
    position: relative;
}

.mobile-img-wrap img {
    width: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.25) 40%, rgba(255, 255, 255, 0.03) 100%);
    z-index: 1;
}

/* hero inner content layout (flex) */
.hero-inner {
    width: 100%;
    z-index: 2;
}

/* left text column */
.hero-left {
    padding-top: 70px;
    max-width: 640px;
    width: fit-content;
    font-size: 1rem;
}

.fading-item {
    transition: all 1.5s ease;
    opacity: 0;
    margin-left: -100px;
}

.visible {
    opacity: 1;
    margin-left: 0;
}

.hero-name,
.hero-name-mobile {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .2em;
}

.hero-top-mobile {
    display: none;
    text-align: center;
    width: max-content;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-name-mobile {
    font-size: 1.2em;
    margin-bottom: 0;
}

.hero-title,
.hero-title-mobile {
    color: var(--darker-grey);
    font-size: 3em;
    width: 10em;
    letter-spacing: 3px;
    font-family: "Merriweather", serif;
    text-transform: uppercase;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: .4em;
}

.hero-title-mobile {
    font-size: 6vw;
    max-font-size: 3rem;
    letter-spacing: 1px;
    width: max-content;
}

.desc {
    font-size: 1.3em;
    width: 24em;
    padding-bottom: 30px;
    text-align: right;
}

/* style-lines */
.style-line-wrap {
    width: 100%;
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 30px;
}

.style-line-dark {
    position: relative;
    width: 300px;
    height: 10px;
    background: var(--darker-grey);
}

.style-line-grey,
.style-line-grey-end {
    position: relative;
    width: 240px;
    height: 10px;
    background: var(--light-grey-style-line);
}

.style-line-dark::before,
.style-line-grey::before,
.style-line-grey-end::after {
    position: absolute;
    display: block;
    content: '';
    width: 0;
    height: 0;
    top: 0;
    right: 100%;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 9px solid transparent;
    border-left: 9px solid transparent;
}

.style-line-grey-end {
    margin: 50px 0 0 20px;
}

.style-line-dark::before {
    border-top-color: var(--darker-grey);
    border-right-color: var(--darker-grey);
}

.style-line-grey::before {
    border-top-color: var(--light-grey-style-line);
    border-right-color: var(--light-grey-style-line);
}

.style-line-grey-end::after {
    right: 0;
    left: 100%;
    border-top-color: var(--light-grey-style-line);
    border-left-color: var(--light-grey-style-line);
}

/* stats */
.stats {
    font-size: 1.3em;
}

.stat-years {
    display: flex;
    column-gap: .4em;
    align-items: baseline;
}

.stat-years-num {
    font-family: "Merriweather", serif;
    font-size: 2.7em;
}

.stat-label {
    margin-top: -.8em;
}

.slogan {
    font-family: "Lobster", sans-serif;
    font-size: 1.7em;
    padding-top: 50px;
    color: var(--dark-grey);
}

/* Sections common */
.section {
    padding: 30px 0 40px;
    color: var(--black);
    border-bottom: 1px solid var(--light-grey);
    font-size: .95rem;
}

.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title-group {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 17px;
    margin-bottom: 30px;
}

.section-title {
    font-family: "Merriweather", serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: -15px;
    padding: 10px 10px 14px 28px;
    background-image: url('images/title-bg.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 8rem 100%;
    width: fit-content;
}

/* Practice grid */

.practice-back {
    background-attachment: scroll;
    background-image: url(images/practice-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: grayscale(100%);
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: -1;
    transition: all 5s ease;
}

.practice-back-visible {
    opacity: .1;
}

.practice-grid {
    line-height: 1.3rem;
    display: flex;
    column-gap: 2%;
    row-gap: 20px;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
}

.practice-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
    min-height: 188px;
    max-height: 188px;
    width: 49%;
    border-radius: 5px;
    padding: 20px;
    border: 1px solid var(--light-grey-style-line);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all .5s ease;
}

.practice-item:hover {
    background-color: var(--practice-item-bg);
    border: 1px solid var(--mid-light-grey);
}

.practice-item.open {
    max-height: 3000px;
    border: 1px solid var(--mid-light-grey);
    background-color: var(--practice-item-bg);
}

.practice-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Merriweather", serif;
}

.subtitle-wrap {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.subtitle {
    margin-top: 10px;
    width: 90%;
    font-weight: 700;
    color: var(--dark-grey);
}

.practice-small-arrow {
    width: 0;
    height: 0;
    margin-bottom: 10px;
    border: 15px solid transparent;
    border-top: 10px solid var(--mid-light-grey);
    opacity: 1;
    transition: .5s ease all;
}

.practice-small-arrow.hidden {
    transition: .5s ease all;
    opacity: 0;
}

.practice-item ul {
    color: var(--dark-grey);
    max-height: 0;
    opacity: 0;
    list-style: none;
    padding-left: 0;
    transition: all .5s ease;
}

.practice-item.open ul {
    padding-top: 15px;
    max-height: 3000px;
    opacity: 1;
}

.practice-item li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.practice-item li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 6px;
    height: 6px;
    background-color: var(--dark-grey);
    border-radius: 40%;
}

.ps {
    max-width: 1200px;
    margin: 30px auto 0;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2rem;
}

/* About */
#about {
    background-color: var(--lighter-grey2);
}

.about-grid {
    line-height: 1.3rem;
    display: flex;
    gap: 3%;
    align-items: start;
}

.about-text {
    margin-top: 0;
    list-style: none;
    padding-left: 0;
    width: 70%;
}

.about-text li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.about-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 6px;
    height: 6px;
    background-color: var(--dark-grey);
    border-radius: 40%;
}

.about-gramota {
    width: 27%;
}

.about-gramota-img {
    width: 100%;
    border: 1px solid var(--mid-light-grey);
    filter: grayscale(100%);
}

.zoomable-photo {
    cursor: zoom-in;
    transition: all 0.4s ease;
    z-index: 1;
}

.static-photo {
    display: none;
}

/* затемняющий фон */
.photo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

/* увеличенное фото */
.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 95vh;
    width: auto;
    transform: translate(-50%, -50%);
    cursor: zoom-out;
    z-index: 101;
}

.photo-overlay.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 100;
}

/* Contacts */
#contacts {
    background: url("images/contacts-bg.png") no-repeat center;
    background-size: cover;
}

.contacts-grid {
    display: flex;
    padding-left: 20px;
    gap: 40px;
    align-items: end;
}

.contacts-column {
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 30px;
}

.contact-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mid-grey);
    transition: .15s all ease;
}

.contact-group:hover {
    color: var(--darker-grey);
}

.contact-address {
    width: max-content;
}

.contact-icon {
    width: 40px;
    height: 40px;
}

.contact-icon-email {
    width: 37px;
    height: 37px;
}

.contact-icon-phone {
    width: 35px;
    height: 35px;
}

.contact-text {
    width: max-content;
}

/* footer legal */
.legal {
    background-color: var(--lighter-grey1);
    color: var(--black);
    text-align: center;
    padding: 20px 0;
    font-weight: 300;
    font-size: 0.75rem;
}

/* sticky header visual when scrolling */
.site-header.scrolled {
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06)
}
