Json C# Class nested in Class NewtonSoft

i've got some problem with serialize a json, its my json ( generated by json2csharp )

   public class Pogoda
{
    public class Coord
    {
        public double lon { get; set; }
        public int lat { get; set; }
    }

    public class Weather
    {
        public int id { get; set; }
        public string main { get; set; }
    }

    public class Main
    {
        public static double temp { get; set; }
        public double temp_min { get; set; }
        public double temp_max { get; set; }
    }

    public class Wind
    {
        public double speed { get; set; }
    }

    public class Clouds
    {
        public int all { get; set; }
    }

    public class Sys
    {
        public double message { get; set; }
        public string country { get; set; }
    }

    public class RootObject
    {
        public Coord coord { get; set; }
        public List<Weather> weather { get; set; }
        public string @base { get; set; }
    }
}

and there is the code, I have never meet class nested in class, ofc I use Newtonsoft api from nuget

public double NowaPogoda(string nazwa_miasta)
    {
        string calosc = url1 + nazwa_miasta + url2;
        var json = new WebClient().DownloadString(calosc);

        Pogoda pog = JsonConvert.DeserializeObject<Pogoda>(json) as Pogoda;
        double temp = pog.main.temp_max;
        return temp;
    }

I tried other way to solute this problem, but noone of them worked.